nis-ruby 0.0.11.1 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/LICENSE +21 -0
- data/README.md +23 -43
- data/{samples/request_account.rb → examples/account.rb} +2 -10
- data/{samples/request_block.rb → examples/block.rb} +0 -0
- data/{samples/request_debug.rb → examples/debug.rb} +0 -8
- data/{samples/request_local.rb → examples/local.rb} +0 -5
- data/{samples/request_namespace.rb → examples/namespace.rb} +0 -3
- data/{samples/request_nis.rb → examples/nis.rb} +0 -0
- data/{samples/request_node.rb → examples/node.rb} +0 -9
- data/examples/shutdown.rb +6 -0
- data/examples/transactions/importance_transfer.rb +22 -0
- data/examples/transactions/mosaic_definition_creation.rb +50 -0
- data/examples/transactions/mosaic_supply_change.rb +24 -0
- data/examples/transactions/multisig.rb +26 -0
- data/examples/transactions/multisig_add_cosignatory.rb +31 -0
- data/examples/transactions/multisig_aggregate_modification.rb +28 -0
- data/examples/transactions/multisig_signature.rb +38 -0
- data/examples/transactions/provision_namespace.rb +19 -0
- data/examples/transactions/transfer.rb +22 -0
- data/lib/nis.rb +8 -4
- data/lib/nis/client.rb +2 -1
- data/lib/nis/endpoint/shutdown.rb +7 -0
- data/lib/nis/endpoint/transaction/announce.rb +1 -1
- data/lib/nis/endpoint/transaction/prepareAnnounce.rb +1 -1
- data/lib/nis/fee.rb +1 -0
- data/lib/nis/fee/importance_transfer.rb +22 -0
- data/lib/nis/fee/mosaic_definition_creation.rb +22 -0
- data/lib/nis/fee/mosaic_supply_change_transfer.rb +22 -0
- data/lib/nis/fee/multisig.rb +22 -0
- data/lib/nis/fee/multisig_aggregation_modification.rb +30 -0
- data/lib/nis/fee/provision_namespace.rb +32 -0
- data/lib/nis/fee/transfer.rb +51 -0
- data/lib/nis/keypair.rb +18 -0
- data/lib/nis/mixin/struct.rb +50 -0
- data/lib/nis/request.rb +1 -0
- data/lib/nis/request/announce.rb +10 -0
- data/lib/nis/request/prepare_announce.rb +48 -0
- data/lib/nis/struct/block.rb +1 -1
- data/lib/nis/struct/mosaic_properties.rb +2 -2
- data/lib/nis/transaction/importance_transfer.rb +25 -28
- data/lib/nis/transaction/mosaic_definition_creation.rb +33 -34
- data/lib/nis/transaction/mosaic_supply_change.rb +30 -30
- data/lib/nis/transaction/multisig.rb +17 -36
- data/lib/nis/transaction/multisig_aggregate_modification.rb +29 -31
- data/lib/nis/transaction/multisig_signature.rb +24 -23
- data/lib/nis/transaction/provision_namespace.rb +53 -33
- data/lib/nis/transaction/transfer.rb +22 -52
- data/lib/nis/util.rb +16 -13
- data/lib/nis/version.rb +1 -1
- data/nis.gemspec +2 -0
- metadata +62 -19
- data/lib/nis/mixin/network.rb +0 -20
- data/samples/request_importance_transfer_transaction.rb +0 -34
- data/samples/request_mosaic_definition_creation_transaction.rb +0 -62
- data/samples/request_mosaic_supply_change_transaction.rb +0 -35
- data/samples/request_multisig_add_cosignatory_transaction.rb +0 -58
- data/samples/request_multisig_aggregate_modification_transaction.rb +0 -45
- data/samples/request_multisig_signature_transaction.rb +0 -53
- data/samples/request_multisig_transaction.rb +0 -54
- data/samples/request_provision_namespace_transaction.rb +0 -31
- data/samples/request_transfer_transaction.rb +0 -47
@@ -1,50 +1,48 @@
|
|
1
1
|
class Nis::Transaction
|
2
|
-
# @attr [
|
3
|
-
# @attr [
|
4
|
-
# @attr [Integer] fee
|
2
|
+
# @attr [Array <Nis::Struct::MultisigCosignatoryModification>] modifications
|
3
|
+
# @attr [Interger] min_cosigs
|
5
4
|
# @attr [Integer] type
|
5
|
+
# @attr [Integer] fee
|
6
6
|
# @attr [Integer] deadline
|
7
|
+
# @attr [Integer] timeStamp
|
7
8
|
# @attr [Integer] version
|
8
9
|
# @attr [String] signer
|
9
|
-
# @attr [
|
10
|
-
# @attr [Hash] minCosignatories
|
10
|
+
# @attr [String] signature
|
11
11
|
# @see http://bob.nem.ninja/docs/#multisigAggregateModificationTransaction
|
12
12
|
class MultisigAggregateModification
|
13
|
-
include Nis::Mixin::
|
14
|
-
attr_writer :version, :fee
|
13
|
+
include Nis::Mixin::Struct
|
15
14
|
|
16
|
-
|
17
|
-
attr_accessor :
|
18
|
-
|
15
|
+
attr_reader :type, :fee
|
16
|
+
attr_accessor :modifications, :minCosignatories,
|
17
|
+
:deadline, :timeStamp, :version, :signer, :signature,
|
18
|
+
:network
|
19
19
|
|
20
|
-
alias timestamp timeStamp
|
21
|
-
alias timestamp= timeStamp=
|
22
20
|
alias min_cosignatories minCosignatories
|
23
21
|
alias min_cosignatories= minCosignatories=
|
22
|
+
alias timestamp timeStamp
|
24
23
|
|
25
24
|
TYPE = 0x1001 # 4097 (multisig aggregate modification transfer transaction)
|
26
|
-
FEE = 16_000_000
|
27
|
-
|
28
|
-
def self.build(attrs)
|
29
|
-
new(attrs)
|
30
|
-
end
|
31
25
|
|
32
|
-
|
33
|
-
|
34
|
-
@
|
35
|
-
end
|
26
|
+
def initialize(modifications, min_cosigs, network: :testnet)
|
27
|
+
@type = TYPE
|
28
|
+
@network = network
|
36
29
|
|
37
|
-
|
38
|
-
|
39
|
-
@
|
30
|
+
@modifications = modifications
|
31
|
+
@minCosignatories = min_cosigs
|
32
|
+
# @minCosignatories = { relativeChange: 1 }
|
33
|
+
@fee = Nis::Fee::MultisigAggregateModification.new(self)
|
40
34
|
end
|
41
35
|
|
42
|
-
|
43
|
-
|
44
|
-
def
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
36
|
+
private
|
37
|
+
|
38
|
+
# def relative_change
|
39
|
+
# modifications.inject do |sum, mod|
|
40
|
+
# case mod.modificationType
|
41
|
+
# when :add then 1
|
42
|
+
# when :remove then -1
|
43
|
+
# else raise "Unsupported modificationType: #{mod.modificationType}"
|
44
|
+
# end
|
45
|
+
# end
|
46
|
+
# end
|
49
47
|
end
|
50
48
|
end
|
@@ -1,45 +1,46 @@
|
|
1
1
|
class Nis::Transaction
|
2
|
-
# @attr [
|
3
|
-
# @attr [String]
|
4
|
-
# @attr [Integer] fee
|
2
|
+
# @attr [String] otherHash
|
3
|
+
# @attr [String] otherAccount
|
5
4
|
# @attr [Integer] type
|
5
|
+
# @attr [Integer] fee
|
6
6
|
# @attr [Integer] deadline
|
7
|
+
# @attr [Integer] timeStamp
|
7
8
|
# @attr [Integer] version
|
8
|
-
# @attr [String]
|
9
|
-
# @attr [String]
|
10
|
-
# @attr [String] otherAccount
|
9
|
+
# @attr [String] signer
|
10
|
+
# @attr [String] signature
|
11
11
|
# @see http://bob.nem.ninja/docs/#multisigSignatureTransaction
|
12
12
|
class MultisigSignature
|
13
|
-
include Nis::Mixin::
|
14
|
-
attr_writer :version, :fee
|
13
|
+
include Nis::Mixin::Struct
|
15
14
|
|
16
|
-
|
17
|
-
attr_accessor :
|
18
|
-
|
15
|
+
attr_reader :type, :fee
|
16
|
+
attr_accessor :otherHash, :otherAccount, :signer,
|
17
|
+
:deadline, :timeStamp, :version, :signature,
|
18
|
+
:network
|
19
19
|
|
20
|
-
alias timestamp timeStamp
|
21
|
-
alias timestamp= timeStamp=
|
22
20
|
alias other_hash otherHash
|
23
21
|
alias other_hash= otherHash=
|
24
22
|
alias other_account otherAccount
|
25
23
|
alias other_account= otherAccount=
|
24
|
+
alias timestamp timeStamp
|
26
25
|
|
27
26
|
TYPE = 0x1002 # 4098 (multisig signature transaction)
|
28
27
|
|
29
|
-
def
|
30
|
-
|
31
|
-
|
28
|
+
def initialize(other_hash, other_account, signer, network: :testnet)
|
29
|
+
@type = TYPE
|
30
|
+
@network = network
|
32
31
|
|
33
|
-
|
34
|
-
|
35
|
-
@
|
32
|
+
@otherHash = { data: other_hash }
|
33
|
+
@otherAccount = other_account
|
34
|
+
@signer = signer
|
35
|
+
@fee = Nis::Fee::Multisig.new(self)
|
36
36
|
end
|
37
37
|
|
38
|
-
|
38
|
+
def otherHash=(hash)
|
39
|
+
@otherHash = { data: hash }
|
40
|
+
end
|
39
41
|
|
40
|
-
def
|
41
|
-
|
42
|
-
to_hash_old
|
42
|
+
def otherHash
|
43
|
+
@otherHash[:data]
|
43
44
|
end
|
44
45
|
end
|
45
46
|
end
|
@@ -1,56 +1,76 @@
|
|
1
1
|
class Nis::Transaction
|
2
|
-
# @attr [
|
3
|
-
# @attr [String]
|
4
|
-
# @attr [Integer]
|
2
|
+
# @attr [String] newPart
|
3
|
+
# @attr [String] parent
|
4
|
+
# @attr [Integer] rentalFee
|
5
|
+
# @attr [String] rentalFeeSink
|
5
6
|
# @attr [Integer] type
|
7
|
+
# @attr [Integer] fee
|
6
8
|
# @attr [Integer] deadline
|
9
|
+
# @attr [Integer] timeStamp
|
7
10
|
# @attr [Integer] version
|
8
|
-
# @attr [String]
|
9
|
-
# @attr [String]
|
10
|
-
# @attr [
|
11
|
-
# @attr [String] newPart
|
12
|
-
# @attr [String] parent
|
11
|
+
# @attr [String] signer
|
12
|
+
# @attr [String] signature
|
13
|
+
# @attr [Symbol] network
|
13
14
|
# @see http://bob.nem.ninja/docs/#provisionNamespaceTransaction
|
14
15
|
class ProvisionNamespace
|
15
|
-
include Nis::Mixin::
|
16
|
-
attr_writer :version, :fee
|
16
|
+
include Nis::Mixin::Struct
|
17
17
|
|
18
|
-
|
19
|
-
attr_accessor :
|
20
|
-
|
18
|
+
attr_reader :type, :fee
|
19
|
+
attr_accessor :newPart, :parent, :rentalFeeSink, :rentalFee,
|
20
|
+
:deadline, :timeStamp, :version, :signer, :signature,
|
21
|
+
:network
|
21
22
|
|
22
|
-
alias timestamp timeStamp
|
23
|
-
alias timestamp= timeStamp=
|
24
|
-
alias rental_fee_sink rentalFeeSink
|
25
|
-
alias rental_fee_sink= rentalFeeSink=
|
26
|
-
alias rental_fee rentalFee
|
27
|
-
alias rental_fee= rentalFee=
|
28
23
|
alias new_part newPart
|
29
24
|
alias new_part= newPart=
|
25
|
+
alias rental_fee rentalFee
|
26
|
+
alias rental_fee= rentalFee=
|
27
|
+
alias rental_fee_sink rentalFeeSink
|
28
|
+
alias rental_fee_sink= rentalFeeSink=
|
29
|
+
alias timestamp timeStamp
|
30
30
|
|
31
31
|
TYPE = 0x2001 # 8193 (provision namespace transaction)
|
32
|
-
FEE = 20_000_000
|
33
32
|
|
34
|
-
def
|
35
|
-
|
33
|
+
def initialize(new_part, parent = nil, network: :testnet)
|
34
|
+
@type = TYPE
|
35
|
+
@network = network
|
36
|
+
|
37
|
+
@newPart = new_part
|
38
|
+
@parent = parent
|
39
|
+
@rentalFee = rental[:fee]
|
40
|
+
@rentalFeeSink = rental[:sink]
|
41
|
+
|
42
|
+
@fee = Nis::Fee::ProvisionNamespace.new(self)
|
36
43
|
end
|
37
44
|
|
38
|
-
|
39
|
-
|
40
|
-
@type ||= TYPE
|
45
|
+
def root?
|
46
|
+
!!(@parent == nil)
|
41
47
|
end
|
42
48
|
|
43
|
-
|
44
|
-
|
45
|
-
@fee ||= FEE
|
49
|
+
def sub?
|
50
|
+
!!(@parent && @newPart)
|
46
51
|
end
|
47
52
|
|
48
|
-
|
53
|
+
private
|
49
54
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
55
|
+
# @see http://www.nem.ninja/docs/#namespaces
|
56
|
+
def rental
|
57
|
+
if @network == :testnet
|
58
|
+
if root?
|
59
|
+
{ fee: 100 * 1_000_000,
|
60
|
+
sink: 'TAMESPACEWH4MKFMBCVFERDPOOP4FK7MTDJEYP35' }
|
61
|
+
else
|
62
|
+
{ fee: 10 * 1_000_000,
|
63
|
+
sink: 'TAMESPACEWH4MKFMBCVFERDPOOP4FK7MTDJEYP35' }
|
64
|
+
end
|
65
|
+
else
|
66
|
+
if root?
|
67
|
+
{ fee: 5_000 * 1_000_000 ,
|
68
|
+
sink: 'NAMESPACEWH4MKFMBCVFERDPOOP4FK7MTBXDPZZA' }
|
69
|
+
else
|
70
|
+
{ fee: 200 * 1_000_000 ,
|
71
|
+
sink: 'NAMESPACEWH4MKFMBCVFERDPOOP4FK7MTBXDPZZA' }
|
72
|
+
end
|
73
|
+
end
|
54
74
|
end
|
55
75
|
end
|
56
76
|
end
|
@@ -1,74 +1,44 @@
|
|
1
1
|
class Nis::Transaction
|
2
|
-
# @attr [Integer] timestamp
|
3
|
-
# @attr [Integer] amount
|
4
|
-
# @attr [Integer] fee
|
5
2
|
# @attr [String] recipient
|
3
|
+
# @attr [Integer] amount
|
4
|
+
# @attr [Nis::Struct::Message] message
|
5
|
+
# @attr [Array <Nis::Struct::MosaicId>] mosaics
|
6
6
|
# @attr [Integer] type
|
7
|
+
# @attr [Nis::Fee::Transfer] fee
|
7
8
|
# @attr [Integer] deadline
|
8
|
-
# @attr [
|
9
|
+
# @attr [Integer] timestamp
|
9
10
|
# @attr [Integer] version
|
10
|
-
# @attr [String]
|
11
|
-
# @attr [
|
11
|
+
# @attr [String] signer
|
12
|
+
# @attr [Symbol] network
|
12
13
|
# @see http://bob.nem.ninja/docs/#transferTransaction
|
13
14
|
# @see http://bob.nem.ninja/docs/#initiating-a-transfer-transaction
|
14
15
|
# @see http://bob.nem.ninja/docs/#version-1-transfer-transactions
|
15
16
|
# @see http://bob.nem.ninja/docs/#version-2-transfer-transactions
|
16
17
|
class Transfer
|
17
|
-
include Nis::Mixin::
|
18
|
-
attr_writer :version, :fee
|
18
|
+
include Nis::Mixin::Struct
|
19
19
|
|
20
|
-
|
21
|
-
attr_accessor :
|
22
|
-
|
20
|
+
attr_reader :type, :fee
|
21
|
+
attr_accessor :recipient, :amount, :message,
|
22
|
+
:deadline, :timeStamp, :version, :signer,
|
23
|
+
:network
|
23
24
|
|
24
|
-
alias
|
25
|
-
alias :timestamp= :timeStamp=
|
25
|
+
alias timestamp timeStamp
|
26
26
|
|
27
27
|
TYPE = 0x0101 # 257 (transfer transaction)
|
28
|
-
FEE = 25
|
29
|
-
|
30
|
-
def self.build(attrs)
|
31
|
-
new(attrs)
|
32
|
-
end
|
33
28
|
|
34
|
-
|
35
|
-
|
36
|
-
@
|
37
|
-
end
|
29
|
+
def initialize(recipient, amount, message = '', network: :testnet)
|
30
|
+
@type = TYPE
|
31
|
+
@network = network
|
38
32
|
|
39
|
-
|
40
|
-
|
41
|
-
@
|
33
|
+
@recipient = recipient
|
34
|
+
@amount = amount
|
35
|
+
@message = Nis::Struct::Message.new(message)
|
36
|
+
@fee = Nis::Fee::Transfer.new(self)
|
42
37
|
end
|
43
38
|
|
44
39
|
def mosaics
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
alias to_hash_old to_hash
|
49
|
-
|
50
|
-
def to_hash
|
51
|
-
type
|
52
|
-
fee
|
53
|
-
to_hash_old
|
54
|
-
end
|
55
|
-
|
56
|
-
# @return [Integer]
|
57
|
-
def calculate_fee
|
58
|
-
if mosaics.empty?
|
59
|
-
tmp_fee = [1, amount / 1_000_000 / 10_000].max
|
60
|
-
fee = (tmp_fee > FEE ? FEE : tmp_fee)
|
61
|
-
else
|
62
|
-
# TODO: calc mosaics fee
|
63
|
-
raise NotImplementedError, 'not implemented calculation mosaic fee.'
|
64
|
-
fee = FEE
|
65
|
-
end
|
66
|
-
|
67
|
-
if message.bytesize > 0
|
68
|
-
fee += [1, (message.bytesize / 2 / 32) + 1].max
|
69
|
-
end
|
70
|
-
|
71
|
-
fee * 1_000_000
|
40
|
+
# TODO: to be implemented...
|
41
|
+
[]
|
72
42
|
end
|
73
43
|
end
|
74
44
|
end
|
data/lib/nis/util.rb
CHANGED
@@ -12,24 +12,27 @@ module Nis::Util
|
|
12
12
|
|
13
13
|
NEM_EPOCH = Time.utc(2015, 3, 29, 0, 6, 25, 0)
|
14
14
|
|
15
|
-
#
|
16
|
-
# @see http://www.nem.ninja/docs/#namespaces
|
17
|
-
NAMESPACE_SINK = {
|
18
|
-
testnet: 'TAMESPACEWH4MKFMBCVFERDPOOP4FK7MTDJEYP35',
|
19
|
-
mainnet: 'NAMESPACEWH4MKFMBCVFERDPOOP4FK7MTBXDPZZA'
|
20
|
-
}
|
21
|
-
|
22
|
-
# @see http://www.nem.ninja/docs/#mosaics
|
23
|
-
MOSAIC_SINK = {
|
24
|
-
testnet: 'TBMOSAICOD4F54EE5CDMR23CCBGOAM2XSJBR5OLC',
|
25
|
-
mainnet: 'NBMOSAICOD4F54EE5CDMR23CCBGOAM2XSIUX6TRS'
|
26
|
-
}
|
27
|
-
|
28
15
|
APOSTILLE_SINK = {
|
29
16
|
testnet: 'TC7MCY5AGJQXZQ4BN3BOPNXUVIGDJCOHBPGUM2GE',
|
30
17
|
mainnet: 'NCZSJHLTIMESERVBVKOW6US64YDZG2PFGQCSV23J'
|
31
18
|
}
|
32
19
|
|
20
|
+
def self.parse_version(network, version)
|
21
|
+
parse_network(network) | version
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.parse_network(network)
|
25
|
+
case network
|
26
|
+
when :mainnet then MAINNET
|
27
|
+
when :testnet then TESTNET
|
28
|
+
else TESTNET
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.deadline(seconds = 3600)
|
33
|
+
timestamp + seconds
|
34
|
+
end
|
35
|
+
|
33
36
|
def self.timestamp
|
34
37
|
(Time.now - NEM_EPOCH).to_i
|
35
38
|
end
|
data/lib/nis/version.rb
CHANGED
data/nis.gemspec
CHANGED
@@ -33,6 +33,8 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_development_dependency 'webmock', '~> 2.3'
|
34
34
|
spec.add_development_dependency 'pry', '~> 0.10'
|
35
35
|
|
36
|
+
spec.add_dependency 'digest-sha3', '~> 1.1'
|
37
|
+
spec.add_dependency 'rbnacl', '~> 5.0'
|
36
38
|
spec.add_dependency 'faraday', '~> 0.11'
|
37
39
|
spec.add_dependency 'faraday_middleware', '~> 0.11'
|
38
40
|
spec.add_dependency 'thor', '~> 0.19'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nis-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshiyuki Ieyama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -108,6 +108,34 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0.10'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: digest-sha3
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.1'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '1.1'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rbnacl
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '5.0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '5.0'
|
111
139
|
- !ruby/object:Gem::Dependency
|
112
140
|
name: faraday
|
113
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,9 +192,27 @@ files:
|
|
164
192
|
- ".travis.yml"
|
165
193
|
- CODE_OF_CONDUCT.md
|
166
194
|
- Gemfile
|
195
|
+
- LICENSE
|
167
196
|
- README.md
|
168
197
|
- Rakefile
|
169
198
|
- bin/nis
|
199
|
+
- examples/account.rb
|
200
|
+
- examples/block.rb
|
201
|
+
- examples/debug.rb
|
202
|
+
- examples/local.rb
|
203
|
+
- examples/namespace.rb
|
204
|
+
- examples/nis.rb
|
205
|
+
- examples/node.rb
|
206
|
+
- examples/shutdown.rb
|
207
|
+
- examples/transactions/importance_transfer.rb
|
208
|
+
- examples/transactions/mosaic_definition_creation.rb
|
209
|
+
- examples/transactions/mosaic_supply_change.rb
|
210
|
+
- examples/transactions/multisig.rb
|
211
|
+
- examples/transactions/multisig_add_cosignatory.rb
|
212
|
+
- examples/transactions/multisig_aggregate_modification.rb
|
213
|
+
- examples/transactions/multisig_signature.rb
|
214
|
+
- examples/transactions/provision_namespace.rb
|
215
|
+
- examples/transactions/transfer.rb
|
170
216
|
- lib/nis.rb
|
171
217
|
- lib/nis/client.rb
|
172
218
|
- lib/nis/endpoint.rb
|
@@ -206,13 +252,26 @@ files:
|
|
206
252
|
- lib/nis/endpoint/node/extended_info.rb
|
207
253
|
- lib/nis/endpoint/node/info.rb
|
208
254
|
- lib/nis/endpoint/node/peer_list.rb
|
255
|
+
- lib/nis/endpoint/shutdown.rb
|
209
256
|
- lib/nis/endpoint/status.rb
|
210
257
|
- lib/nis/endpoint/transaction.rb
|
211
258
|
- lib/nis/endpoint/transaction/announce.rb
|
212
259
|
- lib/nis/endpoint/transaction/prepareAnnounce.rb
|
213
260
|
- lib/nis/error.rb
|
261
|
+
- lib/nis/fee.rb
|
262
|
+
- lib/nis/fee/importance_transfer.rb
|
263
|
+
- lib/nis/fee/mosaic_definition_creation.rb
|
264
|
+
- lib/nis/fee/mosaic_supply_change_transfer.rb
|
265
|
+
- lib/nis/fee/multisig.rb
|
266
|
+
- lib/nis/fee/multisig_aggregation_modification.rb
|
267
|
+
- lib/nis/fee/provision_namespace.rb
|
268
|
+
- lib/nis/fee/transfer.rb
|
269
|
+
- lib/nis/keypair.rb
|
214
270
|
- lib/nis/mixin.rb
|
215
|
-
- lib/nis/mixin/
|
271
|
+
- lib/nis/mixin/struct.rb
|
272
|
+
- lib/nis/request.rb
|
273
|
+
- lib/nis/request/announce.rb
|
274
|
+
- lib/nis/request/prepare_announce.rb
|
216
275
|
- lib/nis/struct.rb
|
217
276
|
- lib/nis/struct/account_importance_view_model.rb
|
218
277
|
- lib/nis/struct/account_info.rb
|
@@ -281,22 +340,6 @@ files:
|
|
281
340
|
- lib/nis/util/assignable.rb
|
282
341
|
- lib/nis/version.rb
|
283
342
|
- nis.gemspec
|
284
|
-
- samples/request_account.rb
|
285
|
-
- samples/request_block.rb
|
286
|
-
- samples/request_debug.rb
|
287
|
-
- samples/request_importance_transfer_transaction.rb
|
288
|
-
- samples/request_local.rb
|
289
|
-
- samples/request_mosaic_definition_creation_transaction.rb
|
290
|
-
- samples/request_mosaic_supply_change_transaction.rb
|
291
|
-
- samples/request_multisig_add_cosignatory_transaction.rb
|
292
|
-
- samples/request_multisig_aggregate_modification_transaction.rb
|
293
|
-
- samples/request_multisig_signature_transaction.rb
|
294
|
-
- samples/request_multisig_transaction.rb
|
295
|
-
- samples/request_namespace.rb
|
296
|
-
- samples/request_nis.rb
|
297
|
-
- samples/request_node.rb
|
298
|
-
- samples/request_provision_namespace_transaction.rb
|
299
|
-
- samples/request_transfer_transaction.rb
|
300
343
|
homepage: https://github.com/44uk/nis-ruby
|
301
344
|
licenses:
|
302
345
|
- MIT
|