class Nis::Transaction::MosaicSupplyChange
@attr [Nis::Struct::MosaicId] mosaic_id @attr [Symbol] supplyType @attr [Integer] delta @attr [Integer] fee @attr [Integer] type @attr [Integer] deadline @attr [Integer] timeStamp @attr [Integer] version @attr [String] signer @attr [String] signature @attr [Symbol] network @see nemproject.github.io/#mosaicSupplyChangeTransaction
Constants
- DECREASE
- INCREASE
- TYPE
Attributes
deadline[RW]
delta[RW]
fee[R]
mosaicId[RW]
mosaid_id[RW]
mosaid_id=[RW]
network[RW]
signature[RW]
signer[RW]
supplyType[RW]
supply_type[RW]
supply_type=[RW]
timeStamp[RW]
timestamp[RW]
type[R]
version[RW]
Public Class Methods
new(mosaic_id, type, delta, network: :testnet)
click to toggle source
# File lib/nis/transaction/mosaic_supply_change.rb, line 33 def initialize(mosaic_id, type, delta, network: :testnet) @type = TYPE @network = network @mosaicId = mosaic_id @supplyType = parse_type(type) @delta = delta @fee = Nis::Fee::MosaicSupplyChangeTransfer.new(self) end
Private Instance Methods
parse_type(type)
click to toggle source
# File lib/nis/transaction/mosaic_supply_change.rb, line 45 def parse_type(type) case type when :increase then INCREASE when :descrease then DECREASE else raise "Not implemented type: #{type}" end end