@sentio/sdk 2.59.0-rc.4 → 2.59.0-rc.40
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/lib/aptos/api.d.ts +1 -0
- package/lib/aptos/api.d.ts.map +1 -1
- package/lib/aptos/api.js +13 -1
- package/lib/aptos/api.js.map +1 -1
- package/lib/aptos/aptos-plugin.d.ts +8 -4
- package/lib/aptos/aptos-plugin.d.ts.map +1 -1
- package/lib/aptos/aptos-plugin.js +51 -8
- package/lib/aptos/aptos-plugin.js.map +1 -1
- package/lib/aptos/aptos-processor.d.ts +21 -19
- package/lib/aptos/aptos-processor.d.ts.map +1 -1
- package/lib/aptos/aptos-processor.js +102 -50
- package/lib/aptos/aptos-processor.js.map +1 -1
- package/lib/aptos/aptos-resource-processor-template.d.ts +5 -4
- package/lib/aptos/aptos-resource-processor-template.d.ts.map +1 -1
- package/lib/aptos/aptos-resource-processor-template.js +8 -8
- package/lib/aptos/aptos-resource-processor-template.js.map +1 -1
- package/lib/aptos/builtin/0x1.d.ts +333 -332
- package/lib/aptos/builtin/0x1.d.ts.map +1 -1
- package/lib/aptos/builtin/0x1.js +664 -664
- package/lib/aptos/builtin/0x1.js.map +1 -1
- package/lib/aptos/builtin/0x3.d.ts +66 -65
- package/lib/aptos/builtin/0x3.d.ts.map +1 -1
- package/lib/aptos/builtin/0x3.js +130 -130
- package/lib/aptos/builtin/0x3.js.map +1 -1
- package/lib/aptos/builtin/0x4.d.ts +29 -28
- package/lib/aptos/builtin/0x4.d.ts.map +1 -1
- package/lib/aptos/builtin/0x4.js +56 -56
- package/lib/aptos/builtin/0x4.js.map +1 -1
- package/lib/aptos/codegen/codegen.js +31 -4
- package/lib/aptos/codegen/codegen.js.map +1 -1
- package/lib/aptos/data.d.ts +45 -0
- package/lib/aptos/data.d.ts.map +1 -0
- package/lib/aptos/data.js +99 -0
- package/lib/aptos/data.js.map +1 -0
- package/lib/aptos/index.d.ts +1 -0
- package/lib/aptos/index.d.ts.map +1 -1
- package/lib/aptos/index.js.map +1 -1
- package/lib/aptos/models.d.ts +1 -0
- package/lib/aptos/models.d.ts.map +1 -1
- package/lib/aptos/move-coder.d.ts +8 -2
- package/lib/aptos/move-coder.d.ts.map +1 -1
- package/lib/aptos/move-coder.js +84 -1
- package/lib/aptos/move-coder.js.map +1 -1
- package/lib/aptos/network.d.ts +1 -0
- package/lib/aptos/network.d.ts.map +1 -1
- package/lib/aptos/network.js +1 -0
- package/lib/aptos/network.js.map +1 -1
- package/lib/btc/btc-plugin.d.ts +4 -1
- package/lib/btc/btc-plugin.d.ts.map +1 -1
- package/lib/btc/btc-plugin.js +27 -0
- package/lib/btc/btc-plugin.js.map +1 -1
- package/lib/btc/btc-processor.d.ts +6 -5
- package/lib/btc/btc-processor.d.ts.map +1 -1
- package/lib/btc/btc-processor.js +35 -9
- package/lib/btc/btc-processor.js.map +1 -1
- package/lib/btc/types.d.ts +2 -1
- package/lib/btc/types.d.ts.map +1 -1
- package/lib/core/base-context.d.ts +4 -2
- package/lib/core/base-context.d.ts.map +1 -1
- package/lib/core/base-context.js +10 -5
- package/lib/core/base-context.js.map +1 -1
- package/lib/core/event-logger.d.ts +5 -0
- package/lib/core/event-logger.d.ts.map +1 -1
- package/lib/core/event-logger.js +36 -1
- package/lib/core/event-logger.js.map +1 -1
- package/lib/core/handler-options.d.ts +25 -0
- package/lib/core/handler-options.d.ts.map +1 -0
- package/lib/core/handler-options.js +21 -0
- package/lib/core/handler-options.js.map +1 -0
- package/lib/core/index.d.ts +3 -1
- package/lib/core/index.d.ts.map +1 -1
- package/lib/core/index.js +3 -1
- package/lib/core/index.js.map +1 -1
- package/lib/core/meter.d.ts +45 -2
- package/lib/core/meter.d.ts.map +1 -1
- package/lib/core/meter.js +124 -2
- package/lib/core/meter.js.map +1 -1
- package/lib/core/numberish.d.ts +2 -1
- package/lib/core/numberish.d.ts.map +1 -1
- package/lib/core/numberish.js +35 -1
- package/lib/core/numberish.js.map +1 -1
- package/lib/core/partition-handler-manager.d.ts +44 -0
- package/lib/core/partition-handler-manager.d.ts.map +1 -0
- package/lib/core/partition-handler-manager.js +76 -0
- package/lib/core/partition-handler-manager.js.map +1 -0
- package/lib/cosmos/cosmos-processor.d.ts +3 -2
- package/lib/cosmos/cosmos-processor.d.ts.map +1 -1
- package/lib/cosmos/cosmos-processor.js +11 -1
- package/lib/cosmos/cosmos-processor.js.map +1 -1
- package/lib/cosmos/types.d.ts +1 -0
- package/lib/cosmos/types.d.ts.map +1 -1
- package/lib/eth/base-processor.d.ts +23 -17
- package/lib/eth/base-processor.d.ts.map +1 -1
- package/lib/eth/base-processor.js +173 -34
- package/lib/eth/base-processor.js.map +1 -1
- package/lib/eth/bind-options.d.ts +6 -0
- package/lib/eth/bind-options.d.ts.map +1 -1
- package/lib/eth/bind-options.js +2 -0
- package/lib/eth/bind-options.js.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts +32 -31
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js +62 -62
- package/lib/eth/builtin/internal/eacaggregatorproxy-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.d.ts +17 -16
- package/lib/eth/builtin/internal/erc1155-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc1155-processor.js +32 -32
- package/lib/eth/builtin/internal/erc1155-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.d.ts +25 -24
- package/lib/eth/builtin/internal/erc20-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc20-processor.js +48 -48
- package/lib/eth/builtin/internal/erc20-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.d.ts +14 -13
- package/lib/eth/builtin/internal/erc20bytes-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc20bytes-processor.js +26 -26
- package/lib/eth/builtin/internal/erc20bytes-processor.js.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.d.ts +21 -20
- package/lib/eth/builtin/internal/erc721-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/erc721-processor.js +40 -40
- package/lib/eth/builtin/internal/erc721-processor.js.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.d.ts +20 -19
- package/lib/eth/builtin/internal/weth9-processor.d.ts.map +1 -1
- package/lib/eth/builtin/internal/weth9-processor.js +38 -38
- package/lib/eth/builtin/internal/weth9-processor.js.map +1 -1
- package/lib/eth/codegen/event-handler.js +2 -2
- package/lib/eth/codegen/event-handler.js.map +1 -1
- package/lib/eth/codegen/file.d.ts.map +1 -1
- package/lib/eth/codegen/file.js +1 -0
- package/lib/eth/codegen/file.js.map +1 -1
- package/lib/eth/codegen/functions-handler.js +2 -2
- package/lib/eth/codegen/functions-handler.js.map +1 -1
- package/lib/eth/eth-plugin.d.ts +5 -1
- package/lib/eth/eth-plugin.d.ts.map +1 -1
- package/lib/eth/eth-plugin.js +53 -5
- package/lib/eth/eth-plugin.js.map +1 -1
- package/lib/eth/eth.d.ts +2 -7
- package/lib/eth/eth.d.ts.map +1 -1
- package/lib/eth/eth.js +8 -1
- package/lib/eth/eth.js.map +1 -1
- package/lib/fuel/codegen/codegen.js +5 -5
- package/lib/fuel/codegen/codegen.js.map +1 -1
- package/lib/fuel/fuel-plugin.d.ts +4 -1
- package/lib/fuel/fuel-plugin.d.ts.map +1 -1
- package/lib/fuel/fuel-plugin.js +41 -0
- package/lib/fuel/fuel-plugin.js.map +1 -1
- package/lib/fuel/fuel-processor-template.d.ts +7 -4
- package/lib/fuel/fuel-processor-template.d.ts.map +1 -1
- package/lib/fuel/fuel-processor-template.js +11 -9
- package/lib/fuel/fuel-processor-template.js.map +1 -1
- package/lib/fuel/fuel-processor.d.ts +7 -7
- package/lib/fuel/fuel-processor.d.ts.map +1 -1
- package/lib/fuel/fuel-processor.js +91 -28
- package/lib/fuel/fuel-processor.js.map +1 -1
- package/lib/fuel/types.d.ts +3 -0
- package/lib/fuel/types.d.ts.map +1 -1
- package/lib/move/filter.d.ts +5 -0
- package/lib/move/filter.d.ts.map +1 -1
- package/lib/move/filter.js +5 -0
- package/lib/move/filter.js.map +1 -1
- package/lib/move/shared-network-codegen.d.ts.map +1 -1
- package/lib/move/shared-network-codegen.js +5 -4
- package/lib/move/shared-network-codegen.js.map +1 -1
- package/lib/solana/solana-processor.d.ts +10 -4
- package/lib/solana/solana-processor.d.ts.map +1 -1
- package/lib/solana/solana-processor.js +13 -4
- package/lib/solana/solana-processor.js.map +1 -1
- package/lib/stark/starknet-processor.d.ts +3 -1
- package/lib/stark/starknet-processor.d.ts.map +1 -1
- package/lib/stark/starknet-processor.js +32 -14
- package/lib/stark/starknet-processor.js.map +1 -1
- package/lib/store/codegen.d.ts.map +1 -1
- package/lib/store/codegen.js +36 -2
- package/lib/store/codegen.js.map +1 -1
- package/lib/store/schema.d.ts.map +1 -1
- package/lib/store/schema.js +3 -1
- package/lib/store/schema.js.map +1 -1
- package/lib/store/store.d.ts +4 -3
- package/lib/store/store.d.ts.map +1 -1
- package/lib/store/store.js +41 -1
- package/lib/store/store.js.map +1 -1
- package/lib/store/types.d.ts +20 -1
- package/lib/store/types.d.ts.map +1 -1
- package/lib/store/types.js +22 -0
- package/lib/store/types.js.map +1 -1
- package/lib/sui/builtin/0x1.d.ts +7 -6
- package/lib/sui/builtin/0x1.d.ts.map +1 -1
- package/lib/sui/builtin/0x1.js +12 -12
- package/lib/sui/builtin/0x1.js.map +1 -1
- package/lib/sui/builtin/0x2.d.ts +61 -60
- package/lib/sui/builtin/0x2.d.ts.map +1 -1
- package/lib/sui/builtin/0x2.js +120 -120
- package/lib/sui/builtin/0x2.js.map +1 -1
- package/lib/sui/builtin/0x3.d.ts +49 -48
- package/lib/sui/builtin/0x3.d.ts.map +1 -1
- package/lib/sui/builtin/0x3.js +96 -96
- package/lib/sui/builtin/0x3.js.map +1 -1
- package/lib/sui/models.d.ts +1 -0
- package/lib/sui/models.d.ts.map +1 -1
- package/lib/sui/sui-object-processor-template.js +1 -1
- package/lib/sui/sui-object-processor-template.js.map +1 -1
- package/lib/sui/sui-object-processor.d.ts +2 -0
- package/lib/sui/sui-object-processor.d.ts.map +1 -1
- package/lib/sui/sui-object-processor.js +4 -0
- package/lib/sui/sui-object-processor.js.map +1 -1
- package/lib/sui/sui-plugin.d.ts +6 -3
- package/lib/sui/sui-plugin.d.ts.map +1 -1
- package/lib/sui/sui-plugin.js +68 -24
- package/lib/sui/sui-plugin.js.map +1 -1
- package/lib/sui/sui-processor.d.ts +6 -4
- package/lib/sui/sui-processor.d.ts.map +1 -1
- package/lib/sui/sui-processor.js +48 -11
- package/lib/sui/sui-processor.js.map +1 -1
- package/lib/testing/eth-facet.d.ts +2 -1
- package/lib/testing/eth-facet.d.ts.map +1 -1
- package/lib/testing/eth-facet.js.map +1 -1
- package/lib/utils/block.d.ts +2 -0
- package/lib/utils/block.d.ts.map +1 -1
- package/lib/utils/block.js +13 -0
- package/lib/utils/block.js.map +1 -1
- package/package.json +7 -6
- package/src/aptos/api.ts +13 -1
- package/src/aptos/aptos-plugin.ts +62 -13
- package/src/aptos/aptos-processor.ts +114 -74
- package/src/aptos/aptos-resource-processor-template.ts +9 -8
- package/src/aptos/builtin/0x1.ts +1566 -664
- package/src/aptos/builtin/0x3.ts +303 -130
- package/src/aptos/builtin/0x4.ts +124 -56
- package/src/aptos/codegen/codegen.ts +40 -5
- package/src/aptos/data.ts +123 -0
- package/src/aptos/index.ts +2 -0
- package/src/aptos/models.ts +2 -0
- package/src/aptos/move-coder.ts +96 -3
- package/src/aptos/network.ts +1 -0
- package/src/btc/btc-plugin.ts +38 -0
- package/src/btc/btc-processor.ts +35 -10
- package/src/btc/types.ts +2 -1
- package/src/core/base-context.ts +10 -5
- package/src/core/event-logger.ts +45 -1
- package/src/core/handler-options.ts +40 -0
- package/src/core/index.ts +17 -1
- package/src/core/meter.ts +159 -4
- package/src/core/numberish.ts +34 -1
- package/src/core/partition-handler-manager.ts +94 -0
- package/src/cosmos/cosmos-processor.ts +12 -1
- package/src/cosmos/types.ts +1 -0
- package/src/eth/base-processor.ts +163 -41
- package/src/eth/bind-options.ts +7 -0
- package/src/eth/builtin/internal/eacaggregatorproxy-processor.ts +118 -62
- package/src/eth/builtin/internal/erc1155-processor.ts +76 -32
- package/src/eth/builtin/internal/erc20-processor.ts +79 -48
- package/src/eth/builtin/internal/erc20bytes-processor.ts +47 -26
- package/src/eth/builtin/internal/erc721-processor.ts +77 -40
- package/src/eth/builtin/internal/weth9-processor.ts +79 -38
- package/src/eth/codegen/event-handler.ts +2 -2
- package/src/eth/codegen/file.ts +1 -0
- package/src/eth/codegen/functions-handler.ts +2 -2
- package/src/eth/eth-plugin.ts +76 -10
- package/src/eth/eth.ts +12 -1
- package/src/fuel/codegen/codegen.ts +5 -5
- package/src/fuel/fuel-plugin.ts +56 -0
- package/src/fuel/fuel-processor-template.ts +17 -10
- package/src/fuel/fuel-processor.ts +90 -22
- package/src/fuel/types.ts +3 -0
- package/src/move/filter.ts +5 -0
- package/src/move/shared-network-codegen.ts +5 -4
- package/src/solana/solana-processor.ts +28 -6
- package/src/stark/starknet-processor.ts +31 -13
- package/src/store/codegen.ts +50 -2
- package/src/store/schema.ts +3 -1
- package/src/store/store.ts +57 -4
- package/src/store/types.ts +30 -1
- package/src/sui/builtin/0x1.ts +22 -12
- package/src/sui/builtin/0x2.ts +220 -120
- package/src/sui/builtin/0x3.ts +241 -96
- package/src/sui/models.ts +2 -0
- package/src/sui/sui-object-processor-template.ts +1 -1
- package/src/sui/sui-object-processor.ts +6 -0
- package/src/sui/sui-plugin.ts +77 -26
- package/src/sui/sui-processor.ts +50 -11
- package/src/testing/eth-facet.ts +2 -1
- package/src/utils/block.ts +15 -0
package/src/aptos/builtin/0x4.ts
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
/* Generated types for 0x4, original address 0x4 */
|
6
6
|
|
7
7
|
import { CallFilter, MoveFetchConfig, EventFilter } from "@sentio/sdk/move";
|
8
|
+
import { HandlerOptions } from "@sentio/sdk";
|
8
9
|
import {
|
9
10
|
AptosBindOptions,
|
10
11
|
AptosBaseProcessor,
|
@@ -25,6 +26,7 @@ import {
|
|
25
26
|
InputGenerateTransactionOptions,
|
26
27
|
MoveStructId,
|
27
28
|
InputViewFunctionData,
|
29
|
+
InputViewFunctionJsonData,
|
28
30
|
} from "@aptos-labs/ts-sdk";
|
29
31
|
|
30
32
|
import * as _0x1 from "./0x1.js";
|
@@ -44,26 +46,29 @@ export class token extends AptosBaseProcessor {
|
|
44
46
|
|
45
47
|
onEventMutation(
|
46
48
|
func: (event: token.MutationInstance, ctx: AptosContext) => void,
|
47
|
-
|
49
|
+
handlerOptions?: HandlerOptions<MoveFetchConfig, token.MutationInstance>,
|
48
50
|
eventFilter?: Omit<EventFilter, "type" | "account">,
|
49
51
|
): token {
|
50
52
|
this.onMoveEvent(
|
51
53
|
func,
|
52
54
|
{ ...(eventFilter ?? {}), type: "token::Mutation" },
|
53
|
-
|
55
|
+
handlerOptions,
|
54
56
|
);
|
55
57
|
return this;
|
56
58
|
}
|
57
59
|
|
58
60
|
onEventMutationEvent(
|
59
61
|
func: (event: token.MutationEventInstance, ctx: AptosContext) => void,
|
60
|
-
|
62
|
+
handlerOptions?: HandlerOptions<
|
63
|
+
MoveFetchConfig,
|
64
|
+
token.MutationEventInstance
|
65
|
+
>,
|
61
66
|
eventFilter?: Omit<EventFilter, "type" | "account">,
|
62
67
|
): token {
|
63
68
|
this.onMoveEvent(
|
64
69
|
func,
|
65
70
|
{ ...(eventFilter ?? {}), type: "token::MutationEvent" },
|
66
|
-
|
71
|
+
handlerOptions,
|
67
72
|
);
|
68
73
|
return this;
|
69
74
|
}
|
@@ -445,26 +450,29 @@ export class collection extends AptosBaseProcessor {
|
|
445
450
|
|
446
451
|
onEventBurn(
|
447
452
|
func: (event: collection.BurnInstance, ctx: AptosContext) => void,
|
448
|
-
|
453
|
+
handlerOptions?: HandlerOptions<MoveFetchConfig, collection.BurnInstance>,
|
449
454
|
eventFilter?: Omit<EventFilter, "type" | "account">,
|
450
455
|
): collection {
|
451
456
|
this.onMoveEvent(
|
452
457
|
func,
|
453
458
|
{ ...(eventFilter ?? {}), type: "collection::Burn" },
|
454
|
-
|
459
|
+
handlerOptions,
|
455
460
|
);
|
456
461
|
return this;
|
457
462
|
}
|
458
463
|
|
459
464
|
onEventBurnEvent(
|
460
465
|
func: (event: collection.BurnEventInstance, ctx: AptosContext) => void,
|
461
|
-
|
466
|
+
handlerOptions?: HandlerOptions<
|
467
|
+
MoveFetchConfig,
|
468
|
+
collection.BurnEventInstance
|
469
|
+
>,
|
462
470
|
eventFilter?: Omit<EventFilter, "type" | "account">,
|
463
471
|
): collection {
|
464
472
|
this.onMoveEvent(
|
465
473
|
func,
|
466
474
|
{ ...(eventFilter ?? {}), type: "collection::BurnEvent" },
|
467
|
-
|
475
|
+
handlerOptions,
|
468
476
|
);
|
469
477
|
return this;
|
470
478
|
}
|
@@ -474,13 +482,16 @@ export class collection extends AptosBaseProcessor {
|
|
474
482
|
event: collection.ConcurrentBurnEventInstance,
|
475
483
|
ctx: AptosContext,
|
476
484
|
) => void,
|
477
|
-
|
485
|
+
handlerOptions?: HandlerOptions<
|
486
|
+
MoveFetchConfig,
|
487
|
+
collection.ConcurrentBurnEventInstance
|
488
|
+
>,
|
478
489
|
eventFilter?: Omit<EventFilter, "type" | "account">,
|
479
490
|
): collection {
|
480
491
|
this.onMoveEvent(
|
481
492
|
func,
|
482
493
|
{ ...(eventFilter ?? {}), type: "collection::ConcurrentBurnEvent" },
|
483
|
-
|
494
|
+
handlerOptions,
|
484
495
|
);
|
485
496
|
return this;
|
486
497
|
}
|
@@ -490,78 +501,93 @@ export class collection extends AptosBaseProcessor {
|
|
490
501
|
event: collection.ConcurrentMintEventInstance,
|
491
502
|
ctx: AptosContext,
|
492
503
|
) => void,
|
493
|
-
|
504
|
+
handlerOptions?: HandlerOptions<
|
505
|
+
MoveFetchConfig,
|
506
|
+
collection.ConcurrentMintEventInstance
|
507
|
+
>,
|
494
508
|
eventFilter?: Omit<EventFilter, "type" | "account">,
|
495
509
|
): collection {
|
496
510
|
this.onMoveEvent(
|
497
511
|
func,
|
498
512
|
{ ...(eventFilter ?? {}), type: "collection::ConcurrentMintEvent" },
|
499
|
-
|
513
|
+
handlerOptions,
|
500
514
|
);
|
501
515
|
return this;
|
502
516
|
}
|
503
517
|
|
504
518
|
onEventMint(
|
505
519
|
func: (event: collection.MintInstance, ctx: AptosContext) => void,
|
506
|
-
|
520
|
+
handlerOptions?: HandlerOptions<MoveFetchConfig, collection.MintInstance>,
|
507
521
|
eventFilter?: Omit<EventFilter, "type" | "account">,
|
508
522
|
): collection {
|
509
523
|
this.onMoveEvent(
|
510
524
|
func,
|
511
525
|
{ ...(eventFilter ?? {}), type: "collection::Mint" },
|
512
|
-
|
526
|
+
handlerOptions,
|
513
527
|
);
|
514
528
|
return this;
|
515
529
|
}
|
516
530
|
|
517
531
|
onEventMintEvent(
|
518
532
|
func: (event: collection.MintEventInstance, ctx: AptosContext) => void,
|
519
|
-
|
533
|
+
handlerOptions?: HandlerOptions<
|
534
|
+
MoveFetchConfig,
|
535
|
+
collection.MintEventInstance
|
536
|
+
>,
|
520
537
|
eventFilter?: Omit<EventFilter, "type" | "account">,
|
521
538
|
): collection {
|
522
539
|
this.onMoveEvent(
|
523
540
|
func,
|
524
541
|
{ ...(eventFilter ?? {}), type: "collection::MintEvent" },
|
525
|
-
|
542
|
+
handlerOptions,
|
526
543
|
);
|
527
544
|
return this;
|
528
545
|
}
|
529
546
|
|
530
547
|
onEventMutation(
|
531
548
|
func: (event: collection.MutationInstance, ctx: AptosContext) => void,
|
532
|
-
|
549
|
+
handlerOptions?: HandlerOptions<
|
550
|
+
MoveFetchConfig,
|
551
|
+
collection.MutationInstance
|
552
|
+
>,
|
533
553
|
eventFilter?: Omit<EventFilter, "type" | "account">,
|
534
554
|
): collection {
|
535
555
|
this.onMoveEvent(
|
536
556
|
func,
|
537
557
|
{ ...(eventFilter ?? {}), type: "collection::Mutation" },
|
538
|
-
|
558
|
+
handlerOptions,
|
539
559
|
);
|
540
560
|
return this;
|
541
561
|
}
|
542
562
|
|
543
563
|
onEventMutationEvent(
|
544
564
|
func: (event: collection.MutationEventInstance, ctx: AptosContext) => void,
|
545
|
-
|
565
|
+
handlerOptions?: HandlerOptions<
|
566
|
+
MoveFetchConfig,
|
567
|
+
collection.MutationEventInstance
|
568
|
+
>,
|
546
569
|
eventFilter?: Omit<EventFilter, "type" | "account">,
|
547
570
|
): collection {
|
548
571
|
this.onMoveEvent(
|
549
572
|
func,
|
550
573
|
{ ...(eventFilter ?? {}), type: "collection::MutationEvent" },
|
551
|
-
|
574
|
+
handlerOptions,
|
552
575
|
);
|
553
576
|
return this;
|
554
577
|
}
|
555
578
|
|
556
579
|
onEventSetMaxSupply(
|
557
580
|
func: (event: collection.SetMaxSupplyInstance, ctx: AptosContext) => void,
|
558
|
-
|
581
|
+
handlerOptions?: HandlerOptions<
|
582
|
+
MoveFetchConfig,
|
583
|
+
collection.SetMaxSupplyInstance
|
584
|
+
>,
|
559
585
|
eventFilter?: Omit<EventFilter, "type" | "account">,
|
560
586
|
): collection {
|
561
587
|
this.onMoveEvent(
|
562
588
|
func,
|
563
589
|
{ ...(eventFilter ?? {}), type: "collection::SetMaxSupply" },
|
564
|
-
|
590
|
+
handlerOptions,
|
565
591
|
);
|
566
592
|
return this;
|
567
593
|
}
|
@@ -974,7 +1000,7 @@ export class aptos_token extends AptosBaseProcessor {
|
|
974
1000
|
onEntryBurn(
|
975
1001
|
func: (call: aptos_token.BurnPayload, ctx: AptosContext) => void,
|
976
1002
|
filter?: CallFilter,
|
977
|
-
|
1003
|
+
handlerOptions?: HandlerOptions<MoveFetchConfig, aptos_token.BurnPayload>,
|
978
1004
|
): aptos_token {
|
979
1005
|
this.onEntryFunctionCall(
|
980
1006
|
func,
|
@@ -982,7 +1008,7 @@ export class aptos_token extends AptosBaseProcessor {
|
|
982
1008
|
...filter,
|
983
1009
|
function: "aptos_token::burn",
|
984
1010
|
},
|
985
|
-
|
1011
|
+
handlerOptions,
|
986
1012
|
);
|
987
1013
|
return this;
|
988
1014
|
}
|
@@ -990,7 +1016,7 @@ export class aptos_token extends AptosBaseProcessor {
|
|
990
1016
|
onEntryMint(
|
991
1017
|
func: (call: aptos_token.MintPayload, ctx: AptosContext) => void,
|
992
1018
|
filter?: CallFilter,
|
993
|
-
|
1019
|
+
handlerOptions?: HandlerOptions<MoveFetchConfig, aptos_token.MintPayload>,
|
994
1020
|
): aptos_token {
|
995
1021
|
this.onEntryFunctionCall(
|
996
1022
|
func,
|
@@ -998,7 +1024,7 @@ export class aptos_token extends AptosBaseProcessor {
|
|
998
1024
|
...filter,
|
999
1025
|
function: "aptos_token::mint",
|
1000
1026
|
},
|
1001
|
-
|
1027
|
+
handlerOptions,
|
1002
1028
|
);
|
1003
1029
|
return this;
|
1004
1030
|
}
|
@@ -1006,7 +1032,10 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1006
1032
|
onEntrySetDescription(
|
1007
1033
|
func: (call: aptos_token.SetDescriptionPayload, ctx: AptosContext) => void,
|
1008
1034
|
filter?: CallFilter,
|
1009
|
-
|
1035
|
+
handlerOptions?: HandlerOptions<
|
1036
|
+
MoveFetchConfig,
|
1037
|
+
aptos_token.SetDescriptionPayload
|
1038
|
+
>,
|
1010
1039
|
): aptos_token {
|
1011
1040
|
this.onEntryFunctionCall(
|
1012
1041
|
func,
|
@@ -1014,7 +1043,7 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1014
1043
|
...filter,
|
1015
1044
|
function: "aptos_token::set_description",
|
1016
1045
|
},
|
1017
|
-
|
1046
|
+
handlerOptions,
|
1018
1047
|
);
|
1019
1048
|
return this;
|
1020
1049
|
}
|
@@ -1022,7 +1051,10 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1022
1051
|
onEntrySetName(
|
1023
1052
|
func: (call: aptos_token.SetNamePayload, ctx: AptosContext) => void,
|
1024
1053
|
filter?: CallFilter,
|
1025
|
-
|
1054
|
+
handlerOptions?: HandlerOptions<
|
1055
|
+
MoveFetchConfig,
|
1056
|
+
aptos_token.SetNamePayload
|
1057
|
+
>,
|
1026
1058
|
): aptos_token {
|
1027
1059
|
this.onEntryFunctionCall(
|
1028
1060
|
func,
|
@@ -1030,7 +1062,7 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1030
1062
|
...filter,
|
1031
1063
|
function: "aptos_token::set_name",
|
1032
1064
|
},
|
1033
|
-
|
1065
|
+
handlerOptions,
|
1034
1066
|
);
|
1035
1067
|
return this;
|
1036
1068
|
}
|
@@ -1038,7 +1070,7 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1038
1070
|
onEntrySetUri(
|
1039
1071
|
func: (call: aptos_token.SetUriPayload, ctx: AptosContext) => void,
|
1040
1072
|
filter?: CallFilter,
|
1041
|
-
|
1073
|
+
handlerOptions?: HandlerOptions<MoveFetchConfig, aptos_token.SetUriPayload>,
|
1042
1074
|
): aptos_token {
|
1043
1075
|
this.onEntryFunctionCall(
|
1044
1076
|
func,
|
@@ -1046,7 +1078,7 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1046
1078
|
...filter,
|
1047
1079
|
function: "aptos_token::set_uri",
|
1048
1080
|
},
|
1049
|
-
|
1081
|
+
handlerOptions,
|
1050
1082
|
);
|
1051
1083
|
return this;
|
1052
1084
|
}
|
@@ -1054,7 +1086,10 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1054
1086
|
onEntryAddProperty(
|
1055
1087
|
func: (call: aptos_token.AddPropertyPayload, ctx: AptosContext) => void,
|
1056
1088
|
filter?: CallFilter,
|
1057
|
-
|
1089
|
+
handlerOptions?: HandlerOptions<
|
1090
|
+
MoveFetchConfig,
|
1091
|
+
aptos_token.AddPropertyPayload
|
1092
|
+
>,
|
1058
1093
|
): aptos_token {
|
1059
1094
|
this.onEntryFunctionCall(
|
1060
1095
|
func,
|
@@ -1062,7 +1097,7 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1062
1097
|
...filter,
|
1063
1098
|
function: "aptos_token::add_property",
|
1064
1099
|
},
|
1065
|
-
|
1100
|
+
handlerOptions,
|
1066
1101
|
);
|
1067
1102
|
return this;
|
1068
1103
|
}
|
@@ -1073,7 +1108,10 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1073
1108
|
ctx: AptosContext,
|
1074
1109
|
) => void,
|
1075
1110
|
filter?: CallFilter,
|
1076
|
-
|
1111
|
+
handlerOptions?: HandlerOptions<
|
1112
|
+
MoveFetchConfig,
|
1113
|
+
aptos_token.AddTypedPropertyPayload
|
1114
|
+
>,
|
1077
1115
|
): aptos_token {
|
1078
1116
|
this.onEntryFunctionCall(
|
1079
1117
|
func,
|
@@ -1081,7 +1119,7 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1081
1119
|
...filter,
|
1082
1120
|
function: "aptos_token::add_typed_property",
|
1083
1121
|
},
|
1084
|
-
|
1122
|
+
handlerOptions,
|
1085
1123
|
);
|
1086
1124
|
return this;
|
1087
1125
|
}
|
@@ -1092,7 +1130,10 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1092
1130
|
ctx: AptosContext,
|
1093
1131
|
) => void,
|
1094
1132
|
filter?: CallFilter,
|
1095
|
-
|
1133
|
+
handlerOptions?: HandlerOptions<
|
1134
|
+
MoveFetchConfig,
|
1135
|
+
aptos_token.CreateCollectionPayload
|
1136
|
+
>,
|
1096
1137
|
): aptos_token {
|
1097
1138
|
this.onEntryFunctionCall(
|
1098
1139
|
func,
|
@@ -1100,7 +1141,7 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1100
1141
|
...filter,
|
1101
1142
|
function: "aptos_token::create_collection",
|
1102
1143
|
},
|
1103
|
-
|
1144
|
+
handlerOptions,
|
1104
1145
|
);
|
1105
1146
|
return this;
|
1106
1147
|
}
|
@@ -1108,7 +1149,10 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1108
1149
|
onEntryFreezeTransfer(
|
1109
1150
|
func: (call: aptos_token.FreezeTransferPayload, ctx: AptosContext) => void,
|
1110
1151
|
filter?: CallFilter,
|
1111
|
-
|
1152
|
+
handlerOptions?: HandlerOptions<
|
1153
|
+
MoveFetchConfig,
|
1154
|
+
aptos_token.FreezeTransferPayload
|
1155
|
+
>,
|
1112
1156
|
): aptos_token {
|
1113
1157
|
this.onEntryFunctionCall(
|
1114
1158
|
func,
|
@@ -1116,7 +1160,7 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1116
1160
|
...filter,
|
1117
1161
|
function: "aptos_token::freeze_transfer",
|
1118
1162
|
},
|
1119
|
-
|
1163
|
+
handlerOptions,
|
1120
1164
|
);
|
1121
1165
|
return this;
|
1122
1166
|
}
|
@@ -1124,7 +1168,10 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1124
1168
|
onEntryMintSoulBound(
|
1125
1169
|
func: (call: aptos_token.MintSoulBoundPayload, ctx: AptosContext) => void,
|
1126
1170
|
filter?: CallFilter,
|
1127
|
-
|
1171
|
+
handlerOptions?: HandlerOptions<
|
1172
|
+
MoveFetchConfig,
|
1173
|
+
aptos_token.MintSoulBoundPayload
|
1174
|
+
>,
|
1128
1175
|
): aptos_token {
|
1129
1176
|
this.onEntryFunctionCall(
|
1130
1177
|
func,
|
@@ -1132,7 +1179,7 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1132
1179
|
...filter,
|
1133
1180
|
function: "aptos_token::mint_soul_bound",
|
1134
1181
|
},
|
1135
|
-
|
1182
|
+
handlerOptions,
|
1136
1183
|
);
|
1137
1184
|
return this;
|
1138
1185
|
}
|
@@ -1140,7 +1187,10 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1140
1187
|
onEntryRemoveProperty(
|
1141
1188
|
func: (call: aptos_token.RemovePropertyPayload, ctx: AptosContext) => void,
|
1142
1189
|
filter?: CallFilter,
|
1143
|
-
|
1190
|
+
handlerOptions?: HandlerOptions<
|
1191
|
+
MoveFetchConfig,
|
1192
|
+
aptos_token.RemovePropertyPayload
|
1193
|
+
>,
|
1144
1194
|
): aptos_token {
|
1145
1195
|
this.onEntryFunctionCall(
|
1146
1196
|
func,
|
@@ -1148,7 +1198,7 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1148
1198
|
...filter,
|
1149
1199
|
function: "aptos_token::remove_property",
|
1150
1200
|
},
|
1151
|
-
|
1201
|
+
handlerOptions,
|
1152
1202
|
);
|
1153
1203
|
return this;
|
1154
1204
|
}
|
@@ -1159,7 +1209,10 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1159
1209
|
ctx: AptosContext,
|
1160
1210
|
) => void,
|
1161
1211
|
filter?: CallFilter,
|
1162
|
-
|
1212
|
+
handlerOptions?: HandlerOptions<
|
1213
|
+
MoveFetchConfig,
|
1214
|
+
aptos_token.SetCollectionDescriptionPayload
|
1215
|
+
>,
|
1163
1216
|
): aptos_token {
|
1164
1217
|
this.onEntryFunctionCall(
|
1165
1218
|
func,
|
@@ -1167,7 +1220,7 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1167
1220
|
...filter,
|
1168
1221
|
function: "aptos_token::set_collection_description",
|
1169
1222
|
},
|
1170
|
-
|
1223
|
+
handlerOptions,
|
1171
1224
|
);
|
1172
1225
|
return this;
|
1173
1226
|
}
|
@@ -1178,7 +1231,10 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1178
1231
|
ctx: AptosContext,
|
1179
1232
|
) => void,
|
1180
1233
|
filter?: CallFilter,
|
1181
|
-
|
1234
|
+
handlerOptions?: HandlerOptions<
|
1235
|
+
MoveFetchConfig,
|
1236
|
+
aptos_token.SetCollectionRoyaltiesCallPayload
|
1237
|
+
>,
|
1182
1238
|
): aptos_token {
|
1183
1239
|
this.onEntryFunctionCall(
|
1184
1240
|
func,
|
@@ -1186,7 +1242,7 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1186
1242
|
...filter,
|
1187
1243
|
function: "aptos_token::set_collection_royalties_call",
|
1188
1244
|
},
|
1189
|
-
|
1245
|
+
handlerOptions,
|
1190
1246
|
);
|
1191
1247
|
return this;
|
1192
1248
|
}
|
@@ -1197,7 +1253,10 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1197
1253
|
ctx: AptosContext,
|
1198
1254
|
) => void,
|
1199
1255
|
filter?: CallFilter,
|
1200
|
-
|
1256
|
+
handlerOptions?: HandlerOptions<
|
1257
|
+
MoveFetchConfig,
|
1258
|
+
aptos_token.SetCollectionUriPayload
|
1259
|
+
>,
|
1201
1260
|
): aptos_token {
|
1202
1261
|
this.onEntryFunctionCall(
|
1203
1262
|
func,
|
@@ -1205,7 +1264,7 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1205
1264
|
...filter,
|
1206
1265
|
function: "aptos_token::set_collection_uri",
|
1207
1266
|
},
|
1208
|
-
|
1267
|
+
handlerOptions,
|
1209
1268
|
);
|
1210
1269
|
return this;
|
1211
1270
|
}
|
@@ -1216,7 +1275,10 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1216
1275
|
ctx: AptosContext,
|
1217
1276
|
) => void,
|
1218
1277
|
filter?: CallFilter,
|
1219
|
-
|
1278
|
+
handlerOptions?: HandlerOptions<
|
1279
|
+
MoveFetchConfig,
|
1280
|
+
aptos_token.UnfreezeTransferPayload
|
1281
|
+
>,
|
1220
1282
|
): aptos_token {
|
1221
1283
|
this.onEntryFunctionCall(
|
1222
1284
|
func,
|
@@ -1224,7 +1286,7 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1224
1286
|
...filter,
|
1225
1287
|
function: "aptos_token::unfreeze_transfer",
|
1226
1288
|
},
|
1227
|
-
|
1289
|
+
handlerOptions,
|
1228
1290
|
);
|
1229
1291
|
return this;
|
1230
1292
|
}
|
@@ -1232,7 +1294,10 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1232
1294
|
onEntryUpdateProperty(
|
1233
1295
|
func: (call: aptos_token.UpdatePropertyPayload, ctx: AptosContext) => void,
|
1234
1296
|
filter?: CallFilter,
|
1235
|
-
|
1297
|
+
handlerOptions?: HandlerOptions<
|
1298
|
+
MoveFetchConfig,
|
1299
|
+
aptos_token.UpdatePropertyPayload
|
1300
|
+
>,
|
1236
1301
|
): aptos_token {
|
1237
1302
|
this.onEntryFunctionCall(
|
1238
1303
|
func,
|
@@ -1240,7 +1305,7 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1240
1305
|
...filter,
|
1241
1306
|
function: "aptos_token::update_property",
|
1242
1307
|
},
|
1243
|
-
|
1308
|
+
handlerOptions,
|
1244
1309
|
);
|
1245
1310
|
return this;
|
1246
1311
|
}
|
@@ -1251,7 +1316,10 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1251
1316
|
ctx: AptosContext,
|
1252
1317
|
) => void,
|
1253
1318
|
filter?: CallFilter,
|
1254
|
-
|
1319
|
+
handlerOptions?: HandlerOptions<
|
1320
|
+
MoveFetchConfig,
|
1321
|
+
aptos_token.UpdateTypedPropertyPayload
|
1322
|
+
>,
|
1255
1323
|
): aptos_token {
|
1256
1324
|
this.onEntryFunctionCall(
|
1257
1325
|
func,
|
@@ -1259,7 +1327,7 @@ export class aptos_token extends AptosBaseProcessor {
|
|
1259
1327
|
...filter,
|
1260
1328
|
function: "aptos_token::update_typed_property",
|
1261
1329
|
},
|
1262
|
-
|
1330
|
+
handlerOptions,
|
1263
1331
|
);
|
1264
1332
|
return this;
|
1265
1333
|
}
|
@@ -2,7 +2,7 @@ import * as fs from 'fs'
|
|
2
2
|
import chalk from 'chalk'
|
3
3
|
import path, { join } from 'path'
|
4
4
|
import { AptosCodegen as BaseAptosCodegen } from '@typemove/aptos/codegen'
|
5
|
-
import { InternalMoveModule, InternalMoveStruct } from '@typemove/move'
|
5
|
+
import { InternalMoveModule, InternalMoveStruct, normalizeToJSName, camel, upperFirst } from '@typemove/move'
|
6
6
|
import { AptosNetwork, getRpcEndpoint } from '../network.js'
|
7
7
|
import { Event, MoveModuleBytecode, MoveResource } from '@aptos-labs/ts-sdk'
|
8
8
|
import { SharedNetworkCodegen } from '../../move/shared-network-codegen.js'
|
@@ -26,9 +26,9 @@ class AptosNetworkCodegen extends BaseAptosCodegen {
|
|
26
26
|
moduleGenerator: SharedNetworkCodegen<AptosNetwork, MoveModuleBytecode, Event | MoveResource>
|
27
27
|
SYSTEM_PACKAGE = '@sentio/sdk/aptos'
|
28
28
|
|
29
|
-
constructor(network: AptosNetwork) {
|
29
|
+
constructor(network: AptosNetwork, useViewJson = false) {
|
30
30
|
const endpoint = getRpcEndpoint(network)
|
31
|
-
super(endpoint)
|
31
|
+
super(endpoint, useViewJson)
|
32
32
|
const generator = this
|
33
33
|
|
34
34
|
this.moduleGenerator = new (class extends SharedNetworkCodegen<
|
@@ -48,12 +48,46 @@ class AptosNetworkCodegen extends BaseAptosCodegen {
|
|
48
48
|
generateStructs(module: InternalMoveModule, struct: InternalMoveStruct, events: Set<string>) {
|
49
49
|
return generator.generateStructs(module, struct, events)
|
50
50
|
}
|
51
|
+
|
52
|
+
generateForOnEvents(module: InternalMoveModule, struct: InternalMoveStruct): string {
|
53
|
+
const moduleName = normalizeToJSName(module.name)
|
54
|
+
const source = `
|
55
|
+
onEvent${struct.name}(func: (event: ${moduleName}.${normalizeToJSName(struct.name)}Instance, ctx: ${
|
56
|
+
this.PREFIX
|
57
|
+
}Context) => void, handlerOptions?: HandlerOptions<MoveFetchConfig, ${moduleName}.${normalizeToJSName(struct.name)}Instance>, eventFilter?: Omit<EventFilter, "type"|"account">): ${moduleName} {
|
58
|
+
this.onMoveEvent(func, {...eventFilter ?? {}, type: '${module.name}::${struct.name}' }, handlerOptions)
|
59
|
+
return this
|
60
|
+
}`
|
61
|
+
return source
|
62
|
+
}
|
63
|
+
|
64
|
+
generateForEntryFunctions(module: InternalMoveModule, func: any): string {
|
65
|
+
if (!func.isEntry) {
|
66
|
+
return ''
|
67
|
+
}
|
68
|
+
|
69
|
+
const moduleName = normalizeToJSName(module.name)
|
70
|
+
const camelFuncName = upperFirst(camel(func.name))
|
71
|
+
|
72
|
+
const source = `
|
73
|
+
onEntry${camelFuncName}(func: (call: ${moduleName}.${camelFuncName}Payload, ctx: ${this.PREFIX}Context) => void, filter?: CallFilter, handlerOptions?: HandlerOptions<MoveFetchConfig, ${moduleName}.${camelFuncName}Payload>): ${moduleName} {
|
74
|
+
this.onEntryFunctionCall(func, {
|
75
|
+
...filter,
|
76
|
+
function: '${module.name}::${func.name}'
|
77
|
+
},
|
78
|
+
handlerOptions)
|
79
|
+
return this
|
80
|
+
}`
|
81
|
+
|
82
|
+
return source
|
83
|
+
}
|
51
84
|
})(network, this.chainAdapter)
|
52
85
|
}
|
53
86
|
|
54
87
|
protected getGetDefaultCoder() {
|
55
88
|
return `defaultMoveCoderForClient(client)`
|
56
89
|
}
|
90
|
+
|
57
91
|
generateModule(module: InternalMoveModule, allEventStructs: Map<string, InternalMoveStruct>) {
|
58
92
|
return this.moduleGenerator.generateModule(module, allEventStructs)
|
59
93
|
}
|
@@ -67,9 +101,10 @@ class AptosNetworkCodegen extends BaseAptosCodegen {
|
|
67
101
|
MoveCoder, TypedEventInstance } from "@typemove/${this.PREFIX.toLowerCase()}"
|
68
102
|
|
69
103
|
import { defaultMoveCoder, defaultMoveCoderForClient } from "${this.defaultCoderPackage()}"
|
70
|
-
import { Aptos, Account as AptosAccount, MoveAddressType, PendingTransactionResponse, InputGenerateTransactionOptions, MoveStructId, InputViewFunctionData } from '@aptos-labs/ts-sdk'`
|
104
|
+
import { Aptos, Account as AptosAccount, MoveAddressType, PendingTransactionResponse, InputGenerateTransactionOptions, MoveStructId, InputViewFunctionData, InputViewFunctionJsonData } from '@aptos-labs/ts-sdk'`
|
71
105
|
)
|
72
106
|
}
|
107
|
+
|
73
108
|
generateLoadAll(isSystem: boolean): string {
|
74
109
|
return this.moduleGenerator.generateLoadAll(isSystem)
|
75
110
|
}
|
@@ -79,7 +114,7 @@ const ADDRESS_LENGTH = 64
|
|
79
114
|
|
80
115
|
class InitiaAptosNetworkCodegen extends AptosNetworkCodegen {
|
81
116
|
constructor(network: AptosNetwork) {
|
82
|
-
super(network)
|
117
|
+
super(network, true)
|
83
118
|
|
84
119
|
const oldFetchModules = this.chainAdapter.fetchModules.bind(this.chainAdapter)
|
85
120
|
this.chainAdapter.fetchModules = async (address: string) => {
|