nis-ruby 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/README.md +12 -9
  4. data/examples/transactions/importance_transfer.rb +1 -4
  5. data/examples/transactions/mosaic_definition_creation.rb +1 -4
  6. data/examples/transactions/mosaic_supply_change.rb +1 -4
  7. data/examples/transactions/multisig.rb +1 -6
  8. data/examples/transactions/multisig_add_cosignatory.rb +1 -4
  9. data/examples/transactions/multisig_aggregate_modification.rb +1 -4
  10. data/examples/transactions/multisig_signature.rb +2 -5
  11. data/examples/transactions/provision_namespace.rb +1 -4
  12. data/examples/transactions/transfer.rb +1 -4
  13. data/examples/transactions/transfer_remote.rb +19 -0
  14. data/lib/nis/endpoint/account/generate.rb +1 -1
  15. data/lib/nis/endpoint/account/get.rb +4 -4
  16. data/lib/nis/endpoint/account/harvests.rb +1 -1
  17. data/lib/nis/endpoint/account/historical.rb +1 -1
  18. data/lib/nis/endpoint/account/importances.rb +1 -1
  19. data/lib/nis/endpoint/account/lock.rb +1 -1
  20. data/lib/nis/endpoint/account/mosaic.rb +2 -2
  21. data/lib/nis/endpoint/account/namespace.rb +1 -1
  22. data/lib/nis/endpoint/account/status.rb +1 -1
  23. data/lib/nis/endpoint/account/transfers.rb +3 -3
  24. data/lib/nis/endpoint/account/unconfirmed_transactions.rb +1 -1
  25. data/lib/nis/endpoint/account/unlock.rb +1 -1
  26. data/lib/nis/endpoint/account/unlocked.rb +1 -1
  27. data/lib/nis/endpoint/block/at.rb +1 -1
  28. data/lib/nis/endpoint/block/get.rb +1 -1
  29. data/lib/nis/endpoint/chain/height.rb +1 -1
  30. data/lib/nis/endpoint/chain/last_block.rb +1 -1
  31. data/lib/nis/endpoint/chain/score.rb +1 -1
  32. data/lib/nis/endpoint/debug/connections.rb +3 -3
  33. data/lib/nis/endpoint/debug/time_synchronization.rb +1 -1
  34. data/lib/nis/endpoint/heartbeat.rb +1 -1
  35. data/lib/nis/endpoint/local/account/transfers.rb +3 -3
  36. data/lib/nis/endpoint/local/chain.rb +1 -1
  37. data/lib/nis/endpoint/namespace.rb +1 -1
  38. data/lib/nis/endpoint/namespace/mosaic.rb +1 -1
  39. data/lib/nis/endpoint/namespace/root.rb +1 -1
  40. data/lib/nis/endpoint/node/active_peers.rb +1 -1
  41. data/lib/nis/endpoint/node/boot.rb +1 -1
  42. data/lib/nis/endpoint/node/experiences.rb +1 -1
  43. data/lib/nis/endpoint/node/extended_info.rb +1 -1
  44. data/lib/nis/endpoint/node/info.rb +1 -1
  45. data/lib/nis/endpoint/node/peer_list.rb +3 -3
  46. data/lib/nis/endpoint/status.rb +1 -1
  47. data/lib/nis/endpoint/transaction/announce.rb +4 -4
  48. data/lib/nis/endpoint/transaction/prepareAnnounce.rb +4 -4
  49. data/lib/nis/keypair.rb +13 -3
  50. data/lib/nis/request/announce.rb +47 -2
  51. data/lib/nis/request/prepare_announce.rb +1 -1
  52. data/lib/nis/struct/account_importance_view_model.rb +1 -1
  53. data/lib/nis/struct/account_info.rb +1 -1
  54. data/lib/nis/struct/account_meta_data.rb +1 -1
  55. data/lib/nis/struct/account_meta_data_pair.rb +1 -1
  56. data/lib/nis/struct/account_private_key_transactions_page.rb +1 -1
  57. data/lib/nis/struct/application_meta_data.rb +1 -1
  58. data/lib/nis/struct/audit_collection.rb +1 -1
  59. data/lib/nis/struct/audit_info.rb +1 -1
  60. data/lib/nis/struct/block.rb +1 -1
  61. data/lib/nis/struct/block_height.rb +1 -1
  62. data/lib/nis/struct/block_score.rb +1 -1
  63. data/lib/nis/struct/boot_node_request.rb +1 -1
  64. data/lib/nis/struct/error.rb +1 -1
  65. data/lib/nis/struct/explorer_block_view_model.rb +1 -1
  66. data/lib/nis/struct/explorer_transfer_view_model.rb +1 -1
  67. data/lib/nis/struct/explorer_view_model_transaction.rb +1 -1
  68. data/lib/nis/struct/extended_node_experience_pair.rb +1 -1
  69. data/lib/nis/struct/harvest_info.rb +1 -1
  70. data/lib/nis/struct/key_pair_view_model.rb +1 -1
  71. data/lib/nis/struct/mosaic.rb +1 -1
  72. data/lib/nis/struct/mosaic_definition.rb +1 -1
  73. data/lib/nis/struct/mosaic_definition_meta_data.rb +1 -1
  74. data/lib/nis/struct/mosaic_definition_meta_data_pair.rb +1 -1
  75. data/lib/nis/struct/mosaic_id.rb +1 -1
  76. data/lib/nis/struct/mosaic_levy.rb +1 -1
  77. data/lib/nis/struct/mosaic_properties.rb +1 -1
  78. data/lib/nis/struct/multisig_cosignatory_modification.rb +1 -1
  79. data/lib/nis/struct/namespace.rb +1 -1
  80. data/lib/nis/struct/namespace_meta_data.rb +1 -1
  81. data/lib/nis/struct/namespace_meta_data_pair.rb +1 -1
  82. data/lib/nis/struct/nem_announce_result.rb +1 -1
  83. data/lib/nis/struct/nem_async_timer_visitor.rb +1 -1
  84. data/lib/nis/struct/nem_request_result.rb +1 -1
  85. data/lib/nis/struct/nis_node_info.rb +1 -1
  86. data/lib/nis/struct/node.rb +1 -1
  87. data/lib/nis/struct/node_collection.rb +1 -1
  88. data/lib/nis/struct/node_experience.rb +1 -1
  89. data/lib/nis/struct/request_announce.rb +1 -1
  90. data/lib/nis/struct/request_prepare_announce.rb +1 -1
  91. data/lib/nis/struct/time_synchronization_result.rb +1 -1
  92. data/lib/nis/struct/transaction.rb +4 -4
  93. data/lib/nis/struct/transaction_meta_data.rb +1 -1
  94. data/lib/nis/struct/transaction_meta_data_pair.rb +1 -1
  95. data/lib/nis/struct/unconfirmed_transaction_meta_data.rb +1 -1
  96. data/lib/nis/struct/unconfirmed_transaction_meta_data_pair.rb +1 -1
  97. data/lib/nis/transaction/importance_transfer.rb +1 -1
  98. data/lib/nis/transaction/mosaic_definition_creation.rb +1 -1
  99. data/lib/nis/transaction/mosaic_supply_change.rb +1 -1
  100. data/lib/nis/transaction/multisig.rb +1 -1
  101. data/lib/nis/transaction/multisig_aggregate_modification.rb +1 -1
  102. data/lib/nis/transaction/multisig_signature.rb +1 -1
  103. data/lib/nis/transaction/provision_namespace.rb +1 -1
  104. data/lib/nis/transaction/transfer.rb +4 -4
  105. data/lib/nis/unit/address.rb +19 -0
  106. data/lib/nis/util/convert.rb +125 -0
  107. data/lib/nis/util/ed25519.rb +263 -0
  108. data/lib/nis/util/serializer.rb +273 -0
  109. data/lib/nis/version.rb +1 -1
  110. data/nis.gemspec +1 -1
  111. metadata +9 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48fc594828a7e878a2d93c176aa7969eda269b74
4
- data.tar.gz: dfa004cc7326b9cc581cc5e42e32fa4e6cbc7117
3
+ metadata.gz: 90a209933bc58268e827373213bbd8246aeb5147
4
+ data.tar.gz: 2842c5967a6dfab98aea4fdf1e659b967528071e
5
5
  SHA512:
6
- metadata.gz: 5e0b204992ea6daabbb0186484d98978a984e28598f6bb0bbd4f891143d97292c118c57993be1db835b51790649bbcd6b69c3f98a22934afb9ecd9e52c64ba12
7
- data.tar.gz: dcfcace177ac5abcb30c0f90dcb83f62e4586c3a73a343d098de82b5dc9d5aadb968765a4e7628b2fa647d7aca5488eb652c6c5c3c1bdbd83b9309789ec19144
6
+ metadata.gz: 4d7bbc7b84d6495f60484c7cd3927ca47643f0659dd9948ebaa5be823b741ab1caa052772a8156d78328faf210a57cfa90f348b3b64ae9a6ca5577443b142a8f
7
+ data.tar.gz: 7a275ef7fda5a0cfb0e34c01db7ba7c92c18feb7036285dd6fe2d50944c74ff9f2307174b7acb93f42b1dfa79be155c4c69ec4bd2b682c3ac39ea4baa5c8b546
data/.travis.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
+ - ruby-head
4
5
  - 2.4.0
5
6
  - 2.3.0
6
7
  - 2.2.6
data/README.md CHANGED
@@ -10,9 +10,11 @@
10
10
  Ruby client library for the NEM Infrastructure Server API
11
11
 
12
12
  - [NEM \- Distributed Ledger Technology \(Blockchain\)](https://www.nem.io/)
13
- - [NEM NIS API Documentation](http://bob.nem.ninja/docs/)
13
+ - [NEM NIS API Documentation](https://nemproject.github.io/)
14
14
  - [NEM Forum](https://forum.nem.io/)
15
15
 
16
+ *The gem is under development. Incompatible changes can be made.*
17
+
16
18
 
17
19
  ## Installation
18
20
 
@@ -37,11 +39,11 @@ nis = Nis.new
37
39
 
38
40
  nis.heartbeat
39
41
  # => {code: 1, type: 2, message: "ok"}
40
- # See http://bob.nem.ninja/docs/#heart-beat-request
42
+ # See https://nemproject.github.io/#heart-beat-request
41
43
 
42
44
  nis.status
43
45
  # => {code: 6, type: 4, message: "status"}
44
- # See http://bob.nem.ninja/docs/#status-request
46
+ # See https://nemproject.github.io/#status-request
45
47
 
46
48
  kp = Nis::Keypair.new(SENDER_PRIV_KEY)
47
49
  tx = Nis::Transaction::Transfer.new(
@@ -50,9 +52,13 @@ tx = Nis::Transaction::Transfer.new(
50
52
  'Message'
51
53
  )
52
54
  req = Nis::Request::PrepareAnnounce.new(tx, kp)
55
+ # Request to local node.
53
56
  nis.transaction_prepare_announce(req)
54
- # See http://bob.nem.ninja/docs/#initiating-a-transfer-transaction
57
+ # See https://nemproject.github.io/#initiating-a-transfer-transaction
55
58
  # => {innerTransactionHash: {}, code: 1, type: 1, message: "SUCCESS", transactionHash: {data: "9da41fd6c6886740ae6a15c869df0470015d78103e5b216971aa09fdbcce9cde"}}
59
+
60
+ # Request to remote node.
61
+ # nis.transaction_announce(req)
56
62
  ```
57
63
 
58
64
  ### Requesting
@@ -64,13 +70,13 @@ nis.request(:get, '/account/get',
64
70
  address: 'TALICELCD3XPH4FFI5STGGNSNSWPOTG5E4DS2TOS'
65
71
  )
66
72
  # => [AccountMetaDataPair structure]
67
- # See http://bob.nem.ninja/docs/#accountMetaDataPair
73
+ # See https://nemproject.github.io/#accountMetaDataPair
68
74
 
69
75
  nis.request(:post, '/account/unlock',
70
76
  privateKey: '00983bb01d05edecfaef55df9486c111abb6299c754a002069b1d0ef4537441bda'
71
77
  )
72
78
  # => Nothing
73
- # See http://bob.nem.ninja/docs/#locking-and-unlocking-accounts
79
+ # See https://nemproject.github.io/#locking-and-unlocking-accounts
74
80
  ```
75
81
 
76
82
 
@@ -96,8 +102,6 @@ $ nis request get account/harvests --params=address:TALICELCD3XPH4FFI5STGGNSNSWP
96
102
  You can find nodes here.
97
103
  - [NEM Node Rewards](https://supernodes.nem.io/)
98
104
 
99
- *Currently the gem only supports transactions for local node.*
100
-
101
105
  ### Hash
102
106
 
103
107
  ```ruby
@@ -121,7 +125,6 @@ Environment variable used as default value.
121
125
  ## TODO
122
126
 
123
127
  * Do more improvements
124
- * Remote transaction
125
128
  * Mosaic transferring
126
129
  * Encryption message
127
130
  * Be more easy to use
@@ -2,14 +2,11 @@ require 'nis'
2
2
 
3
3
  # sender
4
4
  A_PRIVATE_KEY = '260206d683962350532408e8774fd14870a173b7fba17f6b504da3dbc5f1cc9f'
5
- A_PUBLIC_KEY = 'cc63b4dcdec745417043c3fa0992ec3a1695461a26d90264744648abbd5caa0d'
6
5
 
7
6
  # remote
8
7
  B_PUBLIC_KEY = 'cc6c9485d15b992501e57fe3799487e99de272f79c5442de94eeb998b45e0144'
9
8
 
10
- # TODO: public key calculated from private key in future version.
11
- # it will not need to set public key.
12
- kp = Nis::Keypair.new(A_PRIVATE_KEY, public_key: A_PUBLIC_KEY)
9
+ kp = Nis::Keypair.new(A_PRIVATE_KEY)
13
10
 
14
11
  tx = Nis::Transaction::ImportanceTransfer.new(B_PUBLIC_KEY, :activate)
15
12
  puts "Fee: #{tx.fee.to_i}"
@@ -2,12 +2,9 @@ require 'nis'
2
2
 
3
3
  # owner
4
4
  A_PRIVATE_KEY = '4ce5c8f9fce571db0d9ac1adf00b8d3ba0f078ed40835fd3d730a2f24b834214'
5
- A_PUBLIC_KEY = 'be2ba9cb15a547110d511a4d43c0482fbb584d78781abac01fb053d18f4a0033'
6
5
  A_ADDRESS = 'TDPP2C4XQLMESBMCYGWN4NRAJAKZEYRV75KGYSOB'
7
6
 
8
- # TODO: public key calculated from private key in future version.
9
- # it will not need to set public key.
10
- kp = Nis::Keypair.new(A_PRIVATE_KEY, public_key: A_PUBLIC_KEY)
7
+ kp = Nis::Keypair.new(A_PRIVATE_KEY)
11
8
 
12
9
  mosaic_id = Nis::Struct::MosaicId.new(
13
10
  namespaceId: 'sushi',
@@ -2,11 +2,8 @@ require 'nis'
2
2
 
3
3
  # owner
4
4
  A_PRIVATE_KEY = '4ce5c8f9fce571db0d9ac1adf00b8d3ba0f078ed40835fd3d730a2f24b834214'
5
- A_PUBLIC_KEY = 'be2ba9cb15a547110d511a4d43c0482fbb584d78781abac01fb053d18f4a0033'
6
5
 
7
- # TODO: public key calculated from private key in future version.
8
- # it will not need to set public key.
9
- kp = Nis::Keypair.new(A_PRIVATE_KEY, public_key: A_PUBLIC_KEY)
6
+ kp = Nis::Keypair.new(A_PRIVATE_KEY)
10
7
 
11
8
  mosaic_id = Nis::Struct::MosaicId.new(
12
9
  namespaceId: 'sushi',
@@ -1,18 +1,13 @@
1
1
  require 'nis'
2
2
 
3
3
  # multisig
4
- # A_PRIVATE_KEY = '9bf8e6fd1a178a3cce39840cda34f80f55fe075c15f48eefad8506f4a70c2b47'
5
4
  A_PUBLIC_KEY = '4b26a75313b747985470977a085ae6f840a0b84ebd96ddf17f4a31a2b580d078'
6
- # A_ADDRESS = 'TBAOYZS4FGY5XPQ5OD2VL3SY7GQ5FLH66GRCX5DL'
7
5
 
8
6
  # cosignatory
9
7
  B_PRIVATE_KEY = '260206d683962350532408e8774fd14870a173b7fba17f6b504da3dbc5f1cc9f'
10
- B_PUBLIC_KEY = 'cc63b4dcdec745417043c3fa0992ec3a1695461a26d90264744648abbd5caa0d'
11
8
  B_ADDRESS = 'TAWKJTUP4DWKLDKKS534TYP6G324CBNMXKBA4X7B'
12
9
 
13
- # TODO: public key calculated from private key in future version.
14
- # it will not need to set public key.
15
- kp = Nis::Keypair.new(B_PRIVATE_KEY, public_key: B_PUBLIC_KEY)
10
+ kp = Nis::Keypair.new(B_PRIVATE_KEY)
16
11
 
17
12
  ttx = Nis::Transaction::Transfer.new(B_ADDRESS, 1_000_000, 'Good luck!')
18
13
  tx = Nis::Transaction::Multisig.new(ttx, A_PUBLIC_KEY)
@@ -5,14 +5,11 @@ A_PUBLIC_KEY = '4b26a75313b747985470977a085ae6f840a0b84ebd96ddf17f4a31a2b580d07
5
5
 
6
6
  # Account B (cosignatory1)
7
7
  B_PRIVATE_KEY = '260206d683962350532408e8774fd14870a173b7fba17f6b504da3dbc5f1cc9f'
8
- B_PUBLIC_KEY = 'cc63b4dcdec745417043c3fa0992ec3a1695461a26d90264744648abbd5caa0d'
9
8
 
10
9
  # Account C (cosignatory2)
11
10
  C_PUBLIC_KEY = '9fd1e5e886c4006efc715a0e183f2a87f198b8d19c44e7c67925b01aa45a7114'
12
11
 
13
- # TODO: public key calculated from private key in future version.
14
- # it will not need to set public key.
15
- kp = Nis::Keypair.new(B_PRIVATE_KEY, public_key: B_PUBLIC_KEY)
12
+ kp = Nis::Keypair.new(B_PRIVATE_KEY)
16
13
 
17
14
  mcm = Nis::Struct::MultisigCosignatoryModification.new(
18
15
  modificationType: 1,
@@ -2,14 +2,11 @@ require 'nis'
2
2
 
3
3
  # multisig
4
4
  A_PRIVATE_KEY = '9bf8e6fd1a178a3cce39840cda34f80f55fe075c15f48eefad8506f4a70c2b47'
5
- A_PUBLIC_KEY = '4b26a75313b747985470977a085ae6f840a0b84ebd96ddf17f4a31a2b580d078'
6
5
 
7
6
  # cosignatory
8
7
  B_PUBLIC_KEY = 'cc63b4dcdec745417043c3fa0992ec3a1695461a26d90264744648abbd5caa0d'
9
8
 
10
- # TODO: public key calculated from private key in future version.
11
- # it will not need to set public key.
12
- kp = Nis::Keypair.new(A_PRIVATE_KEY, public_key: A_PUBLIC_KEY)
9
+ kp = Nis::Keypair.new(A_PRIVATE_KEY)
13
10
 
14
11
  mcm = Nis::Struct::MultisigCosignatoryModification.new(
15
12
  modificationType: 1,
@@ -1,7 +1,7 @@
1
1
  require 'nis'
2
2
 
3
3
  # multisig
4
- A_PUBLIC_KEY = '4b26a75313b747985470977a085ae6f840a0b84ebd96ddf17f4a31a2b580d078'
4
+ A_PUBLIC_KEY = '4b26a75313b747985470977a085ae6f840a0b84ebd96ddf17f4a31a2b580d078'
5
5
  A_ADDRESS = 'TBAOYZS4FGY5XPQ5OD2VL3SY7GQ5FLH66GRCX5DL'
6
6
 
7
7
  # cosignatory1
@@ -11,12 +11,9 @@ A_ADDRESS = 'TBAOYZS4FGY5XPQ5OD2VL3SY7GQ5FLH66GRCX5DL'
11
11
 
12
12
  # cosignatory2
13
13
  C_PRIVATE_KEY = '2f6bececfaa81e0ce878be6263df29d11412559132743eebde99f695fbc4e288'
14
- C_PUBLIC_KEY = '9fd1e5e886c4006efc715a0e183f2a87f198b8d19c44e7c67925b01aa45a7114'
15
14
  C_ADDRESS = 'TAFPFQOTRYEKMKWWKLLLMYA3I5SCFDGYFACCOFWS'
16
15
 
17
- # TODO: public key calculated from private key in future version.
18
- # it will not need to set public key.
19
- kp = Nis::Keypair.new(C_PRIVATE_KEY, public_key: C_PUBLIC_KEY)
16
+ kp = Nis::Keypair.new(C_PRIVATE_KEY)
20
17
 
21
18
  nis = Nis.new
22
19
  txes = nis.account_unconfirmed_transactions(address: C_ADDRESS)
@@ -2,11 +2,8 @@ require 'nis'
2
2
 
3
3
  # owner
4
4
  A_PRIVATE_KEY = '260206d683962350532408e8774fd14870a173b7fba17f6b504da3dbc5f1cc9f'
5
- A_PUBLIC_KEY = 'cc63b4dcdec745417043c3fa0992ec3a1695461a26d90264744648abbd5caa0d'
6
5
 
7
- # TODO: public key calculated from private key in future version.
8
- # it will not need to set public key.
9
- kp = Nis::Keypair.new(A_PRIVATE_KEY, public_key: A_PUBLIC_KEY)
6
+ kp = Nis::Keypair.new(A_PRIVATE_KEY)
10
7
 
11
8
  tx = Nis::Transaction::ProvisionNamespace.new('sushi')
12
9
  puts "Fee: #{tx.fee.to_i}"
@@ -2,14 +2,11 @@ require 'nis'
2
2
 
3
3
  # sender
4
4
  A_PRIVATE_KEY = '260206d683962350532408e8774fd14870a173b7fba17f6b504da3dbc5f1cc9f'
5
- A_PUBLIC_KEY = 'cc63b4dcdec745417043c3fa0992ec3a1695461a26d90264744648abbd5caa0d'
6
5
 
7
6
  # receiver
8
7
  B_ADDRESS = 'TAWKJTUP4DWKLDKKS534TYP6G324CBNMXKBA4X7B'
9
8
 
10
- # TODO: public key calculated from private key in future version.
11
- # it will not need to set public key.
12
- kp = Nis::Keypair.new(A_PRIVATE_KEY, public_key: A_PUBLIC_KEY)
9
+ kp = Nis::Keypair.new(A_PRIVATE_KEY)
13
10
 
14
11
  tx = Nis::Transaction::Transfer.new(B_ADDRESS, 1_000_000, 'Good luck!')
15
12
  puts "Fee: #{tx.fee.to_i}"
@@ -0,0 +1,19 @@
1
+ require 'nis'
2
+
3
+ # sender
4
+ A_PRIVATE_KEY = '260206d683962350532408e8774fd14870a173b7fba17f6b504da3dbc5f1cc9f'
5
+
6
+ # receiver
7
+ B_ADDRESS = 'TAWKJTUP4DWKLDKKS534TYP6G324CBNMXKBA4X7B'
8
+
9
+ kp = Nis::Keypair.new(A_PRIVATE_KEY)
10
+
11
+ tx = Nis::Transaction::Transfer.new(B_ADDRESS, 1_000_000, 'Good luck!')
12
+ puts "Fee: #{tx.fee.to_i}"
13
+
14
+ nis = Nis.new(host: '104.128.226.60')
15
+ req = Nis::Request::Announce.new(tx, kp)
16
+ res = nis.transaction_announce(req)
17
+
18
+ puts "Message: #{res.message}"
19
+ puts "TransactionHash: #{res.transaction_hash}"
@@ -1,7 +1,7 @@
1
1
  module Nis::Endpoint
2
2
  module Account::Generate
3
3
  # @return [Nis::Struct::KeyPairViewModel]
4
- # @see http://bob.nem.ninja/docs/#generating-new-account-data
4
+ # @see https://nemproject.github.io/#generating-new-account-data
5
5
  def account_generate
6
6
  Nis::Struct::KeyPairViewModel.build request!(:get, '/account/generate')
7
7
  end
@@ -2,7 +2,7 @@ module Nis::Endpoint
2
2
  module Account::Get
3
3
  # @param [String] address
4
4
  # @return [Nis::Struct::AccountMetaDataPair]
5
- # @see http://bob.nem.ninja/docs/#requesting-the-account-data
5
+ # @see https://nemproject.github.io/#requesting-the-account-data
6
6
  def account_get(address:)
7
7
  request!(:get, '/account/get',
8
8
  address: address
@@ -13,7 +13,7 @@ module Nis::Endpoint
13
13
 
14
14
  # @param [String] public_key
15
15
  # @return [Nis::Struct::AccountMetaDataPair]
16
- # @see http://bob.nem.ninja/docs/#requesting-the-account-data
16
+ # @see https://nemproject.github.io/#requesting-the-account-data
17
17
  def account_get_from_public_key(public_key:)
18
18
  request!(:get, '/account/get/from-public-key',
19
19
  publicKey: public_key
@@ -24,7 +24,7 @@ module Nis::Endpoint
24
24
 
25
25
  # @param [String] address
26
26
  # @return [Nis::Struct::AccountMetaDataPair]
27
- # @see http://bob.nem.ninja/docs/#requesting-the-original-account-data-for-a-delegate-account
27
+ # @see https://nemproject.github.io/#requesting-the-original-account-data-for-a-delegate-account
28
28
  def account_get_forwarded(address:)
29
29
  request!(:get, '/account/get/forwarded',
30
30
  address: address
@@ -35,7 +35,7 @@ module Nis::Endpoint
35
35
 
36
36
  # @param [String] public_key
37
37
  # @return [Nis::Struct::AccountMetaDataPair] delegate account
38
- # @see http://bob.nem.ninja/docs/#requesting-the-original-account-data-for-a-delegate-account
38
+ # @see https://nemproject.github.io/#requesting-the-original-account-data-for-a-delegate-account
39
39
  def account_get_forwarded_from_public_key(public_key:)
40
40
  request!(:get, '/account/get/forwarded/from-public-key',
41
41
  publicKey: public_key
@@ -3,7 +3,7 @@ module Nis::Endpoint
3
3
  # @param [String] address
4
4
  # @param [String] hash
5
5
  # @return [Array <Nis::Struct::HarvestInfo>]
6
- # @see http://bob.nem.ninja/docs/#requesting-harvest-info-data-for-an-account
6
+ # @see https://nemproject.github.io/#requesting-harvest-info-data-for-an-account
7
7
  def account_harvests(address:, hash: nil)
8
8
  request!(:get, '/account/harvests',
9
9
  address: address,
@@ -5,7 +5,7 @@ module Nis::Endpoint
5
5
  # @param [Integer] end_height
6
6
  # @param [Integer] increment
7
7
  # @return [Array <Nis::Struct::AccountHistoricalDataViewModel>]
8
- # @see http://bob.nem.ninja/docs/#retrieving-historical-account-data
8
+ # @see https://nemproject.github.io/#retrieving-historical-account-data
9
9
  def account_historical_get(address:, start_height:, end_height:, increment:)
10
10
  request!(:get, '/account/historical/get',
11
11
  address: address,
@@ -1,7 +1,7 @@
1
1
  module Nis::Endpoint
2
2
  module Account::Importances
3
3
  # @return [Array <Nis::Struct::AccountImportanceViewModel>]
4
- # @see http://bob.nem.ninja/docs/#retrieving-account-importances-for-accounts
4
+ # @see https://nemproject.github.io/#retrieving-account-importances-for-accounts
5
5
  def account_importances
6
6
  request!(:get, '/account/importances') do |res|
7
7
  res[:data].map { |aivm| Nis::Struct::AccountImportanceViewModel.build(aivm) }
@@ -2,7 +2,7 @@ module Nis::Endpoint
2
2
  module Account::Lock
3
3
  # @param private_key [String]
4
4
  # @return [nil]
5
- # @see http://bob.nem.ninja/docs/#locking-and-unlocking-accounts
5
+ # @see https://nemproject.github.io/#locking-and-unlocking-accounts
6
6
  def account_lock(private_key:)
7
7
  request!(:post, '/account/lock',
8
8
  privateKey: private_key
@@ -4,7 +4,7 @@ module Nis::Endpoint
4
4
  # @param [String] parent
5
5
  # @param [String] id
6
6
  # @return [Array <Nis::Struct::MosaicDefinition>]
7
- # @see http://bob.nem.ninja/docs/##retrieving-mosaic-definitions-that-an-account-has-created
7
+ # @see https://nemproject.github.io/##retrieving-mosaic-definitions-that-an-account-has-created
8
8
  def account_mosaic_definition_page(address:, parent: nil, id: nil)
9
9
  request!(:get, '/account/mosaic/definition/page',
10
10
  address: address,
@@ -17,7 +17,7 @@ module Nis::Endpoint
17
17
 
18
18
  # @param [String] address
19
19
  # @return [Array <Nis::Struct::AccountMetaDataPair>]
20
- # @see http://bob.nem.ninja/docs/#retrieving-mosaics-that-an-account-owns
20
+ # @see https://nemproject.github.io/#retrieving-mosaics-that-an-account-owns
21
21
  def account_mosaic_owned(address:)
22
22
  request!(:get, '/account/mosaic/owned', address: address) do |res|
23
23
  res[:data].map { |mo| Nis::Struct::Mosaic.build(mo) }
@@ -5,7 +5,7 @@ module Nis::Endpoint
5
5
  # @param [String] id
6
6
  # @param [Integer] page_size
7
7
  # @return [Array <Nis::Struct::Namespace>]
8
- # @see http://bob.nem.ninja/docs/#retrieving-namespaces-that-an-account-owns
8
+ # @see https://nemproject.github.io/#retrieving-namespaces-that-an-account-owns
9
9
  def account_namespace_page(address:, parent: nil, id: nil, page_size: nil)
10
10
  request!(:get, '/account/namespace/page',
11
11
  address: address,
@@ -2,7 +2,7 @@ module Nis::Endpoint
2
2
  module Account::Status
3
3
  # @param [String] address
4
4
  # @return [AccountMetaData]
5
- # @see http://bob.nem.ninja/docs/#requesting-the-account-status
5
+ # @see https://nemproject.github.io/#requesting-the-account-status
6
6
  def account_status(address:)
7
7
  request!(:get, '/account/status',
8
8
  address: address
@@ -4,7 +4,7 @@ module Nis::Endpoint
4
4
  # @param [String] hash
5
5
  # @param [String] id
6
6
  # @return [Array <Nis::Struct::TransactionMetaDataPair>]
7
- # @see http://bob.nem.ninja/docs/#requesting-transaction-data-for-an-account
7
+ # @see https://nemproject.github.io/#requesting-transaction-data-for-an-account
8
8
  def account_transfers_incoming(address:, hash: nil, id: nil)
9
9
  request!(:get, '/account/transfers/incoming',
10
10
  address: address,
@@ -19,7 +19,7 @@ module Nis::Endpoint
19
19
  # @param [String] hash
20
20
  # @param [String] id
21
21
  # @return [Array <Nis::Struct::TransactionMetaDataPair>]
22
- # @see http://bob.nem.ninja/docs/#requesting-transaction-data-for-an-account
22
+ # @see https://nemproject.github.io/#requesting-transaction-data-for-an-account
23
23
  def account_transfers_outgoing(address:, hash: nil, id: nil)
24
24
  request!(:get, '/account/transfers/outgoing',
25
25
  address: address,
@@ -34,7 +34,7 @@ module Nis::Endpoint
34
34
  # @param [String] hash
35
35
  # @param [String] id
36
36
  # @return [Array <Nis::Struct::TransactionMetaDataPair>]
37
- # @see http://bob.nem.ninja/docs/#requesting-transaction-data-for-an-account
37
+ # @see https://nemproject.github.io/#requesting-transaction-data-for-an-account
38
38
  def account_transfers_all(address:, hash: nil, id: nil)
39
39
  request!(:get, '/account/transfers/all',
40
40
  address: address,
@@ -2,7 +2,7 @@ module Nis::Endpoint
2
2
  module Account::UnconfirmedTransactions
3
3
  # @param [String] address
4
4
  # @return [Array <Nis::Struct::UnconfirmedTransactionMetaDataPair>]
5
- # @see http://bob.nem.ninja/docs/#requesting-transaction-data-for-an-account
5
+ # @see https://nemproject.github.io/#requesting-transaction-data-for-an-account
6
6
  def account_unconfirmed_transactions(address:)
7
7
  request!(:get, '/account/unconfirmedTransactions', address: address) do |res|
8
8
  res[:data].map do |utmdp|
@@ -2,7 +2,7 @@ module Nis::Endpoint
2
2
  module Account::Unlock
3
3
  # @param [String] private_key
4
4
  # @return [nil]
5
- # @see http://bob.nem.ninja/docs/#locking-and-unlocking-accounts
5
+ # @see https://nemproject.github.io/#locking-and-unlocking-accounts
6
6
  def account_unlock(private_key:)
7
7
  request!(:post, '/account/lock',
8
8
  privateKey: private_key