Class: Mpp::Methods::Tempo::Transaction::SignedTransaction
- Inherits:
-
Data
- Object
- Data
- Mpp::Methods::Tempo::Transaction::SignedTransaction
- Defined in:
- lib/mpp/methods/tempo/transaction.rb
Instance Attribute Summary collapse
-
#access_list ⇒ Object
readonly
Returns the value of attribute access_list.
-
#calls ⇒ Object
readonly
Returns the value of attribute calls.
-
#chain_id ⇒ Object
readonly
Returns the value of attribute chain_id.
-
#fee_payer_signature ⇒ Object
readonly
Returns the value of attribute fee_payer_signature.
-
#fee_token ⇒ Object
readonly
Returns the value of attribute fee_token.
-
#gas_limit ⇒ Object
readonly
Returns the value of attribute gas_limit.
-
#key_authorization ⇒ Object
readonly
Returns the value of attribute key_authorization.
-
#max_fee_per_gas ⇒ Object
readonly
Returns the value of attribute max_fee_per_gas.
-
#max_priority_fee_per_gas ⇒ Object
readonly
Returns the value of attribute max_priority_fee_per_gas.
-
#nonce ⇒ Object
readonly
Returns the value of attribute nonce.
-
#nonce_key ⇒ Object
readonly
Returns the value of attribute nonce_key.
-
#sender_address ⇒ Object
readonly
Returns the value of attribute sender_address.
-
#sender_signature ⇒ Object
readonly
Returns the value of attribute sender_signature.
-
#tempo_authorization_list ⇒ Object
readonly
Returns the value of attribute tempo_authorization_list.
-
#valid_after ⇒ Object
readonly
Returns the value of attribute valid_after.
-
#valid_before ⇒ Object
readonly
Returns the value of attribute valid_before.
Instance Method Summary collapse
- #encoded_2718 ⇒ Object
-
#fee_payer_signature_hash ⇒ Object
Hash for fee payer to sign — includes sender_signature in the RLP.
- #signature_hash ⇒ Object
Instance Attribute Details
#access_list ⇒ Object (readonly)
Returns the value of attribute access_list
32 33 34 |
# File 'lib/mpp/methods/tempo/transaction.rb', line 32 def access_list @access_list end |
#calls ⇒ Object (readonly)
Returns the value of attribute calls
32 33 34 |
# File 'lib/mpp/methods/tempo/transaction.rb', line 32 def calls @calls end |
#chain_id ⇒ Object (readonly)
Returns the value of attribute chain_id
32 33 34 |
# File 'lib/mpp/methods/tempo/transaction.rb', line 32 def chain_id @chain_id end |
#fee_payer_signature ⇒ Object (readonly)
Returns the value of attribute fee_payer_signature
32 33 34 |
# File 'lib/mpp/methods/tempo/transaction.rb', line 32 def fee_payer_signature @fee_payer_signature end |
#fee_token ⇒ Object (readonly)
Returns the value of attribute fee_token
32 33 34 |
# File 'lib/mpp/methods/tempo/transaction.rb', line 32 def fee_token @fee_token end |
#gas_limit ⇒ Object (readonly)
Returns the value of attribute gas_limit
32 33 34 |
# File 'lib/mpp/methods/tempo/transaction.rb', line 32 def gas_limit @gas_limit end |
#key_authorization ⇒ Object (readonly)
Returns the value of attribute key_authorization
32 33 34 |
# File 'lib/mpp/methods/tempo/transaction.rb', line 32 def @key_authorization end |
#max_fee_per_gas ⇒ Object (readonly)
Returns the value of attribute 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_gas ⇒ Object (readonly)
Returns the value of attribute 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 |
#nonce ⇒ Object (readonly)
Returns the value of attribute nonce
32 33 34 |
# File 'lib/mpp/methods/tempo/transaction.rb', line 32 def nonce @nonce end |
#nonce_key ⇒ Object (readonly)
Returns the value of attribute nonce_key
32 33 34 |
# File 'lib/mpp/methods/tempo/transaction.rb', line 32 def nonce_key @nonce_key end |
#sender_address ⇒ Object (readonly)
Returns the value of attribute sender_address
32 33 34 |
# File 'lib/mpp/methods/tempo/transaction.rb', line 32 def sender_address @sender_address end |
#sender_signature ⇒ Object (readonly)
Returns the value of attribute sender_signature
32 33 34 |
# File 'lib/mpp/methods/tempo/transaction.rb', line 32 def sender_signature @sender_signature end |
#tempo_authorization_list ⇒ Object (readonly)
Returns the value of attribute tempo_authorization_list
32 33 34 |
# File 'lib/mpp/methods/tempo/transaction.rb', line 32 def @tempo_authorization_list end |
#valid_after ⇒ Object (readonly)
Returns the value of attribute valid_after
32 33 34 |
# File 'lib/mpp/methods/tempo/transaction.rb', line 32 def valid_after @valid_after end |
#valid_before ⇒ Object (readonly)
Returns the value of attribute valid_before
32 33 34 |
# File 'lib/mpp/methods/tempo/transaction.rb', line 32 def valid_before @valid_before end |
Instance Method Details
#encoded_2718 ⇒ Object
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_hash ⇒ Object
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_hash ⇒ Object
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 |