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



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



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

def creationFee
  @creationFee
end

#creationFeeSinkInteger Also known as: creation_fee_sink



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

def creationFeeSink
  @creationFeeSink
end

#deadlineInteger



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

def deadline
  @deadline
end

#feeInteger



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



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

def mosaicDefinition
  @mosaicDefinition
end

#networkSymbol



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

def network
  @network
end

#signatureString



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

def signature
  @signature
end

#signerString



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

def signer
  @signer
end

#timeStampInteger Also known as: timestamp



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

def timeStamp
  @timeStamp
end

#typeInteger



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

def type
  @type
end

#versionInteger



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

def version
  @version
end