@sentio/sdk 3.8.0-rc.3 → 3.9.0-rc.10
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/aptos-processor.d.ts +3 -3
- package/lib/aptos/aptos-processor.d.ts.map +1 -1
- package/lib/aptos/aptos-processor.js.map +1 -1
- package/lib/aptos/builtin/0x1.d.ts +897 -0
- package/lib/aptos/builtin/0x1.d.ts.map +1 -1
- package/lib/aptos/builtin/0x1.js +1322 -91
- package/lib/aptos/builtin/0x1.js.map +1 -1
- package/lib/aptos/builtin/0x3.js +1 -1
- package/lib/aptos/builtin/0x3.js.map +1 -1
- package/lib/aptos/builtin/0x4.d.ts +4 -4
- package/lib/aptos/builtin/0x4.d.ts.map +1 -1
- package/lib/aptos/builtin/0x4.js +16 -16
- package/lib/aptos/builtin/0x4.js.map +1 -1
- package/lib/core/normalization.d.ts.map +1 -1
- package/lib/core/normalization.js +1 -1
- package/lib/core/normalization.js.map +1 -1
- package/lib/core/partition-handler-manager.d.ts.map +1 -1
- package/lib/core/partition-handler-manager.js +1 -1
- package/lib/core/partition-handler-manager.js.map +1 -1
- package/lib/eth/base-processor-template.d.ts.map +1 -1
- package/lib/eth/base-processor-template.js +2 -0
- package/lib/eth/base-processor-template.js.map +1 -1
- package/lib/eth/base-processor.d.ts +2 -2
- package/lib/eth/base-processor.d.ts.map +1 -1
- package/lib/eth/base-processor.js.map +1 -1
- package/lib/eth/eth.d.ts +1 -1
- package/lib/eth/eth.d.ts.map +1 -1
- package/lib/eth/eth.js +6 -5
- package/lib/eth/eth.js.map +1 -1
- package/lib/fuel/fuel-processor-template.d.ts.map +1 -1
- package/lib/fuel/fuel-processor-template.js +2 -0
- package/lib/fuel/fuel-processor-template.js.map +1 -1
- package/lib/fuel/transaction.js +8 -3
- package/lib/fuel/transaction.js.map +1 -1
- package/lib/iota/builtin/0x2.d.ts +95 -0
- package/lib/iota/builtin/0x2.d.ts.map +1 -1
- package/lib/iota/builtin/0x2.js +586 -1
- package/lib/iota/builtin/0x2.js.map +1 -1
- package/lib/iota/iota-processor.d.ts +2 -2
- package/lib/iota/iota-processor.d.ts.map +1 -1
- package/lib/iota/iota-processor.js +2 -2
- package/lib/iota/iota-processor.js.map +1 -1
- package/lib/solana/builtin/index.d.ts +1 -0
- package/lib/solana/builtin/index.d.ts.map +1 -1
- package/lib/solana/builtin/index.js +1 -0
- package/lib/solana/builtin/index.js.map +1 -1
- package/lib/solana/builtin/spl-token-2022-processor.d.ts +46 -0
- package/lib/solana/builtin/spl-token-2022-processor.d.ts.map +1 -0
- package/lib/solana/builtin/spl-token-2022-processor.js +132 -0
- package/lib/solana/builtin/spl-token-2022-processor.js.map +1 -0
- package/lib/solana/builtin/spl-token-processor.d.ts +30 -30
- package/lib/solana/builtin/spl-token-processor.d.ts.map +1 -1
- package/lib/solana/builtin/types.d.ts +1699 -81
- package/lib/solana/builtin/types.d.ts.map +1 -1
- package/lib/solana/builtin/types.js +520 -72
- package/lib/solana/builtin/types.js.map +1 -1
- package/lib/solana/codegen/codegen.js +2 -2
- package/lib/solana/codegen/codegen.js.map +1 -1
- package/lib/solana/index.d.ts +1 -1
- package/lib/solana/index.js +1 -1
- package/lib/solana/solana-context.d.ts +1 -1
- package/lib/solana/solana-context.d.ts.map +1 -1
- package/lib/solana/solana-processor.d.ts +4 -4
- package/lib/solana/solana-processor.d.ts.map +1 -1
- package/lib/solana/solana-processor.js.map +1 -1
- package/lib/solana/solana-rpc-types.d.ts +75 -0
- package/lib/solana/solana-rpc-types.d.ts.map +1 -0
- package/lib/solana/solana-rpc-types.js +2 -0
- package/lib/solana/solana-rpc-types.js.map +1 -0
- package/lib/store/codegen.js +2 -2
- package/lib/store/codegen.js.map +1 -1
- package/lib/store/decorators.d.ts.map +1 -1
- package/lib/store/decorators.js +1 -1
- package/lib/store/decorators.js.map +1 -1
- package/lib/store/store.js.map +1 -1
- package/lib/sui/builtin/0x1.d.ts +382 -270
- package/lib/sui/builtin/0x1.d.ts.map +1 -1
- package/lib/sui/builtin/0x1.js +2571 -805
- package/lib/sui/builtin/0x1.js.map +1 -1
- package/lib/sui/builtin/0x2.d.ts +1013 -730
- package/lib/sui/builtin/0x2.d.ts.map +1 -1
- package/lib/sui/builtin/0x2.js +7419 -2616
- package/lib/sui/builtin/0x2.js.map +1 -1
- package/lib/sui/builtin/0x3.d.ts +297 -297
- package/lib/sui/builtin/0x3.d.ts.map +1 -1
- package/lib/sui/builtin/0x3.js +2364 -904
- package/lib/sui/builtin/0x3.js.map +1 -1
- package/lib/sui/codegen/codegen.d.ts.map +1 -1
- package/lib/sui/codegen/codegen.js.map +1 -1
- package/lib/sui/context.d.ts +10 -9
- package/lib/sui/context.d.ts.map +1 -1
- package/lib/sui/context.js.map +1 -1
- package/lib/sui/ext/coin.d.ts.map +1 -1
- package/lib/sui/ext/coin.js +1 -1
- package/lib/sui/ext/coin.js.map +1 -1
- package/lib/sui/ext/move-dex.d.ts +3 -3
- package/lib/sui/ext/move-dex.d.ts.map +1 -1
- package/lib/sui/models.d.ts +5 -4
- package/lib/sui/models.d.ts.map +1 -1
- package/lib/sui/move-coder.d.ts.map +1 -1
- package/lib/sui/move-coder.js +1 -0
- package/lib/sui/move-coder.js.map +1 -1
- package/lib/sui/network.d.ts +2 -2
- package/lib/sui/network.d.ts.map +1 -1
- package/lib/sui/network.js +8 -8
- package/lib/sui/network.js.map +1 -1
- package/lib/sui/sui-object-processor-template.d.ts +6 -5
- package/lib/sui/sui-object-processor-template.d.ts.map +1 -1
- package/lib/sui/sui-object-processor-template.js.map +1 -1
- package/lib/sui/sui-object-processor.d.ts +15 -13
- package/lib/sui/sui-object-processor.d.ts.map +1 -1
- package/lib/sui/sui-object-processor.js +4 -2
- package/lib/sui/sui-object-processor.js.map +1 -1
- package/lib/sui/sui-processor.d.ts +8 -6
- package/lib/sui/sui-processor.d.ts.map +1 -1
- package/lib/sui/sui-processor.js +8 -12
- package/lib/sui/sui-processor.js.map +1 -1
- package/lib/sui/utils.d.ts +3 -2
- package/lib/sui/utils.d.ts.map +1 -1
- package/lib/sui/utils.js +9 -9
- package/lib/sui/utils.js.map +1 -1
- package/lib/testing/memory-database.d.ts.map +1 -1
- package/lib/testing/memory-database.js +4 -1
- package/lib/testing/memory-database.js.map +1 -1
- package/lib/testing/sui-facet.d.ts +5 -5
- package/lib/testing/sui-facet.d.ts.map +1 -1
- package/lib/testing/sui-facet.js +5 -5
- package/lib/testing/sui-facet.js.map +1 -1
- package/lib/utils/block.d.ts +1 -1
- package/lib/utils/block.d.ts.map +1 -1
- package/lib/utils/call.js +1 -1
- package/lib/utils/call.js.map +1 -1
- package/lib/utils/dex-price.js +1 -1
- package/lib/utils/dex-price.js.map +1 -1
- package/package.json +29 -22
- package/src/aptos/abis/0x1.json +8161 -2996
- package/src/aptos/abis/0x3.json +140 -75
- package/src/aptos/abis/0x4.json +75 -52
- package/src/aptos/aptos-processor.ts +9 -9
- package/src/aptos/builtin/0x1.ts +2577 -58
- package/src/aptos/builtin/0x3.ts +1 -1
- package/src/aptos/builtin/0x4.ts +18 -19
- package/src/core/normalization.ts +3 -1
- package/src/core/partition-handler-manager.ts +4 -1
- package/src/eth/base-processor-template.ts +5 -1
- package/src/eth/base-processor.ts +11 -11
- package/src/eth/eth.ts +7 -6
- package/src/fuel/fuel-processor-template.ts +3 -1
- package/src/fuel/transaction.ts +5 -5
- package/src/iota/abis/0x2.json +464 -4
- package/src/iota/builtin/0x2.ts +911 -77
- package/src/iota/iota-processor.ts +10 -10
- package/src/solana/builtin/index.ts +2 -1
- package/src/solana/builtin/spl-token-2022-processor.ts +324 -0
- package/src/solana/builtin/spl-token-processor.ts +30 -30
- package/src/solana/builtin/types.ts +659 -144
- package/src/solana/codegen/codegen.ts +6 -6
- package/src/solana/index.ts +1 -1
- package/src/solana/solana-context.ts +1 -1
- package/src/solana/solana-plugin.ts +1 -1
- package/src/solana/solana-processor.ts +11 -7
- package/src/solana/solana-rpc-types.ts +73 -0
- package/src/store/codegen.ts +2 -2
- package/src/store/decorators.ts +3 -1
- package/src/store/store.ts +1 -1
- package/src/sui/abis/0x1.json +8996 -5745
- package/src/sui/abis/0x2.json +38135 -28859
- package/src/sui/abis/0x3.json +14723 -10726
- package/src/sui/builtin/0x1.ts +4071 -1897
- package/src/sui/builtin/0x2.ts +14397 -7968
- package/src/sui/builtin/0x3.ts +3780 -2021
- package/src/sui/codegen/codegen.ts +4 -5
- package/src/sui/context.ts +15 -16
- package/src/sui/ext/coin.ts +4 -2
- package/src/sui/ext/move-dex.ts +5 -5
- package/src/sui/models.ts +5 -4
- package/src/sui/move-coder.ts +1 -0
- package/src/sui/network.ts +10 -9
- package/src/sui/sui-object-processor-template.ts +7 -6
- package/src/sui/sui-object-processor.ts +29 -21
- package/src/sui/sui-processor.ts +33 -36
- package/src/sui/utils.ts +14 -17
- package/src/testing/memory-database.ts +4 -1
- package/src/testing/sui-facet.ts +13 -13
- package/src/utils/block.ts +1 -1
- package/src/utils/call.ts +2 -2
- package/src/utils/dex-price.ts +1 -1
- package/lib/aptos/codegen/types.test.d.ts +0 -2
- package/lib/aptos/codegen/types.test.d.ts.map +0 -1
- package/lib/aptos/codegen/types.test.js.map +0 -1
- package/lib/aptos/ext/coin-event.test.d.ts +0 -2
- package/lib/aptos/ext/coin-event.test.d.ts.map +0 -1
- package/lib/aptos/ext/coin-event.test.js.map +0 -1
- package/lib/aptos/ext/coin.test.d.ts +0 -2
- package/lib/aptos/ext/coin.test.d.ts.map +0 -1
- package/lib/aptos/ext/coin.test.js.map +0 -1
- package/lib/core/database-schema.test.d.ts +0 -2
- package/lib/core/database-schema.test.d.ts.map +0 -1
- package/lib/core/database-schema.test.js.map +0 -1
- package/lib/core/event-logger.test.d.ts +0 -2
- package/lib/core/event-logger.test.d.ts.map +0 -1
- package/lib/core/event-logger.test.js.map +0 -1
- package/lib/core/normalization.test.d.ts +0 -2
- package/lib/core/normalization.test.d.ts.map +0 -1
- package/lib/core/normalization.test.js.map +0 -1
- package/lib/core/numberish.test.d.ts +0 -2
- package/lib/core/numberish.test.d.ts.map +0 -1
- package/lib/core/numberish.test.js.map +0 -1
- package/lib/eth/base-processor.test.d.ts +0 -2
- package/lib/eth/base-processor.test.d.ts.map +0 -1
- package/lib/eth/base-processor.test.js.map +0 -1
- package/lib/eth/eth.test.d.ts +0 -2
- package/lib/eth/eth.test.d.ts.map +0 -1
- package/lib/eth/eth.test.js.map +0 -1
- package/lib/eth/generic-processor.test.d.ts +0 -2
- package/lib/eth/generic-processor.test.d.ts.map +0 -1
- package/lib/eth/generic-processor.test.js.map +0 -1
- package/lib/eth/provider.test.d.ts +0 -2
- package/lib/eth/provider.test.d.ts.map +0 -1
- package/lib/eth/provider.test.js.map +0 -1
- package/lib/store/convert.test.d.ts +0 -2
- package/lib/store/convert.test.d.ts.map +0 -1
- package/lib/store/convert.test.js.map +0 -1
- package/lib/utils/block.test.d.ts +0 -2
- package/lib/utils/block.test.d.ts.map +0 -1
- package/lib/utils/block.test.js.map +0 -1
- package/lib/utils/dex-price.test.d.ts +0 -2
- package/lib/utils/dex-price.test.d.ts.map +0 -1
- package/lib/utils/dex-price.test.js.map +0 -1
- package/lib/utils/erc20.test.d.ts +0 -2
- package/lib/utils/erc20.test.d.ts.map +0 -1
- package/lib/utils/erc20.test.js.map +0 -1
- package/lib/utils/price.test.d.ts +0 -2
- package/lib/utils/price.test.d.ts.map +0 -1
- package/lib/utils/price.test.js.map +0 -1
|
@@ -1,137 +1,140 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-redeclare */
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
//
|
|
6
|
-
|
|
2
|
+
// Synced from https://github.com/solana-foundation/explorer/blob/master/app/components/instruction/token/types.ts
|
|
3
|
+
// Local `PublicKeyFromString` is a string-coercing variant (we use kit's `Address` branded
|
|
4
|
+
// string instead of v1's `PublicKey` class), so the import is replaced. Everything else
|
|
5
|
+
// mirrors the upstream JSON-parsed shape produced by Solana RPC's `jsonParsed` encoding.
|
|
6
|
+
import { array, boolean, coerce, enums, instance, nullable, number, optional, string, type, union, } from 'superstruct';
|
|
7
|
+
export const PublicKeyFromString = coerce(instance(String), string(), (value) => value);
|
|
7
8
|
export const TokenAmountUi = type({
|
|
8
9
|
amount: string(),
|
|
9
10
|
decimals: number(),
|
|
10
11
|
uiAmountString: string(),
|
|
11
12
|
});
|
|
12
|
-
const InitializeMint = type({
|
|
13
|
-
mint: PublicKeyFromString,
|
|
13
|
+
export const InitializeMint = type({
|
|
14
14
|
decimals: number(),
|
|
15
|
+
freezeAuthority: optional(PublicKeyFromString),
|
|
16
|
+
mint: PublicKeyFromString,
|
|
15
17
|
mintAuthority: PublicKeyFromString,
|
|
16
18
|
rentSysvar: PublicKeyFromString,
|
|
17
|
-
freezeAuthority: optional(PublicKeyFromString),
|
|
18
19
|
});
|
|
19
|
-
const
|
|
20
|
+
export const InitializeMint2 = type({
|
|
21
|
+
decimals: number(),
|
|
22
|
+
freezeAuthority: PublicKeyFromString,
|
|
23
|
+
freezeAuthorityOption: optional(number()),
|
|
24
|
+
mint: PublicKeyFromString,
|
|
25
|
+
mintAuthority: PublicKeyFromString,
|
|
26
|
+
});
|
|
27
|
+
export const InitializeAccount = type({
|
|
20
28
|
account: PublicKeyFromString,
|
|
21
29
|
mint: PublicKeyFromString,
|
|
22
30
|
owner: PublicKeyFromString,
|
|
23
31
|
rentSysvar: PublicKeyFromString,
|
|
24
32
|
});
|
|
25
|
-
const InitializeAccount2 = type({
|
|
33
|
+
export const InitializeAccount2 = type({
|
|
26
34
|
account: PublicKeyFromString,
|
|
27
35
|
mint: PublicKeyFromString,
|
|
28
|
-
rentSysvar: PublicKeyFromString,
|
|
29
36
|
owner: PublicKeyFromString,
|
|
37
|
+
rentSysvar: PublicKeyFromString,
|
|
30
38
|
});
|
|
31
|
-
const InitializeAccount3 = type({
|
|
39
|
+
export const InitializeAccount3 = type({
|
|
32
40
|
account: PublicKeyFromString,
|
|
33
41
|
mint: PublicKeyFromString,
|
|
34
42
|
owner: PublicKeyFromString,
|
|
35
43
|
});
|
|
36
|
-
const InitializeMultisig = type({
|
|
44
|
+
export const InitializeMultisig = type({
|
|
45
|
+
m: number(),
|
|
37
46
|
multisig: PublicKeyFromString,
|
|
38
47
|
rentSysvar: PublicKeyFromString,
|
|
39
48
|
signers: array(PublicKeyFromString),
|
|
40
|
-
m: number(),
|
|
41
49
|
});
|
|
42
50
|
export const Transfer = type({
|
|
43
|
-
source: PublicKeyFromString,
|
|
44
|
-
destination: PublicKeyFromString,
|
|
45
51
|
amount: union([string(), number()]),
|
|
46
52
|
authority: optional(PublicKeyFromString),
|
|
53
|
+
destination: PublicKeyFromString,
|
|
47
54
|
multisigAuthority: optional(PublicKeyFromString),
|
|
48
55
|
signers: optional(array(PublicKeyFromString)),
|
|
49
|
-
});
|
|
50
|
-
const Approve = type({
|
|
51
56
|
source: PublicKeyFromString,
|
|
52
|
-
|
|
57
|
+
});
|
|
58
|
+
export const Approve = type({
|
|
53
59
|
amount: union([string(), number()]),
|
|
54
|
-
|
|
60
|
+
delegate: PublicKeyFromString,
|
|
55
61
|
multisigOwner: optional(PublicKeyFromString),
|
|
62
|
+
owner: optional(PublicKeyFromString),
|
|
56
63
|
signers: optional(array(PublicKeyFromString)),
|
|
57
|
-
});
|
|
58
|
-
const Revoke = type({
|
|
59
64
|
source: PublicKeyFromString,
|
|
60
|
-
|
|
65
|
+
});
|
|
66
|
+
export const Revoke = type({
|
|
61
67
|
multisigOwner: optional(PublicKeyFromString),
|
|
68
|
+
owner: optional(PublicKeyFromString),
|
|
62
69
|
signers: optional(array(PublicKeyFromString)),
|
|
70
|
+
source: PublicKeyFromString,
|
|
63
71
|
});
|
|
64
|
-
const AuthorityType = enums([
|
|
65
|
-
|
|
66
|
-
"freezeAccount",
|
|
67
|
-
"accountOwner",
|
|
68
|
-
"closeAccount",
|
|
69
|
-
]);
|
|
70
|
-
const SetAuthority = type({
|
|
71
|
-
mint: optional(PublicKeyFromString),
|
|
72
|
+
const AuthorityType = enums(['mintTokens', 'freezeAccount', 'accountOwner', 'closeAccount']);
|
|
73
|
+
export const SetAuthority = type({
|
|
72
74
|
account: optional(PublicKeyFromString),
|
|
73
|
-
authorityType: AuthorityType,
|
|
74
|
-
newAuthority: nullable(PublicKeyFromString),
|
|
75
75
|
authority: optional(PublicKeyFromString),
|
|
76
|
+
authorityType: AuthorityType,
|
|
77
|
+
mint: optional(PublicKeyFromString),
|
|
76
78
|
multisigAuthority: optional(PublicKeyFromString),
|
|
79
|
+
newAuthority: nullable(PublicKeyFromString),
|
|
77
80
|
signers: optional(array(PublicKeyFromString)),
|
|
78
81
|
});
|
|
79
|
-
const MintTo = type({
|
|
80
|
-
mint: PublicKeyFromString,
|
|
82
|
+
export const MintTo = type({
|
|
81
83
|
account: PublicKeyFromString,
|
|
82
84
|
amount: union([string(), number()]),
|
|
85
|
+
mint: PublicKeyFromString,
|
|
83
86
|
mintAuthority: optional(PublicKeyFromString),
|
|
84
87
|
multisigMintAuthority: optional(PublicKeyFromString),
|
|
85
88
|
signers: optional(array(PublicKeyFromString)),
|
|
86
89
|
});
|
|
87
|
-
const Burn = type({
|
|
90
|
+
export const Burn = type({
|
|
88
91
|
account: PublicKeyFromString,
|
|
89
|
-
mint: PublicKeyFromString,
|
|
90
92
|
amount: union([string(), number()]),
|
|
91
93
|
authority: optional(PublicKeyFromString),
|
|
94
|
+
mint: PublicKeyFromString,
|
|
92
95
|
multisigAuthority: optional(PublicKeyFromString),
|
|
93
96
|
signers: optional(array(PublicKeyFromString)),
|
|
94
97
|
});
|
|
95
|
-
const CloseAccount = type({
|
|
98
|
+
export const CloseAccount = type({
|
|
96
99
|
account: PublicKeyFromString,
|
|
97
100
|
destination: PublicKeyFromString,
|
|
98
|
-
owner: optional(PublicKeyFromString),
|
|
99
101
|
multisigOwner: optional(PublicKeyFromString),
|
|
102
|
+
owner: optional(PublicKeyFromString),
|
|
100
103
|
signers: optional(array(PublicKeyFromString)),
|
|
101
104
|
});
|
|
102
|
-
const FreezeAccount = type({
|
|
105
|
+
export const FreezeAccount = type({
|
|
103
106
|
account: PublicKeyFromString,
|
|
104
|
-
mint: PublicKeyFromString,
|
|
105
107
|
freezeAuthority: optional(PublicKeyFromString),
|
|
108
|
+
mint: PublicKeyFromString,
|
|
106
109
|
multisigFreezeAuthority: optional(PublicKeyFromString),
|
|
107
110
|
signers: optional(array(PublicKeyFromString)),
|
|
108
111
|
});
|
|
109
|
-
const ThawAccount = type({
|
|
112
|
+
export const ThawAccount = type({
|
|
110
113
|
account: PublicKeyFromString,
|
|
111
|
-
mint: PublicKeyFromString,
|
|
112
114
|
freezeAuthority: optional(PublicKeyFromString),
|
|
115
|
+
mint: PublicKeyFromString,
|
|
113
116
|
multisigFreezeAuthority: optional(PublicKeyFromString),
|
|
114
117
|
signers: optional(array(PublicKeyFromString)),
|
|
115
118
|
});
|
|
116
119
|
export const TransferChecked = type({
|
|
117
|
-
source: PublicKeyFromString,
|
|
118
|
-
mint: PublicKeyFromString,
|
|
119
|
-
destination: PublicKeyFromString,
|
|
120
120
|
authority: optional(PublicKeyFromString),
|
|
121
|
+
destination: PublicKeyFromString,
|
|
122
|
+
mint: PublicKeyFromString,
|
|
121
123
|
multisigAuthority: optional(PublicKeyFromString),
|
|
122
124
|
signers: optional(array(PublicKeyFromString)),
|
|
125
|
+
source: PublicKeyFromString,
|
|
123
126
|
tokenAmount: TokenAmountUi,
|
|
124
127
|
});
|
|
125
|
-
const ApproveChecked = type({
|
|
126
|
-
source: PublicKeyFromString,
|
|
127
|
-
mint: PublicKeyFromString,
|
|
128
|
+
export const ApproveChecked = type({
|
|
128
129
|
delegate: PublicKeyFromString,
|
|
129
|
-
|
|
130
|
+
mint: PublicKeyFromString,
|
|
130
131
|
multisigOwner: optional(PublicKeyFromString),
|
|
132
|
+
owner: optional(PublicKeyFromString),
|
|
131
133
|
signers: optional(array(PublicKeyFromString)),
|
|
134
|
+
source: PublicKeyFromString,
|
|
132
135
|
tokenAmount: TokenAmountUi,
|
|
133
136
|
});
|
|
134
|
-
const MintToChecked = type({
|
|
137
|
+
export const MintToChecked = type({
|
|
135
138
|
account: PublicKeyFromString,
|
|
136
139
|
mint: PublicKeyFromString,
|
|
137
140
|
mintAuthority: optional(PublicKeyFromString),
|
|
@@ -139,63 +142,508 @@ const MintToChecked = type({
|
|
|
139
142
|
signers: optional(array(PublicKeyFromString)),
|
|
140
143
|
tokenAmount: TokenAmountUi,
|
|
141
144
|
});
|
|
142
|
-
const BurnChecked = type({
|
|
145
|
+
export const BurnChecked = type({
|
|
143
146
|
account: PublicKeyFromString,
|
|
144
|
-
mint: PublicKeyFromString,
|
|
145
147
|
authority: optional(PublicKeyFromString),
|
|
148
|
+
mint: PublicKeyFromString,
|
|
146
149
|
multisigAuthority: optional(PublicKeyFromString),
|
|
147
150
|
signers: optional(array(PublicKeyFromString)),
|
|
148
151
|
tokenAmount: TokenAmountUi,
|
|
149
152
|
});
|
|
150
|
-
const SyncNative = type({
|
|
153
|
+
export const SyncNative = type({
|
|
151
154
|
account: PublicKeyFromString,
|
|
152
155
|
});
|
|
153
|
-
const GetAccountDataSize = type({
|
|
154
|
-
mint: PublicKeyFromString,
|
|
156
|
+
export const GetAccountDataSize = type({
|
|
155
157
|
extensionTypes: optional(array(string())),
|
|
158
|
+
mint: PublicKeyFromString,
|
|
156
159
|
});
|
|
157
|
-
const InitializeImmutableOwner = type({
|
|
160
|
+
export const InitializeImmutableOwner = type({
|
|
158
161
|
account: PublicKeyFromString,
|
|
159
162
|
});
|
|
160
|
-
const AmountToUiAmount = type({
|
|
161
|
-
mint: PublicKeyFromString,
|
|
163
|
+
export const AmountToUiAmount = type({
|
|
162
164
|
amount: union([string(), number()]),
|
|
165
|
+
mint: PublicKeyFromString,
|
|
163
166
|
});
|
|
164
|
-
const UiAmountToAmount = type({
|
|
167
|
+
export const UiAmountToAmount = type({
|
|
165
168
|
mint: PublicKeyFromString,
|
|
166
169
|
uiAmount: string(),
|
|
167
170
|
});
|
|
168
|
-
const InitializeMintCloseAuthority = type({
|
|
171
|
+
export const InitializeMintCloseAuthority = type({
|
|
169
172
|
mint: PublicKeyFromString,
|
|
170
173
|
newAuthority: PublicKeyFromString,
|
|
171
174
|
});
|
|
172
|
-
const TransferFeeExtension = type({
|
|
175
|
+
export const TransferFeeExtension = type({
|
|
176
|
+
maximumFee: number(),
|
|
173
177
|
mint: PublicKeyFromString,
|
|
178
|
+
transferFeeBasisPoints: number(),
|
|
174
179
|
transferFeeConfigAuthority: PublicKeyFromString,
|
|
175
180
|
withdrawWitheldAuthority: PublicKeyFromString,
|
|
176
|
-
transferFeeBasisPoints: number(),
|
|
177
|
-
maximumFee: number(),
|
|
178
181
|
});
|
|
179
|
-
const DefaultAccountStateExtension = type({
|
|
180
|
-
mint: PublicKeyFromString,
|
|
182
|
+
export const DefaultAccountStateExtension = type({
|
|
181
183
|
accountState: string(),
|
|
182
184
|
freezeAuthority: optional(PublicKeyFromString),
|
|
185
|
+
mint: PublicKeyFromString,
|
|
183
186
|
});
|
|
184
|
-
const Reallocate = type({
|
|
187
|
+
export const Reallocate = type({
|
|
185
188
|
account: PublicKeyFromString,
|
|
189
|
+
extensionTypes: array(string()),
|
|
186
190
|
payer: PublicKeyFromString,
|
|
187
191
|
systemProgram: PublicKeyFromString,
|
|
188
|
-
extensionTypes: array(string()),
|
|
189
192
|
});
|
|
190
|
-
const MemoTransferExtension = type({
|
|
193
|
+
export const MemoTransferExtension = type({
|
|
191
194
|
account: PublicKeyFromString,
|
|
192
|
-
owner: optional(PublicKeyFromString),
|
|
193
195
|
multisigOwner: optional(PublicKeyFromString),
|
|
196
|
+
owner: optional(PublicKeyFromString),
|
|
194
197
|
signers: optional(array(PublicKeyFromString)),
|
|
195
198
|
});
|
|
196
|
-
const CreateNativeMint = type({
|
|
197
|
-
payer: PublicKeyFromString,
|
|
199
|
+
export const CreateNativeMint = type({
|
|
198
200
|
nativeMint: PublicKeyFromString,
|
|
201
|
+
payer: PublicKeyFromString,
|
|
199
202
|
systemProgram: PublicKeyFromString,
|
|
200
203
|
});
|
|
204
|
+
export const InitializeMetadataPointer = type({
|
|
205
|
+
authority: PublicKeyFromString,
|
|
206
|
+
metadataAddress: PublicKeyFromString,
|
|
207
|
+
mint: PublicKeyFromString,
|
|
208
|
+
});
|
|
209
|
+
export const InitializeGroupMemberPointer = type({
|
|
210
|
+
authority: PublicKeyFromString,
|
|
211
|
+
memberAddress: PublicKeyFromString,
|
|
212
|
+
mint: PublicKeyFromString,
|
|
213
|
+
});
|
|
214
|
+
export const InitializeNonTransferableMint = type({
|
|
215
|
+
mint: PublicKeyFromString,
|
|
216
|
+
});
|
|
217
|
+
export const InitializePermanentDelegate = type({
|
|
218
|
+
delegate: PublicKeyFromString,
|
|
219
|
+
mint: PublicKeyFromString,
|
|
220
|
+
});
|
|
221
|
+
export const InitializeTokenMetadata = type({
|
|
222
|
+
metadata: PublicKeyFromString,
|
|
223
|
+
mint: PublicKeyFromString,
|
|
224
|
+
mintAuthority: PublicKeyFromString,
|
|
225
|
+
name: string(),
|
|
226
|
+
symbol: string(),
|
|
227
|
+
updateAuthority: PublicKeyFromString,
|
|
228
|
+
uri: string(),
|
|
229
|
+
});
|
|
230
|
+
export const UpdateTokenMetadataField = type({
|
|
231
|
+
field: string(),
|
|
232
|
+
metadata: PublicKeyFromString,
|
|
233
|
+
updateAuthority: PublicKeyFromString,
|
|
234
|
+
value: string(),
|
|
235
|
+
});
|
|
236
|
+
export const RemoveTokenMetadataKey = type({
|
|
237
|
+
idempotent: optional(boolean()),
|
|
238
|
+
key: string(),
|
|
239
|
+
metadata: PublicKeyFromString,
|
|
240
|
+
updateAuthority: PublicKeyFromString,
|
|
241
|
+
});
|
|
242
|
+
export const UpdateTokenMetadataUpdateAuthority = type({
|
|
243
|
+
metadata: PublicKeyFromString,
|
|
244
|
+
newUpdateAuthority: PublicKeyFromString,
|
|
245
|
+
updateAuthority: PublicKeyFromString,
|
|
246
|
+
});
|
|
247
|
+
export const UpdateTokenMetadataAuthority = type({
|
|
248
|
+
metadata: PublicKeyFromString,
|
|
249
|
+
newAuthority: PublicKeyFromString,
|
|
250
|
+
updateAuthority: PublicKeyFromString,
|
|
251
|
+
});
|
|
252
|
+
export const EmitTokenMetadata = type({
|
|
253
|
+
end: optional(nullable(number())),
|
|
254
|
+
metadata: PublicKeyFromString,
|
|
255
|
+
start: optional(nullable(number())),
|
|
256
|
+
});
|
|
257
|
+
export const UpdateMetadataPointer = type({
|
|
258
|
+
authority: PublicKeyFromString,
|
|
259
|
+
metadataAddress: optional(nullable(PublicKeyFromString)),
|
|
260
|
+
mint: PublicKeyFromString,
|
|
261
|
+
});
|
|
262
|
+
export const InitializeGroupPointer = type({
|
|
263
|
+
authority: PublicKeyFromString,
|
|
264
|
+
groupAddress: PublicKeyFromString,
|
|
265
|
+
mint: PublicKeyFromString,
|
|
266
|
+
});
|
|
267
|
+
export const UpdateGroupPointer = type({
|
|
268
|
+
authority: PublicKeyFromString,
|
|
269
|
+
groupAddress: optional(nullable(PublicKeyFromString)),
|
|
270
|
+
mint: PublicKeyFromString,
|
|
271
|
+
});
|
|
272
|
+
export const UpdateGroupMemberPointer = type({
|
|
273
|
+
authority: PublicKeyFromString,
|
|
274
|
+
memberAddress: optional(nullable(PublicKeyFromString)),
|
|
275
|
+
mint: PublicKeyFromString,
|
|
276
|
+
});
|
|
277
|
+
export const InitializeTokenGroup = type({
|
|
278
|
+
group: PublicKeyFromString,
|
|
279
|
+
maxSize: number(),
|
|
280
|
+
mint: PublicKeyFromString,
|
|
281
|
+
mintAuthority: PublicKeyFromString,
|
|
282
|
+
updateAuthority: PublicKeyFromString,
|
|
283
|
+
});
|
|
284
|
+
export const UpdateTokenGroupMaxSize = type({
|
|
285
|
+
group: PublicKeyFromString,
|
|
286
|
+
maxSize: number(),
|
|
287
|
+
updateAuthority: PublicKeyFromString,
|
|
288
|
+
});
|
|
289
|
+
export const UpdateTokenGroupUpdateAuthority = type({
|
|
290
|
+
group: PublicKeyFromString,
|
|
291
|
+
newUpdateAuthority: PublicKeyFromString,
|
|
292
|
+
updateAuthority: PublicKeyFromString,
|
|
293
|
+
});
|
|
294
|
+
export const InitializeTokenGroupMember = type({
|
|
295
|
+
group: PublicKeyFromString,
|
|
296
|
+
groupUpdateAuthority: PublicKeyFromString,
|
|
297
|
+
member: PublicKeyFromString,
|
|
298
|
+
memberMint: PublicKeyFromString,
|
|
299
|
+
memberMintAuthority: PublicKeyFromString,
|
|
300
|
+
});
|
|
301
|
+
export const InitializeConfidentialTransferMint = type({
|
|
302
|
+
auditorElGamalPubkey: nullable(string()),
|
|
303
|
+
authority: optional(PublicKeyFromString),
|
|
304
|
+
autoApproveNewAccounts: boolean(),
|
|
305
|
+
mint: PublicKeyFromString,
|
|
306
|
+
});
|
|
307
|
+
export const UpdateConfidentialTransferMint = type({
|
|
308
|
+
auditorElGamalPubkey: nullable(string()),
|
|
309
|
+
autoApproveNewAccounts: boolean(),
|
|
310
|
+
confidentialTransferMintAuthority: PublicKeyFromString,
|
|
311
|
+
mint: PublicKeyFromString,
|
|
312
|
+
});
|
|
313
|
+
export const ConfigureConfidentialTransferAccount = type({
|
|
314
|
+
account: PublicKeyFromString,
|
|
315
|
+
decryptableZeroBalance: string(),
|
|
316
|
+
instructionsSysvar: optional(PublicKeyFromString),
|
|
317
|
+
maximumPendingBalanceCreditCounter: union([string(), number()]),
|
|
318
|
+
mint: PublicKeyFromString,
|
|
319
|
+
multisigOwner: optional(PublicKeyFromString),
|
|
320
|
+
owner: optional(PublicKeyFromString),
|
|
321
|
+
proofContextStateAccount: optional(PublicKeyFromString),
|
|
322
|
+
proofInstructionOffset: number(),
|
|
323
|
+
recordAccount: optional(PublicKeyFromString),
|
|
324
|
+
signers: optional(array(PublicKeyFromString)),
|
|
325
|
+
});
|
|
326
|
+
export const ApproveConfidentialTransferAccount = type({
|
|
327
|
+
account: PublicKeyFromString,
|
|
328
|
+
confidentialTransferAuditorAuthority: PublicKeyFromString,
|
|
329
|
+
mint: PublicKeyFromString,
|
|
330
|
+
});
|
|
331
|
+
export const EmptyConfidentialTransferAccount = type({
|
|
332
|
+
account: PublicKeyFromString,
|
|
333
|
+
instructionsSysvar: optional(PublicKeyFromString),
|
|
334
|
+
multisigOwner: optional(PublicKeyFromString),
|
|
335
|
+
owner: optional(PublicKeyFromString),
|
|
336
|
+
proofContextStateAccount: optional(PublicKeyFromString),
|
|
337
|
+
proofInstructionOffset: number(),
|
|
338
|
+
recordAccount: optional(PublicKeyFromString),
|
|
339
|
+
signers: optional(array(PublicKeyFromString)),
|
|
340
|
+
});
|
|
341
|
+
export const DepositConfidentialTransfer = type({
|
|
342
|
+
amount: union([string(), number()]),
|
|
343
|
+
decimals: number(),
|
|
344
|
+
destination: PublicKeyFromString,
|
|
345
|
+
mint: PublicKeyFromString,
|
|
346
|
+
multisigOwner: optional(PublicKeyFromString),
|
|
347
|
+
owner: optional(PublicKeyFromString),
|
|
348
|
+
signers: optional(array(PublicKeyFromString)),
|
|
349
|
+
source: PublicKeyFromString,
|
|
350
|
+
});
|
|
351
|
+
export const WithdrawConfidentialTransfer = type({
|
|
352
|
+
amount: union([string(), number()]),
|
|
353
|
+
decimals: number(),
|
|
354
|
+
destination: PublicKeyFromString,
|
|
355
|
+
equalityProofContextStateAccount: optional(PublicKeyFromString),
|
|
356
|
+
equalityProofInstructionOffset: number(),
|
|
357
|
+
equalityProofRecordAccount: optional(PublicKeyFromString),
|
|
358
|
+
instructionsSysvar: optional(PublicKeyFromString),
|
|
359
|
+
mint: PublicKeyFromString,
|
|
360
|
+
multisigOwner: optional(PublicKeyFromString),
|
|
361
|
+
newDecryptableAvailableBalance: string(),
|
|
362
|
+
owner: optional(PublicKeyFromString),
|
|
363
|
+
rangeProofContextStateAccount: optional(PublicKeyFromString),
|
|
364
|
+
rangeProofInstructionOffset: number(),
|
|
365
|
+
rangeProofRecordAccount: optional(PublicKeyFromString),
|
|
366
|
+
signers: optional(array(PublicKeyFromString)),
|
|
367
|
+
source: PublicKeyFromString,
|
|
368
|
+
});
|
|
369
|
+
export const ConfidentialTransfer = type({
|
|
370
|
+
ciphertextValidityProofContextStateAccount: optional(PublicKeyFromString),
|
|
371
|
+
ciphertextValidityProofInstructionOffset: number(),
|
|
372
|
+
ciphertextValidityProofRecordAccount: optional(PublicKeyFromString),
|
|
373
|
+
destination: PublicKeyFromString,
|
|
374
|
+
equalityProofContextStateAccount: optional(PublicKeyFromString),
|
|
375
|
+
equalityProofInstructionOffset: number(),
|
|
376
|
+
equalityProofRecordAccount: optional(PublicKeyFromString),
|
|
377
|
+
instructionsSysvar: optional(PublicKeyFromString),
|
|
378
|
+
mint: PublicKeyFromString,
|
|
379
|
+
multisigOwner: optional(PublicKeyFromString),
|
|
380
|
+
newSourceDecryptableAvailableBalance: string(),
|
|
381
|
+
owner: optional(PublicKeyFromString),
|
|
382
|
+
rangeProofContextStateAccount: optional(PublicKeyFromString),
|
|
383
|
+
rangeProofInstructionOffset: number(),
|
|
384
|
+
rangeProofRecordAccount: optional(PublicKeyFromString),
|
|
385
|
+
signers: optional(array(PublicKeyFromString)),
|
|
386
|
+
source: PublicKeyFromString,
|
|
387
|
+
});
|
|
388
|
+
export const ConfidentialTransferWithFee = type({
|
|
389
|
+
destination: PublicKeyFromString,
|
|
390
|
+
equalityProofContextStateAccount: optional(PublicKeyFromString),
|
|
391
|
+
equalityProofInstructionOffset: number(),
|
|
392
|
+
equalityProofRecordAccount: optional(PublicKeyFromString),
|
|
393
|
+
feeCiphertextValidityProofContextStateAccount: optional(PublicKeyFromString),
|
|
394
|
+
feeCiphertextValidityProofInstructionOffset: number(),
|
|
395
|
+
feeCiphertextValidityProofRecordAccount: optional(PublicKeyFromString),
|
|
396
|
+
feeSigmaProofContextStateAccount: optional(PublicKeyFromString),
|
|
397
|
+
feeSigmaProofInstructionOffset: number(),
|
|
398
|
+
feeSigmaProofRecordAccount: optional(PublicKeyFromString),
|
|
399
|
+
instructionsSysvar: optional(PublicKeyFromString),
|
|
400
|
+
mint: PublicKeyFromString,
|
|
401
|
+
multisigOwner: optional(PublicKeyFromString),
|
|
402
|
+
newSourceDecryptableAvailableBalance: string(),
|
|
403
|
+
owner: optional(PublicKeyFromString),
|
|
404
|
+
rangeProofContextStateAccount: optional(PublicKeyFromString),
|
|
405
|
+
rangeProofInstructionOffset: number(),
|
|
406
|
+
rangeProofRecordAccount: optional(PublicKeyFromString),
|
|
407
|
+
signers: optional(array(PublicKeyFromString)),
|
|
408
|
+
source: PublicKeyFromString,
|
|
409
|
+
transferAmountCiphertextValidityProofContextStateAccount: optional(PublicKeyFromString),
|
|
410
|
+
transferAmountCiphertextValidityProofInstructionOffset: number(),
|
|
411
|
+
transferAmountCiphertextValidityProofRecordAccount: optional(PublicKeyFromString),
|
|
412
|
+
});
|
|
413
|
+
export const ApplyPendingConfidentialTransferBalance = type({
|
|
414
|
+
account: PublicKeyFromString,
|
|
415
|
+
expectedPendingBalanceCreditCounter: union([string(), number()]),
|
|
416
|
+
multisigOwner: optional(PublicKeyFromString),
|
|
417
|
+
newDecryptableAvailableBalance: string(),
|
|
418
|
+
owner: optional(PublicKeyFromString),
|
|
419
|
+
signers: optional(array(PublicKeyFromString)),
|
|
420
|
+
});
|
|
421
|
+
export const ConfidentialTransferCreditsToggle = type({
|
|
422
|
+
account: PublicKeyFromString,
|
|
423
|
+
multisigOwner: optional(PublicKeyFromString),
|
|
424
|
+
owner: optional(PublicKeyFromString),
|
|
425
|
+
signers: optional(array(PublicKeyFromString)),
|
|
426
|
+
});
|
|
427
|
+
export const ConfigureConfidentialAccountWithRegistry = type({
|
|
428
|
+
account: PublicKeyFromString,
|
|
429
|
+
mint: PublicKeyFromString,
|
|
430
|
+
registry: PublicKeyFromString,
|
|
431
|
+
});
|
|
432
|
+
export const WithdrawExcessLamports = type({
|
|
433
|
+
authority: optional(PublicKeyFromString),
|
|
434
|
+
destination: PublicKeyFromString,
|
|
435
|
+
multisigAuthority: optional(PublicKeyFromString),
|
|
436
|
+
signers: optional(array(PublicKeyFromString)),
|
|
437
|
+
source: PublicKeyFromString,
|
|
438
|
+
});
|
|
439
|
+
export const TokenInstructionType = enums([
|
|
440
|
+
'initializeMint',
|
|
441
|
+
'initializeMint2',
|
|
442
|
+
'initializeAccount',
|
|
443
|
+
'initializeAccount2',
|
|
444
|
+
'initializeAccount3',
|
|
445
|
+
'initializeGroupMemberPointer',
|
|
446
|
+
'initializeMultisig',
|
|
447
|
+
'initializeNonTransferableMint',
|
|
448
|
+
'initializeTokenGroupMember',
|
|
449
|
+
'initializeTokenMetadata',
|
|
450
|
+
'initializePermanentDelegate',
|
|
451
|
+
'initializeMetadataPointer',
|
|
452
|
+
'transfer',
|
|
453
|
+
'approve',
|
|
454
|
+
'revoke',
|
|
455
|
+
'setAuthority',
|
|
456
|
+
'mintTo',
|
|
457
|
+
'burn',
|
|
458
|
+
'closeAccount',
|
|
459
|
+
'freezeAccount',
|
|
460
|
+
'thawAccount',
|
|
461
|
+
'transfer2',
|
|
462
|
+
'approve2',
|
|
463
|
+
'mintTo2',
|
|
464
|
+
'burn2',
|
|
465
|
+
'transferChecked',
|
|
466
|
+
'approveChecked',
|
|
467
|
+
'mintToChecked',
|
|
468
|
+
'burnChecked',
|
|
469
|
+
'syncNative',
|
|
470
|
+
'getAccountDataSize',
|
|
471
|
+
'initializeImmutableOwner',
|
|
472
|
+
'amountToUiAmount',
|
|
473
|
+
'uiAmountToAmount',
|
|
474
|
+
'initializeMintCloseAuthority',
|
|
475
|
+
'transferFeeExtension',
|
|
476
|
+
'defaultAccountStateExtension',
|
|
477
|
+
'reallocate',
|
|
478
|
+
'memoTransferExtension',
|
|
479
|
+
'updateTokenMetadataField',
|
|
480
|
+
'removeTokenMetadataKey',
|
|
481
|
+
'updateTokenMetadataAuthority',
|
|
482
|
+
'updateTokenMetadataUpdateAuthority',
|
|
483
|
+
'emitTokenMetadata',
|
|
484
|
+
'updateMetadataPointer',
|
|
485
|
+
'initializeGroupPointer',
|
|
486
|
+
'updateGroupPointer',
|
|
487
|
+
'updateGroupMemberPointer',
|
|
488
|
+
'initializeTokenGroup',
|
|
489
|
+
'updateTokenGroupMaxSize',
|
|
490
|
+
'updateTokenGroupUpdateAuthority',
|
|
491
|
+
'createNativeMint',
|
|
492
|
+
'initializeConfidentialTransferMint',
|
|
493
|
+
'updateConfidentialTransferMint',
|
|
494
|
+
'configureConfidentialTransferAccount',
|
|
495
|
+
'approveConfidentialTransferAccount',
|
|
496
|
+
'emptyConfidentialTransferAccount',
|
|
497
|
+
'depositConfidentialTransfer',
|
|
498
|
+
'withdrawConfidentialTransfer',
|
|
499
|
+
'confidentialTransfer',
|
|
500
|
+
'confidentialTransferWithFee',
|
|
501
|
+
'applyPendingConfidentialTransferBalance',
|
|
502
|
+
'enableConfidentialTransferConfidentialCredits',
|
|
503
|
+
'disableConfidentialTransferConfidentialCredits',
|
|
504
|
+
'enableConfidentialTransferNonConfidentialCredits',
|
|
505
|
+
'disableConfidentialTransferNonConfidentialCredits',
|
|
506
|
+
'configureConfidentialAccountWithRegistry',
|
|
507
|
+
'withdrawExcessLamports',
|
|
508
|
+
]);
|
|
509
|
+
export const IX_STRUCTS = {
|
|
510
|
+
amountToUiAmount: AmountToUiAmount,
|
|
511
|
+
applyPendingConfidentialTransferBalance: ApplyPendingConfidentialTransferBalance,
|
|
512
|
+
approve: Approve,
|
|
513
|
+
approve2: ApproveChecked,
|
|
514
|
+
approveChecked: ApproveChecked,
|
|
515
|
+
approveConfidentialTransferAccount: ApproveConfidentialTransferAccount,
|
|
516
|
+
burn: Burn,
|
|
517
|
+
burn2: BurnChecked,
|
|
518
|
+
burnChecked: BurnChecked,
|
|
519
|
+
closeAccount: CloseAccount,
|
|
520
|
+
confidentialTransfer: ConfidentialTransfer,
|
|
521
|
+
confidentialTransferWithFee: ConfidentialTransferWithFee,
|
|
522
|
+
configureConfidentialAccountWithRegistry: ConfigureConfidentialAccountWithRegistry,
|
|
523
|
+
configureConfidentialTransferAccount: ConfigureConfidentialTransferAccount,
|
|
524
|
+
createNativeMint: CreateNativeMint,
|
|
525
|
+
defaultAccountStateExtension: DefaultAccountStateExtension,
|
|
526
|
+
depositConfidentialTransfer: DepositConfidentialTransfer,
|
|
527
|
+
disableConfidentialTransferConfidentialCredits: ConfidentialTransferCreditsToggle,
|
|
528
|
+
disableConfidentialTransferNonConfidentialCredits: ConfidentialTransferCreditsToggle,
|
|
529
|
+
emitTokenMetadata: EmitTokenMetadata,
|
|
530
|
+
emptyConfidentialTransferAccount: EmptyConfidentialTransferAccount,
|
|
531
|
+
enableConfidentialTransferConfidentialCredits: ConfidentialTransferCreditsToggle,
|
|
532
|
+
enableConfidentialTransferNonConfidentialCredits: ConfidentialTransferCreditsToggle,
|
|
533
|
+
freezeAccount: FreezeAccount,
|
|
534
|
+
getAccountDataSize: GetAccountDataSize,
|
|
535
|
+
initializeAccount: InitializeAccount,
|
|
536
|
+
initializeAccount2: InitializeAccount2,
|
|
537
|
+
initializeAccount3: InitializeAccount3,
|
|
538
|
+
initializeConfidentialTransferMint: InitializeConfidentialTransferMint,
|
|
539
|
+
initializeGroupMemberPointer: InitializeGroupMemberPointer,
|
|
540
|
+
initializeGroupPointer: InitializeGroupPointer,
|
|
541
|
+
initializeImmutableOwner: InitializeImmutableOwner,
|
|
542
|
+
initializeMetadataPointer: InitializeMetadataPointer,
|
|
543
|
+
initializeMint: InitializeMint,
|
|
544
|
+
initializeMint2: InitializeMint2,
|
|
545
|
+
initializeMintCloseAuthority: InitializeMintCloseAuthority,
|
|
546
|
+
initializeMultisig: InitializeMultisig,
|
|
547
|
+
initializeNonTransferableMint: InitializeNonTransferableMint,
|
|
548
|
+
initializePermanentDelegate: InitializePermanentDelegate,
|
|
549
|
+
initializeTokenGroup: InitializeTokenGroup,
|
|
550
|
+
initializeTokenGroupMember: InitializeTokenGroupMember,
|
|
551
|
+
initializeTokenMetadata: InitializeTokenMetadata,
|
|
552
|
+
memoTransferExtension: MemoTransferExtension,
|
|
553
|
+
mintTo: MintTo,
|
|
554
|
+
mintTo2: MintToChecked,
|
|
555
|
+
mintToChecked: MintToChecked,
|
|
556
|
+
reallocate: Reallocate,
|
|
557
|
+
removeTokenMetadataKey: RemoveTokenMetadataKey,
|
|
558
|
+
revoke: Revoke,
|
|
559
|
+
setAuthority: SetAuthority,
|
|
560
|
+
syncNative: SyncNative,
|
|
561
|
+
thawAccount: ThawAccount,
|
|
562
|
+
transfer: Transfer,
|
|
563
|
+
transfer2: TransferChecked,
|
|
564
|
+
transferChecked: TransferChecked,
|
|
565
|
+
transferFeeExtension: TransferFeeExtension,
|
|
566
|
+
uiAmountToAmount: UiAmountToAmount,
|
|
567
|
+
updateConfidentialTransferMint: UpdateConfidentialTransferMint,
|
|
568
|
+
updateGroupMemberPointer: UpdateGroupMemberPointer,
|
|
569
|
+
updateGroupPointer: UpdateGroupPointer,
|
|
570
|
+
updateMetadataPointer: UpdateMetadataPointer,
|
|
571
|
+
updateTokenGroupMaxSize: UpdateTokenGroupMaxSize,
|
|
572
|
+
updateTokenGroupUpdateAuthority: UpdateTokenGroupUpdateAuthority,
|
|
573
|
+
updateTokenMetadataAuthority: UpdateTokenMetadataAuthority,
|
|
574
|
+
updateTokenMetadataField: UpdateTokenMetadataField,
|
|
575
|
+
updateTokenMetadataUpdateAuthority: UpdateTokenMetadataUpdateAuthority,
|
|
576
|
+
withdrawConfidentialTransfer: WithdrawConfidentialTransfer,
|
|
577
|
+
withdrawExcessLamports: WithdrawExcessLamports,
|
|
578
|
+
};
|
|
579
|
+
export const IX_TITLES = {
|
|
580
|
+
amountToUiAmount: 'Amount To UiAmount',
|
|
581
|
+
applyPendingConfidentialTransferBalance: 'Apply Pending Confidential Transfer Balance',
|
|
582
|
+
approve: 'Approve',
|
|
583
|
+
approve2: 'Approve (Checked)',
|
|
584
|
+
approveChecked: 'Approve (Checked)',
|
|
585
|
+
approveConfidentialTransferAccount: 'Approve Confidential Transfer Account',
|
|
586
|
+
burn: 'Burn',
|
|
587
|
+
burn2: 'Burn (Checked)',
|
|
588
|
+
burnChecked: 'Burn (Checked)',
|
|
589
|
+
closeAccount: 'Close Account',
|
|
590
|
+
confidentialTransfer: 'Confidential Transfer',
|
|
591
|
+
confidentialTransferWithFee: 'Confidential Transfer With Fee',
|
|
592
|
+
configureConfidentialAccountWithRegistry: 'Configure Confidential Account With Registry',
|
|
593
|
+
configureConfidentialTransferAccount: 'Configure Confidential Transfer Account',
|
|
594
|
+
createNativeMint: 'Create Native Mint',
|
|
595
|
+
defaultAccountStateExtension: 'Default Account State Extension',
|
|
596
|
+
depositConfidentialTransfer: 'Deposit Confidential Transfer',
|
|
597
|
+
disableConfidentialTransferConfidentialCredits: 'Disable Confidential Credits',
|
|
598
|
+
disableConfidentialTransferNonConfidentialCredits: 'Disable Non-Confidential Credits',
|
|
599
|
+
emitTokenMetadata: 'Emit Token Metadata',
|
|
600
|
+
emptyConfidentialTransferAccount: 'Empty Confidential Transfer Account',
|
|
601
|
+
enableConfidentialTransferConfidentialCredits: 'Enable Confidential Credits',
|
|
602
|
+
enableConfidentialTransferNonConfidentialCredits: 'Enable Non-Confidential Credits',
|
|
603
|
+
freezeAccount: 'Freeze Account',
|
|
604
|
+
getAccountDataSize: 'Get Account Data Size',
|
|
605
|
+
initializeAccount: 'Initialize Account',
|
|
606
|
+
initializeAccount2: 'Initialize Account (2)',
|
|
607
|
+
initializeAccount3: 'Initialize Account (3)',
|
|
608
|
+
initializeConfidentialTransferMint: 'Initialize Confidential Transfer Mint',
|
|
609
|
+
initializeGroupMemberPointer: 'Initialize Group Member Pointer',
|
|
610
|
+
initializeGroupPointer: 'Initialize Group Pointer',
|
|
611
|
+
initializeImmutableOwner: 'Initialize Immutable Owner',
|
|
612
|
+
initializeMetadataPointer: 'Initialize Metadata Pointer',
|
|
613
|
+
initializeMint: 'Initialize Mint',
|
|
614
|
+
initializeMint2: 'Initialize Mint (2)',
|
|
615
|
+
initializeMintCloseAuthority: 'Initialize Mint Close Authority',
|
|
616
|
+
initializeMultisig: 'Initialize Multisig',
|
|
617
|
+
initializeNonTransferableMint: 'Initialize Non-Transferable Mint',
|
|
618
|
+
initializePermanentDelegate: 'Initialize Permanent Delegate',
|
|
619
|
+
initializeTokenGroup: 'Initialize Token Group',
|
|
620
|
+
initializeTokenGroupMember: 'Initialize Token Group Member',
|
|
621
|
+
initializeTokenMetadata: 'Initialize Token Metadata',
|
|
622
|
+
memoTransferExtension: 'Memo Transfer Extension',
|
|
623
|
+
mintTo: 'Mint To',
|
|
624
|
+
mintTo2: 'Mint To (Checked)',
|
|
625
|
+
mintToChecked: 'Mint To (Checked)',
|
|
626
|
+
reallocate: 'Reallocate',
|
|
627
|
+
removeTokenMetadataKey: 'Remove Token Metadata Key',
|
|
628
|
+
revoke: 'Revoke',
|
|
629
|
+
setAuthority: 'Set Authority',
|
|
630
|
+
syncNative: 'Sync Native',
|
|
631
|
+
thawAccount: 'Thaw Account',
|
|
632
|
+
transfer: 'Transfer',
|
|
633
|
+
transfer2: 'Transfer (Checked)',
|
|
634
|
+
transferChecked: 'Transfer (Checked)',
|
|
635
|
+
transferFeeExtension: 'Transfer Fee Extension',
|
|
636
|
+
uiAmountToAmount: 'UiAmount To Amount',
|
|
637
|
+
updateConfidentialTransferMint: 'Update Confidential Transfer Mint',
|
|
638
|
+
updateGroupMemberPointer: 'Update Group Member Pointer',
|
|
639
|
+
updateGroupPointer: 'Update Group Pointer',
|
|
640
|
+
updateMetadataPointer: 'Update Metadata Pointer',
|
|
641
|
+
updateTokenGroupMaxSize: 'Update Token Group Max Size',
|
|
642
|
+
updateTokenGroupUpdateAuthority: 'Update Token Group Update Authority',
|
|
643
|
+
updateTokenMetadataAuthority: 'Update Token Metadata Authority',
|
|
644
|
+
updateTokenMetadataField: 'Update Token Metadata Field',
|
|
645
|
+
updateTokenMetadataUpdateAuthority: 'Update Token Metadata Update Authority',
|
|
646
|
+
withdrawConfidentialTransfer: 'Withdraw Confidential Transfer',
|
|
647
|
+
withdrawExcessLamports: 'Withdraw Excess Lamports',
|
|
648
|
+
};
|
|
201
649
|
//# sourceMappingURL=types.js.map
|