Class: Nis::Transaction::Multisig

Inherits:
Object
  • Object
show all
Includes:
Mixin::Struct
Defined in:
lib/nis/transaction/multisig.rb

Overview

Constant Summary collapse

TYPE =

4100 (multisig transaction)

0x1004

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Mixin::Struct

#[], #to_hash, #to_json

Constructor Details

#initialize(tx, signer, network: :testnet) ⇒ Multisig

Returns a new instance of Multisig.



24
25
26
27
28
29
30
31
# File 'lib/nis/transaction/multisig.rb', line 24

def initialize(tx, signer, network: :testnet)
  @type = TYPE
  @network = network

  @otherTrans = tx
  @signer = signer
  @fee = Nis::Fee::Multisig.new(self)
end

Instance Attribute Details

#deadlineInteger

Returns the current value of deadline.

Returns:

  • (Integer)

    the current value of deadline



10
11
12
# File 'lib/nis/transaction/multisig.rb', line 10

def deadline
  @deadline
end

#feeInteger

Returns the current value of fee.

Returns:

  • (Integer)

    the current value of fee



10
11
12
# File 'lib/nis/transaction/multisig.rb', line 10

def fee
  @fee
end

#networkObject

Returns the value of attribute network.



14
15
16
# File 'lib/nis/transaction/multisig.rb', line 14

def network
  @network
end

#otherTransNis::Transaction::* Also known as: other_trans

Returns the current value of otherTrans.

Returns:



10
11
12
# File 'lib/nis/transaction/multisig.rb', line 10

def otherTrans
  @otherTrans
end

#signerString

Returns the current value of signer.

Returns:

  • (String)

    the current value of signer



10
11
12
# File 'lib/nis/transaction/multisig.rb', line 10

def signer
  @signer
end

#timeStampInteger Also known as: timestamp

Returns the current value of timeStamp.

Returns:

  • (Integer)

    the current value of timeStamp



10
11
12
# File 'lib/nis/transaction/multisig.rb', line 10

def timeStamp
  @timeStamp
end

#typeInteger

Returns the current value of type.

Returns:

  • (Integer)

    the current value of type



10
11
12
# File 'lib/nis/transaction/multisig.rb', line 10

def type
  @type
end

#versionInteger

Returns the current value of version.

Returns:

  • (Integer)

    the current value of version



10
11
12
# File 'lib/nis/transaction/multisig.rb', line 10

def version
  @version
end