koilib 2.8.0 → 3.1.1

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.
Files changed (66) hide show
  1. package/README.md +75 -12
  2. package/dist/koinos.js +8535 -284
  3. package/dist/koinos.min.js +1 -1
  4. package/lib/Contract.d.ts +66 -18
  5. package/lib/Contract.js +103 -40
  6. package/lib/Contract.js.map +1 -1
  7. package/lib/Provider.d.ts +22 -7
  8. package/lib/Provider.js +60 -21
  9. package/lib/Provider.js.map +1 -1
  10. package/lib/Serializer.d.ts +3 -1
  11. package/lib/Serializer.js +103 -83
  12. package/lib/Serializer.js.map +1 -1
  13. package/lib/Signer.d.ts +54 -42
  14. package/lib/Signer.js +305 -114
  15. package/lib/Signer.js.map +1 -1
  16. package/lib/browser/Contract.d.ts +66 -18
  17. package/lib/browser/Contract.js +103 -40
  18. package/lib/browser/Contract.js.map +1 -1
  19. package/lib/browser/Provider.d.ts +22 -7
  20. package/lib/browser/Provider.js +60 -21
  21. package/lib/browser/Provider.js.map +1 -1
  22. package/lib/browser/Serializer.d.ts +3 -1
  23. package/lib/browser/Serializer.js +103 -83
  24. package/lib/browser/Serializer.js.map +1 -1
  25. package/lib/browser/Signer.d.ts +54 -42
  26. package/lib/browser/Signer.js +305 -114
  27. package/lib/browser/Signer.js.map +1 -1
  28. package/lib/browser/index.d.ts +1 -1
  29. package/lib/browser/index.js +1 -1
  30. package/lib/browser/index.js.map +1 -1
  31. package/lib/browser/indexUtils.d.ts +2 -0
  32. package/lib/browser/indexUtils.js +15 -0
  33. package/lib/browser/indexUtils.js.map +1 -0
  34. package/lib/browser/interface.d.ts +242 -46
  35. package/lib/browser/jsonDescriptors/chain-proto.json +676 -0
  36. package/lib/browser/jsonDescriptors/{krc20-proto.json → token-proto.json} +47 -4
  37. package/lib/browser/protoModules/protocol-proto.d.ts +2 -0
  38. package/lib/browser/protoModules/protocol-proto.js +6336 -0
  39. package/lib/browser/protoModules/protocol-proto.js.map +1 -0
  40. package/lib/browser/utils.d.ts +19 -255
  41. package/lib/browser/utils.js +170 -15
  42. package/lib/browser/utils.js.map +1 -1
  43. package/lib/browser/utilsNode.d.ts +1021 -0
  44. package/lib/browser/utilsNode.js +346 -0
  45. package/lib/browser/utilsNode.js.map +1 -0
  46. package/lib/index.d.ts +1 -1
  47. package/lib/index.js +1 -1
  48. package/lib/index.js.map +1 -1
  49. package/lib/indexUtils.d.ts +2 -0
  50. package/lib/indexUtils.js +15 -0
  51. package/lib/indexUtils.js.map +1 -0
  52. package/lib/interface.d.ts +242 -46
  53. package/lib/jsonDescriptors/chain-proto.json +676 -0
  54. package/lib/jsonDescriptors/{krc20-proto.json → token-proto.json} +47 -4
  55. package/lib/protoModules/protocol-proto.d.ts +2 -0
  56. package/lib/protoModules/protocol-proto.js +6336 -0
  57. package/lib/protoModules/protocol-proto.js.map +1 -0
  58. package/lib/utils.d.ts +19 -255
  59. package/lib/utils.js +170 -15
  60. package/lib/utils.js.map +1 -1
  61. package/lib/utilsNode.d.ts +1021 -0
  62. package/lib/utilsNode.js +346 -0
  63. package/lib/utilsNode.js.map +1 -0
  64. package/package.json +1 -1
  65. package/lib/browser/jsonDescriptors/protocol-proto.json +0 -246
  66. package/lib/jsonDescriptors/protocol-proto.json +0 -246
@@ -1,246 +0,0 @@
1
- {
2
- "nested": {
3
- "koinos": {
4
- "nested": {
5
- "protocol": {
6
- "options": {
7
- "go_package": "github.com/koinos/koinos-proto-golang/koinos/protocol"
8
- },
9
- "nested": {
10
- "contract_call_bundle": {
11
- "fields": {
12
- "contract_id": {
13
- "type": "bytes",
14
- "id": 1,
15
- "options": {
16
- "(koinos_bytes_type)": "CONTRACT_ID"
17
- }
18
- },
19
- "entry_point": {
20
- "type": "uint32",
21
- "id": 2
22
- }
23
- }
24
- },
25
- "system_call_target": {
26
- "oneofs": {
27
- "target": {
28
- "oneof": ["thunk_id", "system_call_bundle"]
29
- }
30
- },
31
- "fields": {
32
- "thunk_id": {
33
- "type": "uint32",
34
- "id": 1
35
- },
36
- "system_call_bundle": {
37
- "type": "contract_call_bundle",
38
- "id": 2
39
- }
40
- }
41
- },
42
- "upload_contract_operation": {
43
- "fields": {
44
- "contract_id": {
45
- "type": "bytes",
46
- "id": 1,
47
- "options": {
48
- "(koinos_bytes_type)": "CONTRACT_ID"
49
- }
50
- },
51
- "bytecode": {
52
- "type": "bytes",
53
- "id": 2
54
- }
55
- }
56
- },
57
- "call_contract_operation": {
58
- "fields": {
59
- "contract_id": {
60
- "type": "bytes",
61
- "id": 1,
62
- "options": {
63
- "(koinos_bytes_type)": "CONTRACT_ID"
64
- }
65
- },
66
- "entry_point": {
67
- "type": "uint32",
68
- "id": 2
69
- },
70
- "args": {
71
- "type": "bytes",
72
- "id": 3
73
- }
74
- }
75
- },
76
- "set_system_call_operation": {
77
- "fields": {
78
- "call_id": {
79
- "type": "uint32",
80
- "id": 1
81
- },
82
- "target": {
83
- "type": "system_call_target",
84
- "id": 2
85
- }
86
- }
87
- },
88
- "operation": {
89
- "oneofs": {
90
- "op": {
91
- "oneof": [
92
- "upload_contract",
93
- "call_contract",
94
- "set_system_call"
95
- ]
96
- }
97
- },
98
- "fields": {
99
- "upload_contract": {
100
- "type": "upload_contract_operation",
101
- "id": 1
102
- },
103
- "call_contract": {
104
- "type": "call_contract_operation",
105
- "id": 2
106
- },
107
- "set_system_call": {
108
- "type": "set_system_call_operation",
109
- "id": 3
110
- }
111
- }
112
- },
113
- "active_transaction_data": {
114
- "fields": {
115
- "rc_limit": {
116
- "type": "uint64",
117
- "id": 1,
118
- "options": {
119
- "jstype": "JS_STRING"
120
- }
121
- },
122
- "nonce": {
123
- "type": "uint64",
124
- "id": 2,
125
- "options": {
126
- "jstype": "JS_STRING"
127
- }
128
- },
129
- "operations": {
130
- "rule": "repeated",
131
- "type": "operation",
132
- "id": 3
133
- }
134
- }
135
- },
136
- "passive_transaction_data": {
137
- "fields": {}
138
- },
139
- "transaction": {
140
- "fields": {
141
- "id": {
142
- "type": "bytes",
143
- "id": 1,
144
- "options": {
145
- "(koinos_bytes_type)": "TRANSACTION_ID"
146
- }
147
- },
148
- "active": {
149
- "type": "bytes",
150
- "id": 2
151
- },
152
- "passive": {
153
- "type": "bytes",
154
- "id": 3
155
- },
156
- "signature_data": {
157
- "type": "bytes",
158
- "id": 4
159
- }
160
- }
161
- },
162
- "active_block_data": {
163
- "fields": {
164
- "transaction_merkle_root": {
165
- "type": "bytes",
166
- "id": 1
167
- },
168
- "passive_data_merkle_root": {
169
- "type": "bytes",
170
- "id": 2
171
- },
172
- "signer": {
173
- "type": "bytes",
174
- "id": 3
175
- }
176
- }
177
- },
178
- "passive_block_data": {
179
- "fields": {}
180
- },
181
- "block_header": {
182
- "fields": {
183
- "previous": {
184
- "type": "bytes",
185
- "id": 1,
186
- "options": {
187
- "(koinos_bytes_type)": "BLOCK_ID"
188
- }
189
- },
190
- "height": {
191
- "type": "uint64",
192
- "id": 2,
193
- "options": {
194
- "jstype": "JS_STRING"
195
- }
196
- },
197
- "timestamp": {
198
- "type": "uint64",
199
- "id": 3,
200
- "options": {
201
- "jstype": "JS_STRING"
202
- }
203
- }
204
- }
205
- },
206
- "block": {
207
- "fields": {
208
- "id": {
209
- "type": "bytes",
210
- "id": 1,
211
- "options": {
212
- "(koinos_bytes_type)": "BLOCK_ID"
213
- }
214
- },
215
- "header": {
216
- "type": "block_header",
217
- "id": 2
218
- },
219
- "active": {
220
- "type": "bytes",
221
- "id": 3
222
- },
223
- "passive": {
224
- "type": "bytes",
225
- "id": 4
226
- },
227
- "signature_data": {
228
- "type": "bytes",
229
- "id": 5
230
- },
231
- "transactions": {
232
- "rule": "repeated",
233
- "type": "transaction",
234
- "id": 6
235
- }
236
- }
237
- },
238
- "block_receipt": {
239
- "fields": {}
240
- }
241
- }
242
- }
243
- }
244
- }
245
- }
246
- }