Class: Glueby::Contract::Timestamp::TxBuilder::UpdatingTrackable
- Defined in:
- lib/glueby/contract/timestamp/tx_builder/updating_trackable.rb
Instance Attribute Summary
Attributes inherited from Trackable
Instance Method Summary collapse
Methods inherited from Trackable
Methods inherited from Simple
#funding_tx, #initialize, #set_data, #set_inputs
Constructor Details
This class inherits a constructor from Glueby::Contract::Timestamp::TxBuilder::Simple
Instance Method Details
#build ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/glueby/contract/timestamp/tx_builder/updating_trackable.rb', line 14 def build tx = super # Generates signature for the remain p2c input. @wallet.internal_wallet.sign_to_pay_to_contract_address( tx, @prev_timestamp_utxo, @prev_payment_base, [@prev_prefix, @prev_data].join ) end |
#set_prev_timestamp_info(timestamp_utxo:, payment_base:, prefix:, data:) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/glueby/contract/timestamp/tx_builder/updating_trackable.rb', line 6 def (timestamp_utxo:, payment_base:, prefix:, data:) @prev_timestamp_utxo = @prev_payment_base = payment_base @prev_prefix = prefix @prev_data = data @txb.add_utxo(@prev_timestamp_utxo) end |