@1stdex/first-sdk 1.0.82 → 1.0.84
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/dist/cjs/calls/batch/index.js +4 -1
- package/dist/cjs/calls/batch/index.js.map +1 -1
- package/dist/cjs/calls/batch/prepare-claim-real-tokens.js +188 -0
- package/dist/cjs/calls/batch/prepare-claim-real-tokens.js.map +1 -0
- package/dist/cjs/constants/abis/core/first_oft.js +1680 -0
- package/dist/cjs/constants/abis/core/first_oft.js.map +1 -0
- package/dist/cjs/constants/chain-configs/eids.js +11 -0
- package/dist/cjs/constants/chain-configs/eids.js.map +1 -0
- package/dist/cjs/views/balance.js +2 -2
- package/dist/esm/calls/batch/index.js +1 -0
- package/dist/esm/calls/batch/index.js.map +1 -1
- package/dist/esm/calls/batch/prepare-claim-real-tokens.js +255 -0
- package/dist/esm/calls/batch/prepare-claim-real-tokens.js.map +1 -0
- package/dist/esm/constants/abis/core/first_oft.js +1677 -0
- package/dist/esm/constants/abis/core/first_oft.js.map +1 -0
- package/dist/esm/constants/chain-configs/eids.js +11 -0
- package/dist/esm/constants/chain-configs/eids.js.map +1 -0
- package/dist/esm/views/balance.js +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/calls/batch/index.d.ts +1 -0
- package/dist/types/calls/batch/index.d.ts.map +1 -1
- package/dist/types/calls/batch/prepare-claim-real-tokens.d.ts +85 -0
- package/dist/types/calls/batch/prepare-claim-real-tokens.d.ts.map +1 -0
- package/dist/types/constants/abis/core/first_oft.d.ts +1286 -0
- package/dist/types/constants/abis/core/first_oft.d.ts.map +1 -0
- package/dist/types/constants/chain-configs/eids.d.ts +8 -0
- package/dist/types/constants/chain-configs/eids.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotEnoughFundsError = exports.prepareWithdraw = exports.prepareMarketOrderWithSetup = exports.prepareLimitOrderWithSetup = void 0;
|
|
3
|
+
exports.prepareClaimRealTokensCrossChainLZ = exports.prepareClaimRealTokensSameChain = exports.NotEnoughFundsError = exports.prepareWithdraw = exports.prepareMarketOrderWithSetup = exports.prepareLimitOrderWithSetup = void 0;
|
|
4
4
|
var prepare_limit_order_with_setup_1 = require("./prepare-limit-order-with-setup");
|
|
5
5
|
Object.defineProperty(exports, "prepareLimitOrderWithSetup", { enumerable: true, get: function () { return prepare_limit_order_with_setup_1.prepareLimitOrderWithSetup; } });
|
|
6
6
|
var prepare_market_order_with_setup_1 = require("./prepare-market-order-with-setup");
|
|
@@ -8,4 +8,7 @@ Object.defineProperty(exports, "prepareMarketOrderWithSetup", { enumerable: true
|
|
|
8
8
|
var prepare_withdraw_1 = require("./prepare-withdraw");
|
|
9
9
|
Object.defineProperty(exports, "prepareWithdraw", { enumerable: true, get: function () { return prepare_withdraw_1.prepareWithdraw; } });
|
|
10
10
|
Object.defineProperty(exports, "NotEnoughFundsError", { enumerable: true, get: function () { return prepare_withdraw_1.NotEnoughFundsError; } });
|
|
11
|
+
var prepare_claim_real_tokens_1 = require("./prepare-claim-real-tokens");
|
|
12
|
+
Object.defineProperty(exports, "prepareClaimRealTokensSameChain", { enumerable: true, get: function () { return prepare_claim_real_tokens_1.prepareClaimRealTokensSameChain; } });
|
|
13
|
+
Object.defineProperty(exports, "prepareClaimRealTokensCrossChainLZ", { enumerable: true, get: function () { return prepare_claim_real_tokens_1.prepareClaimRealTokensCrossChainLZ; } });
|
|
11
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calls/batch/index.ts"],"names":[],"mappings":";;;AAAA,mFAA8E;AAArE,4IAAA,0BAA0B,OAAA;AACnC,qFAAgF;AAAvE,8IAAA,2BAA2B,OAAA;AACpC,uDAA0E;AAAjE,mHAAA,eAAe,OAAA;AAAE,uHAAA,mBAAmB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/calls/batch/index.ts"],"names":[],"mappings":";;;AAAA,mFAA8E;AAArE,4IAAA,0BAA0B,OAAA;AACnC,qFAAgF;AAAvE,8IAAA,2BAA2B,OAAA;AACpC,uDAA0E;AAAjE,mHAAA,eAAe,OAAA;AAAE,uHAAA,mBAAmB,OAAA;AAC7C,yEAGqC;AAFnC,4IAAA,+BAA+B,OAAA;AAC/B,+IAAA,kCAAkC,OAAA"}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.prepareClaimRealTokensCrossChainLZ = exports.prepareClaimRealTokensSameChain = exports.NotEnoughClaimableError = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
const chain_1 = require("../../constants/chain-configs/chain");
|
|
6
|
+
const eids_1 = require("../../constants/chain-configs/eids");
|
|
7
|
+
const claimable_dex_vault_abi_1 = require("../../constants/abis/core/claimable-dex-vault-abi");
|
|
8
|
+
const mirror_token_abi_1 = require("../../constants/abis/core/mirror-token-abi");
|
|
9
|
+
const first_oft_1 = require("../../constants/abis/core/first_oft");
|
|
10
|
+
const vault_1 = require("../../views/vault");
|
|
11
|
+
class NotEnoughClaimableError extends Error {
|
|
12
|
+
constructor(message, required, available) {
|
|
13
|
+
super(message);
|
|
14
|
+
Object.defineProperty(this, "required", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
configurable: true,
|
|
17
|
+
writable: true,
|
|
18
|
+
value: required
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(this, "available", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
configurable: true,
|
|
23
|
+
writable: true,
|
|
24
|
+
value: available
|
|
25
|
+
});
|
|
26
|
+
this.name = 'NotEnoughClaimableError';
|
|
27
|
+
Object.setPrototypeOf(this, NotEnoughClaimableError.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.NotEnoughClaimableError = NotEnoughClaimableError;
|
|
31
|
+
const prepareClaimRealTokensSameChain = async ({ chainId, userAddress, mirrorTokenAddress, receivingAddress, options, }) => {
|
|
32
|
+
const publicClient = (0, viem_1.createPublicClient)({
|
|
33
|
+
chain: chain_1.CHAIN_MAP[chainId],
|
|
34
|
+
transport: options?.rpcUrl ? (0, viem_1.http)(options.rpcUrl) : (0, viem_1.http)(),
|
|
35
|
+
});
|
|
36
|
+
const vault = await (0, vault_1.getVault)({
|
|
37
|
+
chainId,
|
|
38
|
+
tokenAddress: mirrorTokenAddress,
|
|
39
|
+
...(options?.rpcUrl && { options: { rpcUrl: options.rpcUrl } }),
|
|
40
|
+
});
|
|
41
|
+
const contracts = [
|
|
42
|
+
{
|
|
43
|
+
address: vault.address,
|
|
44
|
+
abi: claimable_dex_vault_abi_1.CLAIMABLE_DEX_VAULT_ABI,
|
|
45
|
+
functionName: 'getClaimableAssets',
|
|
46
|
+
args: [userAddress],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
address: mirrorTokenAddress,
|
|
50
|
+
abi: mirror_token_abi_1.MIRROR_TOKEN_ABI,
|
|
51
|
+
functionName: 'getClaimableAmount',
|
|
52
|
+
args: [userAddress],
|
|
53
|
+
},
|
|
54
|
+
];
|
|
55
|
+
const results = await publicClient.multicall({
|
|
56
|
+
contracts,
|
|
57
|
+
});
|
|
58
|
+
const vaultClaimableAmount = results[0].result || 0n;
|
|
59
|
+
const mirrorTokenClaimableAmount = results[1].result || 0n;
|
|
60
|
+
const calls = [];
|
|
61
|
+
if (vaultClaimableAmount > 0n) {
|
|
62
|
+
calls.push({
|
|
63
|
+
to: vault.address,
|
|
64
|
+
data: (0, viem_1.encodeFunctionData)({
|
|
65
|
+
abi: mirror_token_abi_1.MIRROR_TOKEN_ABI,
|
|
66
|
+
functionName: 'claim',
|
|
67
|
+
args: [userAddress, vaultClaimableAmount],
|
|
68
|
+
}),
|
|
69
|
+
value: 0n,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
const totalClaimableAmount = vaultClaimableAmount + mirrorTokenClaimableAmount;
|
|
73
|
+
if (totalClaimableAmount > 0n) {
|
|
74
|
+
calls.push({
|
|
75
|
+
to: mirrorTokenAddress,
|
|
76
|
+
data: (0, viem_1.encodeFunctionData)({
|
|
77
|
+
abi: mirror_token_abi_1.MIRROR_TOKEN_ABI,
|
|
78
|
+
functionName: 'claim',
|
|
79
|
+
args: [receivingAddress, totalClaimableAmount],
|
|
80
|
+
}),
|
|
81
|
+
value: 0n,
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
return calls;
|
|
85
|
+
};
|
|
86
|
+
exports.prepareClaimRealTokensSameChain = prepareClaimRealTokensSameChain;
|
|
87
|
+
const prepareClaimRealTokensCrossChainLZ = async ({ chainId, destinationChainId, userAddress, mirrorTokenAddress, receivingAddress, amount, options, }) => {
|
|
88
|
+
const publicClient = (0, viem_1.createPublicClient)({
|
|
89
|
+
chain: chain_1.CHAIN_MAP[chainId],
|
|
90
|
+
transport: options?.rpcUrl ? (0, viem_1.http)(options.rpcUrl) : (0, viem_1.http)(),
|
|
91
|
+
});
|
|
92
|
+
const vault = await (0, vault_1.getVault)({
|
|
93
|
+
chainId,
|
|
94
|
+
tokenAddress: mirrorTokenAddress,
|
|
95
|
+
...(options?.rpcUrl && { options: { rpcUrl: options.rpcUrl } }),
|
|
96
|
+
});
|
|
97
|
+
const contracts = [
|
|
98
|
+
{
|
|
99
|
+
address: vault.address,
|
|
100
|
+
abi: claimable_dex_vault_abi_1.CLAIMABLE_DEX_VAULT_ABI,
|
|
101
|
+
functionName: 'getClaimableAssets',
|
|
102
|
+
args: [userAddress],
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
address: mirrorTokenAddress,
|
|
106
|
+
abi: mirror_token_abi_1.MIRROR_TOKEN_ABI,
|
|
107
|
+
functionName: 'getClaimableAmount',
|
|
108
|
+
args: [userAddress],
|
|
109
|
+
},
|
|
110
|
+
];
|
|
111
|
+
const results = await publicClient.multicall({
|
|
112
|
+
contracts,
|
|
113
|
+
});
|
|
114
|
+
const vaultClaimableAmount = results[0].result || 0n;
|
|
115
|
+
const mirrorTokenClaimableAmount = results[1].result || 0n;
|
|
116
|
+
const totalClaimableAmount = vaultClaimableAmount + mirrorTokenClaimableAmount;
|
|
117
|
+
if (totalClaimableAmount < amount) {
|
|
118
|
+
throw new NotEnoughClaimableError(`Insufficient claimable funds: need ${amount}, but only have ${totalClaimableAmount} (mirror token: ${mirrorTokenClaimableAmount}, vault: ${vaultClaimableAmount})`, amount, totalClaimableAmount);
|
|
119
|
+
}
|
|
120
|
+
const calls = [];
|
|
121
|
+
if (mirrorTokenClaimableAmount >= amount) {
|
|
122
|
+
calls.push({
|
|
123
|
+
to: mirrorTokenAddress,
|
|
124
|
+
data: (0, viem_1.encodeFunctionData)({
|
|
125
|
+
abi: mirror_token_abi_1.MIRROR_TOKEN_ABI,
|
|
126
|
+
functionName: 'claim',
|
|
127
|
+
args: [userAddress, amount],
|
|
128
|
+
}),
|
|
129
|
+
value: 0n,
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
const amountFromVault = amount - mirrorTokenClaimableAmount;
|
|
134
|
+
calls.push({
|
|
135
|
+
to: vault.address,
|
|
136
|
+
data: (0, viem_1.encodeFunctionData)({
|
|
137
|
+
abi: mirror_token_abi_1.MIRROR_TOKEN_ABI,
|
|
138
|
+
functionName: 'claim',
|
|
139
|
+
args: [userAddress, amountFromVault],
|
|
140
|
+
}),
|
|
141
|
+
value: 0n,
|
|
142
|
+
});
|
|
143
|
+
if (mirrorTokenClaimableAmount > 0n) {
|
|
144
|
+
calls.push({
|
|
145
|
+
to: mirrorTokenAddress,
|
|
146
|
+
data: (0, viem_1.encodeFunctionData)({
|
|
147
|
+
abi: mirror_token_abi_1.MIRROR_TOKEN_ABI,
|
|
148
|
+
functionName: 'claim',
|
|
149
|
+
args: [userAddress, mirrorTokenClaimableAmount],
|
|
150
|
+
}),
|
|
151
|
+
value: 0n,
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
const receivingAddressBytes32 = `0x000000000000000000000000${receivingAddress.slice(2)}`;
|
|
156
|
+
const destinationEid = eids_1.CHAIN_EIDS[destinationChainId];
|
|
157
|
+
const sendParam = {
|
|
158
|
+
dstEid: destinationEid,
|
|
159
|
+
to: receivingAddressBytes32,
|
|
160
|
+
amountLD: amount,
|
|
161
|
+
minAmountLD: amount,
|
|
162
|
+
extraOptions: '0x',
|
|
163
|
+
composeMsg: '0x',
|
|
164
|
+
oftCmd: '0x',
|
|
165
|
+
};
|
|
166
|
+
const quoteFee = await publicClient.readContract({
|
|
167
|
+
address: mirrorTokenAddress,
|
|
168
|
+
abi: first_oft_1.FIRST_OFT_ABI,
|
|
169
|
+
functionName: 'quoteSend',
|
|
170
|
+
args: [sendParam, false],
|
|
171
|
+
});
|
|
172
|
+
calls.push({
|
|
173
|
+
to: mirrorTokenAddress,
|
|
174
|
+
data: (0, viem_1.encodeFunctionData)({
|
|
175
|
+
abi: first_oft_1.FIRST_OFT_ABI,
|
|
176
|
+
functionName: 'send',
|
|
177
|
+
args: [
|
|
178
|
+
sendParam,
|
|
179
|
+
{ nativeFee: quoteFee.nativeFee, lzTokenFee: 0n },
|
|
180
|
+
userAddress,
|
|
181
|
+
],
|
|
182
|
+
}),
|
|
183
|
+
value: quoteFee.nativeFee,
|
|
184
|
+
});
|
|
185
|
+
return calls;
|
|
186
|
+
};
|
|
187
|
+
exports.prepareClaimRealTokensCrossChainLZ = prepareClaimRealTokensCrossChainLZ;
|
|
188
|
+
//# sourceMappingURL=prepare-claim-real-tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepare-claim-real-tokens.js","sourceRoot":"","sources":["../../../../src/calls/batch/prepare-claim-real-tokens.ts"],"names":[],"mappings":";;;AAAA,+BAA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