koilib 2.2.0 → 2.3.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.
- package/README.md +17 -8
- package/dist/koinos.js +2495 -2298
- package/dist/koinos.min.js +1 -1
- package/lib/Contract.d.ts +47 -152
- package/lib/Contract.js +61 -148
- package/lib/Contract.js.map +1 -1
- package/lib/Provider.d.ts +1 -4
- package/lib/Provider.js +1 -1
- package/lib/Provider.js.map +1 -1
- package/lib/Serializer.d.ts +81 -0
- package/lib/Serializer.js +169 -0
- package/lib/Serializer.js.map +1 -0
- package/lib/Signer.d.ts +130 -24
- package/lib/Signer.js +151 -47
- package/lib/Signer.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/index2.js +2 -0
- package/lib/index2.js.map +1 -1
- package/lib/interface.d.ts +161 -24
- package/lib/{krc20-proto.json → jsonDescriptors/krc20-proto.json} +1 -1
- package/lib/{protocol-proto.json → jsonDescriptors/protocol-proto.json} +22 -18
- package/lib/utils.d.ts +249 -1
- package/lib/utils.js +4 -2
- package/lib/utils.js.map +1 -1
- package/package.json +2 -4
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
"nested": {
|
|
10
10
|
"contract_call_bundle": {
|
|
11
11
|
"fields": {
|
|
12
|
-
"
|
|
12
|
+
"contract_id": {
|
|
13
13
|
"type": "bytes",
|
|
14
14
|
"id": 1,
|
|
15
15
|
"options": {
|
|
16
16
|
"(koinos_bytes_type)": "CONTRACT_ID"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
|
-
"
|
|
19
|
+
"entry_point": {
|
|
20
20
|
"type": "uint32",
|
|
21
21
|
"id": 2
|
|
22
22
|
}
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"system_call_target": {
|
|
26
26
|
"oneofs": {
|
|
27
27
|
"target": {
|
|
28
|
-
"oneof": ["
|
|
28
|
+
"oneof": ["thunk_id", "system_call_bundle"]
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"fields": {
|
|
32
|
-
"
|
|
32
|
+
"thunk_id": {
|
|
33
33
|
"type": "uint32",
|
|
34
34
|
"id": 1
|
|
35
35
|
},
|
|
36
|
-
"
|
|
36
|
+
"system_call_bundle": {
|
|
37
37
|
"type": "contract_call_bundle",
|
|
38
38
|
"id": 2
|
|
39
39
|
}
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"upload_contract_operation": {
|
|
43
43
|
"fields": {
|
|
44
|
-
"
|
|
44
|
+
"contract_id": {
|
|
45
45
|
"type": "bytes",
|
|
46
46
|
"id": 1,
|
|
47
47
|
"options": {
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
},
|
|
57
57
|
"call_contract_operation": {
|
|
58
58
|
"fields": {
|
|
59
|
-
"
|
|
59
|
+
"contract_id": {
|
|
60
60
|
"type": "bytes",
|
|
61
61
|
"id": 1,
|
|
62
62
|
"options": {
|
|
63
63
|
"(koinos_bytes_type)": "CONTRACT_ID"
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
"
|
|
66
|
+
"entry_point": {
|
|
67
67
|
"type": "uint32",
|
|
68
68
|
"id": 2
|
|
69
69
|
},
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
},
|
|
76
76
|
"set_system_call_operation": {
|
|
77
77
|
"fields": {
|
|
78
|
-
"
|
|
78
|
+
"call_id": {
|
|
79
79
|
"type": "uint32",
|
|
80
80
|
"id": 1
|
|
81
81
|
},
|
|
@@ -88,19 +88,23 @@
|
|
|
88
88
|
"operation": {
|
|
89
89
|
"oneofs": {
|
|
90
90
|
"op": {
|
|
91
|
-
"oneof": [
|
|
91
|
+
"oneof": [
|
|
92
|
+
"upload_contract",
|
|
93
|
+
"call_contract",
|
|
94
|
+
"set_system_call"
|
|
95
|
+
]
|
|
92
96
|
}
|
|
93
97
|
},
|
|
94
98
|
"fields": {
|
|
95
|
-
"
|
|
99
|
+
"upload_contract": {
|
|
96
100
|
"type": "upload_contract_operation",
|
|
97
101
|
"id": 1
|
|
98
102
|
},
|
|
99
|
-
"
|
|
103
|
+
"call_contract": {
|
|
100
104
|
"type": "call_contract_operation",
|
|
101
105
|
"id": 2
|
|
102
106
|
},
|
|
103
|
-
"
|
|
107
|
+
"set_system_call": {
|
|
104
108
|
"type": "set_system_call_operation",
|
|
105
109
|
"id": 3
|
|
106
110
|
}
|
|
@@ -108,7 +112,7 @@
|
|
|
108
112
|
},
|
|
109
113
|
"active_transaction_data": {
|
|
110
114
|
"fields": {
|
|
111
|
-
"
|
|
115
|
+
"rc_limit": {
|
|
112
116
|
"type": "uint64",
|
|
113
117
|
"id": 1,
|
|
114
118
|
"options": {
|
|
@@ -149,7 +153,7 @@
|
|
|
149
153
|
"type": "bytes",
|
|
150
154
|
"id": 3
|
|
151
155
|
},
|
|
152
|
-
"
|
|
156
|
+
"signature_data": {
|
|
153
157
|
"type": "bytes",
|
|
154
158
|
"id": 4
|
|
155
159
|
}
|
|
@@ -157,11 +161,11 @@
|
|
|
157
161
|
},
|
|
158
162
|
"active_block_data": {
|
|
159
163
|
"fields": {
|
|
160
|
-
"
|
|
164
|
+
"transaction_merkle_root": {
|
|
161
165
|
"type": "bytes",
|
|
162
166
|
"id": 1
|
|
163
167
|
},
|
|
164
|
-
"
|
|
168
|
+
"passive_data_merkle_root": {
|
|
165
169
|
"type": "bytes",
|
|
166
170
|
"id": 2
|
|
167
171
|
},
|
|
@@ -220,7 +224,7 @@
|
|
|
220
224
|
"type": "bytes",
|
|
221
225
|
"id": 4
|
|
222
226
|
},
|
|
223
|
-
"
|
|
227
|
+
"signature_data": {
|
|
224
228
|
"type": "bytes",
|
|
225
229
|
"id": 5
|
|
226
230
|
},
|
package/lib/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Abi } from "./
|
|
1
|
+
import { Abi } from "./interface";
|
|
2
2
|
/**
|
|
3
3
|
* Converts an hex string to Uint8Array
|
|
4
4
|
*/
|
|
@@ -72,3 +72,251 @@ export declare function parseUnits(value: string, decimals: number): string;
|
|
|
72
72
|
* ABI for tokens
|
|
73
73
|
*/
|
|
74
74
|
export declare const Krc20Abi: Abi;
|
|
75
|
+
export declare const ProtocolTypes: {
|
|
76
|
+
nested: {
|
|
77
|
+
koinos: {
|
|
78
|
+
nested: {
|
|
79
|
+
protocol: {
|
|
80
|
+
options: {
|
|
81
|
+
go_package: string;
|
|
82
|
+
};
|
|
83
|
+
nested: {
|
|
84
|
+
contract_call_bundle: {
|
|
85
|
+
fields: {
|
|
86
|
+
contract_id: {
|
|
87
|
+
type: string;
|
|
88
|
+
id: number;
|
|
89
|
+
options: {
|
|
90
|
+
"(koinos_bytes_type)": string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
entry_point: {
|
|
94
|
+
type: string;
|
|
95
|
+
id: number;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
system_call_target: {
|
|
100
|
+
oneofs: {
|
|
101
|
+
target: {
|
|
102
|
+
oneof: string[];
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
fields: {
|
|
106
|
+
thunk_id: {
|
|
107
|
+
type: string;
|
|
108
|
+
id: number;
|
|
109
|
+
};
|
|
110
|
+
system_call_bundle: {
|
|
111
|
+
type: string;
|
|
112
|
+
id: number;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
upload_contract_operation: {
|
|
117
|
+
fields: {
|
|
118
|
+
contract_id: {
|
|
119
|
+
type: string;
|
|
120
|
+
id: number;
|
|
121
|
+
options: {
|
|
122
|
+
"(koinos_bytes_type)": string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
bytecode: {
|
|
126
|
+
type: string;
|
|
127
|
+
id: number;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
call_contract_operation: {
|
|
132
|
+
fields: {
|
|
133
|
+
contract_id: {
|
|
134
|
+
type: string;
|
|
135
|
+
id: number;
|
|
136
|
+
options: {
|
|
137
|
+
"(koinos_bytes_type)": string;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
entry_point: {
|
|
141
|
+
type: string;
|
|
142
|
+
id: number;
|
|
143
|
+
};
|
|
144
|
+
args: {
|
|
145
|
+
type: string;
|
|
146
|
+
id: number;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
set_system_call_operation: {
|
|
151
|
+
fields: {
|
|
152
|
+
call_id: {
|
|
153
|
+
type: string;
|
|
154
|
+
id: number;
|
|
155
|
+
};
|
|
156
|
+
target: {
|
|
157
|
+
type: string;
|
|
158
|
+
id: number;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
operation: {
|
|
163
|
+
oneofs: {
|
|
164
|
+
op: {
|
|
165
|
+
oneof: string[];
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
fields: {
|
|
169
|
+
upload_contract: {
|
|
170
|
+
type: string;
|
|
171
|
+
id: number;
|
|
172
|
+
};
|
|
173
|
+
call_contract: {
|
|
174
|
+
type: string;
|
|
175
|
+
id: number;
|
|
176
|
+
};
|
|
177
|
+
set_system_call: {
|
|
178
|
+
type: string;
|
|
179
|
+
id: number;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
active_transaction_data: {
|
|
184
|
+
fields: {
|
|
185
|
+
rc_limit: {
|
|
186
|
+
type: string;
|
|
187
|
+
id: number;
|
|
188
|
+
options: {
|
|
189
|
+
jstype: string;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
nonce: {
|
|
193
|
+
type: string;
|
|
194
|
+
id: number;
|
|
195
|
+
options: {
|
|
196
|
+
jstype: string;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
operations: {
|
|
200
|
+
rule: string;
|
|
201
|
+
type: string;
|
|
202
|
+
id: number;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
passive_transaction_data: {
|
|
207
|
+
fields: {};
|
|
208
|
+
};
|
|
209
|
+
transaction: {
|
|
210
|
+
fields: {
|
|
211
|
+
id: {
|
|
212
|
+
type: string; /**
|
|
213
|
+
* Computes a bitcoin address, which is the format used in Koinos
|
|
214
|
+
*
|
|
215
|
+
* address = bitcoinEncode( ripemd160 ( sha256 ( publicKey ) ) )
|
|
216
|
+
*/
|
|
217
|
+
id: number;
|
|
218
|
+
options: {
|
|
219
|
+
"(koinos_bytes_type)": string;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
active: {
|
|
223
|
+
type: string;
|
|
224
|
+
id: number;
|
|
225
|
+
};
|
|
226
|
+
passive: {
|
|
227
|
+
type: string;
|
|
228
|
+
id: number;
|
|
229
|
+
};
|
|
230
|
+
signature_data: {
|
|
231
|
+
type: string;
|
|
232
|
+
id: number;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
active_block_data: {
|
|
237
|
+
fields: {
|
|
238
|
+
transaction_merkle_root: {
|
|
239
|
+
type: string;
|
|
240
|
+
id: number;
|
|
241
|
+
};
|
|
242
|
+
passive_data_merkle_root: {
|
|
243
|
+
type: string;
|
|
244
|
+
id: number;
|
|
245
|
+
};
|
|
246
|
+
signer: {
|
|
247
|
+
type: string;
|
|
248
|
+
id: number;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
passive_block_data: {
|
|
253
|
+
fields: {};
|
|
254
|
+
};
|
|
255
|
+
block_header: {
|
|
256
|
+
fields: {
|
|
257
|
+
previous: {
|
|
258
|
+
type: string;
|
|
259
|
+
id: number;
|
|
260
|
+
options: {
|
|
261
|
+
"(koinos_bytes_type)": string;
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
height: {
|
|
265
|
+
type: string;
|
|
266
|
+
id: number;
|
|
267
|
+
options: {
|
|
268
|
+
jstype: string;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
timestamp: {
|
|
272
|
+
type: string;
|
|
273
|
+
id: number; /**
|
|
274
|
+
* ABI for tokens
|
|
275
|
+
*/
|
|
276
|
+
options: {
|
|
277
|
+
jstype: string;
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
block: {
|
|
283
|
+
fields: {
|
|
284
|
+
id: {
|
|
285
|
+
type: string;
|
|
286
|
+
id: number;
|
|
287
|
+
options: {
|
|
288
|
+
"(koinos_bytes_type)": string;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
header: {
|
|
292
|
+
type: string;
|
|
293
|
+
id: number;
|
|
294
|
+
};
|
|
295
|
+
active: {
|
|
296
|
+
type: string;
|
|
297
|
+
id: number;
|
|
298
|
+
};
|
|
299
|
+
passive: {
|
|
300
|
+
type: string;
|
|
301
|
+
id: number;
|
|
302
|
+
};
|
|
303
|
+
signature_data: {
|
|
304
|
+
type: string;
|
|
305
|
+
id: number;
|
|
306
|
+
};
|
|
307
|
+
transactions: {
|
|
308
|
+
rule: string;
|
|
309
|
+
type: string;
|
|
310
|
+
id: number;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
block_receipt: {
|
|
315
|
+
fields: {};
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
};
|
package/lib/utils.js
CHANGED
|
@@ -22,11 +22,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
22
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.Krc20Abi = exports.parseUnits = exports.formatUnits = exports.bitcoinAddress = exports.bitcoinDecode = exports.copyUint8Array = exports.bitcoinEncode = exports.decodeBase64 = exports.encodeBase64 = exports.decodeBase58 = exports.encodeBase58 = exports.toHexString = exports.toUint8Array = void 0;
|
|
25
|
+
exports.ProtocolTypes = exports.Krc20Abi = exports.parseUnits = exports.formatUnits = exports.bitcoinAddress = exports.bitcoinDecode = exports.copyUint8Array = exports.bitcoinEncode = exports.decodeBase64 = exports.encodeBase64 = exports.decodeBase58 = exports.encodeBase58 = exports.toHexString = exports.toUint8Array = void 0;
|
|
26
26
|
const multibase = __importStar(require("multibase"));
|
|
27
27
|
const js_sha256_1 = require("js-sha256");
|
|
28
28
|
const noble_ripemd160_1 = __importDefault(require("noble-ripemd160"));
|
|
29
|
-
const krc20_proto_json_1 = __importDefault(require("./krc20-proto.json"));
|
|
29
|
+
const krc20_proto_json_1 = __importDefault(require("./jsonDescriptors/krc20-proto.json"));
|
|
30
|
+
const protocol_proto_json_1 = __importDefault(require("./jsonDescriptors/protocol-proto.json"));
|
|
30
31
|
/**
|
|
31
32
|
* Converts an hex string to Uint8Array
|
|
32
33
|
*/
|
|
@@ -254,4 +255,5 @@ exports.Krc20Abi = {
|
|
|
254
255
|
},
|
|
255
256
|
types: krc20_proto_json_1.default,
|
|
256
257
|
};
|
|
258
|
+
exports.ProtocolTypes = protocol_proto_json_1.default;
|
|
257
259
|
//# sourceMappingURL=utils.js.map
|
package/lib/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAuC;AACvC,yCAAmC;AACnC,sEAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAuC;AACvC,yCAAmC;AACnC,sEAAwC;AACxC,0FAAgE;AAChE,gGAAiE;AAGjE;;GAEG;AACH,SAAgB,YAAY,CAAC,GAAW;IACtC,MAAM,KAAK,GAAG,GAAG,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AAE;YACR,UAAU,EAAE,UAAU;YACtB,KAAK,EAAE,oBAAoB;YAC3B,MAAM,EAAE,iBAAiB;SAC1B;QACD,IAAI,EAAE;YACJ,UAAU,EAAE,UAAU;YACtB,KAAK,EAAE,gBAAgB;YACvB,MAAM,EAAE,aAAa;SACtB;KACF;IACD,KAAK,EAAE,0BAAc;CACtB,CAAC;AAEW,QAAA,aAAa,GAAG,6BAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koilib",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "JS Koinos Library",
|
|
5
5
|
"author": "Julian Gonzalez",
|
|
6
6
|
"repository": {
|
|
@@ -23,9 +23,7 @@
|
|
|
23
23
|
"bundle": "yarn bundle:no-min && yarn bundle:min",
|
|
24
24
|
"bundle:min": "webpack --mode=production --config webpack.prod.config.js",
|
|
25
25
|
"bundle:no-min": "webpack --mode=production --config webpack.dev.config.js",
|
|
26
|
-
"docs": "
|
|
27
|
-
"docs:generate": "typedoc src/index.ts --includeVersion",
|
|
28
|
-
"docs:post": "node -e \"require('fs').rename('docs/index.html', 'docs/main.html', console.log)\" && copyfiles -f tests/index.html docs && copyfiles -f tests/assets-index/* docs/assets-index && copyfiles -f dist/koinos.min.js docs/assets-index",
|
|
26
|
+
"docs": "typedoc src/index.ts --includeVersion",
|
|
29
27
|
"clean": "rimraf dist coverage",
|
|
30
28
|
"lint": "yarn lint:prettier && yarn lint:eslint && yarn lint:tsc",
|
|
31
29
|
"lint:prettier": "prettier . --check",
|