Class: Zilliqa::Account::TransactionFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/zilliqa/account/transaction_factory.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(provider, signer) ⇒ TransactionFactory

Returns a new instance of TransactionFactory.



6
7
8
9
# File 'lib/zilliqa/account/transaction_factory.rb', line 6

def initialize(provider, signer)
  @provider = provider
  @signer = signer
end

Instance Attribute Details

#providerObject (readonly)

Returns the value of attribute provider.



4
5
6
# File 'lib/zilliqa/account/transaction_factory.rb', line 4

def provider
  @provider
end

#signerObject (readonly)

Returns the value of attribute signer.



4
5
6
# File 'lib/zilliqa/account/transaction_factory.rb', line 4

def signer
  @signer
end

Instance Method Details

#new(tx_params, to_ds = false) ⇒ Object



11
12
13
# File 'lib/zilliqa/account/transaction_factory.rb', line 11

def new(tx_params, to_ds = false)
  Transaction.new(tx_params, @provider, Zilliqa::Account::Transaction::TX_STATUSES[:initialized], to_ds)
end