Class: Nis::Transaction::ProvisionNamespace

Inherits:
Object
  • Object
show all
Includes:
Mixin::Network, Util::Assignable
Defined in:
lib/nis/transaction/provision_namespace.rb

Overview

Constant Summary collapse

TYPE =

8193 (provision namespace transaction)

0x2001
FEE =
20_000_000

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Util::Assignable

#[], #initialize, #to_json

Methods included from Mixin::Network

#mainnet?, #testnet?

Instance Attribute Details

#deadlineInteger

Returns the current value of deadline.

Returns:

  • (Integer)

    the current value of deadline



14
15
16
# File 'lib/nis/transaction/provision_namespace.rb', line 14

def deadline
  @deadline
end

#feeInteger

Returns:

  • (Integer)


14
15
16
# File 'lib/nis/transaction/provision_namespace.rb', line 14

def fee
  @fee
end

#newPartString Also known as: new_part

Returns the current value of newPart.

Returns:

  • (String)

    the current value of newPart



14
15
16
# File 'lib/nis/transaction/provision_namespace.rb', line 14

def newPart
  @newPart
end

#parentString

Returns the current value of parent.

Returns:

  • (String)

    the current value of parent



14
15
16
# File 'lib/nis/transaction/provision_namespace.rb', line 14

def parent
  @parent
end

#rentalFeeInteger Also known as: rental_fee

Returns the current value of rentalFee.

Returns:

  • (Integer)

    the current value of rentalFee



14
15
16
# File 'lib/nis/transaction/provision_namespace.rb', line 14

def rentalFee
  @rentalFee
end

#rentalFeeSinkString Also known as: rental_fee_sink

Returns the current value of rentalFeeSink.

Returns:

  • (String)

    the current value of rentalFeeSink



14
15
16
# File 'lib/nis/transaction/provision_namespace.rb', line 14

def rentalFeeSink
  @rentalFeeSink
end

#signatureString

Returns the current value of signature.

Returns:

  • (String)

    the current value of signature



14
15
16
# File 'lib/nis/transaction/provision_namespace.rb', line 14

def signature
  @signature
end

#signerString

Returns the current value of signer.

Returns:

  • (String)

    the current value of signer



14
15
16
# File 'lib/nis/transaction/provision_namespace.rb', line 14

def signer
  @signer
end

#timeStampInteger Also known as: timestamp

Returns the current value of timeStamp.

Returns:

  • (Integer)

    the current value of timeStamp



14
15
16
# File 'lib/nis/transaction/provision_namespace.rb', line 14

def timeStamp
  @timeStamp
end

#typeInteger

Returns:

  • (Integer)


14
15
16
# File 'lib/nis/transaction/provision_namespace.rb', line 14

def type
  @type
end

#versionInteger

Returns the current value of version.

Returns:

  • (Integer)

    the current value of version



14
15
16
# File 'lib/nis/transaction/provision_namespace.rb', line 14

def version
  @version
end

Class Method Details

.build(attrs) ⇒ Object



34
35
36
# File 'lib/nis/transaction/provision_namespace.rb', line 34

def self.build(attrs)
  new(attrs)
end

Instance Method Details

#to_hashObject



50
51
52
53
54
# File 'lib/nis/transaction/provision_namespace.rb', line 50

def to_hash
  type
  fee
  to_hash_old
end

#to_hash_oldObject



48
# File 'lib/nis/transaction/provision_namespace.rb', line 48

alias to_hash_old to_hash