@ledgerhq/coin-solana 0.35.0 → 0.35.1-nightly.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/.unimportedrc.json +2 -1
- package/CHANGELOG.md +16 -0
- package/lib/network/chain/account/parser.d.ts +1 -1
- package/lib/network/chain/account/stake.d.ts +23 -23
- package/lib/network/chain/account/token.d.ts +7 -7
- package/lib/network/chain/instruction/stake/types.d.ts +8 -8
- package/lib/network/chain/instruction/system/types.d.ts +14 -14
- package/lib/prepareTransaction.d.ts.map +1 -1
- package/lib/prepareTransaction.js +4 -0
- package/lib/prepareTransaction.js.map +1 -1
- package/lib/signOperation.d.ts.map +1 -1
- package/lib/signOperation.js +2 -0
- package/lib/signOperation.js.map +1 -1
- package/lib/signer.d.ts +1 -0
- package/lib/signer.d.ts.map +1 -1
- package/lib/signer.js.map +1 -1
- package/lib/{bridge.integration.test.d.ts → test/bridge.dataset.d.ts} +2 -2
- package/lib/test/bridge.dataset.d.ts.map +1 -0
- package/lib/{bridge.integration.test.js → test/bridge.dataset.js} +8 -8
- package/lib/test/bridge.dataset.js.map +1 -0
- package/lib/tx-fees.js +2 -0
- package/lib/tx-fees.js.map +1 -1
- package/lib/types.d.ts +2 -1
- package/lib/types.d.ts.map +1 -1
- package/lib-es/network/chain/account/parser.d.ts +1 -1
- package/lib-es/network/chain/account/stake.d.ts +23 -23
- package/lib-es/network/chain/account/token.d.ts +7 -7
- package/lib-es/network/chain/instruction/stake/types.d.ts +8 -8
- package/lib-es/network/chain/instruction/system/types.d.ts +14 -14
- package/lib-es/prepareTransaction.d.ts.map +1 -1
- package/lib-es/prepareTransaction.js +4 -0
- package/lib-es/prepareTransaction.js.map +1 -1
- package/lib-es/signOperation.d.ts.map +1 -1
- package/lib-es/signOperation.js +2 -0
- package/lib-es/signOperation.js.map +1 -1
- package/lib-es/signer.d.ts +1 -0
- package/lib-es/signer.d.ts.map +1 -1
- package/lib-es/signer.js.map +1 -1
- package/lib-es/{bridge.integration.test.d.ts → test/bridge.dataset.d.ts} +2 -2
- package/lib-es/test/bridge.dataset.d.ts.map +1 -0
- package/lib-es/{bridge.integration.test.js → test/bridge.dataset.js} +8 -8
- package/lib-es/test/bridge.dataset.js.map +1 -0
- package/lib-es/tx-fees.js +2 -0
- package/lib-es/tx-fees.js.map +1 -1
- package/lib-es/types.d.ts +2 -1
- package/lib-es/types.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/prepareTransaction.ts +4 -0
- package/src/signOperation.ts +2 -0
- package/src/signer.ts +1 -0
- package/src/{bridge.integration.test.ts → test/bridge.dataset.ts} +8 -8
- package/src/tests/preload.fixtures.ts +1 -1
- package/src/tx-fees.ts +2 -0
- package/src/types.ts +2 -1
- package/lib/__fixtures__/solana-spl-epjfwdd5aufqssqem2qn1xzybapc8g4weggkzwytdt1v.json +0 -50
- package/lib/__tests__/fixtures/helpers.fixture.d.ts +0 -138
- package/lib/__tests__/fixtures/helpers.fixture.d.ts.map +0 -1
- package/lib/__tests__/fixtures/helpers.fixture.js +0 -124
- package/lib/__tests__/fixtures/helpers.fixture.js.map +0 -1
- package/lib/__tests__/scan-accounts.test.d.ts +0 -2
- package/lib/__tests__/scan-accounts.test.d.ts.map +0 -1
- package/lib/__tests__/scan-accounts.test.js +0 -426
- package/lib/__tests__/scan-accounts.test.js.map +0 -1
- package/lib/__tests__/unit/hw-signMessage.unit.test.d.ts +0 -2
- package/lib/__tests__/unit/hw-signMessage.unit.test.d.ts.map +0 -1
- package/lib/__tests__/unit/hw-signMessage.unit.test.js +0 -91
- package/lib/__tests__/unit/hw-signMessage.unit.test.js.map +0 -1
- package/lib/__tests__/unit/nftResolvers.unit.test.d.ts +0 -2
- package/lib/__tests__/unit/nftResolvers.unit.test.d.ts.map +0 -1
- package/lib/__tests__/unit/nftResolvers.unit.test.js +0 -147
- package/lib/__tests__/unit/nftResolvers.unit.test.js.map +0 -1
- package/lib/__tests__/unit/utils.unit.test.d.ts +0 -2
- package/lib/__tests__/unit/utils.unit.test.d.ts.map +0 -1
- package/lib/__tests__/unit/utils.unit.test.js +0 -16
- package/lib/__tests__/unit/utils.unit.test.js.map +0 -1
- package/lib/__tests__/unit/validator-app.unit.test.d.ts +0 -2
- package/lib/__tests__/unit/validator-app.unit.test.d.ts.map +0 -1
- package/lib/__tests__/unit/validator-app.unit.test.js +0 -169
- package/lib/__tests__/unit/validator-app.unit.test.js.map +0 -1
- package/lib/bridge.integration.test.d.ts.map +0 -1
- package/lib/bridge.integration.test.js.map +0 -1
- package/lib/buildTransaction.test.d.ts +0 -2
- package/lib/buildTransaction.test.d.ts.map +0 -1
- package/lib/buildTransaction.test.js +0 -164
- package/lib/buildTransaction.test.js.map +0 -1
- package/lib/cryptoAssetsStore.test.d.ts +0 -2
- package/lib/cryptoAssetsStore.test.d.ts.map +0 -1
- package/lib/cryptoAssetsStore.test.js +0 -15
- package/lib/cryptoAssetsStore.test.js.map +0 -1
- package/lib/network/chain/web3.integration.test.d.ts +0 -2
- package/lib/network/chain/web3.integration.test.d.ts.map +0 -1
- package/lib/network/chain/web3.integration.test.js +0 -70
- package/lib/network/chain/web3.integration.test.js.map +0 -1
- package/lib/offchainMessage/format.unit.test.d.ts +0 -2
- package/lib/offchainMessage/format.unit.test.d.ts.map +0 -1
- package/lib/offchainMessage/format.unit.test.js +0 -124
- package/lib/offchainMessage/format.unit.test.js.map +0 -1
- package/lib/preload.test.d.ts +0 -2
- package/lib/preload.test.d.ts.map +0 -1
- package/lib/preload.test.js +0 -9
- package/lib/preload.test.js.map +0 -1
- package/lib/prepareTransaction.test.d.ts +0 -2
- package/lib/prepareTransaction.test.d.ts.map +0 -1
- package/lib/prepareTransaction.test.js +0 -139
- package/lib/prepareTransaction.test.js.map +0 -1
- package/lib/signOperation.test.d.ts +0 -3
- package/lib/signOperation.test.d.ts.map +0 -1
- package/lib/signOperation.test.js +0 -139
- package/lib/signOperation.test.js.map +0 -1
- package/lib/tests/preload.fixtures.d.ts +0 -5
- package/lib/tests/preload.fixtures.d.ts.map +0 -1
- package/lib/tests/preload.fixtures.js +0 -28
- package/lib/tests/preload.fixtures.js.map +0 -1
- package/lib/tests/preload.unit.test.d.ts +0 -2
- package/lib/tests/preload.unit.test.d.ts.map +0 -1
- package/lib/tests/preload.unit.test.js +0 -175
- package/lib/tests/preload.unit.test.js.map +0 -1
- package/lib/tests/stakes-bridge.unit.test.d.ts +0 -2
- package/lib/tests/stakes-bridge.unit.test.d.ts.map +0 -1
- package/lib/tests/stakes-bridge.unit.test.js +0 -166
- package/lib/tests/stakes-bridge.unit.test.js.map +0 -1
- package/lib/tests/tokens-bridge.unit.test.d.ts +0 -2
- package/lib/tests/tokens-bridge.unit.test.d.ts.map +0 -1
- package/lib/tests/tokens-bridge.unit.test.js +0 -615
- package/lib/tests/tokens-bridge.unit.test.js.map +0 -1
- package/lib-es/__fixtures__/solana-spl-epjfwdd5aufqssqem2qn1xzybapc8g4weggkzwytdt1v.json +0 -50
- package/lib-es/__tests__/fixtures/helpers.fixture.d.ts +0 -138
- package/lib-es/__tests__/fixtures/helpers.fixture.d.ts.map +0 -1
- package/lib-es/__tests__/fixtures/helpers.fixture.js +0 -110
- package/lib-es/__tests__/fixtures/helpers.fixture.js.map +0 -1
- package/lib-es/__tests__/scan-accounts.test.d.ts +0 -2
- package/lib-es/__tests__/scan-accounts.test.d.ts.map +0 -1
- package/lib-es/__tests__/scan-accounts.test.js +0 -398
- package/lib-es/__tests__/scan-accounts.test.js.map +0 -1
- package/lib-es/__tests__/unit/hw-signMessage.unit.test.d.ts +0 -2
- package/lib-es/__tests__/unit/hw-signMessage.unit.test.d.ts.map +0 -1
- package/lib-es/__tests__/unit/hw-signMessage.unit.test.js +0 -86
- package/lib-es/__tests__/unit/hw-signMessage.unit.test.js.map +0 -1
- package/lib-es/__tests__/unit/nftResolvers.unit.test.d.ts +0 -2
- package/lib-es/__tests__/unit/nftResolvers.unit.test.d.ts.map +0 -1
- package/lib-es/__tests__/unit/nftResolvers.unit.test.js +0 -142
- package/lib-es/__tests__/unit/nftResolvers.unit.test.js.map +0 -1
- package/lib-es/__tests__/unit/utils.unit.test.d.ts +0 -2
- package/lib-es/__tests__/unit/utils.unit.test.d.ts.map +0 -1
- package/lib-es/__tests__/unit/utils.unit.test.js +0 -14
- package/lib-es/__tests__/unit/utils.unit.test.js.map +0 -1
- package/lib-es/__tests__/unit/validator-app.unit.test.d.ts +0 -2
- package/lib-es/__tests__/unit/validator-app.unit.test.d.ts.map +0 -1
- package/lib-es/__tests__/unit/validator-app.unit.test.js +0 -144
- package/lib-es/__tests__/unit/validator-app.unit.test.js.map +0 -1
- package/lib-es/bridge.integration.test.d.ts.map +0 -1
- package/lib-es/bridge.integration.test.js.map +0 -1
- package/lib-es/buildTransaction.test.d.ts +0 -2
- package/lib-es/buildTransaction.test.d.ts.map +0 -1
- package/lib-es/buildTransaction.test.js +0 -162
- package/lib-es/buildTransaction.test.js.map +0 -1
- package/lib-es/cryptoAssetsStore.test.d.ts +0 -2
- package/lib-es/cryptoAssetsStore.test.d.ts.map +0 -1
- package/lib-es/cryptoAssetsStore.test.js +0 -13
- package/lib-es/cryptoAssetsStore.test.js.map +0 -1
- package/lib-es/network/chain/web3.integration.test.d.ts +0 -2
- package/lib-es/network/chain/web3.integration.test.d.ts.map +0 -1
- package/lib-es/network/chain/web3.integration.test.js +0 -68
- package/lib-es/network/chain/web3.integration.test.js.map +0 -1
- package/lib-es/offchainMessage/format.unit.test.d.ts +0 -2
- package/lib-es/offchainMessage/format.unit.test.d.ts.map +0 -1
- package/lib-es/offchainMessage/format.unit.test.js +0 -122
- package/lib-es/offchainMessage/format.unit.test.js.map +0 -1
- package/lib-es/preload.test.d.ts +0 -2
- package/lib-es/preload.test.d.ts.map +0 -1
- package/lib-es/preload.test.js +0 -7
- package/lib-es/preload.test.js.map +0 -1
- package/lib-es/prepareTransaction.test.d.ts +0 -2
- package/lib-es/prepareTransaction.test.d.ts.map +0 -1
- package/lib-es/prepareTransaction.test.js +0 -134
- package/lib-es/prepareTransaction.test.js.map +0 -1
- package/lib-es/signOperation.test.d.ts +0 -3
- package/lib-es/signOperation.test.d.ts.map +0 -1
- package/lib-es/signOperation.test.js +0 -135
- package/lib-es/signOperation.test.js.map +0 -1
- package/lib-es/tests/preload.fixtures.d.ts +0 -5
- package/lib-es/tests/preload.fixtures.d.ts.map +0 -1
- package/lib-es/tests/preload.fixtures.js +0 -25
- package/lib-es/tests/preload.fixtures.js.map +0 -1
- package/lib-es/tests/preload.unit.test.d.ts +0 -2
- package/lib-es/tests/preload.unit.test.d.ts.map +0 -1
- package/lib-es/tests/preload.unit.test.js +0 -147
- package/lib-es/tests/preload.unit.test.js.map +0 -1
- package/lib-es/tests/stakes-bridge.unit.test.d.ts +0 -2
- package/lib-es/tests/stakes-bridge.unit.test.d.ts.map +0 -1
- package/lib-es/tests/stakes-bridge.unit.test.js +0 -161
- package/lib-es/tests/stakes-bridge.unit.test.js.map +0 -1
- package/lib-es/tests/tokens-bridge.unit.test.d.ts +0 -2
- package/lib-es/tests/tokens-bridge.unit.test.d.ts.map +0 -1
- package/lib-es/tests/tokens-bridge.unit.test.js +0 -610
- package/lib-es/tests/tokens-bridge.unit.test.js.map +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @ledgerhq/coin-solana@0.35.0 build /home/runner/work/ledger-live/ledger-live/libs/coin-modules/coin-solana
|
|
2
|
+
> @ledgerhq/coin-solana@0.35.1-nightly.0 build /home/runner/work/ledger-live/ledger-live/libs/coin-modules/coin-solana
|
|
3
3
|
> tsc --outDir lib --module commonjs --moduleResolution node10 && tsc -m ES6 --outDir lib-es
|
|
4
4
|
|
package/.unimportedrc.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @ledgerhq/coin-solana
|
|
2
2
|
|
|
3
|
+
## 0.35.1-nightly.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`a731c4c`](https://github.com/LedgerHQ/ledger-live/commit/a731c4cd492a968eb7baa981fdd8aaddedd21f25)]:
|
|
8
|
+
- @ledgerhq/coin-framework@6.8.0-nightly.1
|
|
9
|
+
|
|
10
|
+
## 0.35.1-nightly.0
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`2c6a198`](https://github.com/LedgerHQ/ledger-live/commit/2c6a198ba28391695202a0787ce168c53768ff37)]:
|
|
15
|
+
- @ledgerhq/types-live@6.88.0-nightly.0
|
|
16
|
+
- @ledgerhq/coin-framework@6.7.1-nightly.0
|
|
17
|
+
- @ledgerhq/cryptoassets@13.31.1-nightly.0
|
|
18
|
+
|
|
3
19
|
## 0.35.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -12,8 +12,8 @@ export declare function parseStakeAccountInfo(info: unknown): StakeAccountInfo;
|
|
|
12
12
|
export declare function tryParseAsStakeAccount(data: ParsedAccountData): StakeAccountInfo | undefined | Error;
|
|
13
13
|
export declare function parseStakeHistoryEntry(entry: unknown): {
|
|
14
14
|
epoch: import("bignumber.js").BigNumber;
|
|
15
|
+
effective: import("bignumber.js").BigNumber;
|
|
15
16
|
activating: import("bignumber.js").BigNumber;
|
|
16
17
|
deactivating: import("bignumber.js").BigNumber;
|
|
17
|
-
effective: import("bignumber.js").BigNumber;
|
|
18
18
|
};
|
|
19
19
|
//# sourceMappingURL=parser.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Infer } from "superstruct";
|
|
2
2
|
export type StakeAccountType = Infer<typeof StakeAccountType>;
|
|
3
|
-
export declare const StakeAccountType: import("superstruct").Struct<"
|
|
4
|
-
initialized: "initialized";
|
|
3
|
+
export declare const StakeAccountType: import("superstruct").Struct<"uninitialized" | "initialized" | "delegated" | "rewardsPool", {
|
|
5
4
|
uninitialized: "uninitialized";
|
|
5
|
+
initialized: "initialized";
|
|
6
6
|
delegated: "delegated";
|
|
7
7
|
rewardsPool: "rewardsPool";
|
|
8
8
|
}>;
|
|
@@ -14,8 +14,8 @@ export declare const StakeMeta: import("superstruct").Struct<{
|
|
|
14
14
|
withdrawer: import("@solana/web3.js").PublicKey;
|
|
15
15
|
};
|
|
16
16
|
lockup: {
|
|
17
|
-
epoch: number;
|
|
18
17
|
unixTimestamp: number;
|
|
18
|
+
epoch: number;
|
|
19
19
|
custodian: import("@solana/web3.js").PublicKey;
|
|
20
20
|
};
|
|
21
21
|
}, {
|
|
@@ -28,8 +28,8 @@ export declare const StakeMeta: import("superstruct").Struct<{
|
|
|
28
28
|
withdrawer: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
29
29
|
}>;
|
|
30
30
|
lockup: import("superstruct").Struct<{
|
|
31
|
-
epoch: number;
|
|
32
31
|
unixTimestamp: number;
|
|
32
|
+
epoch: number;
|
|
33
33
|
custodian: import("@solana/web3.js").PublicKey;
|
|
34
34
|
}, {
|
|
35
35
|
unixTimestamp: import("superstruct").Struct<number, null>;
|
|
@@ -38,8 +38,8 @@ export declare const StakeMeta: import("superstruct").Struct<{
|
|
|
38
38
|
}>;
|
|
39
39
|
}>;
|
|
40
40
|
export declare const Delegation: import("superstruct").Struct<{
|
|
41
|
-
stake: import("bignumber.js").BigNumber;
|
|
42
41
|
voter: import("@solana/web3.js").PublicKey;
|
|
42
|
+
stake: import("bignumber.js").BigNumber;
|
|
43
43
|
activationEpoch: import("bignumber.js").BigNumber;
|
|
44
44
|
deactivationEpoch: import("bignumber.js").BigNumber;
|
|
45
45
|
warmupCooldownRate: number;
|
|
@@ -53,9 +53,9 @@ export declare const Delegation: import("superstruct").Struct<{
|
|
|
53
53
|
export type Delegation = Infer<typeof Delegation>;
|
|
54
54
|
export declare const StakeHistoryEntry: import("superstruct").Struct<{
|
|
55
55
|
epoch: import("bignumber.js").BigNumber;
|
|
56
|
+
effective: import("bignumber.js").BigNumber;
|
|
56
57
|
activating: import("bignumber.js").BigNumber;
|
|
57
58
|
deactivating: import("bignumber.js").BigNumber;
|
|
58
|
-
effective: import("bignumber.js").BigNumber;
|
|
59
59
|
}, {
|
|
60
60
|
epoch: import("superstruct").Struct<import("bignumber.js").BigNumber, null>;
|
|
61
61
|
effective: import("superstruct").Struct<import("bignumber.js").BigNumber, null>;
|
|
@@ -67,8 +67,8 @@ export type StakeAccountInfo = Infer<typeof StakeAccountInfo>;
|
|
|
67
67
|
export declare const StakeAccountInfo: import("superstruct").Struct<{
|
|
68
68
|
stake: {
|
|
69
69
|
delegation: {
|
|
70
|
-
stake: import("bignumber.js").BigNumber;
|
|
71
70
|
voter: import("@solana/web3.js").PublicKey;
|
|
71
|
+
stake: import("bignumber.js").BigNumber;
|
|
72
72
|
activationEpoch: import("bignumber.js").BigNumber;
|
|
73
73
|
deactivationEpoch: import("bignumber.js").BigNumber;
|
|
74
74
|
warmupCooldownRate: number;
|
|
@@ -82,8 +82,8 @@ export declare const StakeAccountInfo: import("superstruct").Struct<{
|
|
|
82
82
|
withdrawer: import("@solana/web3.js").PublicKey;
|
|
83
83
|
};
|
|
84
84
|
lockup: {
|
|
85
|
-
epoch: number;
|
|
86
85
|
unixTimestamp: number;
|
|
86
|
+
epoch: number;
|
|
87
87
|
custodian: import("@solana/web3.js").PublicKey;
|
|
88
88
|
};
|
|
89
89
|
};
|
|
@@ -95,8 +95,8 @@ export declare const StakeAccountInfo: import("superstruct").Struct<{
|
|
|
95
95
|
withdrawer: import("@solana/web3.js").PublicKey;
|
|
96
96
|
};
|
|
97
97
|
lockup: {
|
|
98
|
-
epoch: number;
|
|
99
98
|
unixTimestamp: number;
|
|
99
|
+
epoch: number;
|
|
100
100
|
custodian: import("@solana/web3.js").PublicKey;
|
|
101
101
|
};
|
|
102
102
|
}, {
|
|
@@ -109,8 +109,8 @@ export declare const StakeAccountInfo: import("superstruct").Struct<{
|
|
|
109
109
|
withdrawer: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
110
110
|
}>;
|
|
111
111
|
lockup: import("superstruct").Struct<{
|
|
112
|
-
epoch: number;
|
|
113
112
|
unixTimestamp: number;
|
|
113
|
+
epoch: number;
|
|
114
114
|
custodian: import("@solana/web3.js").PublicKey;
|
|
115
115
|
}, {
|
|
116
116
|
unixTimestamp: import("superstruct").Struct<number, null>;
|
|
@@ -120,8 +120,8 @@ export declare const StakeAccountInfo: import("superstruct").Struct<{
|
|
|
120
120
|
}>;
|
|
121
121
|
stake: import("superstruct").Struct<{
|
|
122
122
|
delegation: {
|
|
123
|
-
stake: import("bignumber.js").BigNumber;
|
|
124
123
|
voter: import("@solana/web3.js").PublicKey;
|
|
124
|
+
stake: import("bignumber.js").BigNumber;
|
|
125
125
|
activationEpoch: import("bignumber.js").BigNumber;
|
|
126
126
|
deactivationEpoch: import("bignumber.js").BigNumber;
|
|
127
127
|
warmupCooldownRate: number;
|
|
@@ -129,8 +129,8 @@ export declare const StakeAccountInfo: import("superstruct").Struct<{
|
|
|
129
129
|
creditsObserved: number;
|
|
130
130
|
} | null, {
|
|
131
131
|
delegation: import("superstruct").Struct<{
|
|
132
|
-
stake: import("bignumber.js").BigNumber;
|
|
133
132
|
voter: import("@solana/web3.js").PublicKey;
|
|
133
|
+
stake: import("bignumber.js").BigNumber;
|
|
134
134
|
activationEpoch: import("bignumber.js").BigNumber;
|
|
135
135
|
deactivationEpoch: import("bignumber.js").BigNumber;
|
|
136
136
|
warmupCooldownRate: number;
|
|
@@ -146,12 +146,12 @@ export declare const StakeAccountInfo: import("superstruct").Struct<{
|
|
|
146
146
|
}>;
|
|
147
147
|
export type StakeAccount = Infer<typeof StakeAccount>;
|
|
148
148
|
export declare const StakeAccount: import("superstruct").Struct<{
|
|
149
|
-
type: "
|
|
149
|
+
type: "uninitialized" | "initialized" | "delegated" | "rewardsPool";
|
|
150
150
|
info: {
|
|
151
151
|
stake: {
|
|
152
152
|
delegation: {
|
|
153
|
-
stake: import("bignumber.js").BigNumber;
|
|
154
153
|
voter: import("@solana/web3.js").PublicKey;
|
|
154
|
+
stake: import("bignumber.js").BigNumber;
|
|
155
155
|
activationEpoch: import("bignumber.js").BigNumber;
|
|
156
156
|
deactivationEpoch: import("bignumber.js").BigNumber;
|
|
157
157
|
warmupCooldownRate: number;
|
|
@@ -165,24 +165,24 @@ export declare const StakeAccount: import("superstruct").Struct<{
|
|
|
165
165
|
withdrawer: import("@solana/web3.js").PublicKey;
|
|
166
166
|
};
|
|
167
167
|
lockup: {
|
|
168
|
-
epoch: number;
|
|
169
168
|
unixTimestamp: number;
|
|
169
|
+
epoch: number;
|
|
170
170
|
custodian: import("@solana/web3.js").PublicKey;
|
|
171
171
|
};
|
|
172
172
|
};
|
|
173
173
|
};
|
|
174
174
|
}, {
|
|
175
|
-
type: import("superstruct").Struct<"
|
|
176
|
-
initialized: "initialized";
|
|
175
|
+
type: import("superstruct").Struct<"uninitialized" | "initialized" | "delegated" | "rewardsPool", {
|
|
177
176
|
uninitialized: "uninitialized";
|
|
177
|
+
initialized: "initialized";
|
|
178
178
|
delegated: "delegated";
|
|
179
179
|
rewardsPool: "rewardsPool";
|
|
180
180
|
}>;
|
|
181
181
|
info: import("superstruct").Struct<{
|
|
182
182
|
stake: {
|
|
183
183
|
delegation: {
|
|
184
|
-
stake: import("bignumber.js").BigNumber;
|
|
185
184
|
voter: import("@solana/web3.js").PublicKey;
|
|
185
|
+
stake: import("bignumber.js").BigNumber;
|
|
186
186
|
activationEpoch: import("bignumber.js").BigNumber;
|
|
187
187
|
deactivationEpoch: import("bignumber.js").BigNumber;
|
|
188
188
|
warmupCooldownRate: number;
|
|
@@ -196,8 +196,8 @@ export declare const StakeAccount: import("superstruct").Struct<{
|
|
|
196
196
|
withdrawer: import("@solana/web3.js").PublicKey;
|
|
197
197
|
};
|
|
198
198
|
lockup: {
|
|
199
|
-
epoch: number;
|
|
200
199
|
unixTimestamp: number;
|
|
200
|
+
epoch: number;
|
|
201
201
|
custodian: import("@solana/web3.js").PublicKey;
|
|
202
202
|
};
|
|
203
203
|
};
|
|
@@ -209,8 +209,8 @@ export declare const StakeAccount: import("superstruct").Struct<{
|
|
|
209
209
|
withdrawer: import("@solana/web3.js").PublicKey;
|
|
210
210
|
};
|
|
211
211
|
lockup: {
|
|
212
|
-
epoch: number;
|
|
213
212
|
unixTimestamp: number;
|
|
213
|
+
epoch: number;
|
|
214
214
|
custodian: import("@solana/web3.js").PublicKey;
|
|
215
215
|
};
|
|
216
216
|
}, {
|
|
@@ -223,8 +223,8 @@ export declare const StakeAccount: import("superstruct").Struct<{
|
|
|
223
223
|
withdrawer: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
224
224
|
}>;
|
|
225
225
|
lockup: import("superstruct").Struct<{
|
|
226
|
-
epoch: number;
|
|
227
226
|
unixTimestamp: number;
|
|
227
|
+
epoch: number;
|
|
228
228
|
custodian: import("@solana/web3.js").PublicKey;
|
|
229
229
|
}, {
|
|
230
230
|
unixTimestamp: import("superstruct").Struct<number, null>;
|
|
@@ -234,8 +234,8 @@ export declare const StakeAccount: import("superstruct").Struct<{
|
|
|
234
234
|
}>;
|
|
235
235
|
stake: import("superstruct").Struct<{
|
|
236
236
|
delegation: {
|
|
237
|
-
stake: import("bignumber.js").BigNumber;
|
|
238
237
|
voter: import("@solana/web3.js").PublicKey;
|
|
238
|
+
stake: import("bignumber.js").BigNumber;
|
|
239
239
|
activationEpoch: import("bignumber.js").BigNumber;
|
|
240
240
|
deactivationEpoch: import("bignumber.js").BigNumber;
|
|
241
241
|
warmupCooldownRate: number;
|
|
@@ -243,8 +243,8 @@ export declare const StakeAccount: import("superstruct").Struct<{
|
|
|
243
243
|
creditsObserved: number;
|
|
244
244
|
} | null, {
|
|
245
245
|
delegation: import("superstruct").Struct<{
|
|
246
|
-
stake: import("bignumber.js").BigNumber;
|
|
247
246
|
voter: import("@solana/web3.js").PublicKey;
|
|
247
|
+
stake: import("bignumber.js").BigNumber;
|
|
248
248
|
activationEpoch: import("bignumber.js").BigNumber;
|
|
249
249
|
deactivationEpoch: import("bignumber.js").BigNumber;
|
|
250
250
|
warmupCooldownRate: number;
|
|
@@ -6,14 +6,14 @@ export declare const TokenAccountType: import("superstruct").Struct<"mint" | "ac
|
|
|
6
6
|
multisig: "multisig";
|
|
7
7
|
}>;
|
|
8
8
|
export type TokenAccountState = Infer<typeof AccountState>;
|
|
9
|
-
export declare const AccountState: import("superstruct").Struct<"
|
|
9
|
+
export declare const AccountState: import("superstruct").Struct<"uninitialized" | "initialized" | "frozen", {
|
|
10
|
+
uninitialized: "uninitialized";
|
|
10
11
|
initialized: "initialized";
|
|
11
12
|
frozen: "frozen";
|
|
12
|
-
uninitialized: "uninitialized";
|
|
13
13
|
}>;
|
|
14
14
|
export type TokenAccountInfo = Infer<typeof TokenAccountInfo>;
|
|
15
15
|
export declare const TokenAccountInfo: import("superstruct").Struct<{
|
|
16
|
-
state: "
|
|
16
|
+
state: "uninitialized" | "initialized" | "frozen";
|
|
17
17
|
mint: import("@solana/web3.js").PublicKey;
|
|
18
18
|
owner: import("@solana/web3.js").PublicKey;
|
|
19
19
|
tokenAmount: {
|
|
@@ -23,14 +23,14 @@ export declare const TokenAccountInfo: import("superstruct").Struct<{
|
|
|
23
23
|
amount: string;
|
|
24
24
|
};
|
|
25
25
|
isNative: boolean;
|
|
26
|
-
closeAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
27
|
-
delegate?: import("@solana/web3.js").PublicKey | undefined;
|
|
28
26
|
rentExemptReserve?: {
|
|
29
27
|
decimals: number;
|
|
30
28
|
uiAmountString: string;
|
|
31
29
|
uiAmount: number;
|
|
32
30
|
amount: string;
|
|
33
31
|
} | undefined;
|
|
32
|
+
closeAuthority?: import("@solana/web3.js").PublicKey | undefined;
|
|
33
|
+
delegate?: import("@solana/web3.js").PublicKey | undefined;
|
|
34
34
|
delegatedAmount?: {
|
|
35
35
|
decimals: number;
|
|
36
36
|
uiAmountString: string;
|
|
@@ -85,10 +85,10 @@ export declare const TokenAccountInfo: import("superstruct").Struct<{
|
|
|
85
85
|
amount: import("superstruct").Struct<string, null>;
|
|
86
86
|
}>;
|
|
87
87
|
delegate: import("superstruct").Struct<import("@solana/web3.js").PublicKey | undefined, null>;
|
|
88
|
-
state: import("superstruct").Struct<"
|
|
88
|
+
state: import("superstruct").Struct<"uninitialized" | "initialized" | "frozen", {
|
|
89
|
+
uninitialized: "uninitialized";
|
|
89
90
|
initialized: "initialized";
|
|
90
91
|
frozen: "frozen";
|
|
91
|
-
uninitialized: "uninitialized";
|
|
92
92
|
}>;
|
|
93
93
|
isNative: import("superstruct").Struct<boolean, null>;
|
|
94
94
|
rentExemptReserve: import("superstruct").Struct<{
|
|
@@ -6,8 +6,8 @@ export declare const InitializeInfo: import("superstruct").Struct<{
|
|
|
6
6
|
withdrawer: import("@solana/web3.js").PublicKey;
|
|
7
7
|
};
|
|
8
8
|
lockup: {
|
|
9
|
-
epoch: number;
|
|
10
9
|
unixTimestamp: number;
|
|
10
|
+
epoch: number;
|
|
11
11
|
custodian: import("@solana/web3.js").PublicKey;
|
|
12
12
|
};
|
|
13
13
|
stakeAccount: import("@solana/web3.js").PublicKey;
|
|
@@ -21,8 +21,8 @@ export declare const InitializeInfo: import("superstruct").Struct<{
|
|
|
21
21
|
withdrawer: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
22
22
|
}>;
|
|
23
23
|
lockup: import("superstruct").Struct<{
|
|
24
|
-
epoch: number;
|
|
25
24
|
unixTimestamp: number;
|
|
25
|
+
epoch: number;
|
|
26
26
|
custodian: import("@solana/web3.js").PublicKey;
|
|
27
27
|
}, {
|
|
28
28
|
unixTimestamp: import("superstruct").Struct<number, null>;
|
|
@@ -54,10 +54,10 @@ export declare const AuthorizeInfo: import("superstruct").Struct<{
|
|
|
54
54
|
}>;
|
|
55
55
|
export type SplitInfo = Infer<typeof SplitInfo>;
|
|
56
56
|
export declare const SplitInfo: import("superstruct").Struct<{
|
|
57
|
-
lamports: number;
|
|
58
57
|
stakeAccount: import("@solana/web3.js").PublicKey;
|
|
59
58
|
stakeAuthority: import("@solana/web3.js").PublicKey;
|
|
60
59
|
newSplitAccount: import("@solana/web3.js").PublicKey;
|
|
60
|
+
lamports: number;
|
|
61
61
|
}, {
|
|
62
62
|
stakeAccount: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
63
63
|
stakeAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
@@ -66,9 +66,9 @@ export declare const SplitInfo: import("superstruct").Struct<{
|
|
|
66
66
|
}>;
|
|
67
67
|
export type WithdrawInfo = Infer<typeof WithdrawInfo>;
|
|
68
68
|
export declare const WithdrawInfo: import("superstruct").Struct<{
|
|
69
|
-
lamports: number;
|
|
70
69
|
destination: import("@solana/web3.js").PublicKey;
|
|
71
70
|
stakeAccount: import("@solana/web3.js").PublicKey;
|
|
71
|
+
lamports: number;
|
|
72
72
|
withdrawAuthority: import("@solana/web3.js").PublicKey;
|
|
73
73
|
}, {
|
|
74
74
|
stakeAccount: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
@@ -115,8 +115,8 @@ export declare const IX_STRUCTS: {
|
|
|
115
115
|
withdrawer: import("@solana/web3.js").PublicKey;
|
|
116
116
|
};
|
|
117
117
|
lockup: {
|
|
118
|
-
epoch: number;
|
|
119
118
|
unixTimestamp: number;
|
|
119
|
+
epoch: number;
|
|
120
120
|
custodian: import("@solana/web3.js").PublicKey;
|
|
121
121
|
};
|
|
122
122
|
stakeAccount: import("@solana/web3.js").PublicKey;
|
|
@@ -130,8 +130,8 @@ export declare const IX_STRUCTS: {
|
|
|
130
130
|
withdrawer: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
131
131
|
}>;
|
|
132
132
|
lockup: import("superstruct").Struct<{
|
|
133
|
-
epoch: number;
|
|
134
133
|
unixTimestamp: number;
|
|
134
|
+
epoch: number;
|
|
135
135
|
custodian: import("@solana/web3.js").PublicKey;
|
|
136
136
|
}, {
|
|
137
137
|
unixTimestamp: import("superstruct").Struct<number, null>;
|
|
@@ -160,10 +160,10 @@ export declare const IX_STRUCTS: {
|
|
|
160
160
|
newAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
161
161
|
}>;
|
|
162
162
|
readonly split: import("superstruct").Struct<{
|
|
163
|
-
lamports: number;
|
|
164
163
|
stakeAccount: import("@solana/web3.js").PublicKey;
|
|
165
164
|
stakeAuthority: import("@solana/web3.js").PublicKey;
|
|
166
165
|
newSplitAccount: import("@solana/web3.js").PublicKey;
|
|
166
|
+
lamports: number;
|
|
167
167
|
}, {
|
|
168
168
|
stakeAccount: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
169
169
|
stakeAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
@@ -171,9 +171,9 @@ export declare const IX_STRUCTS: {
|
|
|
171
171
|
lamports: import("superstruct").Struct<number, null>;
|
|
172
172
|
}>;
|
|
173
173
|
readonly withdraw: import("superstruct").Struct<{
|
|
174
|
-
lamports: number;
|
|
175
174
|
destination: import("@solana/web3.js").PublicKey;
|
|
176
175
|
stakeAccount: import("@solana/web3.js").PublicKey;
|
|
176
|
+
lamports: number;
|
|
177
177
|
withdrawAuthority: import("@solana/web3.js").PublicKey;
|
|
178
178
|
}, {
|
|
179
179
|
stakeAccount: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
@@ -2,8 +2,8 @@ import { Infer } from "superstruct";
|
|
|
2
2
|
export type CreateAccountInfo = Infer<typeof CreateAccountInfo>;
|
|
3
3
|
export declare const CreateAccountInfo: import("superstruct").Struct<{
|
|
4
4
|
owner: import("@solana/web3.js").PublicKey;
|
|
5
|
-
lamports: number;
|
|
6
5
|
source: import("@solana/web3.js").PublicKey;
|
|
6
|
+
lamports: number;
|
|
7
7
|
newAccount: import("@solana/web3.js").PublicKey;
|
|
8
8
|
space: number;
|
|
9
9
|
}, {
|
|
@@ -23,9 +23,9 @@ export declare const AssignInfo: import("superstruct").Struct<{
|
|
|
23
23
|
}>;
|
|
24
24
|
export type TransferInfo = Infer<typeof TransferInfo>;
|
|
25
25
|
export declare const TransferInfo: import("superstruct").Struct<{
|
|
26
|
-
lamports: number;
|
|
27
26
|
source: import("@solana/web3.js").PublicKey;
|
|
28
27
|
destination: import("@solana/web3.js").PublicKey;
|
|
28
|
+
lamports: number;
|
|
29
29
|
}, {
|
|
30
30
|
source: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
31
31
|
destination: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
@@ -35,11 +35,11 @@ export type CreateAccountWithSeedInfo = Infer<typeof CreateAccountWithSeedInfo>;
|
|
|
35
35
|
export declare const CreateAccountWithSeedInfo: import("superstruct").Struct<{
|
|
36
36
|
owner: import("@solana/web3.js").PublicKey;
|
|
37
37
|
seed: string;
|
|
38
|
-
lamports: number;
|
|
39
|
-
base: import("@solana/web3.js").PublicKey;
|
|
40
38
|
source: import("@solana/web3.js").PublicKey;
|
|
39
|
+
lamports: number;
|
|
41
40
|
newAccount: import("@solana/web3.js").PublicKey;
|
|
42
41
|
space: number;
|
|
42
|
+
base: import("@solana/web3.js").PublicKey;
|
|
43
43
|
}, {
|
|
44
44
|
source: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
45
45
|
newAccount: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
@@ -59,8 +59,8 @@ export declare const AdvanceNonceInfo: import("superstruct").Struct<{
|
|
|
59
59
|
}>;
|
|
60
60
|
export type WithdrawNonceInfo = Infer<typeof WithdrawNonceInfo>;
|
|
61
61
|
export declare const WithdrawNonceInfo: import("superstruct").Struct<{
|
|
62
|
-
lamports: number;
|
|
63
62
|
destination: import("@solana/web3.js").PublicKey;
|
|
63
|
+
lamports: number;
|
|
64
64
|
nonceAccount: import("@solana/web3.js").PublicKey;
|
|
65
65
|
nonceAuthority: import("@solana/web3.js").PublicKey;
|
|
66
66
|
}, {
|
|
@@ -100,8 +100,8 @@ export declare const AllocateWithSeedInfo: import("superstruct").Struct<{
|
|
|
100
100
|
account: import("@solana/web3.js").PublicKey;
|
|
101
101
|
owner: import("@solana/web3.js").PublicKey;
|
|
102
102
|
seed: string;
|
|
103
|
-
base: import("@solana/web3.js").PublicKey;
|
|
104
103
|
space: number;
|
|
104
|
+
base: import("@solana/web3.js").PublicKey;
|
|
105
105
|
}, {
|
|
106
106
|
account: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
107
107
|
base: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
@@ -123,9 +123,9 @@ export declare const AssignWithSeedInfo: import("superstruct").Struct<{
|
|
|
123
123
|
}>;
|
|
124
124
|
export type TransferWithSeedInfo = Infer<typeof TransferWithSeedInfo>;
|
|
125
125
|
export declare const TransferWithSeedInfo: import("superstruct").Struct<{
|
|
126
|
-
lamports: number;
|
|
127
126
|
source: import("@solana/web3.js").PublicKey;
|
|
128
127
|
destination: import("@solana/web3.js").PublicKey;
|
|
128
|
+
lamports: number;
|
|
129
129
|
sourceBase: import("@solana/web3.js").PublicKey;
|
|
130
130
|
sourceSeed: string;
|
|
131
131
|
sourceOwner: import("@solana/web3.js").PublicKey;
|
|
@@ -155,8 +155,8 @@ export declare const SystemInstructionType: import("superstruct").Struct<"transf
|
|
|
155
155
|
export declare const IX_STRUCTS: {
|
|
156
156
|
createAccount: import("superstruct").Struct<{
|
|
157
157
|
owner: import("@solana/web3.js").PublicKey;
|
|
158
|
-
lamports: number;
|
|
159
158
|
source: import("@solana/web3.js").PublicKey;
|
|
159
|
+
lamports: number;
|
|
160
160
|
newAccount: import("@solana/web3.js").PublicKey;
|
|
161
161
|
space: number;
|
|
162
162
|
}, {
|
|
@@ -169,11 +169,11 @@ export declare const IX_STRUCTS: {
|
|
|
169
169
|
createAccountWithSeed: import("superstruct").Struct<{
|
|
170
170
|
owner: import("@solana/web3.js").PublicKey;
|
|
171
171
|
seed: string;
|
|
172
|
-
lamports: number;
|
|
173
|
-
base: import("@solana/web3.js").PublicKey;
|
|
174
172
|
source: import("@solana/web3.js").PublicKey;
|
|
173
|
+
lamports: number;
|
|
175
174
|
newAccount: import("@solana/web3.js").PublicKey;
|
|
176
175
|
space: number;
|
|
176
|
+
base: import("@solana/web3.js").PublicKey;
|
|
177
177
|
}, {
|
|
178
178
|
source: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
179
179
|
newAccount: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
@@ -194,8 +194,8 @@ export declare const IX_STRUCTS: {
|
|
|
194
194
|
account: import("@solana/web3.js").PublicKey;
|
|
195
195
|
owner: import("@solana/web3.js").PublicKey;
|
|
196
196
|
seed: string;
|
|
197
|
-
base: import("@solana/web3.js").PublicKey;
|
|
198
197
|
space: number;
|
|
198
|
+
base: import("@solana/web3.js").PublicKey;
|
|
199
199
|
}, {
|
|
200
200
|
account: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
201
201
|
base: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
@@ -222,9 +222,9 @@ export declare const IX_STRUCTS: {
|
|
|
222
222
|
owner: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
223
223
|
}>;
|
|
224
224
|
transfer: import("superstruct").Struct<{
|
|
225
|
-
lamports: number;
|
|
226
225
|
source: import("@solana/web3.js").PublicKey;
|
|
227
226
|
destination: import("@solana/web3.js").PublicKey;
|
|
227
|
+
lamports: number;
|
|
228
228
|
}, {
|
|
229
229
|
source: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
230
230
|
destination: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
@@ -238,8 +238,8 @@ export declare const IX_STRUCTS: {
|
|
|
238
238
|
nonceAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
239
239
|
}>;
|
|
240
240
|
withdrawNonce: import("superstruct").Struct<{
|
|
241
|
-
lamports: number;
|
|
242
241
|
destination: import("@solana/web3.js").PublicKey;
|
|
242
|
+
lamports: number;
|
|
243
243
|
nonceAccount: import("@solana/web3.js").PublicKey;
|
|
244
244
|
nonceAuthority: import("@solana/web3.js").PublicKey;
|
|
245
245
|
}, {
|
|
@@ -265,9 +265,9 @@ export declare const IX_STRUCTS: {
|
|
|
265
265
|
nonceAuthority: import("superstruct").Struct<import("@solana/web3.js").PublicKey, null>;
|
|
266
266
|
}>;
|
|
267
267
|
transferWithSeed: import("superstruct").Struct<{
|
|
268
|
-
lamports: number;
|
|
269
268
|
source: import("@solana/web3.js").PublicKey;
|
|
270
269
|
destination: import("@solana/web3.js").PublicKey;
|
|
270
|
+
lamports: number;
|
|
271
271
|
sourceBase: import("@solana/web3.js").PublicKey;
|
|
272
272
|
sourceSeed: string;
|
|
273
273
|
sourceOwner: import("@solana/web3.js").PublicKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepareTransaction.d.ts","sourceRoot":"","sources":["../src/prepareTransaction.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AA0CrC,OAAO,KAAK,EAEV,aAAa,EAeb,WAAW,EAIZ,MAAM,SAAS,CAAC;AA8CjB,QAAA,MAAM,kBAAkB,gBACT,aAAa,MACtB,WAAW,OACV,QAAQ,KACZ,QAAQ,WAAW,CAmBrB,CAAC;
|
|
1
|
+
{"version":3,"file":"prepareTransaction.d.ts","sourceRoot":"","sources":["../src/prepareTransaction.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AA0CrC,OAAO,KAAK,EAEV,aAAa,EAeb,WAAW,EAIZ,MAAM,SAAS,CAAC;AA8CjB,QAAA,MAAM,kBAAkB,gBACT,aAAa,MACtB,WAAW,OACV,QAAQ,KACZ,QAAQ,WAAW,CAmBrB,CAAC;AAw5BF,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -95,6 +95,7 @@ const deriveTokenTransferCommandDescriptor = async (mainAccount, tx, model, api)
|
|
|
95
95
|
shouldCreateAsAssociatedTokenAccount: false,
|
|
96
96
|
tokenAccAddress: "",
|
|
97
97
|
walletAddress: "",
|
|
98
|
+
userInputType: "sol",
|
|
98
99
|
};
|
|
99
100
|
const tokenRecipientOrError = errors.recipient
|
|
100
101
|
? errors.recipient
|
|
@@ -199,6 +200,7 @@ async function getTokenRecipient(recipientAddress, mintAddress, tokenProgram, ap
|
|
|
199
200
|
walletAddress: recipientAddress,
|
|
200
201
|
shouldCreateAsAssociatedTokenAccount,
|
|
201
202
|
tokenAccAddress: recipientAssociatedTokenAccountAddress,
|
|
203
|
+
userInputType: "sol",
|
|
202
204
|
},
|
|
203
205
|
recipientAccInfo: associatedTokenAccount,
|
|
204
206
|
};
|
|
@@ -216,6 +218,7 @@ async function getTokenRecipient(recipientAddress, mintAddress, tokenProgram, ap
|
|
|
216
218
|
walletAddress: recipientTokenAccount.owner.toBase58(),
|
|
217
219
|
shouldCreateAsAssociatedTokenAccount: false,
|
|
218
220
|
tokenAccAddress: recipientAddress,
|
|
221
|
+
userInputType: "ata",
|
|
219
222
|
},
|
|
220
223
|
recipientAccInfo: recipientTokenAccount,
|
|
221
224
|
};
|
|
@@ -317,6 +320,7 @@ async function deriveCreateApproveCommandDescriptor(mainAccount, tx, model, api)
|
|
|
317
320
|
shouldCreateAsAssociatedTokenAccount: false,
|
|
318
321
|
tokenAccAddress: "",
|
|
319
322
|
walletAddress: "",
|
|
323
|
+
userInputType: "sol",
|
|
320
324
|
};
|
|
321
325
|
const tokenRecipientOrError = errors.recipient
|
|
322
326
|
? errors.recipient
|