Class: Mpp::Methods::Tempo::Transaction::SignedTransaction

Inherits:
Data
  • Object
show all
Defined in:
lib/mpp/methods/tempo/transaction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_listObject (readonly)

Returns the value of attribute access_list

Returns:

  • (Object)

    the current value of access_list



32
33
34
# File 'lib/mpp/methods/tempo/transaction.rb', line 32

def access_list
  @access_list
end

#callsObject (readonly)

Returns the value of attribute calls

Returns:

  • (Object)

    the current value of calls



32
33
34
# File 'lib/mpp/methods/tempo/transaction.rb', line 32

def calls
  @calls
end

#chain_idObject (readonly)

Returns the value of attribute chain_id

Returns:

  • (Object)

    the current value of chain_id



32
33
34
# File 'lib/mpp/methods/tempo/transaction.rb', line 32

def chain_id
  @chain_id
end

#fee_payer_signatureObject (readonly)

Returns the value of attribute fee_payer_signature

Returns:

  • (Object)

    the current value of fee_payer_signature



32
33
34
# File 'lib/mpp/methods/tempo/transaction.rb', line 32

def fee_payer_signature
  @fee_payer_signature
end

#fee_tokenObject (readonly)

Returns the value of attribute fee_token

Returns:

  • (Object)

    the current value of fee_token



32
33
34
# File 'lib/mpp/methods/tempo/transaction.rb', line 32

def fee_token
  @fee_token
end

#gas_limitObject (readonly)

Returns the value of attribute gas_limit

Returns:

  • (Object)

    the current value of gas_limit



32
33
34
# File 'lib/mpp/methods/tempo/transaction.rb', line 32

def gas_limit
  @gas_limit
end

#key_authorizationObject (readonly)

Returns the value of attribute key_authorization

Returns:

  • (Object)

    the current value of key_authorization



32
33
34
# File 'lib/mpp/methods/tempo/transaction.rb', line 32

def key_authorization
  @key_authorization
end

#max_fee_per_gasObject (readonly)

Returns the value of attribute max_fee_per_gas

Returns:

  • (Object)

    the current value of max_fee_per_gas



32
33
34
# File 'lib/mpp/methods/tempo/transaction.rb', line 32

def max_fee_per_gas
  @max_fee_per_gas
end

#max_priority_fee_per_gasObject (readonly)

Returns the value of attribute max_priority_fee_per_gas

Returns:

  • (Object)

    the current value of max_priority_fee_per_gas



32
33
34
# File 'lib/mpp/methods/tempo/transaction.rb', line 32

def max_priority_fee_per_gas
  @max_priority_fee_per_gas
end

#nonceObject (readonly)

Returns the value of attribute nonce

Returns:

  • (Object)

    the current value of nonce



32
33
34
# File 'lib/mpp/methods/tempo/transaction.rb', line 32

def nonce
  @nonce
end

#nonce_keyObject (readonly)

Returns the value of attribute nonce_key

Returns:

  • (Object)

    the current value of nonce_key



32
33
34
# File 'lib/mpp/methods/tempo/transaction.rb', line 32

def nonce_key
  @nonce_key
end

#sender_addressObject (readonly)

Returns the value of attribute sender_address

Returns:

  • (Object)

    the current value of sender_address



32
33
34
# File 'lib/mpp/methods/tempo/transaction.rb', line 32

def sender_address
  @sender_address
end

#sender_signatureObject (readonly)

Returns the value of attribute sender_signature

Returns:

  • (Object)

    the current value of sender_signature



32
33
34
# File 'lib/mpp/methods/tempo/transaction.rb', line 32

def sender_signature
  @sender_signature
end

#tempo_authorization_listObject (readonly)

Returns the value of attribute tempo_authorization_list

Returns:

  • (Object)

    the current value of tempo_authorization_list



32
33
34
# File 'lib/mpp/methods/tempo/transaction.rb', line 32

def tempo_authorization_list
  @tempo_authorization_list
end

#valid_afterObject (readonly)

Returns the value of attribute valid_after

Returns:

  • (Object)

    the current value of valid_after



32
33
34
# File 'lib/mpp/methods/tempo/transaction.rb', line 32

def valid_after
  @valid_after
end

#valid_beforeObject (readonly)

Returns the value of attribute valid_before

Returns:

  • (Object)

    the current value of valid_before



32
33
34
# File 'lib/mpp/methods/tempo/transaction.rb', line 32

def valid_before
  @valid_before
end

Instance Method Details

#encoded_2718Object



38
39
40
41
42
# File 'lib/mpp/methods/tempo/transaction.rb', line 38

def encoded_2718
  require_rlp!

  [TYPE_ID].pack("C") + RLP.encode(rlp_fields)
end

#fee_payer_signature_hashObject

Hash for fee payer to sign — includes sender_signature in the RLP.



52
53
54
55
56
57
58
59
# File 'lib/mpp/methods/tempo/transaction.rb', line 52

def fee_payer_signature_hash
  require_eth!
  require_rlp!

  fields = unsigned_rlp_fields
  fields.insert(11, sender_signature)
  Eth::Util.keccak256([TYPE_ID].pack("C") + RLP.encode(fields))
end

#signature_hashObject



44
45
46
47
48
49
# File 'lib/mpp/methods/tempo/transaction.rb', line 44

def signature_hash
  require_eth!
  require_rlp!

  Eth::Util.keccak256([TYPE_ID].pack("C") + RLP.encode(unsigned_rlp_fields))
end