koilib 5.7.0 → 7.0.0

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 (45) hide show
  1. package/README.md +39 -40
  2. package/dist/koinos.js +1649 -83
  3. package/dist/koinos.min.js +1 -1
  4. package/lib/Contract.d.ts +12 -24
  5. package/lib/Contract.js +11 -23
  6. package/lib/Contract.js.map +1 -1
  7. package/lib/Provider.d.ts +257 -12
  8. package/lib/Provider.js +262 -9
  9. package/lib/Provider.js.map +1 -1
  10. package/lib/Signer.d.ts +75 -6
  11. package/lib/Signer.js +87 -6
  12. package/lib/Signer.js.map +1 -1
  13. package/lib/Transaction.d.ts +4 -3
  14. package/lib/Transaction.js +13 -10
  15. package/lib/Transaction.js.map +1 -1
  16. package/lib/browser/Contract.d.ts +12 -24
  17. package/lib/browser/Contract.js +11 -23
  18. package/lib/browser/Contract.js.map +1 -1
  19. package/lib/browser/Provider.d.ts +257 -12
  20. package/lib/browser/Provider.js +262 -9
  21. package/lib/browser/Provider.js.map +1 -1
  22. package/lib/browser/Signer.d.ts +75 -6
  23. package/lib/browser/Signer.js +87 -6
  24. package/lib/browser/Signer.js.map +1 -1
  25. package/lib/browser/Transaction.d.ts +4 -3
  26. package/lib/browser/Transaction.js +13 -10
  27. package/lib/browser/Transaction.js.map +1 -1
  28. package/lib/browser/interface.d.ts +33 -0
  29. package/lib/browser/utils.d.ts +39 -0
  30. package/lib/browser/utils.js +1276 -27
  31. package/lib/browser/utils.js.map +1 -1
  32. package/lib/interface.d.ts +33 -0
  33. package/lib/utils.d.ts +39 -0
  34. package/lib/utils.js +1276 -27
  35. package/lib/utils.js.map +1 -1
  36. package/package.json +1 -1
  37. package/src/Contract.ts +12 -24
  38. package/src/Provider.ts +271 -20
  39. package/src/Signer.ts +126 -7
  40. package/src/Transaction.ts +17 -16
  41. package/src/interface.ts +38 -0
  42. package/src/utils.ts +1283 -23
  43. package/lib/browser/jsonDescriptors/token-proto.json +0 -234
  44. package/lib/jsonDescriptors/token-proto.json +0 -234
  45. package/src/jsonDescriptors/token-proto.json +0 -234
@@ -1,234 +0,0 @@
1
- {
2
- "nested": {
3
- "koinos": {
4
- "nested": {
5
- "contracts": {
6
- "nested": {
7
- "token": {
8
- "options": {
9
- "go_package": "github.com/koinos/koinos-proto-golang/v2/koinos/contracts/token"
10
- },
11
- "nested": {
12
- "name_arguments": {
13
- "fields": {}
14
- },
15
- "name_result": {
16
- "fields": {
17
- "value": {
18
- "type": "string",
19
- "id": 1
20
- }
21
- }
22
- },
23
- "symbol_arguments": {
24
- "fields": {}
25
- },
26
- "symbol_result": {
27
- "fields": {
28
- "value": {
29
- "type": "string",
30
- "id": 1
31
- }
32
- }
33
- },
34
- "decimals_arguments": {
35
- "fields": {}
36
- },
37
- "decimals_result": {
38
- "fields": {
39
- "value": {
40
- "type": "uint32",
41
- "id": 1
42
- }
43
- }
44
- },
45
- "total_supply_arguments": {
46
- "fields": {}
47
- },
48
- "total_supply_result": {
49
- "fields": {
50
- "value": {
51
- "type": "uint64",
52
- "id": 1,
53
- "options": {
54
- "jstype": "JS_STRING"
55
- }
56
- }
57
- }
58
- },
59
- "balance_of_arguments": {
60
- "fields": {
61
- "owner": {
62
- "type": "bytes",
63
- "id": 1,
64
- "options": {
65
- "(btype)": "ADDRESS"
66
- }
67
- }
68
- }
69
- },
70
- "balance_of_result": {
71
- "fields": {
72
- "value": {
73
- "type": "uint64",
74
- "id": 1,
75
- "options": {
76
- "jstype": "JS_STRING"
77
- }
78
- }
79
- }
80
- },
81
- "transfer_arguments": {
82
- "fields": {
83
- "from": {
84
- "type": "bytes",
85
- "id": 1,
86
- "options": {
87
- "(btype)": "ADDRESS"
88
- }
89
- },
90
- "to": {
91
- "type": "bytes",
92
- "id": 2,
93
- "options": {
94
- "(btype)": "ADDRESS"
95
- }
96
- },
97
- "value": {
98
- "type": "uint64",
99
- "id": 3,
100
- "options": {
101
- "jstype": "JS_STRING"
102
- }
103
- },
104
- "memo": {
105
- "type": "string",
106
- "id": 4
107
- }
108
- }
109
- },
110
- "transfer_result": {
111
- "fields": {}
112
- },
113
- "mint_arguments": {
114
- "fields": {
115
- "to": {
116
- "type": "bytes",
117
- "id": 1,
118
- "options": {
119
- "(btype)": "ADDRESS"
120
- }
121
- },
122
- "value": {
123
- "type": "uint64",
124
- "id": 2,
125
- "options": {
126
- "jstype": "JS_STRING"
127
- }
128
- }
129
- }
130
- },
131
- "mint_result": {
132
- "fields": {}
133
- },
134
- "burn_arguments": {
135
- "fields": {
136
- "from": {
137
- "type": "bytes",
138
- "id": 1,
139
- "options": {
140
- "(btype)": "ADDRESS"
141
- }
142
- },
143
- "value": {
144
- "type": "uint64",
145
- "id": 2,
146
- "options": {
147
- "jstype": "JS_STRING"
148
- }
149
- }
150
- }
151
- },
152
- "burn_result": {
153
- "fields": {}
154
- },
155
- "balance_object": {
156
- "fields": {
157
- "value": {
158
- "type": "uint64",
159
- "id": 1,
160
- "options": {
161
- "jstype": "JS_STRING"
162
- }
163
- }
164
- }
165
- },
166
- "burn_event": {
167
- "fields": {
168
- "from": {
169
- "type": "bytes",
170
- "id": 1,
171
- "options": {
172
- "(btype)": "ADDRESS"
173
- }
174
- },
175
- "value": {
176
- "type": "uint64",
177
- "id": 2,
178
- "options": {
179
- "jstype": "JS_STRING"
180
- }
181
- }
182
- }
183
- },
184
- "mint_event": {
185
- "fields": {
186
- "to": {
187
- "type": "bytes",
188
- "id": 1,
189
- "options": {
190
- "(btype)": "ADDRESS"
191
- }
192
- },
193
- "value": {
194
- "type": "uint64",
195
- "id": 2,
196
- "options": {
197
- "jstype": "JS_STRING"
198
- }
199
- }
200
- }
201
- },
202
- "transfer_event": {
203
- "fields": {
204
- "from": {
205
- "type": "bytes",
206
- "id": 1,
207
- "options": {
208
- "(btype)": "ADDRESS"
209
- }
210
- },
211
- "to": {
212
- "type": "bytes",
213
- "id": 2,
214
- "options": {
215
- "(btype)": "ADDRESS"
216
- }
217
- },
218
- "value": {
219
- "type": "uint64",
220
- "id": 3,
221
- "options": {
222
- "jstype": "JS_STRING"
223
- }
224
- }
225
- }
226
- }
227
- }
228
- }
229
- }
230
- }
231
- }
232
- }
233
- }
234
- }
@@ -1,234 +0,0 @@
1
- {
2
- "nested": {
3
- "koinos": {
4
- "nested": {
5
- "contracts": {
6
- "nested": {
7
- "token": {
8
- "options": {
9
- "go_package": "github.com/koinos/koinos-proto-golang/v2/koinos/contracts/token"
10
- },
11
- "nested": {
12
- "name_arguments": {
13
- "fields": {}
14
- },
15
- "name_result": {
16
- "fields": {
17
- "value": {
18
- "type": "string",
19
- "id": 1
20
- }
21
- }
22
- },
23
- "symbol_arguments": {
24
- "fields": {}
25
- },
26
- "symbol_result": {
27
- "fields": {
28
- "value": {
29
- "type": "string",
30
- "id": 1
31
- }
32
- }
33
- },
34
- "decimals_arguments": {
35
- "fields": {}
36
- },
37
- "decimals_result": {
38
- "fields": {
39
- "value": {
40
- "type": "uint32",
41
- "id": 1
42
- }
43
- }
44
- },
45
- "total_supply_arguments": {
46
- "fields": {}
47
- },
48
- "total_supply_result": {
49
- "fields": {
50
- "value": {
51
- "type": "uint64",
52
- "id": 1,
53
- "options": {
54
- "jstype": "JS_STRING"
55
- }
56
- }
57
- }
58
- },
59
- "balance_of_arguments": {
60
- "fields": {
61
- "owner": {
62
- "type": "bytes",
63
- "id": 1,
64
- "options": {
65
- "(btype)": "ADDRESS"
66
- }
67
- }
68
- }
69
- },
70
- "balance_of_result": {
71
- "fields": {
72
- "value": {
73
- "type": "uint64",
74
- "id": 1,
75
- "options": {
76
- "jstype": "JS_STRING"
77
- }
78
- }
79
- }
80
- },
81
- "transfer_arguments": {
82
- "fields": {
83
- "from": {
84
- "type": "bytes",
85
- "id": 1,
86
- "options": {
87
- "(btype)": "ADDRESS"
88
- }
89
- },
90
- "to": {
91
- "type": "bytes",
92
- "id": 2,
93
- "options": {
94
- "(btype)": "ADDRESS"
95
- }
96
- },
97
- "value": {
98
- "type": "uint64",
99
- "id": 3,
100
- "options": {
101
- "jstype": "JS_STRING"
102
- }
103
- },
104
- "memo": {
105
- "type": "string",
106
- "id": 4
107
- }
108
- }
109
- },
110
- "transfer_result": {
111
- "fields": {}
112
- },
113
- "mint_arguments": {
114
- "fields": {
115
- "to": {
116
- "type": "bytes",
117
- "id": 1,
118
- "options": {
119
- "(btype)": "ADDRESS"
120
- }
121
- },
122
- "value": {
123
- "type": "uint64",
124
- "id": 2,
125
- "options": {
126
- "jstype": "JS_STRING"
127
- }
128
- }
129
- }
130
- },
131
- "mint_result": {
132
- "fields": {}
133
- },
134
- "burn_arguments": {
135
- "fields": {
136
- "from": {
137
- "type": "bytes",
138
- "id": 1,
139
- "options": {
140
- "(btype)": "ADDRESS"
141
- }
142
- },
143
- "value": {
144
- "type": "uint64",
145
- "id": 2,
146
- "options": {
147
- "jstype": "JS_STRING"
148
- }
149
- }
150
- }
151
- },
152
- "burn_result": {
153
- "fields": {}
154
- },
155
- "balance_object": {
156
- "fields": {
157
- "value": {
158
- "type": "uint64",
159
- "id": 1,
160
- "options": {
161
- "jstype": "JS_STRING"
162
- }
163
- }
164
- }
165
- },
166
- "burn_event": {
167
- "fields": {
168
- "from": {
169
- "type": "bytes",
170
- "id": 1,
171
- "options": {
172
- "(btype)": "ADDRESS"
173
- }
174
- },
175
- "value": {
176
- "type": "uint64",
177
- "id": 2,
178
- "options": {
179
- "jstype": "JS_STRING"
180
- }
181
- }
182
- }
183
- },
184
- "mint_event": {
185
- "fields": {
186
- "to": {
187
- "type": "bytes",
188
- "id": 1,
189
- "options": {
190
- "(btype)": "ADDRESS"
191
- }
192
- },
193
- "value": {
194
- "type": "uint64",
195
- "id": 2,
196
- "options": {
197
- "jstype": "JS_STRING"
198
- }
199
- }
200
- }
201
- },
202
- "transfer_event": {
203
- "fields": {
204
- "from": {
205
- "type": "bytes",
206
- "id": 1,
207
- "options": {
208
- "(btype)": "ADDRESS"
209
- }
210
- },
211
- "to": {
212
- "type": "bytes",
213
- "id": 2,
214
- "options": {
215
- "(btype)": "ADDRESS"
216
- }
217
- },
218
- "value": {
219
- "type": "uint64",
220
- "id": 3,
221
- "options": {
222
- "jstype": "JS_STRING"
223
- }
224
- }
225
- }
226
- }
227
- }
228
- }
229
- }
230
- }
231
- }
232
- }
233
- }
234
- }