@sentio/sdk 2.0.0-rc.13 → 2.0.0-rc.15
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 +5 -0
- package/lib/aptos/api.js +21 -0
- package/lib/aptos/api.js.map +1 -0
- package/lib/aptos/aptos-plugin.d.ts +14 -0
- package/lib/aptos/aptos-plugin.js +146 -0
- package/lib/aptos/aptos-plugin.js.map +1 -0
- package/lib/aptos/aptos-processor.d.ts +72 -0
- package/lib/aptos/aptos-processor.js +201 -0
- package/lib/aptos/aptos-processor.js.map +1 -0
- package/lib/aptos/builtin/0x1.d.ts +2140 -0
- package/lib/aptos/builtin/0x1.js +2727 -0
- package/lib/aptos/builtin/0x1.js.map +1 -0
- package/lib/aptos/builtin/0x3.d.ts +573 -0
- package/lib/aptos/builtin/0x3.js +496 -0
- package/lib/aptos/builtin/0x3.js.map +1 -0
- package/lib/aptos/builtin/index.d.ts +2 -0
- package/lib/aptos/builtin/index.js +6 -0
- package/lib/aptos/builtin/index.js.map +1 -0
- package/lib/aptos/codegen/codegen.d.ts +23 -0
- package/lib/aptos/codegen/codegen.js +388 -0
- package/lib/aptos/codegen/codegen.js.map +1 -0
- package/lib/aptos/codegen/index.d.ts +1 -0
- package/lib/aptos/codegen/index.js +2 -0
- package/lib/aptos/codegen/index.js.map +1 -0
- package/lib/aptos/codegen/typegen.d.ts +18 -0
- package/lib/aptos/codegen/typegen.js +145 -0
- package/lib/aptos/codegen/typegen.js.map +1 -0
- package/lib/aptos/codegen/typegen.test.d.ts +1 -0
- package/lib/aptos/codegen/typegen.test.js.map +1 -0
- package/lib/aptos/context.d.ts +21 -0
- package/lib/aptos/context.js +59 -0
- package/lib/aptos/context.js.map +1 -0
- package/lib/aptos/index.d.ts +9 -0
- package/lib/aptos/index.js +8 -0
- package/lib/aptos/index.js.map +1 -0
- package/lib/aptos/models.d.ts +37 -0
- package/lib/aptos/models.js +2 -0
- package/lib/aptos/models.js.map +1 -0
- package/lib/aptos/move-coder.d.ts +22 -0
- package/lib/aptos/move-coder.js +164 -0
- package/lib/aptos/move-coder.js.map +1 -0
- package/lib/aptos/move-types.d.ts +10 -0
- package/lib/aptos/move-types.js +2 -0
- package/lib/aptos/move-types.js.map +1 -0
- package/lib/aptos/network.d.ts +11 -0
- package/lib/aptos/network.js +27 -0
- package/lib/aptos/network.js.map +1 -0
- package/lib/aptos/run-codegen.d.ts +1 -0
- package/lib/aptos/run-codegen.js +12 -0
- package/lib/aptos/run-codegen.js.map +1 -0
- package/lib/aptos/tests/aptos.test.d.ts +1 -0
- package/lib/aptos/tests/aptos.test.js.map +1 -0
- package/lib/aptos/tests/souffl3.d.ts +1 -0
- package/lib/aptos/tests/souffl3.js +44 -0
- package/lib/aptos/tests/souffl3.js.map +1 -0
- package/lib/aptos/tests/types/index.d.ts +3 -0
- package/lib/aptos/tests/types/index.js +7 -0
- package/lib/aptos/tests/types/index.js.map +1 -0
- package/lib/aptos/tests/types/reserved.d.ts +445 -0
- package/lib/aptos/tests/types/reserved.js +301 -0
- package/lib/aptos/tests/types/reserved.js.map +1 -0
- package/lib/aptos/tests/types/soffl3.d.ts +1065 -0
- package/lib/aptos/tests/types/soffl3.js +548 -0
- package/lib/aptos/tests/types/soffl3.js.map +1 -0
- package/lib/aptos/tests/types/souffle.d.ts +440 -0
- package/lib/aptos/tests/types/souffle.js +295 -0
- package/lib/aptos/tests/types/souffle.js.map +1 -0
- package/lib/aptos/types.d.ts +9 -0
- package/lib/aptos/types.js +130 -0
- package/lib/aptos/types.js.map +1 -0
- package/lib/aptos/types.test.d.ts +1 -0
- package/lib/aptos/types.test.js.map +1 -0
- package/lib/aptos/utils.d.ts +7 -0
- package/lib/aptos/utils.js +20 -0
- package/lib/aptos/utils.js.map +1 -0
- package/lib/builtin/internal/eacaggregatorproxy_processor.js +90 -180
- package/lib/builtin/internal/eacaggregatorproxy_processor.js.map +1 -1
- package/lib/builtin/internal/erc1155_processor.js +25 -50
- package/lib/builtin/internal/erc1155_processor.js.map +1 -1
- package/lib/builtin/internal/erc20_processor.js +40 -80
- package/lib/builtin/internal/erc20_processor.js.map +1 -1
- package/lib/builtin/internal/erc20bytes_processor.js +30 -60
- package/lib/builtin/internal/erc20bytes_processor.js.map +1 -1
- package/lib/builtin/internal/erc721_processor.js +45 -90
- package/lib/builtin/internal/erc721_processor.js.map +1 -1
- package/lib/builtin/internal/weth9_processor.js +30 -60
- package/lib/builtin/internal/weth9_processor.js.map +1 -1
- package/lib/{utils/chain.d.ts → chain.d.ts} +0 -0
- package/lib/{utils/chain.js → chain.js} +0 -0
- package/lib/chain.js.map +1 -0
- package/lib/core/context.js +1 -1
- package/lib/core/context.js.map +1 -1
- package/lib/core/sui-plugin.js +1 -1
- package/lib/core/sui-plugin.js.map +1 -1
- package/lib/error.d.ts +1 -1
- package/lib/error.js +10 -12
- package/lib/error.js.map +1 -1
- package/lib/eth/base-processor-template.d.ts +3 -3
- package/lib/eth/base-processor-template.js.map +1 -1
- package/lib/eth/base-processor.d.ts +3 -3
- package/lib/eth/base-processor.js.map +1 -1
- package/lib/eth/{eth-event.d.ts → eth.d.ts} +1 -1
- package/lib/eth/eth.js +2 -0
- package/lib/eth/eth.js.map +1 -0
- package/lib/eth/index.d.ts +1 -0
- package/lib/eth/index.js +1 -0
- package/lib/eth/index.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/solana/builtin/index.d.ts +1 -0
- package/lib/solana/builtin/index.js +2 -0
- package/lib/solana/builtin/index.js.map +1 -0
- package/lib/solana/builtin/spl-token-processor.d.ts +39 -0
- package/lib/solana/builtin/spl-token-processor.js +254 -0
- package/lib/solana/builtin/spl-token-processor.js.map +1 -0
- package/lib/solana/builtin/types.d.ts +427 -0
- package/lib/solana/builtin/types.js +200 -0
- package/lib/solana/builtin/types.js.map +1 -0
- package/lib/solana/codegen/codegen.d.ts +1 -0
- package/lib/solana/codegen/codegen.js +122 -0
- package/lib/solana/codegen/codegen.js.map +1 -0
- package/lib/solana/codegen/index.d.ts +1 -0
- package/lib/solana/codegen/index.js +2 -0
- package/lib/solana/codegen/index.js.map +1 -0
- package/lib/solana/index.d.ts +4 -0
- package/lib/solana/index.js +5 -0
- package/lib/solana/index.js.map +1 -0
- package/lib/solana/run-codegen.d.ts +2 -0
- package/lib/solana/run-codegen.js +12 -0
- package/lib/solana/run-codegen.js.map +1 -0
- package/lib/solana/solana-context.d.ts +9 -0
- package/lib/solana/solana-context.js +28 -0
- package/lib/solana/solana-context.js.map +1 -0
- package/lib/solana/solana-options.d.ts +10 -0
- package/lib/solana/solana-options.js +10 -0
- package/lib/solana/solana-options.js.map +1 -0
- package/lib/solana/solana-plugin.d.ts +9 -0
- package/lib/solana/solana-plugin.js +87 -0
- package/lib/solana/solana-plugin.js.map +1 -0
- package/lib/solana/solana-processor.d.ts +43 -0
- package/lib/solana/solana-processor.js +72 -0
- package/lib/solana/solana-processor.js.map +1 -0
- package/lib/solana/tests/solana.test.d.ts +1 -0
- package/lib/solana/tests/solana.test.js.map +1 -0
- package/lib/solana/tests/types/basic_1.d.ts +26 -0
- package/lib/solana/tests/types/basic_1.js +63 -0
- package/lib/solana/tests/types/basic_1.js.map +1 -0
- package/lib/solana/tests/types/basic_1_processor.d.ts +21 -0
- package/lib/solana/tests/types/basic_1_processor.js +35 -0
- package/lib/solana/tests/types/basic_1_processor.js.map +1 -0
- package/lib/solana/tests/types/token_bridge.d.ts +29 -0
- package/lib/solana/tests/types/token_bridge.js +938 -0
- package/lib/solana/tests/types/token_bridge.js.map +1 -0
- package/lib/solana/tests/types/token_bridge_processor.d.ts +212 -0
- package/lib/solana/tests/types/token_bridge_processor.js +134 -0
- package/lib/solana/tests/types/token_bridge_processor.js.map +1 -0
- package/lib/solana/tests/wormhole-token-bridge.d.ts +15 -0
- package/lib/solana/tests/wormhole-token-bridge.js +79 -0
- package/lib/solana/tests/wormhole-token-bridge.js.map +1 -0
- package/lib/target-ethers-sentio/view-function.cjs +4 -9
- package/lib/target-ethers-sentio/view-function.cjs.map +1 -1
- package/lib/testing/test-processor-server.js +1 -1
- package/lib/testing/test-processor-server.js.map +1 -1
- package/lib/testing/test-provider.js +1 -1
- package/lib/testing/test-provider.js.map +1 -1
- package/lib/utils/index.d.ts +0 -1
- package/lib/utils/index.js +0 -1
- package/lib/utils/index.js.map +1 -1
- package/package.json +34 -11
- package/src/aptos/abis/0x1.json +9205 -0
- package/src/aptos/abis/0x3.json +1515 -0
- package/src/aptos/api.ts +23 -0
- package/src/aptos/aptos-plugin.ts +183 -0
- package/src/aptos/aptos-processor.ts +331 -0
- package/src/aptos/builtin/0x1.ts +4911 -0
- package/src/aptos/builtin/0x3.ts +1092 -0
- package/src/aptos/builtin/index.ts +5 -0
- package/src/aptos/codegen/codegen.ts +470 -0
- package/src/aptos/codegen/index.ts +1 -0
- package/src/aptos/codegen/tsconfig.json +8 -0
- package/src/aptos/codegen/typegen.ts +165 -0
- package/src/aptos/context.ts +72 -0
- package/src/aptos/index.ts +10 -0
- package/src/aptos/models.ts +47 -0
- package/src/aptos/move-coder.ts +201 -0
- package/src/aptos/move-types.ts +11 -0
- package/src/aptos/network.ts +29 -0
- package/src/aptos/run-codegen.ts +13 -0
- package/src/aptos/tests/abis/reserved.json +402 -0
- package/src/aptos/tests/abis/soffl3.json +1411 -0
- package/src/aptos/tests/abis/souffle.json +389 -0
- package/src/aptos/tests/souffl3.ts +57 -0
- package/src/aptos/tests/types/index.ts +6 -0
- package/src/aptos/tests/types/reserved.ts +881 -0
- package/src/aptos/tests/types/soffl3.ts +1820 -0
- package/src/aptos/tests/types/souffle.ts +880 -0
- package/src/aptos/types.ts +149 -0
- package/src/aptos/utils.ts +26 -0
- package/src/builtin/internal/eacaggregatorproxy_processor.ts +90 -162
- package/src/builtin/internal/erc1155_processor.ts +25 -49
- package/src/builtin/internal/erc20_processor.ts +40 -72
- package/src/builtin/internal/erc20bytes_processor.ts +30 -54
- package/src/builtin/internal/erc721_processor.ts +45 -81
- package/src/builtin/internal/weth9_processor.ts +30 -54
- package/src/{utils/chain.ts → chain.ts} +0 -0
- package/src/core/context.ts +1 -1
- package/src/core/sui-plugin.ts +1 -1
- package/src/error.ts +12 -14
- package/src/eth/base-processor-template.ts +3 -3
- package/src/eth/base-processor.ts +4 -4
- package/src/eth/{eth-event.ts → eth.ts} +1 -1
- package/src/eth/index.ts +2 -0
- package/src/index.ts +2 -2
- package/src/solana/builtin/index.ts +1 -0
- package/src/solana/builtin/spl-token-processor.ts +298 -0
- package/src/solana/builtin/types.ts +279 -0
- package/src/solana/codegen/codegen.ts +140 -0
- package/src/solana/codegen/index.ts +1 -0
- package/src/solana/codegen/tsconfig.json +8 -0
- package/src/solana/index.ts +4 -0
- package/src/solana/run-codegen.ts +13 -0
- package/src/solana/solana-context.ts +30 -0
- package/src/solana/solana-options.ts +11 -0
- package/src/solana/solana-plugin.ts +103 -0
- package/src/solana/solana-processor.ts +102 -0
- package/src/solana/tests/abis/basic_1.json +62 -0
- package/src/solana/tests/abis/token_bridge.json +937 -0
- package/src/solana/tests/types/basic_1.ts +62 -0
- package/src/solana/tests/types/basic_1_processor.ts +42 -0
- package/src/solana/tests/types/token_bridge.ts +937 -0
- package/src/solana/tests/types/token_bridge_processor.ts +150 -0
- package/src/solana/tests/wormhole-token-bridge.ts +96 -0
- package/src/target-ethers-sentio/view-function.cts +4 -11
- package/src/testing/test-processor-server.ts +1 -1
- package/src/testing/test-provider.ts +1 -1
- package/src/utils/index.ts +0 -1
- package/lib/eth/eth-event.js +0 -2
- package/lib/eth/eth-event.js.map +0 -1
- package/lib/utils/chain.js.map +0 -1
|
@@ -0,0 +1,573 @@
|
|
|
1
|
+
import { MoveCoder, AptosBindOptions, AptosBaseProcessor, TypedEventInstance, TypedEntryFunctionPayload, AptosContext, CallFilter } from "@sentio/sdk/aptos";
|
|
2
|
+
import { AptosFetchConfig } from "@sentio/protos";
|
|
3
|
+
import { Address, MoveModule } from "@sentio/sdk/aptos";
|
|
4
|
+
import * as _0x1 from "./0x1.js";
|
|
5
|
+
export declare class token extends AptosBaseProcessor {
|
|
6
|
+
constructor(options: AptosBindOptions);
|
|
7
|
+
static DEFAULT_OPTIONS: AptosBindOptions;
|
|
8
|
+
static bind(options?: Partial<AptosBindOptions>): token;
|
|
9
|
+
onEntryBurn(func: (call: token.BurnPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token;
|
|
10
|
+
onEntryBurnByCreator(func: (call: token.BurnByCreatorPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token;
|
|
11
|
+
onEntryCreateCollectionScript(func: (call: token.CreateCollectionScriptPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token;
|
|
12
|
+
onEntryCreateTokenScript(func: (call: token.CreateTokenScriptPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token;
|
|
13
|
+
onEntryDirectTransferScript(func: (call: token.DirectTransferScriptPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token;
|
|
14
|
+
onEntryInitializeTokenScript(func: (call: token.InitializeTokenScriptPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token;
|
|
15
|
+
onEntryMintScript(func: (call: token.MintScriptPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token;
|
|
16
|
+
onEntryMutateTokenProperties(func: (call: token.MutateTokenPropertiesPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token;
|
|
17
|
+
onEntryOptInDirectTransfer(func: (call: token.OptInDirectTransferPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token;
|
|
18
|
+
onEventCreateCollectionEvent(func: (event: token.CreateCollectionEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token;
|
|
19
|
+
onEventCreateTokenDataEvent(func: (event: token.CreateTokenDataEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token;
|
|
20
|
+
onEventMintTokenEvent(func: (event: token.MintTokenEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token;
|
|
21
|
+
onEventDepositEvent(func: (event: token.DepositEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token;
|
|
22
|
+
onEventWithdrawEvent(func: (event: token.WithdrawEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token;
|
|
23
|
+
onEventBurnTokenEvent(func: (event: token.BurnTokenEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token;
|
|
24
|
+
onEventMutateTokenPropertyMapEvent(func: (event: token.MutateTokenPropertyMapEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token;
|
|
25
|
+
loadTypesInternal(registry: MoveCoder): void;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace token {
|
|
28
|
+
class BurnTokenEvent {
|
|
29
|
+
static TYPE_QNAME: string;
|
|
30
|
+
id: token.TokenId;
|
|
31
|
+
amount: bigint;
|
|
32
|
+
}
|
|
33
|
+
interface BurnTokenEventInstance extends TypedEventInstance<BurnTokenEvent> {
|
|
34
|
+
/** @deprecated use {@link data_decoded} instead */
|
|
35
|
+
data_typed: BurnTokenEvent;
|
|
36
|
+
data_decoded: BurnTokenEvent;
|
|
37
|
+
type_arguments: [];
|
|
38
|
+
}
|
|
39
|
+
class CollectionData {
|
|
40
|
+
static TYPE_QNAME: string;
|
|
41
|
+
description: string;
|
|
42
|
+
name: string;
|
|
43
|
+
uri: string;
|
|
44
|
+
supply: bigint;
|
|
45
|
+
maximum: bigint;
|
|
46
|
+
mutability_config: token.CollectionMutabilityConfig;
|
|
47
|
+
}
|
|
48
|
+
class CollectionMutabilityConfig {
|
|
49
|
+
static TYPE_QNAME: string;
|
|
50
|
+
description: Boolean;
|
|
51
|
+
uri: Boolean;
|
|
52
|
+
maximum: Boolean;
|
|
53
|
+
}
|
|
54
|
+
class Collections {
|
|
55
|
+
static TYPE_QNAME: string;
|
|
56
|
+
collection_data: _0x1.table.Table<string, token.CollectionData>;
|
|
57
|
+
token_data: _0x1.table.Table<token.TokenDataId, token.TokenData>;
|
|
58
|
+
create_collection_events: _0x1.event.EventHandle<token.CreateCollectionEvent>;
|
|
59
|
+
create_token_data_events: _0x1.event.EventHandle<token.CreateTokenDataEvent>;
|
|
60
|
+
mint_token_events: _0x1.event.EventHandle<token.MintTokenEvent>;
|
|
61
|
+
}
|
|
62
|
+
class CreateCollectionEvent {
|
|
63
|
+
static TYPE_QNAME: string;
|
|
64
|
+
creator: Address;
|
|
65
|
+
collection_name: string;
|
|
66
|
+
uri: string;
|
|
67
|
+
description: string;
|
|
68
|
+
maximum: bigint;
|
|
69
|
+
}
|
|
70
|
+
interface CreateCollectionEventInstance extends TypedEventInstance<CreateCollectionEvent> {
|
|
71
|
+
/** @deprecated use {@link data_decoded} instead */
|
|
72
|
+
data_typed: CreateCollectionEvent;
|
|
73
|
+
data_decoded: CreateCollectionEvent;
|
|
74
|
+
type_arguments: [];
|
|
75
|
+
}
|
|
76
|
+
class CreateTokenDataEvent {
|
|
77
|
+
static TYPE_QNAME: string;
|
|
78
|
+
id: token.TokenDataId;
|
|
79
|
+
description: string;
|
|
80
|
+
maximum: bigint;
|
|
81
|
+
uri: string;
|
|
82
|
+
royalty_payee_address: Address;
|
|
83
|
+
royalty_points_denominator: bigint;
|
|
84
|
+
royalty_points_numerator: bigint;
|
|
85
|
+
name: string;
|
|
86
|
+
mutability_config: token.TokenMutabilityConfig;
|
|
87
|
+
property_keys: string[];
|
|
88
|
+
property_values: string[];
|
|
89
|
+
property_types: string[];
|
|
90
|
+
}
|
|
91
|
+
interface CreateTokenDataEventInstance extends TypedEventInstance<CreateTokenDataEvent> {
|
|
92
|
+
/** @deprecated use {@link data_decoded} instead */
|
|
93
|
+
data_typed: CreateTokenDataEvent;
|
|
94
|
+
data_decoded: CreateTokenDataEvent;
|
|
95
|
+
type_arguments: [];
|
|
96
|
+
}
|
|
97
|
+
class DepositEvent {
|
|
98
|
+
static TYPE_QNAME: string;
|
|
99
|
+
id: token.TokenId;
|
|
100
|
+
amount: bigint;
|
|
101
|
+
}
|
|
102
|
+
interface DepositEventInstance extends TypedEventInstance<DepositEvent> {
|
|
103
|
+
/** @deprecated use {@link data_decoded} instead */
|
|
104
|
+
data_typed: DepositEvent;
|
|
105
|
+
data_decoded: DepositEvent;
|
|
106
|
+
type_arguments: [];
|
|
107
|
+
}
|
|
108
|
+
class MintTokenEvent {
|
|
109
|
+
static TYPE_QNAME: string;
|
|
110
|
+
id: token.TokenDataId;
|
|
111
|
+
amount: bigint;
|
|
112
|
+
}
|
|
113
|
+
interface MintTokenEventInstance extends TypedEventInstance<MintTokenEvent> {
|
|
114
|
+
/** @deprecated use {@link data_decoded} instead */
|
|
115
|
+
data_typed: MintTokenEvent;
|
|
116
|
+
data_decoded: MintTokenEvent;
|
|
117
|
+
type_arguments: [];
|
|
118
|
+
}
|
|
119
|
+
class MutateTokenPropertyMapEvent {
|
|
120
|
+
static TYPE_QNAME: string;
|
|
121
|
+
old_id: token.TokenId;
|
|
122
|
+
new_id: token.TokenId;
|
|
123
|
+
keys: string[];
|
|
124
|
+
values: string[];
|
|
125
|
+
types: string[];
|
|
126
|
+
}
|
|
127
|
+
interface MutateTokenPropertyMapEventInstance extends TypedEventInstance<MutateTokenPropertyMapEvent> {
|
|
128
|
+
/** @deprecated use {@link data_decoded} instead */
|
|
129
|
+
data_typed: MutateTokenPropertyMapEvent;
|
|
130
|
+
data_decoded: MutateTokenPropertyMapEvent;
|
|
131
|
+
type_arguments: [];
|
|
132
|
+
}
|
|
133
|
+
class Royalty {
|
|
134
|
+
static TYPE_QNAME: string;
|
|
135
|
+
royalty_points_numerator: bigint;
|
|
136
|
+
royalty_points_denominator: bigint;
|
|
137
|
+
payee_address: Address;
|
|
138
|
+
}
|
|
139
|
+
class Token {
|
|
140
|
+
static TYPE_QNAME: string;
|
|
141
|
+
id: token.TokenId;
|
|
142
|
+
amount: bigint;
|
|
143
|
+
token_properties: property_map.PropertyMap;
|
|
144
|
+
}
|
|
145
|
+
class TokenData {
|
|
146
|
+
static TYPE_QNAME: string;
|
|
147
|
+
maximum: bigint;
|
|
148
|
+
largest_property_version: bigint;
|
|
149
|
+
supply: bigint;
|
|
150
|
+
uri: string;
|
|
151
|
+
royalty: token.Royalty;
|
|
152
|
+
name: string;
|
|
153
|
+
description: string;
|
|
154
|
+
default_properties: property_map.PropertyMap;
|
|
155
|
+
mutability_config: token.TokenMutabilityConfig;
|
|
156
|
+
}
|
|
157
|
+
class TokenDataId {
|
|
158
|
+
static TYPE_QNAME: string;
|
|
159
|
+
creator: Address;
|
|
160
|
+
collection: string;
|
|
161
|
+
name: string;
|
|
162
|
+
}
|
|
163
|
+
class TokenId {
|
|
164
|
+
static TYPE_QNAME: string;
|
|
165
|
+
token_data_id: token.TokenDataId;
|
|
166
|
+
property_version: bigint;
|
|
167
|
+
}
|
|
168
|
+
class TokenMutabilityConfig {
|
|
169
|
+
static TYPE_QNAME: string;
|
|
170
|
+
maximum: Boolean;
|
|
171
|
+
uri: Boolean;
|
|
172
|
+
royalty: Boolean;
|
|
173
|
+
description: Boolean;
|
|
174
|
+
properties: Boolean;
|
|
175
|
+
}
|
|
176
|
+
class TokenStore {
|
|
177
|
+
static TYPE_QNAME: string;
|
|
178
|
+
tokens: _0x1.table.Table<token.TokenId, token.Token>;
|
|
179
|
+
direct_transfer: Boolean;
|
|
180
|
+
deposit_events: _0x1.event.EventHandle<token.DepositEvent>;
|
|
181
|
+
withdraw_events: _0x1.event.EventHandle<token.WithdrawEvent>;
|
|
182
|
+
burn_events: _0x1.event.EventHandle<token.BurnTokenEvent>;
|
|
183
|
+
mutate_token_property_events: _0x1.event.EventHandle<token.MutateTokenPropertyMapEvent>;
|
|
184
|
+
}
|
|
185
|
+
class WithdrawCapability {
|
|
186
|
+
static TYPE_QNAME: string;
|
|
187
|
+
token_owner: Address;
|
|
188
|
+
token_id: token.TokenId;
|
|
189
|
+
amount: bigint;
|
|
190
|
+
expiration_sec: bigint;
|
|
191
|
+
}
|
|
192
|
+
class WithdrawEvent {
|
|
193
|
+
static TYPE_QNAME: string;
|
|
194
|
+
id: token.TokenId;
|
|
195
|
+
amount: bigint;
|
|
196
|
+
}
|
|
197
|
+
interface WithdrawEventInstance extends TypedEventInstance<WithdrawEvent> {
|
|
198
|
+
/** @deprecated use {@link data_decoded} instead */
|
|
199
|
+
data_typed: WithdrawEvent;
|
|
200
|
+
data_decoded: WithdrawEvent;
|
|
201
|
+
type_arguments: [];
|
|
202
|
+
}
|
|
203
|
+
interface BurnPayload extends TypedEntryFunctionPayload<[
|
|
204
|
+
Address,
|
|
205
|
+
string,
|
|
206
|
+
string,
|
|
207
|
+
bigint,
|
|
208
|
+
bigint
|
|
209
|
+
]> {
|
|
210
|
+
/** @deprecated use {@link arguments_decoded} instead */
|
|
211
|
+
arguments_typed: [Address, string, string, bigint, bigint];
|
|
212
|
+
arguments_decoded: [Address, string, string, bigint, bigint];
|
|
213
|
+
type_arguments: [];
|
|
214
|
+
}
|
|
215
|
+
interface BurnByCreatorPayload extends TypedEntryFunctionPayload<[
|
|
216
|
+
Address,
|
|
217
|
+
string,
|
|
218
|
+
string,
|
|
219
|
+
bigint,
|
|
220
|
+
bigint
|
|
221
|
+
]> {
|
|
222
|
+
/** @deprecated use {@link arguments_decoded} instead */
|
|
223
|
+
arguments_typed: [Address, string, string, bigint, bigint];
|
|
224
|
+
arguments_decoded: [Address, string, string, bigint, bigint];
|
|
225
|
+
type_arguments: [];
|
|
226
|
+
}
|
|
227
|
+
interface CreateCollectionScriptPayload extends TypedEntryFunctionPayload<[
|
|
228
|
+
string,
|
|
229
|
+
string,
|
|
230
|
+
string,
|
|
231
|
+
bigint,
|
|
232
|
+
Boolean[]
|
|
233
|
+
]> {
|
|
234
|
+
/** @deprecated use {@link arguments_decoded} instead */
|
|
235
|
+
arguments_typed: [string, string, string, bigint, Boolean[]];
|
|
236
|
+
arguments_decoded: [string, string, string, bigint, Boolean[]];
|
|
237
|
+
type_arguments: [];
|
|
238
|
+
}
|
|
239
|
+
interface CreateTokenScriptPayload extends TypedEntryFunctionPayload<[
|
|
240
|
+
string,
|
|
241
|
+
string,
|
|
242
|
+
string,
|
|
243
|
+
bigint,
|
|
244
|
+
bigint,
|
|
245
|
+
string,
|
|
246
|
+
Address,
|
|
247
|
+
bigint,
|
|
248
|
+
bigint,
|
|
249
|
+
Boolean[],
|
|
250
|
+
string[],
|
|
251
|
+
string[],
|
|
252
|
+
string[]
|
|
253
|
+
]> {
|
|
254
|
+
/** @deprecated use {@link arguments_decoded} instead */
|
|
255
|
+
arguments_typed: [
|
|
256
|
+
string,
|
|
257
|
+
string,
|
|
258
|
+
string,
|
|
259
|
+
bigint,
|
|
260
|
+
bigint,
|
|
261
|
+
string,
|
|
262
|
+
Address,
|
|
263
|
+
bigint,
|
|
264
|
+
bigint,
|
|
265
|
+
Boolean[],
|
|
266
|
+
string[],
|
|
267
|
+
string[],
|
|
268
|
+
string[]
|
|
269
|
+
];
|
|
270
|
+
arguments_decoded: [
|
|
271
|
+
string,
|
|
272
|
+
string,
|
|
273
|
+
string,
|
|
274
|
+
bigint,
|
|
275
|
+
bigint,
|
|
276
|
+
string,
|
|
277
|
+
Address,
|
|
278
|
+
bigint,
|
|
279
|
+
bigint,
|
|
280
|
+
Boolean[],
|
|
281
|
+
string[],
|
|
282
|
+
string[],
|
|
283
|
+
string[]
|
|
284
|
+
];
|
|
285
|
+
type_arguments: [];
|
|
286
|
+
}
|
|
287
|
+
interface DirectTransferScriptPayload extends TypedEntryFunctionPayload<[
|
|
288
|
+
Address,
|
|
289
|
+
Address,
|
|
290
|
+
string,
|
|
291
|
+
string,
|
|
292
|
+
bigint,
|
|
293
|
+
bigint
|
|
294
|
+
]> {
|
|
295
|
+
/** @deprecated use {@link arguments_decoded} instead */
|
|
296
|
+
arguments_typed: [Address, Address, string, string, bigint, bigint];
|
|
297
|
+
arguments_decoded: [Address, Address, string, string, bigint, bigint];
|
|
298
|
+
type_arguments: [];
|
|
299
|
+
}
|
|
300
|
+
interface InitializeTokenScriptPayload extends TypedEntryFunctionPayload<[]> {
|
|
301
|
+
/** @deprecated use {@link arguments_decoded} instead */
|
|
302
|
+
arguments_typed: [];
|
|
303
|
+
arguments_decoded: [];
|
|
304
|
+
type_arguments: [];
|
|
305
|
+
}
|
|
306
|
+
interface MintScriptPayload extends TypedEntryFunctionPayload<[Address, string, string, bigint]> {
|
|
307
|
+
/** @deprecated use {@link arguments_decoded} instead */
|
|
308
|
+
arguments_typed: [Address, string, string, bigint];
|
|
309
|
+
arguments_decoded: [Address, string, string, bigint];
|
|
310
|
+
type_arguments: [];
|
|
311
|
+
}
|
|
312
|
+
interface MutateTokenPropertiesPayload extends TypedEntryFunctionPayload<[
|
|
313
|
+
Address,
|
|
314
|
+
Address,
|
|
315
|
+
string,
|
|
316
|
+
string,
|
|
317
|
+
bigint,
|
|
318
|
+
bigint,
|
|
319
|
+
string[],
|
|
320
|
+
string[],
|
|
321
|
+
string[]
|
|
322
|
+
]> {
|
|
323
|
+
/** @deprecated use {@link arguments_decoded} instead */
|
|
324
|
+
arguments_typed: [
|
|
325
|
+
Address,
|
|
326
|
+
Address,
|
|
327
|
+
string,
|
|
328
|
+
string,
|
|
329
|
+
bigint,
|
|
330
|
+
bigint,
|
|
331
|
+
string[],
|
|
332
|
+
string[],
|
|
333
|
+
string[]
|
|
334
|
+
];
|
|
335
|
+
arguments_decoded: [
|
|
336
|
+
Address,
|
|
337
|
+
Address,
|
|
338
|
+
string,
|
|
339
|
+
string,
|
|
340
|
+
bigint,
|
|
341
|
+
bigint,
|
|
342
|
+
string[],
|
|
343
|
+
string[],
|
|
344
|
+
string[]
|
|
345
|
+
];
|
|
346
|
+
type_arguments: [];
|
|
347
|
+
}
|
|
348
|
+
interface OptInDirectTransferPayload extends TypedEntryFunctionPayload<[Boolean]> {
|
|
349
|
+
/** @deprecated use {@link arguments_decoded} instead */
|
|
350
|
+
arguments_typed: [Boolean];
|
|
351
|
+
arguments_decoded: [Boolean];
|
|
352
|
+
type_arguments: [];
|
|
353
|
+
}
|
|
354
|
+
function loadTypes(_r: MoveCoder): void;
|
|
355
|
+
const ABI: MoveModule;
|
|
356
|
+
}
|
|
357
|
+
export declare namespace property_map {
|
|
358
|
+
class PropertyMap {
|
|
359
|
+
static TYPE_QNAME: string;
|
|
360
|
+
map: _0x1.simple_map.SimpleMap<string, property_map.PropertyValue>;
|
|
361
|
+
}
|
|
362
|
+
class PropertyValue {
|
|
363
|
+
static TYPE_QNAME: string;
|
|
364
|
+
value: string;
|
|
365
|
+
type: string;
|
|
366
|
+
}
|
|
367
|
+
function loadTypes(_r: MoveCoder): void;
|
|
368
|
+
const ABI: MoveModule;
|
|
369
|
+
}
|
|
370
|
+
export declare class token_coin_swap extends AptosBaseProcessor {
|
|
371
|
+
constructor(options: AptosBindOptions);
|
|
372
|
+
static DEFAULT_OPTIONS: AptosBindOptions;
|
|
373
|
+
static bind(options?: Partial<AptosBindOptions>): token_coin_swap;
|
|
374
|
+
onEntryListTokenForSwap(func: (call: token_coin_swap.ListTokenForSwapPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token_coin_swap;
|
|
375
|
+
onEventTokenListingEvent(func: (event: token_coin_swap.TokenListingEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token_coin_swap;
|
|
376
|
+
onEventTokenSwapEvent(func: (event: token_coin_swap.TokenSwapEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token_coin_swap;
|
|
377
|
+
loadTypesInternal(registry: MoveCoder): void;
|
|
378
|
+
}
|
|
379
|
+
export declare namespace token_coin_swap {
|
|
380
|
+
class TokenCoinSwap<T0> {
|
|
381
|
+
static TYPE_QNAME: string;
|
|
382
|
+
token_amount: bigint;
|
|
383
|
+
min_price_per_token: bigint;
|
|
384
|
+
}
|
|
385
|
+
class TokenEscrow {
|
|
386
|
+
static TYPE_QNAME: string;
|
|
387
|
+
token: token.Token;
|
|
388
|
+
locked_until_secs: bigint;
|
|
389
|
+
}
|
|
390
|
+
class TokenListingEvent {
|
|
391
|
+
static TYPE_QNAME: string;
|
|
392
|
+
token_id: token.TokenId;
|
|
393
|
+
amount: bigint;
|
|
394
|
+
min_price: bigint;
|
|
395
|
+
locked_until_secs: bigint;
|
|
396
|
+
coin_type_info: _0x1.type_info.TypeInfo;
|
|
397
|
+
}
|
|
398
|
+
interface TokenListingEventInstance extends TypedEventInstance<TokenListingEvent> {
|
|
399
|
+
/** @deprecated use {@link data_decoded} instead */
|
|
400
|
+
data_typed: TokenListingEvent;
|
|
401
|
+
data_decoded: TokenListingEvent;
|
|
402
|
+
type_arguments: [];
|
|
403
|
+
}
|
|
404
|
+
class TokenListings<T0> {
|
|
405
|
+
static TYPE_QNAME: string;
|
|
406
|
+
listings: _0x1.table.Table<token.TokenId, token_coin_swap.TokenCoinSwap<T0>>;
|
|
407
|
+
listing_events: _0x1.event.EventHandle<token_coin_swap.TokenListingEvent>;
|
|
408
|
+
swap_events: _0x1.event.EventHandle<token_coin_swap.TokenSwapEvent>;
|
|
409
|
+
}
|
|
410
|
+
class TokenStoreEscrow {
|
|
411
|
+
static TYPE_QNAME: string;
|
|
412
|
+
token_escrows: _0x1.table.Table<token.TokenId, token_coin_swap.TokenEscrow>;
|
|
413
|
+
}
|
|
414
|
+
class TokenSwapEvent {
|
|
415
|
+
static TYPE_QNAME: string;
|
|
416
|
+
token_id: token.TokenId;
|
|
417
|
+
token_buyer: Address;
|
|
418
|
+
token_amount: bigint;
|
|
419
|
+
coin_amount: bigint;
|
|
420
|
+
coin_type_info: _0x1.type_info.TypeInfo;
|
|
421
|
+
}
|
|
422
|
+
interface TokenSwapEventInstance extends TypedEventInstance<TokenSwapEvent> {
|
|
423
|
+
/** @deprecated use {@link data_decoded} instead */
|
|
424
|
+
data_typed: TokenSwapEvent;
|
|
425
|
+
data_decoded: TokenSwapEvent;
|
|
426
|
+
type_arguments: [];
|
|
427
|
+
}
|
|
428
|
+
interface ListTokenForSwapPayload<T0 = any> extends TypedEntryFunctionPayload<[
|
|
429
|
+
Address,
|
|
430
|
+
string,
|
|
431
|
+
string,
|
|
432
|
+
bigint,
|
|
433
|
+
bigint,
|
|
434
|
+
bigint,
|
|
435
|
+
bigint
|
|
436
|
+
]> {
|
|
437
|
+
/** @deprecated use {@link arguments_decoded} instead */
|
|
438
|
+
arguments_typed: [Address, string, string, bigint, bigint, bigint, bigint];
|
|
439
|
+
arguments_decoded: [
|
|
440
|
+
Address,
|
|
441
|
+
string,
|
|
442
|
+
string,
|
|
443
|
+
bigint,
|
|
444
|
+
bigint,
|
|
445
|
+
bigint,
|
|
446
|
+
bigint
|
|
447
|
+
];
|
|
448
|
+
type_arguments: [string];
|
|
449
|
+
}
|
|
450
|
+
function loadTypes(_r: MoveCoder): void;
|
|
451
|
+
const ABI: MoveModule;
|
|
452
|
+
}
|
|
453
|
+
export declare class token_transfers extends AptosBaseProcessor {
|
|
454
|
+
constructor(options: AptosBindOptions);
|
|
455
|
+
static DEFAULT_OPTIONS: AptosBindOptions;
|
|
456
|
+
static bind(options?: Partial<AptosBindOptions>): token_transfers;
|
|
457
|
+
onEntryCancelOfferScript(func: (call: token_transfers.CancelOfferScriptPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token_transfers;
|
|
458
|
+
onEntryClaimScript(func: (call: token_transfers.ClaimScriptPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token_transfers;
|
|
459
|
+
onEntryOfferScript(func: (call: token_transfers.OfferScriptPayload, ctx: AptosContext) => void, filter?: CallFilter, fetchConfig?: AptosFetchConfig): token_transfers;
|
|
460
|
+
onEventTokenOfferEvent(func: (event: token_transfers.TokenOfferEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token_transfers;
|
|
461
|
+
onEventTokenCancelOfferEvent(func: (event: token_transfers.TokenCancelOfferEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token_transfers;
|
|
462
|
+
onEventTokenClaimEvent(func: (event: token_transfers.TokenClaimEventInstance, ctx: AptosContext) => void, fetchConfig?: AptosFetchConfig): token_transfers;
|
|
463
|
+
loadTypesInternal(registry: MoveCoder): void;
|
|
464
|
+
}
|
|
465
|
+
export declare namespace token_transfers {
|
|
466
|
+
class PendingClaims {
|
|
467
|
+
static TYPE_QNAME: string;
|
|
468
|
+
pending_claims: _0x1.table.Table<token_transfers.TokenOfferId, token.Token>;
|
|
469
|
+
offer_events: _0x1.event.EventHandle<token_transfers.TokenOfferEvent>;
|
|
470
|
+
cancel_offer_events: _0x1.event.EventHandle<token_transfers.TokenCancelOfferEvent>;
|
|
471
|
+
claim_events: _0x1.event.EventHandle<token_transfers.TokenClaimEvent>;
|
|
472
|
+
}
|
|
473
|
+
class TokenCancelOfferEvent {
|
|
474
|
+
static TYPE_QNAME: string;
|
|
475
|
+
to_address: Address;
|
|
476
|
+
token_id: token.TokenId;
|
|
477
|
+
amount: bigint;
|
|
478
|
+
}
|
|
479
|
+
interface TokenCancelOfferEventInstance extends TypedEventInstance<TokenCancelOfferEvent> {
|
|
480
|
+
/** @deprecated use {@link data_decoded} instead */
|
|
481
|
+
data_typed: TokenCancelOfferEvent;
|
|
482
|
+
data_decoded: TokenCancelOfferEvent;
|
|
483
|
+
type_arguments: [];
|
|
484
|
+
}
|
|
485
|
+
class TokenClaimEvent {
|
|
486
|
+
static TYPE_QNAME: string;
|
|
487
|
+
to_address: Address;
|
|
488
|
+
token_id: token.TokenId;
|
|
489
|
+
amount: bigint;
|
|
490
|
+
}
|
|
491
|
+
interface TokenClaimEventInstance extends TypedEventInstance<TokenClaimEvent> {
|
|
492
|
+
/** @deprecated use {@link data_decoded} instead */
|
|
493
|
+
data_typed: TokenClaimEvent;
|
|
494
|
+
data_decoded: TokenClaimEvent;
|
|
495
|
+
type_arguments: [];
|
|
496
|
+
}
|
|
497
|
+
class TokenOfferEvent {
|
|
498
|
+
static TYPE_QNAME: string;
|
|
499
|
+
to_address: Address;
|
|
500
|
+
token_id: token.TokenId;
|
|
501
|
+
amount: bigint;
|
|
502
|
+
}
|
|
503
|
+
interface TokenOfferEventInstance extends TypedEventInstance<TokenOfferEvent> {
|
|
504
|
+
/** @deprecated use {@link data_decoded} instead */
|
|
505
|
+
data_typed: TokenOfferEvent;
|
|
506
|
+
data_decoded: TokenOfferEvent;
|
|
507
|
+
type_arguments: [];
|
|
508
|
+
}
|
|
509
|
+
class TokenOfferId {
|
|
510
|
+
static TYPE_QNAME: string;
|
|
511
|
+
to_addr: Address;
|
|
512
|
+
token_id: token.TokenId;
|
|
513
|
+
}
|
|
514
|
+
interface CancelOfferScriptPayload extends TypedEntryFunctionPayload<[
|
|
515
|
+
Address,
|
|
516
|
+
Address,
|
|
517
|
+
Address,
|
|
518
|
+
string,
|
|
519
|
+
string,
|
|
520
|
+
bigint
|
|
521
|
+
]> {
|
|
522
|
+
/** @deprecated use {@link arguments_decoded} instead */
|
|
523
|
+
arguments_typed: [Address, Address, Address, string, string, bigint];
|
|
524
|
+
arguments_decoded: [Address, Address, Address, string, string, bigint];
|
|
525
|
+
type_arguments: [];
|
|
526
|
+
}
|
|
527
|
+
interface ClaimScriptPayload extends TypedEntryFunctionPayload<[
|
|
528
|
+
Address,
|
|
529
|
+
Address,
|
|
530
|
+
Address,
|
|
531
|
+
string,
|
|
532
|
+
string,
|
|
533
|
+
bigint
|
|
534
|
+
]> {
|
|
535
|
+
/** @deprecated use {@link arguments_decoded} instead */
|
|
536
|
+
arguments_typed: [Address, Address, Address, string, string, bigint];
|
|
537
|
+
arguments_decoded: [Address, Address, Address, string, string, bigint];
|
|
538
|
+
type_arguments: [];
|
|
539
|
+
}
|
|
540
|
+
interface OfferScriptPayload extends TypedEntryFunctionPayload<[
|
|
541
|
+
Address,
|
|
542
|
+
Address,
|
|
543
|
+
Address,
|
|
544
|
+
string,
|
|
545
|
+
string,
|
|
546
|
+
bigint,
|
|
547
|
+
bigint
|
|
548
|
+
]> {
|
|
549
|
+
/** @deprecated use {@link arguments_decoded} instead */
|
|
550
|
+
arguments_typed: [
|
|
551
|
+
Address,
|
|
552
|
+
Address,
|
|
553
|
+
Address,
|
|
554
|
+
string,
|
|
555
|
+
string,
|
|
556
|
+
bigint,
|
|
557
|
+
bigint
|
|
558
|
+
];
|
|
559
|
+
arguments_decoded: [
|
|
560
|
+
Address,
|
|
561
|
+
Address,
|
|
562
|
+
Address,
|
|
563
|
+
string,
|
|
564
|
+
string,
|
|
565
|
+
bigint,
|
|
566
|
+
bigint
|
|
567
|
+
];
|
|
568
|
+
type_arguments: [];
|
|
569
|
+
}
|
|
570
|
+
function loadTypes(_r: MoveCoder): void;
|
|
571
|
+
const ABI: MoveModule;
|
|
572
|
+
}
|
|
573
|
+
export declare function loadAllTypes(_r: MoveCoder): void;
|