class Nis::Fee::ProvisionNamespace

Public Class Methods

new(transaction) click to toggle source
# File lib/nis/fee/provision_namespace.rb, line 3
def initialize(transaction)
  @transaction = transaction
end

Public Instance Methods

testnet?() click to toggle source

@return [Boolean]

# File lib/nis/fee/provision_namespace.rb, line 18
def testnet?
  @transaction.network == :testnet
end
to_i() click to toggle source

@return [Integer] fee in micro XEM

# File lib/nis/fee/provision_namespace.rb, line 13
def to_i
  value.to_i
end
value() click to toggle source

@return [Integer] fee in micro XEM

# File lib/nis/fee/provision_namespace.rb, line 8
def value
  @transaction.root? ? root_fee : sub_fee
end

Private Instance Methods

root_fee() click to toggle source
# File lib/nis/fee/provision_namespace.rb, line 24
def root_fee
  0.15 * 1_000_000
end
sub_fee() click to toggle source
# File lib/nis/fee/provision_namespace.rb, line 28
def sub_fee
  0.15 * 1_000_000
end