@lifi/sdk 3.5.2 → 3.6.0-beta.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/package.json +1 -1
- package/src/_cjs/constants.js +4 -2
- package/src/_cjs/constants.js.map +1 -1
- package/src/_cjs/core/EVM/EVM.js +0 -4
- package/src/_cjs/core/EVM/EVM.js.map +1 -1
- package/src/_cjs/core/EVM/EVMStepExecutor.js +156 -81
- package/src/_cjs/core/EVM/EVMStepExecutor.js.map +1 -1
- package/src/_cjs/core/EVM/abi.js +36 -43
- package/src/_cjs/core/EVM/abi.js.map +1 -1
- package/src/_cjs/core/EVM/checkAllowance.js +36 -30
- package/src/_cjs/core/EVM/checkAllowance.js.map +1 -1
- package/src/_cjs/core/EVM/getAllowance.js.map +1 -1
- package/src/_cjs/core/EVM/getEVMBalance.js.map +1 -1
- package/src/_cjs/core/EVM/getNativePermit.js +90 -0
- package/src/_cjs/core/EVM/getNativePermit.js.map +1 -0
- package/src/_cjs/core/EVM/parseEVMErrors.js +5 -2
- package/src/_cjs/core/EVM/parseEVMErrors.js.map +1 -1
- package/src/_cjs/core/EVM/permit2/allowanceTransfer.js +100 -0
- package/src/_cjs/core/EVM/permit2/allowanceTransfer.js.map +1 -0
- package/src/_cjs/core/EVM/permit2/constants.js +12 -0
- package/src/_cjs/core/EVM/permit2/constants.js.map +1 -0
- package/src/_cjs/core/EVM/permit2/domain.js +12 -0
- package/src/_cjs/core/EVM/permit2/domain.js.map +1 -0
- package/src/_cjs/core/EVM/permit2/signatureTransfer.js +121 -0
- package/src/_cjs/core/EVM/permit2/signatureTransfer.js.map +1 -0
- package/src/_cjs/core/EVM/setAllowance.js +3 -4
- package/src/_cjs/core/EVM/setAllowance.js.map +1 -1
- package/src/_cjs/core/EVM/signPermitMessage.js +169 -0
- package/src/_cjs/core/EVM/signPermitMessage.js.map +1 -0
- package/src/_cjs/core/EVM/typeguards.js +8 -0
- package/src/_cjs/core/EVM/typeguards.js.map +1 -0
- package/src/_cjs/core/EVM/types.js.map +1 -1
- package/src/_cjs/core/EVM/utils.js +2 -1
- package/src/_cjs/core/EVM/utils.js.map +1 -1
- package/src/_cjs/core/EVM/waitForBatchTransactionReceipt.js +32 -0
- package/src/_cjs/core/EVM/waitForBatchTransactionReceipt.js.map +1 -0
- package/src/_cjs/core/EVM/waitForRelayedTransactionReceipt.js +40 -0
- package/src/_cjs/core/EVM/waitForRelayedTransactionReceipt.js.map +1 -0
- package/src/_cjs/core/checkBalance.js +3 -3
- package/src/_cjs/core/checkBalance.js.map +1 -1
- package/src/_cjs/core/waitForTransactionStatus.js +4 -2
- package/src/_cjs/core/waitForTransactionStatus.js.map +1 -1
- package/src/_cjs/createConfig.js +2 -2
- package/src/_cjs/createConfig.js.map +1 -1
- package/src/_cjs/errors/constants.js +1 -0
- package/src/_cjs/errors/constants.js.map +1 -1
- package/src/_cjs/index.js +9 -6
- package/src/_cjs/index.js.map +1 -1
- package/src/_cjs/services/api.js +127 -53
- package/src/_cjs/services/api.js.map +1 -1
- package/src/_cjs/utils/checkPackageUpdates.js +20 -0
- package/src/_cjs/utils/checkPackageUpdates.js.map +1 -0
- package/src/_cjs/utils/convertQuoteToRoute.js +33 -0
- package/src/_cjs/utils/convertQuoteToRoute.js.map +1 -0
- package/src/_cjs/utils/fetchTxErrorDetails.js +13 -0
- package/src/_cjs/utils/fetchTxErrorDetails.js.map +1 -0
- package/src/_cjs/utils/invariant.js +17 -0
- package/src/_cjs/utils/invariant.js.map +1 -0
- package/src/_cjs/utils/waitForResult.js +16 -3
- package/src/_cjs/utils/waitForResult.js.map +1 -1
- package/src/_cjs/version.js +1 -1
- package/src/_cjs/version.js.map +1 -1
- package/src/_esm/constants.js +3 -1
- package/src/_esm/constants.js.map +1 -1
- package/src/_esm/core/EVM/EVM.js +0 -4
- package/src/_esm/core/EVM/EVM.js.map +1 -1
- package/src/_esm/core/EVM/EVMStepExecutor.js +186 -92
- package/src/_esm/core/EVM/EVMStepExecutor.js.map +1 -1
- package/src/_esm/core/EVM/abi.js +37 -42
- package/src/_esm/core/EVM/abi.js.map +1 -1
- package/src/_esm/core/EVM/checkAllowance.js +41 -32
- package/src/_esm/core/EVM/checkAllowance.js.map +1 -1
- package/src/_esm/core/EVM/getAllowance.js.map +1 -1
- package/src/_esm/core/EVM/getEVMBalance.js.map +1 -1
- package/src/_esm/core/EVM/getNativePermit.js +95 -0
- package/src/_esm/core/EVM/getNativePermit.js.map +1 -0
- package/src/_esm/core/EVM/parseEVMErrors.js +9 -1
- package/src/_esm/core/EVM/parseEVMErrors.js.map +1 -1
- package/src/_esm/core/EVM/permit2/allowanceTransfer.js +93 -0
- package/src/_esm/core/EVM/permit2/allowanceTransfer.js.map +1 -0
- package/src/_esm/core/EVM/permit2/constants.js +9 -0
- package/src/_esm/core/EVM/permit2/constants.js.map +1 -0
- package/src/_esm/core/EVM/permit2/domain.js +9 -0
- package/src/_esm/core/EVM/permit2/domain.js.map +1 -0
- package/src/_esm/core/EVM/permit2/signatureTransfer.js +117 -0
- package/src/_esm/core/EVM/permit2/signatureTransfer.js.map +1 -0
- package/src/_esm/core/EVM/setAllowance.js +3 -4
- package/src/_esm/core/EVM/setAllowance.js.map +1 -1
- package/src/_esm/core/EVM/signPermitMessage.js +163 -0
- package/src/_esm/core/EVM/signPermitMessage.js.map +1 -0
- package/src/_esm/core/EVM/typeguards.js +5 -0
- package/src/_esm/core/EVM/typeguards.js.map +1 -0
- package/src/_esm/core/EVM/types.js.map +1 -1
- package/src/_esm/core/EVM/utils.js +2 -1
- package/src/_esm/core/EVM/utils.js.map +1 -1
- package/src/_esm/core/EVM/waitForBatchTransactionReceipt.js +28 -0
- package/src/_esm/core/EVM/waitForBatchTransactionReceipt.js.map +1 -0
- package/src/_esm/core/EVM/waitForRelayedTransactionReceipt.js +36 -0
- package/src/_esm/core/EVM/waitForRelayedTransactionReceipt.js.map +1 -0
- package/src/_esm/core/checkBalance.js +3 -3
- package/src/_esm/core/checkBalance.js.map +1 -1
- package/src/_esm/core/waitForTransactionStatus.js +4 -2
- package/src/_esm/core/waitForTransactionStatus.js.map +1 -1
- package/src/_esm/createConfig.js +1 -1
- package/src/_esm/createConfig.js.map +1 -1
- package/src/_esm/errors/constants.js +1 -0
- package/src/_esm/errors/constants.js.map +1 -1
- package/src/_esm/index.js +4 -2
- package/src/_esm/index.js.map +1 -1
- package/src/_esm/services/api.js +165 -72
- package/src/_esm/services/api.js.map +1 -1
- package/src/_esm/utils/checkPackageUpdates.js +17 -0
- package/src/_esm/utils/checkPackageUpdates.js.map +1 -0
- package/src/_esm/utils/convertQuoteToRoute.js +37 -0
- package/src/_esm/utils/convertQuoteToRoute.js.map +1 -0
- package/src/_esm/utils/fetchTxErrorDetails.js +9 -0
- package/src/_esm/utils/fetchTxErrorDetails.js.map +1 -0
- package/src/_esm/utils/invariant.js +43 -0
- package/src/_esm/utils/invariant.js.map +1 -0
- package/src/_esm/utils/waitForResult.js +19 -3
- package/src/_esm/utils/waitForResult.js.map +1 -1
- package/src/_esm/version.js +1 -1
- package/src/_esm/version.js.map +1 -1
- package/src/_types/constants.d.ts +3 -1
- package/src/_types/constants.d.ts.map +1 -1
- package/src/_types/core/EVM/EVM.d.ts.map +1 -1
- package/src/_types/core/EVM/EVMStepExecutor.d.ts +7 -4
- package/src/_types/core/EVM/EVMStepExecutor.d.ts.map +1 -1
- package/src/_types/core/EVM/abi.d.ts +202 -5
- package/src/_types/core/EVM/abi.d.ts.map +1 -1
- package/src/_types/core/EVM/checkAllowance.d.ts +12 -2
- package/src/_types/core/EVM/checkAllowance.d.ts.map +1 -1
- package/src/_types/core/EVM/getAllowance.d.ts +5 -4
- package/src/_types/core/EVM/getAllowance.d.ts.map +1 -1
- package/src/_types/core/EVM/getEVMBalance.d.ts +2 -1
- package/src/_types/core/EVM/getEVMBalance.d.ts.map +1 -1
- package/src/_types/core/EVM/getNativePermit.d.ts +18 -0
- package/src/_types/core/EVM/getNativePermit.d.ts.map +1 -0
- package/src/_types/core/EVM/permit2/allowanceTransfer.d.ts +41 -0
- package/src/_types/core/EVM/permit2/allowanceTransfer.d.ts.map +1 -0
- package/src/_types/core/EVM/permit2/constants.d.ts +8 -0
- package/src/_types/core/EVM/permit2/constants.d.ts.map +1 -0
- package/src/_types/core/EVM/permit2/domain.d.ts +8 -0
- package/src/_types/core/EVM/permit2/domain.d.ts.map +1 -0
- package/src/_types/core/EVM/permit2/signatureTransfer.d.ts +42 -0
- package/src/_types/core/EVM/permit2/signatureTransfer.d.ts.map +1 -0
- package/src/_types/core/EVM/setAllowance.d.ts +2 -2
- package/src/_types/core/EVM/setAllowance.d.ts.map +1 -1
- package/src/_types/core/EVM/signPermitMessage.d.ts +25 -0
- package/src/_types/core/EVM/signPermitMessage.d.ts.map +1 -0
- package/src/_types/core/EVM/typeguards.d.ts +4 -0
- package/src/_types/core/EVM/typeguards.d.ts.map +1 -0
- package/src/_types/core/EVM/types.d.ts +8 -18
- package/src/_types/core/EVM/types.d.ts.map +1 -1
- package/src/_types/core/EVM/utils.d.ts +2 -2
- package/src/_types/core/EVM/utils.d.ts.map +1 -1
- package/src/_types/core/EVM/waitForBatchTransactionReceipt.d.ts +4 -0
- package/src/_types/core/EVM/waitForBatchTransactionReceipt.d.ts.map +1 -0
- package/src/_types/core/EVM/waitForRelayedTransactionReceipt.d.ts +4 -0
- package/src/_types/core/EVM/waitForRelayedTransactionReceipt.d.ts.map +1 -0
- package/src/_types/core/checkBalance.d.ts.map +1 -1
- package/src/_types/core/waitForTransactionStatus.d.ts.map +1 -1
- package/src/_types/createConfig.d.ts.map +1 -1
- package/src/_types/errors/constants.d.ts +2 -1
- package/src/_types/errors/constants.d.ts.map +1 -1
- package/src/_types/index.d.ts +5 -3
- package/src/_types/index.d.ts.map +1 -1
- package/src/_types/services/api.d.ts +93 -26
- package/src/_types/services/api.d.ts.map +1 -1
- package/src/_types/utils/checkPackageUpdates.d.ts +2 -0
- package/src/_types/utils/checkPackageUpdates.d.ts.map +1 -0
- package/src/_types/utils/convertQuoteToRoute.d.ts +11 -0
- package/src/_types/utils/convertQuoteToRoute.d.ts.map +1 -0
- package/src/_types/utils/fetchTxErrorDetails.d.ts +2 -0
- package/src/_types/utils/fetchTxErrorDetails.d.ts.map +1 -0
- package/src/_types/utils/invariant.d.ts +22 -0
- package/src/_types/utils/invariant.d.ts.map +1 -0
- package/src/_types/utils/waitForResult.d.ts +4 -1
- package/src/_types/utils/waitForResult.d.ts.map +1 -1
- package/src/_types/version.d.ts +1 -1
- package/src/_types/version.d.ts.map +1 -1
- package/src/constants.ts +6 -1
- package/src/core/EVM/EVM.ts +0 -4
- package/src/core/EVM/EVMStepExecutor.ts +239 -146
- package/src/core/EVM/abi.ts +40 -43
- package/src/core/EVM/checkAllowance.ts +96 -92
- package/src/core/EVM/getAllowance.ts +8 -8
- package/src/core/EVM/getEVMBalance.ts +2 -2
- package/src/core/EVM/getNativePermit.ts +114 -0
- package/src/core/EVM/parseEVMErrors.ts +9 -1
- package/src/core/EVM/permit2/allowanceTransfer.ts +168 -0
- package/src/core/EVM/permit2/constants.ts +11 -0
- package/src/core/EVM/permit2/domain.ts +20 -0
- package/src/core/EVM/permit2/signatureTransfer.ts +214 -0
- package/src/core/EVM/setAllowance.ts +14 -15
- package/src/core/EVM/signPermitMessage.ts +280 -0
- package/src/core/EVM/typeguards.ts +7 -0
- package/src/core/EVM/types.ts +11 -26
- package/src/core/EVM/utils.ts +4 -3
- package/src/core/EVM/waitForBatchTransactionReceipt.ts +61 -0
- package/src/core/EVM/waitForRelayedTransactionReceipt.ts +57 -0
- package/src/core/checkBalance.ts +6 -3
- package/src/core/waitForTransactionStatus.ts +6 -2
- package/src/createConfig.ts +1 -1
- package/src/errors/constants.ts +1 -0
- package/src/index.ts +4 -8
- package/src/services/api.ts +279 -105
- package/src/utils/checkPackageUpdates.ts +22 -0
- package/src/utils/convertQuoteToRoute.ts +45 -0
- package/src/utils/fetchTxErrorDetails.ts +10 -0
- package/src/utils/invariant.ts +51 -0
- package/src/utils/waitForResult.ts +22 -3
- package/src/version.ts +1 -1
- package/src/_cjs/core/EVM/multisig.js +0 -29
- package/src/_cjs/core/EVM/multisig.js.map +0 -1
- package/src/_cjs/helpers.js +0 -55
- package/src/_cjs/helpers.js.map +0 -1
- package/src/_esm/core/EVM/multisig.js +0 -25
- package/src/_esm/core/EVM/multisig.js.map +0 -1
- package/src/_esm/helpers.js +0 -58
- package/src/_esm/helpers.js.map +0 -1
- package/src/_types/core/EVM/multisig.d.ts +0 -6
- package/src/_types/core/EVM/multisig.d.ts.map +0 -1
- package/src/_types/helpers.d.ts +0 -13
- package/src/_types/helpers.d.ts.map +0 -1
- package/src/core/EVM/multisig.ts +0 -54
- package/src/helpers.ts +0 -75
|
@@ -1,6 +1,203 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export declare const permit2ProxyAbi: readonly [{
|
|
2
|
+
readonly name: "callDiamondWithPermit2";
|
|
3
|
+
readonly type: "function";
|
|
4
|
+
readonly stateMutability: "nonpayable";
|
|
5
|
+
readonly inputs: readonly [{
|
|
6
|
+
readonly type: "bytes";
|
|
7
|
+
}, {
|
|
8
|
+
readonly type: "tuple";
|
|
9
|
+
readonly components: readonly [{
|
|
10
|
+
readonly type: "tuple";
|
|
11
|
+
readonly components: readonly [{
|
|
12
|
+
readonly type: "address";
|
|
13
|
+
}, {
|
|
14
|
+
readonly type: "uint256";
|
|
15
|
+
}];
|
|
16
|
+
}, {
|
|
17
|
+
readonly type: "uint256";
|
|
18
|
+
}, {
|
|
19
|
+
readonly type: "uint256";
|
|
20
|
+
}];
|
|
21
|
+
}, {
|
|
22
|
+
readonly type: "bytes";
|
|
23
|
+
}];
|
|
24
|
+
readonly outputs: readonly [];
|
|
25
|
+
}, {
|
|
26
|
+
readonly name: "callDiamondWithEIP2612Signature";
|
|
27
|
+
readonly type: "function";
|
|
28
|
+
readonly stateMutability: "payable";
|
|
29
|
+
readonly inputs: readonly [{
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
}, {
|
|
32
|
+
readonly type: "uint256";
|
|
33
|
+
}, {
|
|
34
|
+
readonly type: "uint256";
|
|
35
|
+
}, {
|
|
36
|
+
readonly type: "uint8";
|
|
37
|
+
}, {
|
|
38
|
+
readonly type: "bytes32";
|
|
39
|
+
}, {
|
|
40
|
+
readonly type: "bytes32";
|
|
41
|
+
}, {
|
|
42
|
+
readonly type: "bytes";
|
|
43
|
+
}];
|
|
44
|
+
readonly outputs: readonly [];
|
|
45
|
+
}, {
|
|
46
|
+
readonly name: "nextNonce";
|
|
47
|
+
readonly type: "function";
|
|
48
|
+
readonly stateMutability: "view";
|
|
49
|
+
readonly inputs: readonly [{
|
|
50
|
+
readonly type: "address";
|
|
51
|
+
}];
|
|
52
|
+
readonly outputs: readonly [{
|
|
53
|
+
readonly type: "uint256";
|
|
54
|
+
}];
|
|
55
|
+
}, {
|
|
56
|
+
readonly name: "callDiamondWithPermit2Witness";
|
|
57
|
+
readonly type: "function";
|
|
58
|
+
readonly stateMutability: "payable";
|
|
59
|
+
readonly inputs: readonly [{
|
|
60
|
+
readonly type: "bytes";
|
|
61
|
+
}, {
|
|
62
|
+
readonly type: "address";
|
|
63
|
+
}, {
|
|
64
|
+
readonly type: "tuple";
|
|
65
|
+
readonly components: readonly [{
|
|
66
|
+
readonly type: "tuple";
|
|
67
|
+
readonly components: readonly [{
|
|
68
|
+
readonly type: "address";
|
|
69
|
+
}, {
|
|
70
|
+
readonly type: "uint256";
|
|
71
|
+
}];
|
|
72
|
+
}, {
|
|
73
|
+
readonly type: "uint256";
|
|
74
|
+
}, {
|
|
75
|
+
readonly type: "uint256";
|
|
76
|
+
}];
|
|
77
|
+
}, {
|
|
78
|
+
readonly type: "bytes";
|
|
79
|
+
}];
|
|
80
|
+
readonly outputs: readonly [];
|
|
81
|
+
}];
|
|
82
|
+
export declare const eip2612Abi: readonly [{
|
|
83
|
+
readonly name: "permit";
|
|
84
|
+
readonly type: "function";
|
|
85
|
+
readonly stateMutability: "nonpayable";
|
|
86
|
+
readonly inputs: readonly [{
|
|
87
|
+
readonly type: "address";
|
|
88
|
+
}, {
|
|
89
|
+
readonly type: "address";
|
|
90
|
+
}, {
|
|
91
|
+
readonly type: "uint256";
|
|
92
|
+
}, {
|
|
93
|
+
readonly type: "uint256";
|
|
94
|
+
}, {
|
|
95
|
+
readonly type: "uint8";
|
|
96
|
+
}, {
|
|
97
|
+
readonly type: "bytes32";
|
|
98
|
+
}, {
|
|
99
|
+
readonly type: "bytes32";
|
|
100
|
+
}];
|
|
101
|
+
readonly outputs: readonly [];
|
|
102
|
+
}, {
|
|
103
|
+
readonly name: "DOMAIN_SEPARATOR";
|
|
104
|
+
readonly type: "function";
|
|
105
|
+
readonly stateMutability: "view";
|
|
106
|
+
readonly inputs: readonly [];
|
|
107
|
+
readonly outputs: readonly [{
|
|
108
|
+
readonly type: "bytes32";
|
|
109
|
+
}];
|
|
110
|
+
}, {
|
|
111
|
+
readonly name: "nonces";
|
|
112
|
+
readonly type: "function";
|
|
113
|
+
readonly stateMutability: "view";
|
|
114
|
+
readonly inputs: readonly [{
|
|
115
|
+
readonly type: "address";
|
|
116
|
+
}];
|
|
117
|
+
readonly outputs: readonly [{
|
|
118
|
+
readonly type: "uint256";
|
|
119
|
+
}];
|
|
120
|
+
}, {
|
|
121
|
+
readonly name: "name";
|
|
122
|
+
readonly type: "function";
|
|
123
|
+
readonly stateMutability: "view";
|
|
124
|
+
readonly inputs: readonly [];
|
|
125
|
+
readonly outputs: readonly [{
|
|
126
|
+
readonly type: "string";
|
|
127
|
+
}];
|
|
128
|
+
}, {
|
|
129
|
+
readonly name: "version";
|
|
130
|
+
readonly type: "function";
|
|
131
|
+
readonly stateMutability: "view";
|
|
132
|
+
readonly inputs: readonly [];
|
|
133
|
+
readonly outputs: readonly [{
|
|
134
|
+
readonly type: "string";
|
|
135
|
+
}];
|
|
136
|
+
}];
|
|
137
|
+
export declare const approveAbi: readonly [{
|
|
138
|
+
readonly name: "approve";
|
|
139
|
+
readonly type: "function";
|
|
140
|
+
readonly stateMutability: "nonpayable";
|
|
141
|
+
readonly inputs: readonly [{
|
|
142
|
+
readonly type: "address";
|
|
143
|
+
}, {
|
|
144
|
+
readonly type: "uint256";
|
|
145
|
+
}];
|
|
146
|
+
readonly outputs: readonly [{
|
|
147
|
+
readonly type: "bool";
|
|
148
|
+
}];
|
|
149
|
+
}];
|
|
150
|
+
export declare const allowanceAbi: readonly [{
|
|
151
|
+
readonly name: "allowance";
|
|
152
|
+
readonly type: "function";
|
|
153
|
+
readonly stateMutability: "view";
|
|
154
|
+
readonly inputs: readonly [{
|
|
155
|
+
readonly type: "address";
|
|
156
|
+
}, {
|
|
157
|
+
readonly type: "address";
|
|
158
|
+
}];
|
|
159
|
+
readonly outputs: readonly [{
|
|
160
|
+
readonly type: "uint256";
|
|
161
|
+
}];
|
|
162
|
+
}];
|
|
163
|
+
export declare const getEthBalanceAbi: readonly [{
|
|
164
|
+
readonly name: "getEthBalance";
|
|
165
|
+
readonly type: "function";
|
|
166
|
+
readonly stateMutability: "view";
|
|
167
|
+
readonly inputs: readonly [{
|
|
168
|
+
readonly type: "address";
|
|
169
|
+
}];
|
|
170
|
+
readonly outputs: readonly [{
|
|
171
|
+
readonly type: "uint256";
|
|
172
|
+
}];
|
|
173
|
+
}];
|
|
174
|
+
export declare const balanceOfAbi: readonly [{
|
|
175
|
+
readonly name: "balanceOf";
|
|
176
|
+
readonly type: "function";
|
|
177
|
+
readonly stateMutability: "view";
|
|
178
|
+
readonly inputs: readonly [{
|
|
179
|
+
readonly type: "address";
|
|
180
|
+
}];
|
|
181
|
+
readonly outputs: readonly [{
|
|
182
|
+
readonly type: "uint256";
|
|
183
|
+
}];
|
|
184
|
+
}];
|
|
185
|
+
export declare const eip2612Types: {
|
|
186
|
+
readonly Permit: readonly [{
|
|
187
|
+
readonly name: "owner";
|
|
188
|
+
readonly type: "address";
|
|
189
|
+
}, {
|
|
190
|
+
readonly name: "spender";
|
|
191
|
+
readonly type: "address";
|
|
192
|
+
}, {
|
|
193
|
+
readonly name: "value";
|
|
194
|
+
readonly type: "uint256";
|
|
195
|
+
}, {
|
|
196
|
+
readonly name: "nonce";
|
|
197
|
+
readonly type: "uint256";
|
|
198
|
+
}, {
|
|
199
|
+
readonly name: "deadline";
|
|
200
|
+
readonly type: "uint256";
|
|
201
|
+
}];
|
|
202
|
+
};
|
|
6
203
|
//# sourceMappingURL=abi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abi.d.ts","sourceRoot":"","sources":["../../../core/EVM/abi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"abi.d.ts","sourceRoot":"","sources":["../../../core/EVM/abi.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK1B,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMrB,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;EAErB,CAAA;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;EAEvB,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;EAE3B,CAAA;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;EAEvB,CAAA;AAIF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;CAQf,CAAA"}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ExtendedChain, LiFiStep } from '@lifi/types';
|
|
2
2
|
import type { Client, Hash } from 'viem';
|
|
3
3
|
import type { StatusManager } from '../StatusManager.js';
|
|
4
4
|
import type { ExecutionOptions } from '../types.js';
|
|
5
|
-
export
|
|
5
|
+
export type CheckAllowanceParams = {
|
|
6
|
+
client: Client;
|
|
7
|
+
chain: ExtendedChain;
|
|
8
|
+
step: LiFiStep;
|
|
9
|
+
statusManager: StatusManager;
|
|
10
|
+
executionOptions?: ExecutionOptions;
|
|
11
|
+
allowUserInteraction?: boolean;
|
|
12
|
+
atomicBatchSupported?: boolean;
|
|
13
|
+
permit2Supported?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare const checkAllowance: ({ client, chain, step, statusManager, executionOptions, allowUserInteraction, atomicBatchSupported, permit2Supported, }: CheckAllowanceParams) => Promise<Hash | void>;
|
|
6
16
|
//# sourceMappingURL=checkAllowance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkAllowance.d.ts","sourceRoot":"","sources":["../../../core/EVM/checkAllowance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"checkAllowance.d.ts","sourceRoot":"","sources":["../../../core/EVM/checkAllowance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAwB,MAAM,aAAa,CAAA;AAChF,OAAO,KAAK,EAAW,MAAM,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAMnD,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,aAAa,CAAA;IACpB,IAAI,EAAE,QAAQ,CAAA;IACd,aAAa,EAAE,aAAa,CAAA;IAC5B,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;IACnC,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,cAAc,4HASxB,oBAAoB,KAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAoF5C,CAAA"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { BaseToken, ChainId } from '@lifi/types';
|
|
2
|
+
import type { Address } from 'viem';
|
|
2
3
|
import type { TokenAllowance, TokenSpender, TokenSpenderAllowance } from './types.js';
|
|
3
|
-
export declare const getAllowance: (chainId: ChainId, tokenAddress:
|
|
4
|
-
export declare const getAllowanceMulticall: (chainId: ChainId, tokens: TokenSpender[], ownerAddress:
|
|
4
|
+
export declare const getAllowance: (chainId: ChainId, tokenAddress: Address, ownerAddress: Address, spenderAddress: Address) => Promise<bigint>;
|
|
5
|
+
export declare const getAllowanceMulticall: (chainId: ChainId, tokens: TokenSpender[], ownerAddress: Address) => Promise<TokenSpenderAllowance[]>;
|
|
5
6
|
/**
|
|
6
7
|
* Get the current allowance for a certain token.
|
|
7
8
|
* @param token - The token that should be checked
|
|
@@ -9,12 +10,12 @@ export declare const getAllowanceMulticall: (chainId: ChainId, tokens: TokenSpen
|
|
|
9
10
|
* @param spenderAddress - The spender address that has to be approved
|
|
10
11
|
* @returns Returns allowance
|
|
11
12
|
*/
|
|
12
|
-
export declare const getTokenAllowance: (token: BaseToken, ownerAddress:
|
|
13
|
+
export declare const getTokenAllowance: (token: BaseToken, ownerAddress: Address, spenderAddress: Address) => Promise<bigint | undefined>;
|
|
13
14
|
/**
|
|
14
15
|
* Get the current allowance for a list of token/spender address pairs.
|
|
15
16
|
* @param ownerAddress - The owner of the tokens
|
|
16
17
|
* @param tokens - A list of token and spender address pairs
|
|
17
18
|
* @returns Returns array of tokens and their allowance
|
|
18
19
|
*/
|
|
19
|
-
export declare const getTokenAllowanceMulticall: (ownerAddress:
|
|
20
|
+
export declare const getTokenAllowanceMulticall: (ownerAddress: Address, tokens: TokenSpender[]) => Promise<TokenAllowance[]>;
|
|
20
21
|
//# sourceMappingURL=getAllowance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAllowance.d.ts","sourceRoot":"","sources":["../../../core/EVM/getAllowance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"getAllowance.d.ts","sourceRoot":"","sources":["../../../core/EVM/getAllowance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAKnC,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,qBAAqB,EACtB,MAAM,YAAY,CAAA;AAGnB,eAAO,MAAM,YAAY,YACd,OAAO,gBACF,OAAO,gBACP,OAAO,kBACL,OAAO,KACtB,OAAO,CAAC,MAAM,CAahB,CAAA;AAED,eAAO,MAAM,qBAAqB,YACvB,OAAO,UACR,YAAY,EAAE,gBACR,OAAO,KACpB,OAAO,CAAC,qBAAqB,EAAE,CAkCjC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,UACrB,SAAS,gBACF,OAAO,kBACL,OAAO,KACtB,OAAO,CAAC,MAAM,GAAG,SAAS,CAa5B,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,iBACvB,OAAO,UACb,YAAY,EAAE,KACrB,OAAO,CAAC,cAAc,EAAE,CA+B1B,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { Token, TokenAmount } from '@lifi/types';
|
|
2
|
-
|
|
2
|
+
import type { Address } from 'viem';
|
|
3
|
+
export declare const getEVMBalance: (walletAddress: Address, tokens: Token[]) => Promise<TokenAmount[]>;
|
|
3
4
|
//# sourceMappingURL=getEVMBalance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEVMBalance.d.ts","sourceRoot":"","sources":["../../../core/EVM/getEVMBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"getEVMBalance.d.ts","sourceRoot":"","sources":["../../../core/EVM/getEVMBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAYnC,eAAO,MAAM,aAAa,kBACT,OAAO,UACd,KAAK,EAAE,KACd,OAAO,CAAC,WAAW,EAAE,CAsBvB,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ExtendedChain } from '@lifi/types';
|
|
2
|
+
import type { Address, Client } from 'viem';
|
|
3
|
+
export type NativePermitData = {
|
|
4
|
+
name: string;
|
|
5
|
+
version: string;
|
|
6
|
+
nonce: bigint;
|
|
7
|
+
supported: boolean;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves native permit data (EIP-2612) for a token on a specific chain
|
|
11
|
+
* @link https://eips.ethereum.org/EIPS/eip-2612
|
|
12
|
+
* @param client - The Viem client instance
|
|
13
|
+
* @param chain - The extended chain object containing chain details
|
|
14
|
+
* @param tokenAddress - The address of the token to check for permit support
|
|
15
|
+
* @returns {Promise<NativePermitData>} Object containing permit data including name, version, nonce and support status
|
|
16
|
+
*/
|
|
17
|
+
export declare const getNativePermit: (client: Client, chain: ExtendedChain, tokenAddress: Address) => Promise<NativePermitData>;
|
|
18
|
+
//# sourceMappingURL=getNativePermit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getNativePermit.d.ts","sourceRoot":"","sources":["../../../core/EVM/getNativePermit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAK3C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,WAClB,MAAM,SACP,aAAa,gBACN,OAAO,KACpB,OAAO,CAAC,gBAAgB,CAwF1B,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type Address, type TypedData, type TypedDataDomain } from 'viem';
|
|
2
|
+
export declare const MaxAllowanceTransferAmount: bigint;
|
|
3
|
+
export declare const MaxAllowanceExpiration: bigint;
|
|
4
|
+
export declare const MaxOrderedNonce: bigint;
|
|
5
|
+
export interface PermitDetails {
|
|
6
|
+
token: Address;
|
|
7
|
+
amount: bigint;
|
|
8
|
+
expiration: number;
|
|
9
|
+
nonce: number;
|
|
10
|
+
}
|
|
11
|
+
export interface PermitSingle {
|
|
12
|
+
details: PermitDetails;
|
|
13
|
+
spender: Address;
|
|
14
|
+
sigDeadline: bigint;
|
|
15
|
+
}
|
|
16
|
+
export interface PermitBatch {
|
|
17
|
+
details: PermitDetails[];
|
|
18
|
+
spender: Address;
|
|
19
|
+
sigDeadline: bigint;
|
|
20
|
+
}
|
|
21
|
+
export type PermitSingleData = {
|
|
22
|
+
domain: TypedDataDomain;
|
|
23
|
+
types: TypedData;
|
|
24
|
+
values: PermitSingle;
|
|
25
|
+
};
|
|
26
|
+
export type PermitBatchData = {
|
|
27
|
+
domain: TypedDataDomain;
|
|
28
|
+
types: TypedData;
|
|
29
|
+
values: PermitBatch;
|
|
30
|
+
};
|
|
31
|
+
export declare function getPermitSingleData(permit: PermitSingle, permit2Address: Address, chainId: number): {
|
|
32
|
+
domain: TypedDataDomain;
|
|
33
|
+
values: PermitSingle;
|
|
34
|
+
};
|
|
35
|
+
export declare function getPermitBatchData(permit: PermitBatch, permit2Address: Address, chainId: number): {
|
|
36
|
+
domain: TypedDataDomain;
|
|
37
|
+
values: PermitBatch;
|
|
38
|
+
};
|
|
39
|
+
export declare function getPermitData(permit: PermitSingle | PermitBatch, permit2Address: Address, chainId: number): PermitSingleData | PermitBatchData;
|
|
40
|
+
export declare function hash(permit: PermitSingle | PermitBatch, permit2Address: Address, chainId: number): string;
|
|
41
|
+
//# sourceMappingURL=allowanceTransfer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allowanceTransfer.d.ts","sourceRoot":"","sources":["../../../../core/EVM/permit2/allowanceTransfer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,eAAe,EAErB,MAAM,MAAM,CAAA;AAMb,eAAO,MAAM,0BAA0B,QAAa,CAAA;AACpD,eAAO,MAAM,sBAAsB,QAAY,CAAA;AAC/C,eAAO,MAAM,eAAe,QAAY,CAAA;AAExC,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,OAAO,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,aAAa,CAAA;IACtB,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,eAAe,CAAA;IACvB,KAAK,EAAE,SAAS,CAAA;IAChB,MAAM,EAAE,YAAY,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,eAAe,CAAA;IACvB,KAAK,EAAE,SAAS,CAAA;IAChB,MAAM,EAAE,WAAW,CAAA;CACpB,CAAA;AA+BD,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,YAAY,EACpB,cAAc,EAAE,OAAO,EACvB,OAAO,EAAE,MAAM;;;EAWhB;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,WAAW,EACnB,cAAc,EAAE,OAAO,EACvB,OAAO,EAAE,MAAM;;;EAWhB;AAED,wBAAgB,aAAa,CAC3B,MAAM,EAAE,YAAY,GAAG,WAAW,EAClC,cAAc,EAAE,OAAO,EACvB,OAAO,EAAE,MAAM,GACd,gBAAgB,GAAG,eAAe,CAkBpC;AAED,wBAAgB,IAAI,CAClB,MAAM,EAAE,YAAY,GAAG,WAAW,EAClC,cAAc,EAAE,OAAO,EACvB,OAAO,EAAE,MAAM,GACd,MAAM,CAuBR"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const MaxAllowanceTransferAmount: bigint;
|
|
2
|
+
export declare const MaxAllowanceExpiration: bigint;
|
|
3
|
+
export declare const MaxOrderedNonce: bigint;
|
|
4
|
+
export declare const MaxSignatureTransferAmount: bigint;
|
|
5
|
+
export declare const MaxUnorderedNonce: bigint;
|
|
6
|
+
export declare const MaxSigDeadline: bigint;
|
|
7
|
+
export declare const InstantExpiration = 0n;
|
|
8
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../core/EVM/permit2/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,0BAA0B,QAAa,CAAA;AACpD,eAAO,MAAM,sBAAsB,QAAY,CAAA;AAC/C,eAAO,MAAM,eAAe,QAAY,CAAA;AAExC,eAAO,MAAM,0BAA0B,QAAa,CAAA;AACpD,eAAO,MAAM,iBAAiB,QAAa,CAAA;AAC3C,eAAO,MAAM,cAAc,QAAa,CAAA;AAExC,eAAO,MAAM,iBAAiB,KAAK,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Address, TypedData, TypedDataDomain } from 'viem';
|
|
2
|
+
export declare function permit2Domain(permit2Address: Address, chainId: number): TypedDataDomain;
|
|
3
|
+
export type PermitData = {
|
|
4
|
+
domain: TypedDataDomain;
|
|
5
|
+
types: TypedData;
|
|
6
|
+
values: any;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=domain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../../../core/EVM/permit2/domain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAI/D,wBAAgB,aAAa,CAC3B,cAAc,EAAE,OAAO,EACvB,OAAO,EAAE,MAAM,GACd,eAAe,CAMjB;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,EAAE,eAAe,CAAA;IACvB,KAAK,EAAE,SAAS,CAAA;IAChB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { Address, TypedData, TypedDataDomain } from 'viem';
|
|
2
|
+
export interface Witness {
|
|
3
|
+
witness: any;
|
|
4
|
+
witnessTypeName: string;
|
|
5
|
+
witnessType: {
|
|
6
|
+
[key: string]: {
|
|
7
|
+
name: string;
|
|
8
|
+
type: string;
|
|
9
|
+
}[];
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export interface TokenPermissions {
|
|
13
|
+
token: Address;
|
|
14
|
+
amount: bigint;
|
|
15
|
+
}
|
|
16
|
+
export interface PermitTransferFrom {
|
|
17
|
+
permitted: TokenPermissions;
|
|
18
|
+
spender: Address;
|
|
19
|
+
nonce: bigint;
|
|
20
|
+
deadline: bigint;
|
|
21
|
+
}
|
|
22
|
+
export interface PermitBatchTransferFrom {
|
|
23
|
+
permitted: TokenPermissions[];
|
|
24
|
+
spender: Address;
|
|
25
|
+
nonce: bigint;
|
|
26
|
+
deadline: bigint;
|
|
27
|
+
}
|
|
28
|
+
export type PermitTransferFromData = {
|
|
29
|
+
domain: TypedDataDomain;
|
|
30
|
+
types: TypedData;
|
|
31
|
+
values: PermitTransferFrom;
|
|
32
|
+
};
|
|
33
|
+
export type PermitBatchTransferFromData = {
|
|
34
|
+
domain: TypedDataDomain;
|
|
35
|
+
types: TypedData;
|
|
36
|
+
values: PermitBatchTransferFrom;
|
|
37
|
+
};
|
|
38
|
+
export declare function getPermitTransferData(permit: PermitTransferFrom, permit2Address: Address, chainId: number, witness?: Witness): PermitTransferFromData;
|
|
39
|
+
export declare function getPermitBatchTransferData(permit: PermitBatchTransferFrom, permit2Address: Address, chainId: number, witness?: Witness): PermitBatchTransferFromData;
|
|
40
|
+
export declare function getPermitData(permit: PermitTransferFrom | PermitBatchTransferFrom, permit2Address: Address, chainId: number, witness?: Witness): PermitTransferFromData | PermitBatchTransferFromData;
|
|
41
|
+
export declare function hash(permit: PermitTransferFrom | PermitBatchTransferFrom, permit2Address: Address, chainId: number, witness?: Witness): `0x${string}`;
|
|
42
|
+
//# sourceMappingURL=signatureTransfer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signatureTransfer.d.ts","sourceRoot":"","sources":["../../../../core/EVM/permit2/signatureTransfer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAS/D,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,GAAG,CAAA;IACZ,eAAe,EAAE,MAAM,CAAA;IACvB,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;KAAE,CAAA;CACjE;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,gBAAgB,CAAA;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,gBAAgB,EAAE,CAAA;IAC7B,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,eAAe,CAAA;IACvB,KAAK,EAAE,SAAS,CAAA;IAChB,MAAM,EAAE,kBAAkB,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG;IACxC,MAAM,EAAE,eAAe,CAAA;IACvB,KAAK,EAAE,SAAS,CAAA;IAChB,MAAM,EAAE,uBAAuB,CAAA;CAChC,CAAA;AAiCD,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,kBAAkB,EAC1B,cAAc,EAAE,OAAO,EACvB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,OAAO,GAChB,sBAAsB,CA+BxB;AAED,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,uBAAuB,EAC/B,cAAc,EAAE,OAAO,EACvB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,OAAO,GAChB,2BAA2B,CA+B7B;AAID,wBAAgB,aAAa,CAC3B,MAAM,EAAE,kBAAkB,GAAG,uBAAuB,EACpD,cAAc,EAAE,OAAO,EACvB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,OAAO,GAChB,sBAAsB,GAAG,2BAA2B,CAKtD;AAED,wBAAgB,IAAI,CAClB,MAAM,EAAE,kBAAkB,GAAG,uBAAuB,EACpD,cAAc,EAAE,OAAO,EACvB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,OAAO,iBAkClB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Client, Hash } from 'viem';
|
|
1
|
+
import type { Address, Client, Hash } from 'viem';
|
|
2
2
|
import type { ExecutionOptions } from '../types.js';
|
|
3
3
|
import type { ApproveTokenRequest, RevokeApprovalRequest } from './types.js';
|
|
4
|
-
export declare const setAllowance: (client: Client, tokenAddress:
|
|
4
|
+
export declare const setAllowance: (client: Client, tokenAddress: Address, contractAddress: Address, amount: bigint, executionOptions?: ExecutionOptions, returnPopulatedTransaction?: boolean) => Promise<Hash>;
|
|
5
5
|
/**
|
|
6
6
|
* Set approval for a certain token and amount.
|
|
7
7
|
* @param request - The approval request
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setAllowance.d.ts","sourceRoot":"","sources":["../../../core/EVM/setAllowance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAA6B,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"setAllowance.d.ts","sourceRoot":"","sources":["../../../core/EVM/setAllowance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAA6B,MAAM,MAAM,CAAA;AAK5E,OAAO,KAAK,EAAE,gBAAgB,EAAyB,MAAM,aAAa,CAAA;AAG1E,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAG5E,eAAO,MAAM,YAAY,WACf,MAAM,gBACA,OAAO,mBACJ,OAAO,UAChB,MAAM,qBACK,gBAAgB,+BACN,OAAO,KACnC,OAAO,CAAC,IAAI,CA8Cd,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,qDAK3B,mBAAmB,KAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAsB3C,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,6CAI7B,qBAAqB,KAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAqB7C,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ExtendedChain } from '@lifi/types';
|
|
2
|
+
import type { Address, Client, Hex } from 'viem';
|
|
3
|
+
import type { TransactionParameters } from '../types.js';
|
|
4
|
+
import { type NativePermitData } from './getNativePermit.js';
|
|
5
|
+
import { type PermitBatchTransferFromData, type PermitTransferFromData } from './permit2/signatureTransfer.js';
|
|
6
|
+
export interface PermitSignature {
|
|
7
|
+
signature: Hex;
|
|
8
|
+
data: Hex;
|
|
9
|
+
}
|
|
10
|
+
export declare const signNativePermitMessage: (client: Client, transactionRequest: TransactionParameters, chain: ExtendedChain, tokenAddress: Address, amount: bigint, nativePermit: NativePermitData) => Promise<PermitSignature>;
|
|
11
|
+
export declare const signPermit2Message: (client: Client, transactionRequest: TransactionParameters, chain: ExtendedChain, tokenAddress: Address, amount: bigint) => Promise<{
|
|
12
|
+
signature: `0x${string}`;
|
|
13
|
+
data: `0x${string}`;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const signPermit2WitnessMessage: (client: Client, transactionRequest: TransactionParameters, chain: ExtendedChain, tokenAddress: Address, amount: bigint, permitData?: PermitTransferFromData | PermitBatchTransferFromData) => Promise<PermitSignature>;
|
|
16
|
+
export declare const signPermitMessage: (client: Client, { transactionRequest, chain, tokenAddress, amount, nativePermit, permitData, useWitness, }: {
|
|
17
|
+
transactionRequest: TransactionParameters;
|
|
18
|
+
chain: ExtendedChain;
|
|
19
|
+
tokenAddress: Address;
|
|
20
|
+
amount: bigint;
|
|
21
|
+
nativePermit?: NativePermitData;
|
|
22
|
+
permitData?: PermitTransferFromData | PermitBatchTransferFromData;
|
|
23
|
+
useWitness?: boolean;
|
|
24
|
+
}) => Promise<PermitSignature>;
|
|
25
|
+
//# sourceMappingURL=signPermitMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signPermitMessage.d.ts","sourceRoot":"","sources":["../../../core/EVM/signPermitMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAIhD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAExD,OAAO,EAAE,KAAK,gBAAgB,EAAmB,MAAM,sBAAsB,CAAA;AAC7E,OAAO,EACL,KAAK,2BAA2B,EAEhC,KAAK,sBAAsB,EAE5B,MAAM,gCAAgC,CAAA;AAEvC,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,GAAG,CAAA;IACd,IAAI,EAAE,GAAG,CAAA;CACV;AAED,eAAO,MAAM,uBAAuB,WAC1B,MAAM,sBACM,qBAAqB,SAClC,aAAa,gBACN,OAAO,UACb,MAAM,gBACA,gBAAgB,KAC7B,OAAO,CAAC,eAAe,CAkDzB,CAAA;AAED,eAAO,MAAM,kBAAkB,WACrB,MAAM,sBACM,qBAAqB,SAClC,aAAa,gBACN,OAAO,UACb,MAAM;;;EAuDf,CAAA;AAED,eAAO,MAAM,yBAAyB,WAC5B,MAAM,sBACM,qBAAqB,SAClC,aAAa,gBACN,OAAO,UACb,MAAM,eACD,sBAAsB,GAAG,2BAA2B,KAChE,OAAO,CAAC,eAAe,CA0EzB,CAAA;AAED,eAAO,MAAM,iBAAiB,WACpB,MAAM,8FASX;IACD,kBAAkB,EAAE,qBAAqB,CAAA;IACzC,KAAK,EAAE,aAAa,CAAA;IACpB,YAAY,EAAE,OAAO,CAAA;IACrB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,gBAAgB,CAAA;IAC/B,UAAU,CAAC,EAAE,sBAAsB,GAAG,2BAA2B,CAAA;IACjE,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,KACA,OAAO,CAAC,eAAe,CAoCzB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeguards.d.ts","sourceRoot":"","sources":["../../../core/EVM/typeguards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE/C,wBAAgB,eAAe,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,IAAI,aAAa,CAG7E"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { type BaseToken } from '@lifi/types';
|
|
2
|
-
import type { Client
|
|
3
|
-
import type { SwitchChainHook } from '../types.js';
|
|
2
|
+
import type { Client } from 'viem';
|
|
3
|
+
import type { LiFiStepExtended, SwitchChainHook } from '../types.js';
|
|
4
4
|
import type { SDKProvider } from '../types.js';
|
|
5
|
+
import type { PermitData } from './permit2/domain.js';
|
|
6
|
+
import type { PermitTransferFrom, Witness } from './permit2/signatureTransfer.js';
|
|
5
7
|
export interface EVMProviderOptions {
|
|
6
8
|
getWalletClient?: () => Promise<Client>;
|
|
7
9
|
switchChain?: SwitchChainHook;
|
|
8
|
-
multisig?: MultisigConfig;
|
|
9
10
|
}
|
|
10
11
|
export interface EVMProvider extends SDKProvider {
|
|
11
12
|
setOptions(options: EVMProviderOptions): void;
|
|
12
|
-
multisig?: MultisigConfig;
|
|
13
13
|
}
|
|
14
14
|
export declare function isEVM(provider: SDKProvider): provider is EVMProvider;
|
|
15
15
|
export type TokenSpender = {
|
|
@@ -40,19 +40,9 @@ export interface RevokeApprovalRequest {
|
|
|
40
40
|
token: BaseToken;
|
|
41
41
|
spenderAddress: string;
|
|
42
42
|
}
|
|
43
|
-
export interface
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
export interface MultisigTransaction {
|
|
48
|
-
to: string;
|
|
49
|
-
value?: bigint;
|
|
50
|
-
data: string;
|
|
51
|
-
}
|
|
52
|
-
export interface MultisigConfig {
|
|
53
|
-
isMultisigWalletClient: boolean;
|
|
54
|
-
getMultisigTransactionDetails: (txHash: Hash, fromChainId: number, updateIntermediateStatus?: () => void) => Promise<MultisigTxDetails>;
|
|
55
|
-
sendBatchTransaction?: (batchTransactions: MultisigTransaction[]) => Promise<Hash>;
|
|
56
|
-
shouldBatchTransactions?: boolean;
|
|
43
|
+
export interface EVMPermitStep extends LiFiStepExtended {
|
|
44
|
+
permit: PermitTransferFrom;
|
|
45
|
+
permitData: PermitData;
|
|
46
|
+
witness: Witness;
|
|
57
47
|
}
|
|
58
48
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../core/EVM/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,aAAa,CAAA;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../core/EVM/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,aAAa,CAAA;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAClC,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EACV,kBAAkB,EAClB,OAAO,EACR,MAAM,gCAAgC,CAAA;AAEvC,MAAM,WAAW,kBAAkB;IACjC,eAAe,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAA;IACvC,WAAW,CAAC,EAAE,eAAe,CAAA;CAC9B;AAED,MAAM,WAAW,WAAY,SAAQ,WAAW;IAC9C,UAAU,CAAC,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAAA;CAC9C;AAED,wBAAgB,KAAK,CAAC,QAAQ,EAAE,WAAW,GAAG,QAAQ,IAAI,WAAW,CAEpE;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,SAAS,CAAA;IAChB,cAAc,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,SAAS,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,SAAS,CAAA;IAChB,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,SAAS,CAAA;IAChB,cAAc,EAAE,MAAM,CAAA;IACtB,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,SAAS,CAAA;IAChB,cAAc,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,aAAc,SAAQ,gBAAgB;IACrD,MAAM,EAAE,kBAAkB,CAAA;IAC1B,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,OAAO,CAAA;CACjB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ChainId } from '@lifi/types';
|
|
2
|
-
import type { Client } from 'viem';
|
|
2
|
+
import type { Address, Client } from 'viem';
|
|
3
3
|
export declare const getMaxPriorityFeePerGas: (client: Client) => Promise<bigint | undefined>;
|
|
4
|
-
export declare const getMulticallAddress: (chainId: ChainId) => Promise<
|
|
4
|
+
export declare const getMulticallAddress: (chainId: ChainId) => Promise<Address | undefined>;
|
|
5
5
|
export declare const retryDelay: ({ count }: {
|
|
6
6
|
count: number;
|
|
7
7
|
error: Error;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../core/EVM/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,MAAM,EAAe,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../core/EVM/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAe,MAAM,MAAM,CAAA;AAKxD,eAAO,MAAM,uBAAuB,WAC1B,MAAM,KACb,OAAO,CAAC,MAAM,GAAG,SAAS,CA0B5B,CAAA;AAGD,eAAO,MAAM,mBAAmB,YACrB,OAAO,KACf,OAAO,CAAC,OAAO,GAAG,SAAS,CAI7B,CAAA;AAGD,eAAO,MAAM,UAAU,cAAe;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,WAC/B,CAAA;AAEtC,eAAO,MAAM,UAAU,KAAK,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Client, Hash, WalletCallReceipt as _WalletCallReceipt } from 'viem';
|
|
2
|
+
export type WalletCallReceipt = _WalletCallReceipt<bigint, 'success' | 'reverted'>;
|
|
3
|
+
export declare const waitForBatchTransactionReceipt: (client: Client, batchHash: Hash) => Promise<WalletCallReceipt>;
|
|
4
|
+
//# sourceMappingURL=waitForBatchTransactionReceipt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"waitForBatchTransactionReceipt.d.ts","sourceRoot":"","sources":["../../../core/EVM/waitForBatchTransactionReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,IAAI,EACJ,iBAAiB,IAAI,kBAAkB,EACxC,MAAM,MAAM,CAAA;AAOb,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAChD,MAAM,EACN,SAAS,GAAG,UAAU,CACvB,CAAA;AAED,eAAO,MAAM,8BAA8B,WACjC,MAAM,aACH,IAAI,KACd,OAAO,CAAC,iBAAiB,CAyC3B,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Hash, WalletCallReceipt as _WalletCallReceipt } from 'viem';
|
|
2
|
+
export type WalletCallReceipt = _WalletCallReceipt<bigint, 'success' | 'reverted'>;
|
|
3
|
+
export declare const waitForRelayedTransactionReceipt: (taskId: Hash) => Promise<WalletCallReceipt>;
|
|
4
|
+
//# sourceMappingURL=waitForRelayedTransactionReceipt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"waitForRelayedTransactionReceipt.d.ts","sourceRoot":"","sources":["../../../core/EVM/waitForRelayedTransactionReceipt.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,iBAAiB,IAAI,kBAAkB,EAAE,MAAM,MAAM,CAAA;AAMzE,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAChD,MAAM,EACN,SAAS,GAAG,UAAU,CACvB,CAAA;AAED,eAAO,MAAM,gCAAgC,WACnC,IAAI,KACX,OAAO,CAAC,iBAAiB,CA0C3B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkBalance.d.ts","sourceRoot":"","sources":["../../core/checkBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAM3C,eAAO,MAAM,YAAY,kBACR,MAAM,QACf,QAAQ,qBAEb,OAAO,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"checkBalance.d.ts","sourceRoot":"","sources":["../../core/checkBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAM3C,eAAO,MAAM,YAAY,kBACR,MAAM,QACf,QAAQ,qBAEb,OAAO,CAAC,IAAI,CAiCd,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitForTransactionStatus.d.ts","sourceRoot":"","sources":["../../core/waitForTransactionStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,QAAQ,EACR,WAAW,EACX,cAAc,EACf,MAAM,aAAa,CAAA;AAIpB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAKvD,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,QAAQ,EACd,QAAQ,SAAQ,GACf,OAAO,CAAC,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"waitForTransactionStatus.d.ts","sourceRoot":"","sources":["../../core/waitForTransactionStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,QAAQ,EACR,WAAW,EACX,cAAc,EACf,MAAM,aAAa,CAAA;AAIpB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAKvD,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,QAAQ,EACd,QAAQ,SAAQ,GACf,OAAO,CAAC,cAAc,CAAC,CAsDzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createConfig.d.ts","sourceRoot":"","sources":["../createConfig.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createConfig.d.ts","sourceRoot":"","sources":["../createConfig.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAiBpD,wBAAsB,kBAAkB,kBAOvC;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,SAAS,+CAM9C"}
|
|
@@ -32,7 +32,8 @@ export declare enum LiFiErrorCode {
|
|
|
32
32
|
WalletChangedDuringExecution = 1017,
|
|
33
33
|
TransactionExpired = 1018,
|
|
34
34
|
TransactionSimulationFailed = 1019,
|
|
35
|
-
TransactionConflict = 1020
|
|
35
|
+
TransactionConflict = 1020,
|
|
36
|
+
TransactionNotFound = 1021
|
|
36
37
|
}
|
|
37
38
|
export declare enum ErrorMessage {
|
|
38
39
|
UnknownError = "Unknown error occurred.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../errors/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,SAAS,cAAc;CACxB;AAED,MAAM,MAAM,SAAS,GAAG,aAAa,CAAA;AAErC,oBAAY,aAAa;IACvB,aAAa,OAAO;IACpB,eAAe,OAAO;IACtB,sBAAsB,OAAO;IAC7B,iBAAiB,OAAO;IACxB,OAAO,OAAO;IACd,mBAAmB,OAAO;IAC1B,QAAQ,OAAO;IACf,gBAAgB,OAAO;IACvB,qBAAqB,OAAO;IAC5B,aAAa,OAAO;IACpB,mBAAmB,OAAO;IAC1B,aAAa,OAAO;IACpB,iBAAiB,OAAO;IACxB,YAAY,OAAO;IACnB,iBAAiB,OAAO;IACxB,iBAAiB,OAAO;IACxB,0BAA0B,OAAO;IACjC,4BAA4B,OAAO;IACnC,kBAAkB,OAAO;IACzB,2BAA2B,OAAO;IAClC,mBAAmB,OAAO;CAC3B;AAED,oBAAY,YAAY;IACtB,YAAY,4BAA4B;IACxC,aAAa,wGAAwG;IACrH,WAAW,0BAA0B;IACrC,sBAAsB,gCAAgC;IACtD,mBAAmB,8BAA8B;CAClD"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../errors/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,SAAS,cAAc;CACxB;AAED,MAAM,MAAM,SAAS,GAAG,aAAa,CAAA;AAErC,oBAAY,aAAa;IACvB,aAAa,OAAO;IACpB,eAAe,OAAO;IACtB,sBAAsB,OAAO;IAC7B,iBAAiB,OAAO;IACxB,OAAO,OAAO;IACd,mBAAmB,OAAO;IAC1B,QAAQ,OAAO;IACf,gBAAgB,OAAO;IACvB,qBAAqB,OAAO;IAC5B,aAAa,OAAO;IACpB,mBAAmB,OAAO;IAC1B,aAAa,OAAO;IACpB,iBAAiB,OAAO;IACxB,YAAY,OAAO;IACnB,iBAAiB,OAAO;IACxB,iBAAiB,OAAO;IACxB,0BAA0B,OAAO;IACjC,4BAA4B,OAAO;IACnC,kBAAkB,OAAO;IACzB,2BAA2B,OAAO;IAClC,mBAAmB,OAAO;IAC1B,mBAAmB,OAAO;CAC3B;AAED,oBAAY,YAAY;IACtB,YAAY,4BAA4B;IACxC,aAAa,wGAAwG;IACrH,WAAW,0BAA0B;IACrC,sBAAsB,gCAAgC;IACtD,mBAAmB,8BAA8B;CAClD"}
|