@across-protocol/sdk 4.3.136-alpha.0 → 4.3.136
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/src/relayFeeCalculator/chain-queries/factory.d.ts +0 -36
- package/dist/cjs/src/relayFeeCalculator/relayFeeCalculator.d.ts +0 -36
- package/dist/cjs/src/typechain.d.ts +0 -6
- package/dist/cjs/src/typechain.js +1 -7
- package/dist/cjs/src/typechain.js.map +1 -1
- package/dist/cjs/src/utils/Multicall.js +0 -1
- package/dist/cjs/src/utils/Multicall.js.map +1 -1
- package/dist/cjs/src/utils/NetworkUtils.js +3 -4
- package/dist/cjs/src/utils/NetworkUtils.js.map +1 -1
- package/dist/cjs/src/utils/TokenUtils.d.ts +0 -72
- package/dist/cjs/src/utils/abi/typechain/factories/SpokePoolPeriphery__factory.d.ts +0 -4
- package/dist/cjs/src/utils/abi/typechain/factories/SpokePoolPeriphery__factory.js +0 -5
- package/dist/cjs/src/utils/abi/typechain/factories/SpokePoolPeriphery__factory.js.map +1 -1
- package/dist/esm/src/relayFeeCalculator/chain-queries/factory.d.ts +0 -36
- package/dist/esm/src/relayFeeCalculator/relayFeeCalculator.d.ts +0 -36
- package/dist/esm/src/typechain.d.ts +2 -8
- package/dist/esm/src/typechain.js +2 -6
- package/dist/esm/src/typechain.js.map +1 -1
- package/dist/esm/src/utils/Multicall.js +0 -1
- package/dist/esm/src/utils/Multicall.js.map +1 -1
- package/dist/esm/src/utils/NetworkUtils.js +3 -4
- package/dist/esm/src/utils/NetworkUtils.js.map +1 -1
- package/dist/esm/src/utils/TokenUtils.d.ts +0 -72
- package/dist/esm/src/utils/abi/typechain/factories/SpokePoolPeriphery__factory.d.ts +0 -4
- package/dist/esm/src/utils/abi/typechain/factories/SpokePoolPeriphery__factory.js +0 -5
- package/dist/esm/src/utils/abi/typechain/factories/SpokePoolPeriphery__factory.js.map +1 -1
- package/dist/types/src/relayFeeCalculator/chain-queries/factory.d.ts +0 -36
- package/dist/types/src/relayFeeCalculator/chain-queries/factory.d.ts.map +1 -1
- package/dist/types/src/relayFeeCalculator/relayFeeCalculator.d.ts +0 -36
- package/dist/types/src/relayFeeCalculator/relayFeeCalculator.d.ts.map +1 -1
- package/dist/types/src/typechain.d.ts +2 -8
- package/dist/types/src/typechain.d.ts.map +1 -1
- package/dist/types/src/utils/Multicall.d.ts.map +1 -1
- package/dist/types/src/utils/NetworkUtils.d.ts.map +1 -1
- package/dist/types/src/utils/TokenUtils.d.ts +0 -72
- package/dist/types/src/utils/TokenUtils.d.ts.map +1 -1
- package/dist/types/src/utils/abi/typechain/factories/SpokePoolPeriphery__factory.d.ts +0 -4
- package/dist/types/src/utils/abi/typechain/factories/SpokePoolPeriphery__factory.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/typechain.ts +2 -17
- package/src/utils/Multicall.ts +0 -1
- package/src/utils/NetworkUtils.ts +3 -4
- package/src/utils/abi/contracts/SpokePoolPeriphery.json +0 -5
- package/src/utils/abi/typechain/factories/SpokePoolPeriphery__factory.ts +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenUtils.d.ts","sourceRoot":"","sources":["../../../../src/utils/TokenUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAY,SAAS,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG7C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAiB,MAAM,gBAAgB,CAAC;AAGpE,KAAK,gBAAgB,GAAG,SAAS,CAAC,QAAQ,GAAG,MAAM,CAAC;AAEpD,wBAAsB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,GAAG,OAAO,CAAC,WAAW,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoB,GAAG,SAAS,CAe3G;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAMnF;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,cAAc,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,UAAU,CAetF"}
|
|
@@ -1345,10 +1345,6 @@ export declare class SpokePoolPeriphery__factory {
|
|
|
1345
1345
|
readonly type: "error";
|
|
1346
1346
|
readonly name: "InvalidSignature";
|
|
1347
1347
|
readonly inputs: readonly [];
|
|
1348
|
-
}, {
|
|
1349
|
-
readonly type: "error";
|
|
1350
|
-
readonly name: "InvalidSignature";
|
|
1351
|
-
readonly inputs: readonly [];
|
|
1352
1348
|
}, {
|
|
1353
1349
|
readonly type: "error";
|
|
1354
1350
|
readonly name: "MinimumExpectedInputAmount";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpokePoolPeriphery__factory.d.ts","sourceRoot":"","sources":["../../../../../../../src/utils/abi/typechain/factories/SpokePoolPeriphery__factory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAY,MAAM,EAAS,MAAM,QAAQ,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EACV,kBAAkB,EAClB,2BAA2B,EAC5B,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"SpokePoolPeriphery__factory.d.ts","sourceRoot":"","sources":["../../../../../../../src/utils/abi/typechain/factories/SpokePoolPeriphery__factory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAY,MAAM,EAAS,MAAM,QAAQ,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EACV,kBAAkB,EAClB,2BAA2B,EAC5B,MAAM,uBAAuB,CAAC;AA2sD/B,qBAAa,2BAA2B;IACtC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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6
|
"homepage": "https://docs.across.to/reference/sdk",
|
|
7
7
|
"repository": {
|
|
@@ -111,20 +111,20 @@
|
|
|
111
111
|
"typescript": "^5.9"
|
|
112
112
|
},
|
|
113
113
|
"dependencies": {
|
|
114
|
-
"@across-protocol/
|
|
115
|
-
"@across-protocol/
|
|
116
|
-
"@across-protocol/contracts": "5.0.0",
|
|
114
|
+
"@across-protocol/constants": "^3.1.100",
|
|
115
|
+
"@across-protocol/contracts": "5.0.4",
|
|
117
116
|
"@coral-xyz/anchor": "^0.30.1",
|
|
118
117
|
"@eth-optimism/sdk": "^3.3.1",
|
|
119
118
|
"@ethersproject/bignumber": "^5.7.0",
|
|
120
119
|
"@nktkas/hyperliquid": "^0.25.9",
|
|
121
120
|
"@pinata/sdk": "^2.1.0",
|
|
121
|
+
"@solana-program/compute-budget": "^0.11.0",
|
|
122
122
|
"@solana-program/system": "^0.10.0",
|
|
123
123
|
"@solana-program/token": "^0.9.0",
|
|
124
124
|
"@solana-program/token-2022": "^0.6.1",
|
|
125
|
-
"@solana-program/compute-budget": "^0.11.0",
|
|
126
125
|
"@solana/kit": "^5.4.0",
|
|
127
126
|
"@solana/sysvars": "^5.4.0",
|
|
127
|
+
"@uma/contracts-node": "^0.4.0",
|
|
128
128
|
"arweave": "^1.14.4",
|
|
129
129
|
"async": "^3.2.5",
|
|
130
130
|
"axios": "^0.27.2",
|
package/src/typechain.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file re-exports some of the typechain bindings so that they can be tree-shaken in the final frontend bundle.
|
|
3
|
-
* Currently, the packages `@across-protocol/contracts`
|
|
4
|
-
*
|
|
3
|
+
* Currently, the packages `@across-protocol/contracts` is not optimized for tree-shaking and contains modules that
|
|
4
|
+
* are not compatible in a browser environment. This is a temporary solution until we can fix the issue upstream.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
// Common types from local typechain
|
|
@@ -27,18 +27,3 @@ export type {
|
|
|
27
27
|
V3FundsDepositedEvent,
|
|
28
28
|
FilledV3RelayEvent,
|
|
29
29
|
} from "./utils/abi/typechain/SpokePool";
|
|
30
|
-
|
|
31
|
-
// Continue importing from @across-protocol/across-token (no Foundry artifacts available)
|
|
32
|
-
export { AcceleratingDistributor__factory } from "@across-protocol/across-token/dist/typechain/factories/AcceleratingDistributor__factory";
|
|
33
|
-
export { ClaimAndStake__factory } from "@across-protocol/across-token/dist/typechain/factories/ClaimAndStake__factory";
|
|
34
|
-
export { MerkleDistributor__factory } from "@across-protocol/across-token/dist/typechain/factories/MerkleDistributor__factory";
|
|
35
|
-
|
|
36
|
-
export type {
|
|
37
|
-
AcceleratingDistributor,
|
|
38
|
-
AcceleratingDistributorInterface,
|
|
39
|
-
} from "@across-protocol/across-token/dist/typechain/AcceleratingDistributor";
|
|
40
|
-
export type { ClaimAndStake, ClaimAndStakeInterface } from "@across-protocol/across-token/dist/typechain/ClaimAndStake";
|
|
41
|
-
export type {
|
|
42
|
-
MerkleDistributor,
|
|
43
|
-
MerkleDistributorInterface,
|
|
44
|
-
} from "@across-protocol/across-token/dist/typechain/MerkleDistributor";
|
package/src/utils/Multicall.ts
CHANGED
|
@@ -21,7 +21,6 @@ const MULTICALL_DEPLOYER = "0x05f32B3cC3888453ff71B01135B34FF8e41263F2";
|
|
|
21
21
|
|
|
22
22
|
const NON_DETERMINISTIC_MULTICALL_ADDRESSES = {
|
|
23
23
|
[CHAIN_IDs.LENS]: "0x6b6dEa4D80e3077D076733A04c48F63c3BA49320",
|
|
24
|
-
[CHAIN_IDs.TRON]: "0x32a4f47a74a6810bd0bf861cabab99656a75de9e", // @todo: Base58?
|
|
25
24
|
[CHAIN_IDs.ZK_SYNC]: "0xF9cda624FBC7e059355ce98a31693d299FACd963",
|
|
26
25
|
[CHAIN_IDs.LENS_SEPOLIA]: "0x8A44EDE8a6843a997bC0Cc4659e4dB1Da8f91116",
|
|
27
26
|
};
|
|
@@ -166,14 +166,13 @@ export function chainIsOFTEnabled(chainId: number): boolean {
|
|
|
166
166
|
// This is backwards vs. CCTP logic because Across support for OFTs is limited vs. OFT deployments.
|
|
167
167
|
const oftEnabled = [
|
|
168
168
|
CHAIN_IDs.ARBITRUM,
|
|
169
|
+
CHAIN_IDs.POLYGON,
|
|
169
170
|
CHAIN_IDs.HYPEREVM,
|
|
170
|
-
CHAIN_IDs.INK,
|
|
171
|
-
CHAIN_IDs.MEGAETH,
|
|
172
171
|
CHAIN_IDs.MONAD,
|
|
173
172
|
CHAIN_IDs.PLASMA,
|
|
174
|
-
CHAIN_IDs.
|
|
175
|
-
CHAIN_IDs.TRON, // tbd!!!
|
|
173
|
+
CHAIN_IDs.MEGAETH,
|
|
176
174
|
CHAIN_IDs.UNICHAIN,
|
|
175
|
+
CHAIN_IDs.INK,
|
|
177
176
|
];
|
|
178
177
|
return oftEnabled.includes(chainId) && PRODUCTION_NETWORKS[chainId]?.oftEid !== OFT_NO_EID;
|
|
179
178
|
}
|