klay 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ea9c15c1513dcc85173e2d227930d6cc8359c65aa6679edab4778b9aa186696
4
- data.tar.gz: 4f703b56159737e8fc9f59217a56ec8f61069756db6bf6e900749736b1b98d86
3
+ metadata.gz: adb9b83c9f7962e5888e5788c5d51edda5d6d4babedd909f451a8e1f4624da22
4
+ data.tar.gz: 7b25cf0f089a7806484742e80d51ae10697756826fc0df7a024414eb24187751
5
5
  SHA512:
6
- metadata.gz: 0a9550b4ce05cb34cc05e115b4ce3571de89fdabe0974412a2eaf1bb50be66ae1942c5c14f0c2ca83693cd563929e747e21b118966af7be040bd9f1ecd73af1e
7
- data.tar.gz: c516d72d741edcc3b051f0cc808b34f1777017f4fbab081664d144bf69a85fa0a4adef7d8225adb09d09170c5a40698aa52a06a791a296936b068de2f6e18565
6
+ metadata.gz: ffc70a3cb8f242b24114a6cb2d4d86161df63474aadd369d11c211059c6a0222e53bae756b78444982629824788a8c8ab9b6337ddc1d24afb2f568c82eaac9e8
7
+ data.tar.gz: 2c695bf6d4ab5046b701aaaf4638f29dba43550055e14540107a888bbe588e0cf28a87c36981bf2a4c6febaf393955a4a311db4e8c857180455a1628900975c9
data/AUTHORS.txt CHANGED
@@ -1,5 +1,10 @@
1
- Ruby Klay Contributors are:
2
- * Sehan Park @noMacGuffins
1
+ The Ruby-Eth Contributors are:
2
+ * Steve Ellis @se3000
3
+ * Afri Schoedon @q9f
4
+ * John Omar @chainoperator
5
+
6
+ See also:
7
+ * https://github.com/q9f/eth.rb/graphs/contributors
3
8
 
4
9
  The Ruby-Eth project was maintained 2016-2020 in Steve Ellis's (@se3000)
5
10
  repository licensed under MIT conditions:
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ ![Klay.rb](https://s3.ap-northeast-2.amazonaws.com/klay.rb/repository-open-graph-template.png)
2
+
1
3
  # Klay for Ruby
2
4
 
3
5
  A simple library to build and sign Klaytn transactions. Allows separation of key and node management. Sign transactions and handle keys anywhere you can run ruby, broadcast transactions through any node. Sign messages and recover signatures for authentication.
data/lib/klay/api.rb CHANGED
@@ -99,86 +99,86 @@ module Klay
99
99
  "debug_writeBlockProfile",
100
100
  "debug_writeMemProfile",
101
101
  "debug_writeMutexProfile",
102
- "eth_accounts",
103
- "eth_blockNumber",
104
- "eth_call",
105
- "eth_chainId",
106
- "eth_coinbase",
107
- "eth_compile",
108
- "eth_contract",
109
- "eth_createAccessList",
110
- "eth_defaultAccount",
111
- "eth_defaultBlock",
112
- "eth_estimateGas",
113
- "eth_feeHistory",
114
- "eth_fillTransaction",
115
- "eth_filter",
116
- "eth_gasPrice",
117
- "eth_getAccounts",
118
- "eth_getBalance",
119
- "eth_getBlock",
120
- "eth_getBlockByHash",
121
- "eth_getBlockByNumber",
122
- "eth_getBlockNumber",
123
- "eth_getBlockTransactionCount",
124
- "eth_getBlockTransactionCountByHash",
125
- "eth_getBlockTransactionCountByNumber",
126
- "eth_getBlockUncleCount",
127
- "eth_getCode",
128
- "eth_getCoinbase",
129
- "eth_getCompilers",
130
- "eth_getFilterChanges",
131
- "eth_getFilterLogs",
132
- "eth_getGasPrice",
133
- "eth_getHashrate",
134
- "eth_getHeaderByHash",
135
- "eth_getHeaderByNumber",
136
- "eth_getLogs",
137
- "eth_getMaxPriorityFeePerGas",
138
- "eth_getMining",
139
- "eth_getPendingTransactions",
140
- "eth_getProof",
141
- "eth_getProtocolVersion",
142
- "eth_getRawTransaction",
143
- "eth_getRawTransactionFromBlock",
144
- "eth_getStorageAt",
145
- "eth_getSyncing",
146
- "eth_getTransaction",
147
- "eth_getTransactionByBlockHashAndIndex",
148
- "eth_getTransactionByBlockNumberAndIndex",
149
- "eth_getTransactionByHash",
150
- "eth_getTransactionCount",
151
- "eth_getTransactionFromBlock",
152
- "eth_getTransactionReceipt",
153
- "eth_getUncle",
154
- "eth_getUncleCountByBlockHash",
155
- "eth_getUncleCountByBlockNumber",
156
- "eth_getWork",
157
- "eth_hashrate",
158
- "eth_iban",
159
- "eth_icapNamereg",
160
- "eth_isSyncing",
161
- "eth_maxPriorityFeePerGas",
162
- "eth_mining",
163
- "eth_namereg",
164
- "eth_newBlockFilter",
165
- "eth_newFilter",
166
- "eth_newPendingTransactionFilter",
167
- "eth_pendingTransactions",
168
- "eth_protocolVersion",
169
- "eth_resend",
170
- "eth_sendIBANTransaction",
171
- "eth_sendRawTransaction",
172
- "eth_sendTransaction",
173
- "eth_sign",
174
- "eth_signTransaction",
175
- "eth_submitHashrate",
176
- "eth_submitTransaction",
177
- "eth_submitWork",
178
- "eth_subscribe",
179
- "eth_syncing",
180
- "eth_uninstallFilter",
181
- "eth_unsubscribe",
102
+ "klay_accounts",
103
+ "klay_blockNumber",
104
+ "klay_call",
105
+ "klay_chainId",
106
+ "klay_coinbase",
107
+ "klay_compile",
108
+ "klay_contract",
109
+ "klay_createAccessList",
110
+ "klay_defaultAccount",
111
+ "klay_defaultBlock",
112
+ "klay_estimateGas",
113
+ "klay_feeHistory",
114
+ "klay_fillTransaction",
115
+ "klay_filter",
116
+ "klay_gasPrice",
117
+ "klay_getAccounts",
118
+ "klay_getBalance",
119
+ "klay_getBlock",
120
+ "klay_getBlockByHash",
121
+ "klay_getBlockByNumber",
122
+ "klay_getBlockNumber",
123
+ "klay_getBlockTransactionCount",
124
+ "klay_getBlockTransactionCountByHash",
125
+ "klay_getBlockTransactionCountByNumber",
126
+ "klay_getBlockUncleCount",
127
+ "klay_getCode",
128
+ "klay_getCoinbase",
129
+ "klay_getCompilers",
130
+ "klay_getFilterChanges",
131
+ "klay_getFilterLogs",
132
+ "klay_getGasPrice",
133
+ "klay_gklayashrate",
134
+ "klay_gklayeaderByHash",
135
+ "klay_gklayeaderByNumber",
136
+ "klay_getLogs",
137
+ "klay_getMaxPriorityFeePerGas",
138
+ "klay_getMining",
139
+ "klay_getPendingTransactions",
140
+ "klay_getProof",
141
+ "klay_getProtocolVersion",
142
+ "klay_getRawTransaction",
143
+ "klay_getRawTransactionFromBlock",
144
+ "klay_getStorageAt",
145
+ "klay_getSyncing",
146
+ "klay_getTransaction",
147
+ "klay_getTransactionByBlockHashAndIndex",
148
+ "klay_getTransactionByBlockNumberAndIndex",
149
+ "klay_getTransactionByHash",
150
+ "klay_getTransactionCount",
151
+ "klay_getTransactionFromBlock",
152
+ "klay_getTransactionReceipt",
153
+ "klay_getUncle",
154
+ "klay_getUncleCountByBlockHash",
155
+ "klay_getUncleCountByBlockNumber",
156
+ "klay_getWork",
157
+ "klay_hashrate",
158
+ "klay_iban",
159
+ "klay_icapNamereg",
160
+ "klay_isSyncing",
161
+ "klay_maxPriorityFeePerGas",
162
+ "klay_mining",
163
+ "klay_namereg",
164
+ "klay_newBlockFilter",
165
+ "klay_newFilter",
166
+ "klay_newPendingTransactionFilter",
167
+ "klay_pendingTransactions",
168
+ "klay_protocolVersion",
169
+ "klay_resend",
170
+ "klay_sendIBANTransaction",
171
+ "klay_sendRawTransaction",
172
+ "klay_sendTransaction",
173
+ "klay_sign",
174
+ "klay_signTransaction",
175
+ "klay_submitHashrate",
176
+ "klay_submitTransaction",
177
+ "klay_submitWork",
178
+ "klay_subscribe",
179
+ "klay_syncing",
180
+ "klay_uninstallFilter",
181
+ "klay_unsubscribe",
182
182
  "les_addBalance",
183
183
  "les_clientInfo",
184
184
  "les_getCheckpoint",
data/lib/klay/client.rb CHANGED
@@ -195,7 +195,7 @@ module Klay
195
195
 
196
196
  # Prepares parameters and sends the command to the client.
197
197
  def send_command(command, args)
198
- args << "latest" if ["eth_getBalance", "eth_call"].include? command
198
+ args << "latest" if ["klay_getBalance", "klay_call"].include? command
199
199
  payload = {
200
200
  jsonrpc: "2.0",
201
201
  method: command,
@@ -70,7 +70,6 @@ module Klay
70
70
  context = Secp256k1::Context.new
71
71
  r, s, v = dissect signature
72
72
  v = v.to_i(16)
73
- p v
74
73
  # raise SignatureError, "Invalid signature v byte #{v} for chain ID #{chain_id}!" if v != 130
75
74
  recovery_id = Chain.to_recovery_id v, chain_id
76
75
  signature_rs = Util.hex_to_bin "#{r}#{s}"
data/lib/klay/version.rb CHANGED
@@ -16,5 +16,5 @@
16
16
  module Klay
17
17
 
18
18
  # Defines the version of the {Klay} module.
19
- VERSION = "0.0.4".freeze
19
+ VERSION = "0.0.5".freeze
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: klay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sehan Park
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-17 00:00:00.000000000 Z
11
+ date: 2022-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: keccak