@certik/skynet 0.10.66 → 0.11.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.
- package/.eslintrc.json +21 -0
- package/.prettierrc.json +4 -0
- package/CHANGELOG.md +10 -0
- package/abi.js +237 -242
- package/ably.d.ts +1 -0
- package/ably.js +5 -10
- package/address.d.ts +1 -1
- package/address.js +2 -7
- package/api.d.ts +1 -1
- package/api.js +8 -9
- package/app.js +12 -11
- package/availability.js +3 -9
- package/block.js +6 -7
- package/bun.lockb +0 -0
- package/cli.js +3 -3
- package/const.js +2 -2
- package/date.js +2 -2
- package/deploy.js +12 -15
- package/distributed-lock.js +1 -5
- package/dns.js +2 -4
- package/dynamodb.js +64 -47
- package/env.js +1 -1
- package/examples/{api → api.js} +1 -1
- package/examples/{consumer → consumer.js} +1 -1
- package/examples/{indexer → indexer.js} +3 -3
- package/examples/{mode-indexer → mode-indexer.js} +1 -1
- package/examples/{producer → producer.js} +1 -1
- package/graphql.d.ts +0 -2
- package/graphql.js +1 -7
- package/indexer.js +12 -10
- package/kafka.js +12 -11
- package/log.js +1 -1
- package/metric.js +3 -8
- package/monitor.js +9 -8
- package/opensearch.js +3 -8
- package/opsgenie.js +2 -5
- package/package.json +26 -21
- package/price.js +10 -12
- package/primitive.js +2 -1
- package/proxy.d.ts +0 -2
- package/proxy.js +1 -4
- package/s3.js +23 -20
- package/scan.js +3 -4
- package/selector.js +1 -1
- package/slack.js +2 -2
- package/snowflake.js +4 -4
- package/sqs.js +3 -5
- package/token.js +4 -4
- package/transaction.js +3 -4
- package/util.js +1 -1
- package/web3.js +5 -5
- package/.eslintrc.js +0 -13
- package/.prettierrc.js +0 -3
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"node": true,
|
|
4
|
+
"browser": false,
|
|
5
|
+
"es2021": true
|
|
6
|
+
},
|
|
7
|
+
"extends": ["eslint:recommended", "plugin:import/recommended"],
|
|
8
|
+
"parserOptions": {
|
|
9
|
+
"ecmaVersion": "latest",
|
|
10
|
+
"sourceType": "module"
|
|
11
|
+
},
|
|
12
|
+
"settings": {
|
|
13
|
+
"import/core-modules": ["ava", "meow"],
|
|
14
|
+
"import/resolver": {
|
|
15
|
+
"node": {
|
|
16
|
+
"extensions": [".js", ".jsx", ".ts", ".tsx"]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"rules": {}
|
|
21
|
+
}
|
package/.prettierrc.json
ADDED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.11.1
|
|
4
|
+
|
|
5
|
+
- Fixed: missing option for meow
|
|
6
|
+
- Added: exported common dynamodb command to improve usability
|
|
7
|
+
|
|
8
|
+
## 0.11.0
|
|
9
|
+
|
|
10
|
+
- BREAKING: Converted package to modules
|
|
11
|
+
- BREAKING: Upgraded aws-sdk dependency to v3
|
|
12
|
+
|
|
3
13
|
## 0.10.66
|
|
4
14
|
|
|
5
15
|
- Added: supported bun as a package manager for indexers
|
package/abi.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const ERC20 = [
|
|
1
|
+
export const ERC20 = [
|
|
2
2
|
{
|
|
3
3
|
constant: true,
|
|
4
4
|
inputs: [],
|
|
@@ -221,354 +221,354 @@ const ERC20 = [
|
|
|
221
221
|
},
|
|
222
222
|
];
|
|
223
223
|
|
|
224
|
-
const ERC721 = [
|
|
224
|
+
export const ERC721 = [
|
|
225
225
|
{
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
anonymous: false,
|
|
227
|
+
inputs: [
|
|
228
228
|
{
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
229
|
+
indexed: true,
|
|
230
|
+
internalType: "address",
|
|
231
|
+
name: "owner",
|
|
232
|
+
type: "address",
|
|
233
233
|
},
|
|
234
234
|
{
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
235
|
+
indexed: true,
|
|
236
|
+
internalType: "address",
|
|
237
|
+
name: "approved",
|
|
238
|
+
type: "address",
|
|
239
239
|
},
|
|
240
240
|
{
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}
|
|
241
|
+
indexed: true,
|
|
242
|
+
internalType: "uint256",
|
|
243
|
+
name: "tokenId",
|
|
244
|
+
type: "uint256",
|
|
245
|
+
},
|
|
246
246
|
],
|
|
247
|
-
|
|
248
|
-
|
|
247
|
+
name: "Approval",
|
|
248
|
+
type: "event",
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
|
-
|
|
252
|
-
|
|
251
|
+
anonymous: false,
|
|
252
|
+
inputs: [
|
|
253
253
|
{
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
254
|
+
indexed: true,
|
|
255
|
+
internalType: "address",
|
|
256
|
+
name: "owner",
|
|
257
|
+
type: "address",
|
|
258
258
|
},
|
|
259
259
|
{
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
260
|
+
indexed: true,
|
|
261
|
+
internalType: "address",
|
|
262
|
+
name: "operator",
|
|
263
|
+
type: "address",
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}
|
|
266
|
+
indexed: false,
|
|
267
|
+
internalType: "bool",
|
|
268
|
+
name: "approved",
|
|
269
|
+
type: "bool",
|
|
270
|
+
},
|
|
271
271
|
],
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
name: "ApprovalForAll",
|
|
273
|
+
type: "event",
|
|
274
274
|
},
|
|
275
275
|
{
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
anonymous: false,
|
|
277
|
+
inputs: [
|
|
278
278
|
{
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
279
|
+
indexed: true,
|
|
280
|
+
internalType: "address",
|
|
281
|
+
name: "from",
|
|
282
|
+
type: "address",
|
|
283
283
|
},
|
|
284
284
|
{
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
285
|
+
indexed: true,
|
|
286
|
+
internalType: "address",
|
|
287
|
+
name: "to",
|
|
288
|
+
type: "address",
|
|
289
289
|
},
|
|
290
290
|
{
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}
|
|
291
|
+
indexed: true,
|
|
292
|
+
internalType: "uint256",
|
|
293
|
+
name: "tokenId",
|
|
294
|
+
type: "uint256",
|
|
295
|
+
},
|
|
296
296
|
],
|
|
297
|
-
|
|
298
|
-
|
|
297
|
+
name: "Transfer",
|
|
298
|
+
type: "event",
|
|
299
299
|
},
|
|
300
300
|
{
|
|
301
|
-
|
|
301
|
+
inputs: [
|
|
302
302
|
{
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
303
|
+
internalType: "address",
|
|
304
|
+
name: "to",
|
|
305
|
+
type: "address",
|
|
306
306
|
},
|
|
307
307
|
{
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}
|
|
308
|
+
internalType: "uint256",
|
|
309
|
+
name: "tokenId",
|
|
310
|
+
type: "uint256",
|
|
311
|
+
},
|
|
312
312
|
],
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
313
|
+
name: "approve",
|
|
314
|
+
outputs: [],
|
|
315
|
+
stateMutability: "nonpayable",
|
|
316
|
+
type: "function",
|
|
317
317
|
},
|
|
318
318
|
{
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
319
|
+
constant: true,
|
|
320
|
+
inputs: [],
|
|
321
|
+
name: "totalSupply",
|
|
322
|
+
outputs: [
|
|
323
323
|
{
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
}
|
|
324
|
+
name: "",
|
|
325
|
+
type: "uint256",
|
|
326
|
+
},
|
|
327
327
|
],
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
328
|
+
payable: false,
|
|
329
|
+
stateMutability: "view",
|
|
330
|
+
type: "function",
|
|
331
331
|
},
|
|
332
332
|
{
|
|
333
|
-
|
|
333
|
+
inputs: [
|
|
334
334
|
{
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
}
|
|
335
|
+
internalType: "address",
|
|
336
|
+
name: "owner",
|
|
337
|
+
type: "address",
|
|
338
|
+
},
|
|
339
339
|
],
|
|
340
|
-
|
|
341
|
-
|
|
340
|
+
name: "balanceOf",
|
|
341
|
+
outputs: [
|
|
342
342
|
{
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
}
|
|
343
|
+
internalType: "uint256",
|
|
344
|
+
name: "balance",
|
|
345
|
+
type: "uint256",
|
|
346
|
+
},
|
|
347
347
|
],
|
|
348
|
-
|
|
349
|
-
|
|
348
|
+
stateMutability: "view",
|
|
349
|
+
type: "function",
|
|
350
350
|
},
|
|
351
351
|
{
|
|
352
|
-
|
|
352
|
+
inputs: [
|
|
353
353
|
{
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
}
|
|
354
|
+
internalType: "uint256",
|
|
355
|
+
name: "tokenId",
|
|
356
|
+
type: "uint256",
|
|
357
|
+
},
|
|
358
358
|
],
|
|
359
|
-
|
|
360
|
-
|
|
359
|
+
name: "getApproved",
|
|
360
|
+
outputs: [
|
|
361
361
|
{
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
}
|
|
362
|
+
internalType: "address",
|
|
363
|
+
name: "operator",
|
|
364
|
+
type: "address",
|
|
365
|
+
},
|
|
366
366
|
],
|
|
367
|
-
|
|
368
|
-
|
|
367
|
+
stateMutability: "view",
|
|
368
|
+
type: "function",
|
|
369
369
|
},
|
|
370
370
|
{
|
|
371
|
-
|
|
371
|
+
inputs: [
|
|
372
372
|
{
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
373
|
+
internalType: "address",
|
|
374
|
+
name: "owner",
|
|
375
|
+
type: "address",
|
|
376
376
|
},
|
|
377
377
|
{
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
}
|
|
378
|
+
internalType: "address",
|
|
379
|
+
name: "operator",
|
|
380
|
+
type: "address",
|
|
381
|
+
},
|
|
382
382
|
],
|
|
383
|
-
|
|
384
|
-
|
|
383
|
+
name: "isApprovedForAll",
|
|
384
|
+
outputs: [
|
|
385
385
|
{
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
}
|
|
386
|
+
internalType: "bool",
|
|
387
|
+
name: "",
|
|
388
|
+
type: "bool",
|
|
389
|
+
},
|
|
390
390
|
],
|
|
391
|
-
|
|
392
|
-
|
|
391
|
+
stateMutability: "view",
|
|
392
|
+
type: "function",
|
|
393
393
|
},
|
|
394
394
|
{
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
395
|
+
inputs: [],
|
|
396
|
+
name: "name",
|
|
397
|
+
outputs: [
|
|
398
398
|
{
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
}
|
|
399
|
+
internalType: "string",
|
|
400
|
+
name: "",
|
|
401
|
+
type: "string",
|
|
402
|
+
},
|
|
403
403
|
],
|
|
404
|
-
|
|
405
|
-
|
|
404
|
+
stateMutability: "view",
|
|
405
|
+
type: "function",
|
|
406
406
|
},
|
|
407
407
|
{
|
|
408
|
-
|
|
408
|
+
inputs: [
|
|
409
409
|
{
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
}
|
|
410
|
+
internalType: "uint256",
|
|
411
|
+
name: "tokenId",
|
|
412
|
+
type: "uint256",
|
|
413
|
+
},
|
|
414
414
|
],
|
|
415
|
-
|
|
416
|
-
|
|
415
|
+
name: "ownerOf",
|
|
416
|
+
outputs: [
|
|
417
417
|
{
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
}
|
|
418
|
+
internalType: "address",
|
|
419
|
+
name: "owner",
|
|
420
|
+
type: "address",
|
|
421
|
+
},
|
|
422
422
|
],
|
|
423
|
-
|
|
424
|
-
|
|
423
|
+
stateMutability: "view",
|
|
424
|
+
type: "function",
|
|
425
425
|
},
|
|
426
426
|
{
|
|
427
|
-
|
|
427
|
+
inputs: [
|
|
428
428
|
{
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
429
|
+
internalType: "address",
|
|
430
|
+
name: "from",
|
|
431
|
+
type: "address",
|
|
432
432
|
},
|
|
433
433
|
{
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
434
|
+
internalType: "address",
|
|
435
|
+
name: "to",
|
|
436
|
+
type: "address",
|
|
437
437
|
},
|
|
438
438
|
{
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
}
|
|
439
|
+
internalType: "uint256",
|
|
440
|
+
name: "tokenId",
|
|
441
|
+
type: "uint256",
|
|
442
|
+
},
|
|
443
443
|
],
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
444
|
+
name: "safeTransferFrom",
|
|
445
|
+
outputs: [],
|
|
446
|
+
stateMutability: "nonpayable",
|
|
447
|
+
type: "function",
|
|
448
448
|
},
|
|
449
449
|
{
|
|
450
|
-
|
|
450
|
+
inputs: [
|
|
451
451
|
{
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
452
|
+
internalType: "address",
|
|
453
|
+
name: "from",
|
|
454
|
+
type: "address",
|
|
455
455
|
},
|
|
456
456
|
{
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
457
|
+
internalType: "address",
|
|
458
|
+
name: "to",
|
|
459
|
+
type: "address",
|
|
460
460
|
},
|
|
461
461
|
{
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
462
|
+
internalType: "uint256",
|
|
463
|
+
name: "tokenId",
|
|
464
|
+
type: "uint256",
|
|
465
465
|
},
|
|
466
466
|
{
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
}
|
|
467
|
+
internalType: "bytes",
|
|
468
|
+
name: "data",
|
|
469
|
+
type: "bytes",
|
|
470
|
+
},
|
|
471
471
|
],
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
472
|
+
name: "safeTransferFrom",
|
|
473
|
+
outputs: [],
|
|
474
|
+
stateMutability: "nonpayable",
|
|
475
|
+
type: "function",
|
|
476
476
|
},
|
|
477
477
|
{
|
|
478
|
-
|
|
478
|
+
inputs: [
|
|
479
479
|
{
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
480
|
+
internalType: "address",
|
|
481
|
+
name: "operator",
|
|
482
|
+
type: "address",
|
|
483
483
|
},
|
|
484
484
|
{
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
}
|
|
485
|
+
internalType: "bool",
|
|
486
|
+
name: "_approved",
|
|
487
|
+
type: "bool",
|
|
488
|
+
},
|
|
489
489
|
],
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
490
|
+
name: "setApprovalForAll",
|
|
491
|
+
outputs: [],
|
|
492
|
+
stateMutability: "nonpayable",
|
|
493
|
+
type: "function",
|
|
494
494
|
},
|
|
495
495
|
{
|
|
496
|
-
|
|
496
|
+
inputs: [
|
|
497
497
|
{
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
}
|
|
498
|
+
internalType: "bytes4",
|
|
499
|
+
name: "interfaceId",
|
|
500
|
+
type: "bytes4",
|
|
501
|
+
},
|
|
502
502
|
],
|
|
503
|
-
|
|
504
|
-
|
|
503
|
+
name: "supportsInterface",
|
|
504
|
+
outputs: [
|
|
505
505
|
{
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
}
|
|
506
|
+
internalType: "bool",
|
|
507
|
+
name: "",
|
|
508
|
+
type: "bool",
|
|
509
|
+
},
|
|
510
510
|
],
|
|
511
|
-
|
|
512
|
-
|
|
511
|
+
stateMutability: "view",
|
|
512
|
+
type: "function",
|
|
513
513
|
},
|
|
514
514
|
{
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
515
|
+
inputs: [],
|
|
516
|
+
name: "symbol",
|
|
517
|
+
outputs: [
|
|
518
518
|
{
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
}
|
|
519
|
+
internalType: "string",
|
|
520
|
+
name: "",
|
|
521
|
+
type: "string",
|
|
522
|
+
},
|
|
523
523
|
],
|
|
524
|
-
|
|
525
|
-
|
|
524
|
+
stateMutability: "view",
|
|
525
|
+
type: "function",
|
|
526
526
|
},
|
|
527
527
|
{
|
|
528
|
-
|
|
528
|
+
inputs: [
|
|
529
529
|
{
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
}
|
|
530
|
+
internalType: "uint256",
|
|
531
|
+
name: "tokenId",
|
|
532
|
+
type: "uint256",
|
|
533
|
+
},
|
|
534
534
|
],
|
|
535
|
-
|
|
536
|
-
|
|
535
|
+
name: "tokenURI",
|
|
536
|
+
outputs: [
|
|
537
537
|
{
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
}
|
|
538
|
+
internalType: "string",
|
|
539
|
+
name: "",
|
|
540
|
+
type: "string",
|
|
541
|
+
},
|
|
542
542
|
],
|
|
543
|
-
|
|
544
|
-
|
|
543
|
+
stateMutability: "view",
|
|
544
|
+
type: "function",
|
|
545
545
|
},
|
|
546
546
|
{
|
|
547
|
-
|
|
547
|
+
inputs: [
|
|
548
548
|
{
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
549
|
+
internalType: "address",
|
|
550
|
+
name: "from",
|
|
551
|
+
type: "address",
|
|
552
552
|
},
|
|
553
553
|
{
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
554
|
+
internalType: "address",
|
|
555
|
+
name: "to",
|
|
556
|
+
type: "address",
|
|
557
557
|
},
|
|
558
558
|
{
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
}
|
|
559
|
+
internalType: "uint256",
|
|
560
|
+
name: "tokenId",
|
|
561
|
+
type: "uint256",
|
|
562
|
+
},
|
|
563
563
|
],
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
}
|
|
564
|
+
name: "transferFrom",
|
|
565
|
+
outputs: [],
|
|
566
|
+
stateMutability: "nonpayable",
|
|
567
|
+
type: "function",
|
|
568
|
+
},
|
|
569
569
|
];
|
|
570
570
|
|
|
571
|
-
const MULTICALL = [
|
|
571
|
+
export const MULTICALL = [
|
|
572
572
|
{
|
|
573
573
|
inputs: [{ internalType: "address", name: "_addr", type: "address" }],
|
|
574
574
|
name: "callBalanceOf",
|
|
@@ -693,9 +693,4 @@ const MULTICALL = [
|
|
|
693
693
|
},
|
|
694
694
|
];
|
|
695
695
|
|
|
696
|
-
|
|
697
|
-
MULTICALL,
|
|
698
|
-
ERC20,
|
|
699
|
-
ERC721,
|
|
700
|
-
BEP20: ERC20,
|
|
701
|
-
};
|
|
696
|
+
export const BEP20 = ERC20;
|
package/ably.d.ts
CHANGED