Class: Nis::Transaction::MosaicDefinitionCreation

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

Overview

Constant Summary collapse

TYPE =

16385 (mosaic definition creation transaction)

0x4001

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Mixin::Struct

#[], #to_hash, #to_json

Constructor Details

#initialize(mosaic_definition, network: :testnet) ⇒ MosaicDefinitionCreation

Returns a new instance of MosaicDefinitionCreation.



31
32
33
34
35
36
37
38
39
# File 'lib/nis/transaction/mosaic_definition_creation.rb', line 31

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

  @mosaicDefinition = mosaic_definition
  @creationFee = creation[:fee]
  @creationFeeSink = creation[:sink]
  @fee = Nis::Fee::MosaicDefinitionCreation.new(self)
end

Instance Attribute Details

#creationFeeInteger Also known as: creation_fee

Returns the current value of creationFee.

Returns:

  • (Integer)

    the current value of creationFee



15
16
17
# File 'lib/nis/transaction/mosaic_definition_creation.rb', line 15

def creationFee
  @creationFee
end

#creationFeeSinkInteger Also known as: creation_fee_sink

Returns the current value of creationFeeSink.

Returns:

  • (Integer)

    the current value of creationFeeSink



15
16
17
# File 'lib/nis/transaction/mosaic_definition_creation.rb', line 15

def creationFeeSink
  @creationFeeSink
end

#deadlineInteger

Returns the current value of deadline.

Returns:

  • (Integer)

    the current value of deadline



15
16
17
# File 'lib/nis/transaction/mosaic_definition_creation.rb', line 15

def deadline
  @deadline
end

#feeInteger

Returns the current value of fee.

Returns:

  • (Integer)

    the current value of fee



15
16
17
# File 'lib/nis/transaction/mosaic_definition_creation.rb', line 15

def fee
  @fee
end

#mosaicDefinitionNis::Struct::MosaicDefinition Also known as: mosaic_definition

Returns the current value of mosaicDefinition.

Returns:



15
16
17
# File 'lib/nis/transaction/mosaic_definition_creation.rb', line 15

def mosaicDefinition
  @mosaicDefinition
end

#networkSymbol

Returns the current value of network.

Returns:

  • (Symbol)

    the current value of network



15
16
17
# File 'lib/nis/transaction/mosaic_definition_creation.rb', line 15

def network
  @network
end

#signatureString

Returns the current value of signature.

Returns:

  • (String)

    the current value of signature



15
16
17
# File 'lib/nis/transaction/mosaic_definition_creation.rb', line 15

def signature
  @signature
end

#signerString

Returns the current value of signer.

Returns:

  • (String)

    the current value of signer



15
16
17
# File 'lib/nis/transaction/mosaic_definition_creation.rb', line 15

def signer
  @signer
end

#timeStampInteger Also known as: timestamp

Returns the current value of timeStamp.

Returns:

  • (Integer)

    the current value of timeStamp



15
16
17
# File 'lib/nis/transaction/mosaic_definition_creation.rb', line 15

def timeStamp
  @timeStamp
end

#typeInteger

Returns the current value of type.

Returns:

  • (Integer)

    the current value of type



15
16
17
# File 'lib/nis/transaction/mosaic_definition_creation.rb', line 15

def type
  @type
end

#versionInteger

Returns the current value of version.

Returns:

  • (Integer)

    the current value of version



15
16
17
# File 'lib/nis/transaction/mosaic_definition_creation.rb', line 15

def version
  @version
end