Class: Nis::Transaction::MultisigAggregateModification

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

Overview

Constant Summary collapse

TYPE =

4097 (multisig aggregate modification transfer transaction)

0x1001

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Mixin::Struct

#[], #to_hash, #to_json

Constructor Details

#initialize(modifications, min_cosigs, network: :testnet) ⇒ MultisigAggregateModification

Returns a new instance of MultisigAggregateModification.



26
27
28
29
30
31
32
33
34
# File 'lib/nis/transaction/multisig_aggregate_modification.rb', line 26

def initialize(modifications, min_cosigs, network: :testnet)
  @type = TYPE
  @network = network

  @modifications = modifications
  @minCosignatories = min_cosigs
  # @minCosignatories = { relativeChange: 1 }
  @fee = Nis::Fee::MultisigAggregateModification.new(self)
end

Instance Attribute Details

#deadlineInteger

Returns the current value of deadline.

Returns:

  • (Integer)

    the current value of deadline



12
13
14
# File 'lib/nis/transaction/multisig_aggregate_modification.rb', line 12

def deadline
  @deadline
end

#feeInteger

Returns the current value of fee.

Returns:

  • (Integer)

    the current value of fee



12
13
14
# File 'lib/nis/transaction/multisig_aggregate_modification.rb', line 12

def fee
  @fee
end

#min_cosigsInterger

Returns the current value of min_cosigs.

Returns:

  • (Interger)

    the current value of min_cosigs



12
13
14
# File 'lib/nis/transaction/multisig_aggregate_modification.rb', line 12

def min_cosigs
  @min_cosigs
end

#minCosignatoriesObject Also known as: min_cosignatories

Returns the value of attribute minCosignatories.



16
17
18
# File 'lib/nis/transaction/multisig_aggregate_modification.rb', line 16

def minCosignatories
  @minCosignatories
end

#modificationsArray <Nis::Struct::MultisigCosignatoryModification>

Returns the current value of modifications.

Returns:



12
13
14
# File 'lib/nis/transaction/multisig_aggregate_modification.rb', line 12

def modifications
  @modifications
end

#networkObject

Returns the value of attribute network.



16
17
18
# File 'lib/nis/transaction/multisig_aggregate_modification.rb', line 16

def network
  @network
end

#signatureString

Returns the current value of signature.

Returns:

  • (String)

    the current value of signature



12
13
14
# File 'lib/nis/transaction/multisig_aggregate_modification.rb', line 12

def signature
  @signature
end

#signerString

Returns the current value of signer.

Returns:

  • (String)

    the current value of signer



12
13
14
# File 'lib/nis/transaction/multisig_aggregate_modification.rb', line 12

def signer
  @signer
end

#timeStampInteger Also known as: timestamp

Returns the current value of timeStamp.

Returns:

  • (Integer)

    the current value of timeStamp



12
13
14
# File 'lib/nis/transaction/multisig_aggregate_modification.rb', line 12

def timeStamp
  @timeStamp
end

#typeInteger

Returns the current value of type.

Returns:

  • (Integer)

    the current value of type



12
13
14
# File 'lib/nis/transaction/multisig_aggregate_modification.rb', line 12

def type
  @type
end

#versionInteger

Returns the current value of version.

Returns:

  • (Integer)

    the current value of version



12
13
14
# File 'lib/nis/transaction/multisig_aggregate_modification.rb', line 12

def version
  @version
end