@gmx-io/sdk 1.4.0 → 1.4.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/build/cjs/src/abis/GlvReader.js +940 -940
- package/build/cjs/src/abis/IStargate.js +603 -0
- package/build/cjs/src/abis/LayerZeroProvider.js +273 -46
- package/build/cjs/src/abis/index.js +2 -2
- package/build/cjs/src/configs/batch.js +29 -103
- package/build/cjs/src/configs/chainIds.js +2 -2
- package/build/cjs/src/configs/chains.js +230 -151
- package/build/cjs/src/configs/contracts.js +1 -5
- package/build/cjs/src/configs/dataStore.js +5 -4
- package/build/cjs/src/configs/express.js +1 -1
- package/build/cjs/src/configs/gasLimits.js +41 -0
- package/build/cjs/src/configs/markets.js +67 -1
- package/build/cjs/src/configs/multichain.js +1 -0
- package/build/cjs/src/configs/oracleKeeper.js +18 -20
- package/build/cjs/src/configs/tokens.js +53 -14
- package/build/cjs/src/modules/markets/index.js +6 -2
- package/build/cjs/src/modules/markets/markets.spec.js +5 -5
- package/build/cjs/src/modules/markets/query-builders.js +8 -0
- package/build/cjs/src/modules/orders/helpers.js +2 -2
- package/build/cjs/src/modules/orders/helpers.spec.js +1 -1
- package/build/cjs/src/modules/orders/orders.spec.js +1 -1
- package/build/cjs/src/modules/positions/positions.spec.js +2 -2
- package/build/cjs/src/modules/tokens/tokens.spec.js +2 -2
- package/build/cjs/src/modules/trades/trades.spec.js +1 -1
- package/build/cjs/src/modules/utils/utils.js +7 -6
- package/build/cjs/src/prebuilt/hashedKinkModelMarketRatesKeys.json +24 -0
- package/build/cjs/src/prebuilt/hashedMarketConfigKeys.json +495 -0
- package/build/cjs/src/prebuilt/hashedMarketValuesKeys.json +45 -0
- package/build/cjs/src/test/mock.js +2 -0
- package/build/cjs/src/types/chains.js +2 -0
- package/build/cjs/src/types/orders.js +8 -2
- package/build/cjs/src/types/subsquid.js +241 -1
- package/build/cjs/src/types/tokens.js +7 -0
- package/build/cjs/src/utils/__tests__/abort.spec.js +122 -0
- package/build/cjs/src/utils/__tests__/numbers.spec.js +94 -14
- package/build/cjs/src/utils/abort.js +31 -0
- package/build/cjs/src/utils/callContract.js +4 -4
- package/build/cjs/src/utils/fees/executionFee.js +14 -11
- package/build/cjs/src/utils/fees/index.js +8 -2
- package/build/cjs/src/utils/marketKeysAndConfigs.js +8 -0
- package/build/cjs/src/utils/markets.js +7 -1
- package/build/cjs/src/utils/multicall.js +54 -17
- package/build/cjs/src/utils/numbers.js +25 -14
- package/build/cjs/src/utils/orders.js +2 -2
- package/build/cjs/src/utils/swap/__tests__/mockRouting.spec.js +7 -6
- package/build/cjs/src/utils/swap/__tests__/swapRouting.spec.js +5 -4
- package/build/cjs/src/utils/swap/__tests__/swapStats.spec.js +10 -9
- package/build/cjs/src/utils/swap/buildSwapStrategy.js +10 -9
- package/build/cjs/src/utils/swap/swapPath.js +6 -6
- package/build/cjs/src/utils/swap/swapRouting.js +8 -4
- package/build/cjs/src/utils/swap/swapStats.js +6 -6
- package/build/cjs/src/utils/swap/swapValues.js +4 -0
- package/build/cjs/src/utils/tokens.js +17 -1
- package/build/cjs/src/utils/trade/decrease.js +1 -1
- package/build/esm/src/abis/GlvReader.js +940 -940
- package/build/esm/src/abis/IStargate.js +601 -0
- package/build/esm/src/abis/LayerZeroProvider.js +273 -46
- package/build/esm/src/abis/index.js +2 -2
- package/build/esm/src/configs/batch.js +30 -104
- package/build/esm/src/configs/chainIds.js +1 -1
- package/build/esm/src/configs/chains.js +212 -147
- package/build/esm/src/configs/contracts.js +1 -5
- package/build/esm/src/configs/dataStore.js +1 -0
- package/build/esm/src/configs/express.js +1 -1
- package/build/esm/src/configs/gasLimits.js +38 -0
- package/build/esm/src/configs/markets.js +60 -1
- package/build/esm/src/configs/multichain.js +2 -1
- package/build/esm/src/configs/oracleKeeper.js +17 -19
- package/build/esm/src/configs/tokens.js +52 -13
- package/build/esm/src/modules/markets/index.js +6 -2
- package/build/esm/src/modules/markets/markets.spec.js +5 -5
- package/build/esm/src/modules/markets/query-builders.js +8 -0
- package/build/esm/src/modules/orders/helpers.js +3 -3
- package/build/esm/src/modules/orders/helpers.spec.js +1 -1
- package/build/esm/src/modules/orders/orders.spec.js +1 -1
- package/build/esm/src/modules/positions/positions.spec.js +2 -2
- package/build/esm/src/modules/tokens/tokens.spec.js +2 -2
- package/build/esm/src/modules/trades/trades.spec.js +1 -1
- package/build/esm/src/modules/utils/utils.js +7 -6
- package/build/esm/src/prebuilt/hashedKinkModelMarketRatesKeys.json +24 -0
- package/build/esm/src/prebuilt/hashedMarketConfigKeys.json +495 -0
- package/build/esm/src/prebuilt/hashedMarketValuesKeys.json +45 -0
- package/build/esm/src/test/mock.js +2 -0
- package/build/esm/src/types/chains.js +1 -0
- package/build/esm/src/types/orders.js +8 -2
- package/build/esm/src/types/subsquid.js +240 -0
- package/build/esm/src/types/tokens.js +6 -1
- package/build/esm/src/utils/__tests__/abort.spec.js +120 -0
- package/build/esm/src/utils/__tests__/numbers.spec.js +95 -15
- package/build/esm/src/utils/abort.js +27 -0
- package/build/esm/src/utils/callContract.js +5 -5
- package/build/esm/src/utils/fees/executionFee.js +15 -12
- package/build/esm/src/utils/fees/index.js +8 -2
- package/build/esm/src/utils/marketKeysAndConfigs.js +9 -1
- package/build/esm/src/utils/markets.js +5 -0
- package/build/esm/src/utils/multicall.js +53 -16
- package/build/esm/src/utils/numbers.js +21 -12
- package/build/esm/src/utils/orders.js +3 -3
- package/build/esm/src/utils/swap/__tests__/mockRouting.spec.js +7 -6
- package/build/esm/src/utils/swap/__tests__/swapRouting.spec.js +5 -4
- package/build/esm/src/utils/swap/__tests__/swapStats.spec.js +10 -9
- package/build/esm/src/utils/swap/buildSwapStrategy.js +10 -9
- package/build/esm/src/utils/swap/swapPath.js +6 -6
- package/build/esm/src/utils/swap/swapRouting.js +8 -4
- package/build/esm/src/utils/swap/swapStats.js +6 -6
- package/build/esm/src/utils/swap/swapValues.js +4 -0
- package/build/esm/src/utils/tokens.js +15 -1
- package/build/esm/src/utils/trade/decrease.js +2 -2
- package/build/types/src/abis/IStargate.d.ts +464 -0
- package/build/types/src/abis/LayerZeroProvider.d.ts +12 -0
- package/build/types/src/abis/index.d.ts +475 -99
- package/build/types/src/configs/chainIds.d.ts +1 -1
- package/build/types/src/configs/chains.d.ts +170 -27
- package/build/types/src/configs/contracts.d.ts +0 -4
- package/build/types/src/configs/dataStore.d.ts +1 -0
- package/build/types/src/configs/express.d.ts +1 -1
- package/build/types/src/configs/gasLimits.d.ts +4 -0
- package/build/types/src/configs/markets.d.ts +10 -1
- package/build/types/src/configs/oracleKeeper.d.ts +13 -0
- package/build/types/src/configs/tokens.d.ts +3 -0
- package/build/types/src/index.d.ts +1 -1
- package/build/types/src/modules/base.d.ts +1 -1
- package/build/types/src/modules/markets/index.d.ts +2 -0
- package/build/types/src/modules/markets/query-builders.d.ts +1 -1
- package/build/types/src/modules/markets/types.d.ts +2 -2
- package/build/types/src/modules/utils/utils.d.ts +2 -3
- package/build/types/src/types/chains.d.ts +57 -0
- package/build/types/src/types/markets.d.ts +2 -0
- package/build/types/src/types/orders.d.ts +8 -2
- package/build/types/src/types/subsquid.d.ts +5987 -5172
- package/build/types/src/types/tokens.d.ts +11 -3
- package/build/types/src/types/trade.d.ts +5 -0
- package/build/types/src/utils/__tests__/abort.spec.d.ts +1 -0
- package/build/types/src/utils/abort.d.ts +1 -0
- package/build/types/src/utils/fees/estimateOraclePriceCount.d.ts +2 -2
- package/build/types/src/utils/fees/executionFee.d.ts +6 -6
- package/build/types/src/utils/fees/index.d.ts +2 -1
- package/build/types/src/utils/marketKeysAndConfigs.d.ts +2 -0
- package/build/types/src/utils/markets.d.ts +4 -2
- package/build/types/src/utils/multicall.d.ts +4 -2
- package/build/types/src/utils/numbers.d.ts +8 -1
- package/build/types/src/utils/swap/buildSwapStrategy.d.ts +6 -3
- package/build/types/src/utils/swap/swapPath.d.ts +2 -1
- package/build/types/src/utils/swap/swapRouting.d.ts +7 -2
- package/build/types/src/utils/swap/swapStats.d.ts +3 -2
- package/build/types/src/utils/swap/swapValues.d.ts +1 -1
- package/build/types/src/utils/tokens.d.ts +3 -0
- package/package.json +8 -2
- package/build/cjs/src/abis/MultichainUtils.js +0 -133
- package/build/esm/src/abis/MultichainUtils.js +0 -131
- package/build/types/src/abis/MultichainUtils.d.ts +0 -100
|
@@ -12853,6 +12853,18 @@ export declare const abis: {
|
|
|
12853
12853
|
}];
|
|
12854
12854
|
readonly name: "InsufficientGasLeft";
|
|
12855
12855
|
readonly type: "error";
|
|
12856
|
+
}, {
|
|
12857
|
+
readonly inputs: readonly [{
|
|
12858
|
+
readonly internalType: "uint256";
|
|
12859
|
+
readonly name: "msgValue";
|
|
12860
|
+
readonly type: "uint256";
|
|
12861
|
+
}, {
|
|
12862
|
+
readonly internalType: "uint256";
|
|
12863
|
+
readonly name: "expectedNativeValue";
|
|
12864
|
+
readonly type: "uint256";
|
|
12865
|
+
}];
|
|
12866
|
+
readonly name: "InsufficientNativeTokenAmount";
|
|
12867
|
+
readonly type: "error";
|
|
12856
12868
|
}, {
|
|
12857
12869
|
readonly inputs: readonly [{
|
|
12858
12870
|
readonly internalType: "address";
|
|
@@ -20756,105 +20768,6 @@ export declare const abis: {
|
|
|
20756
20768
|
readonly stateMutability: "nonpayable";
|
|
20757
20769
|
readonly type: "function";
|
|
20758
20770
|
}];
|
|
20759
|
-
MultichainUtils: readonly [{
|
|
20760
|
-
readonly inputs: readonly [{
|
|
20761
|
-
readonly internalType: "address";
|
|
20762
|
-
readonly name: "account";
|
|
20763
|
-
readonly type: "address";
|
|
20764
|
-
}, {
|
|
20765
|
-
readonly internalType: "address";
|
|
20766
|
-
readonly name: "token";
|
|
20767
|
-
readonly type: "address";
|
|
20768
|
-
}];
|
|
20769
|
-
readonly name: "EmptyMultichainTransferInAmount";
|
|
20770
|
-
readonly type: "error";
|
|
20771
|
-
}, {
|
|
20772
|
-
readonly inputs: readonly [{
|
|
20773
|
-
readonly internalType: "address";
|
|
20774
|
-
readonly name: "account";
|
|
20775
|
-
readonly type: "address";
|
|
20776
|
-
}, {
|
|
20777
|
-
readonly internalType: "address";
|
|
20778
|
-
readonly name: "token";
|
|
20779
|
-
readonly type: "address";
|
|
20780
|
-
}, {
|
|
20781
|
-
readonly internalType: "uint256";
|
|
20782
|
-
readonly name: "balance";
|
|
20783
|
-
readonly type: "uint256";
|
|
20784
|
-
}, {
|
|
20785
|
-
readonly internalType: "uint256";
|
|
20786
|
-
readonly name: "amount";
|
|
20787
|
-
readonly type: "uint256";
|
|
20788
|
-
}];
|
|
20789
|
-
readonly name: "InsufficientMultichainBalance";
|
|
20790
|
-
readonly type: "error";
|
|
20791
|
-
}, {
|
|
20792
|
-
readonly inputs: readonly [{
|
|
20793
|
-
readonly internalType: "address";
|
|
20794
|
-
readonly name: "endpoint";
|
|
20795
|
-
readonly type: "address";
|
|
20796
|
-
}];
|
|
20797
|
-
readonly name: "InvalidMultichainEndpoint";
|
|
20798
|
-
readonly type: "error";
|
|
20799
|
-
}, {
|
|
20800
|
-
readonly inputs: readonly [{
|
|
20801
|
-
readonly internalType: "address";
|
|
20802
|
-
readonly name: "provider";
|
|
20803
|
-
readonly type: "address";
|
|
20804
|
-
}];
|
|
20805
|
-
readonly name: "InvalidMultichainProvider";
|
|
20806
|
-
readonly type: "error";
|
|
20807
|
-
}, {
|
|
20808
|
-
readonly inputs: readonly [{
|
|
20809
|
-
readonly internalType: "contract DataStore";
|
|
20810
|
-
readonly name: "dataStore";
|
|
20811
|
-
readonly type: "DataStore";
|
|
20812
|
-
}, {
|
|
20813
|
-
readonly internalType: "address";
|
|
20814
|
-
readonly name: "account";
|
|
20815
|
-
readonly type: "address";
|
|
20816
|
-
}, {
|
|
20817
|
-
readonly internalType: "address";
|
|
20818
|
-
readonly name: "token";
|
|
20819
|
-
readonly type: "address";
|
|
20820
|
-
}];
|
|
20821
|
-
readonly name: "getMultichainBalanceAmount";
|
|
20822
|
-
readonly outputs: readonly [{
|
|
20823
|
-
readonly internalType: "uint256";
|
|
20824
|
-
readonly name: "";
|
|
20825
|
-
readonly type: "uint256";
|
|
20826
|
-
}];
|
|
20827
|
-
readonly stateMutability: "view";
|
|
20828
|
-
readonly type: "function";
|
|
20829
|
-
}, {
|
|
20830
|
-
readonly inputs: readonly [{
|
|
20831
|
-
readonly internalType: "contract DataStore";
|
|
20832
|
-
readonly name: "dataStore";
|
|
20833
|
-
readonly type: "DataStore";
|
|
20834
|
-
}, {
|
|
20835
|
-
readonly internalType: "address";
|
|
20836
|
-
readonly name: "endpoint";
|
|
20837
|
-
readonly type: "address";
|
|
20838
|
-
}];
|
|
20839
|
-
readonly name: "validateMultichainEndpoint";
|
|
20840
|
-
readonly outputs: readonly [];
|
|
20841
|
-
readonly stateMutability: "view";
|
|
20842
|
-
readonly type: "function";
|
|
20843
|
-
}, {
|
|
20844
|
-
readonly inputs: readonly [{
|
|
20845
|
-
readonly internalType: "contract DataStore";
|
|
20846
|
-
readonly name: "dataStore";
|
|
20847
|
-
readonly type: "DataStore";
|
|
20848
|
-
}, {
|
|
20849
|
-
readonly internalType: "address";
|
|
20850
|
-
readonly name: "provider";
|
|
20851
|
-
readonly type: "address";
|
|
20852
|
-
}];
|
|
20853
|
-
readonly name: "validateMultichainProvider";
|
|
20854
|
-
readonly outputs: readonly [];
|
|
20855
|
-
readonly stateMutability: "view";
|
|
20856
|
-
readonly type: "function";
|
|
20857
|
-
}];
|
|
20858
20771
|
MultichainVault: readonly [{
|
|
20859
20772
|
readonly inputs: readonly [{
|
|
20860
20773
|
readonly internalType: "contract RoleStore";
|
|
@@ -43284,5 +43197,468 @@ export declare const abis: {
|
|
|
43284
43197
|
readonly stateMutability: "nonpayable";
|
|
43285
43198
|
readonly type: "function";
|
|
43286
43199
|
}];
|
|
43200
|
+
IStargate: readonly [{
|
|
43201
|
+
readonly inputs: readonly [];
|
|
43202
|
+
readonly name: "InvalidLocalDecimals";
|
|
43203
|
+
readonly type: "error";
|
|
43204
|
+
}, {
|
|
43205
|
+
readonly inputs: readonly [{
|
|
43206
|
+
readonly internalType: "uint256";
|
|
43207
|
+
readonly name: "amountLD";
|
|
43208
|
+
readonly type: "uint256";
|
|
43209
|
+
}, {
|
|
43210
|
+
readonly internalType: "uint256";
|
|
43211
|
+
readonly name: "minAmountLD";
|
|
43212
|
+
readonly type: "uint256";
|
|
43213
|
+
}];
|
|
43214
|
+
readonly name: "SlippageExceeded";
|
|
43215
|
+
readonly type: "error";
|
|
43216
|
+
}, {
|
|
43217
|
+
readonly anonymous: false;
|
|
43218
|
+
readonly inputs: readonly [{
|
|
43219
|
+
readonly indexed: true;
|
|
43220
|
+
readonly internalType: "bytes32";
|
|
43221
|
+
readonly name: "guid";
|
|
43222
|
+
readonly type: "bytes32";
|
|
43223
|
+
}, {
|
|
43224
|
+
readonly indexed: false;
|
|
43225
|
+
readonly internalType: "uint32";
|
|
43226
|
+
readonly name: "srcEid";
|
|
43227
|
+
readonly type: "uint32";
|
|
43228
|
+
}, {
|
|
43229
|
+
readonly indexed: true;
|
|
43230
|
+
readonly internalType: "address";
|
|
43231
|
+
readonly name: "toAddress";
|
|
43232
|
+
readonly type: "address";
|
|
43233
|
+
}, {
|
|
43234
|
+
readonly indexed: false;
|
|
43235
|
+
readonly internalType: "uint256";
|
|
43236
|
+
readonly name: "amountReceivedLD";
|
|
43237
|
+
readonly type: "uint256";
|
|
43238
|
+
}];
|
|
43239
|
+
readonly name: "OFTReceived";
|
|
43240
|
+
readonly type: "event";
|
|
43241
|
+
}, {
|
|
43242
|
+
readonly anonymous: false;
|
|
43243
|
+
readonly inputs: readonly [{
|
|
43244
|
+
readonly indexed: true;
|
|
43245
|
+
readonly internalType: "bytes32";
|
|
43246
|
+
readonly name: "guid";
|
|
43247
|
+
readonly type: "bytes32";
|
|
43248
|
+
}, {
|
|
43249
|
+
readonly indexed: false;
|
|
43250
|
+
readonly internalType: "uint32";
|
|
43251
|
+
readonly name: "dstEid";
|
|
43252
|
+
readonly type: "uint32";
|
|
43253
|
+
}, {
|
|
43254
|
+
readonly indexed: true;
|
|
43255
|
+
readonly internalType: "address";
|
|
43256
|
+
readonly name: "fromAddress";
|
|
43257
|
+
readonly type: "address";
|
|
43258
|
+
}, {
|
|
43259
|
+
readonly indexed: false;
|
|
43260
|
+
readonly internalType: "uint256";
|
|
43261
|
+
readonly name: "amountSentLD";
|
|
43262
|
+
readonly type: "uint256";
|
|
43263
|
+
}, {
|
|
43264
|
+
readonly indexed: false;
|
|
43265
|
+
readonly internalType: "uint256";
|
|
43266
|
+
readonly name: "amountReceivedLD";
|
|
43267
|
+
readonly type: "uint256";
|
|
43268
|
+
}];
|
|
43269
|
+
readonly name: "OFTSent";
|
|
43270
|
+
readonly type: "event";
|
|
43271
|
+
}, {
|
|
43272
|
+
readonly inputs: readonly [];
|
|
43273
|
+
readonly name: "approvalRequired";
|
|
43274
|
+
readonly outputs: readonly [{
|
|
43275
|
+
readonly internalType: "bool";
|
|
43276
|
+
readonly name: "";
|
|
43277
|
+
readonly type: "bool";
|
|
43278
|
+
}];
|
|
43279
|
+
readonly stateMutability: "view";
|
|
43280
|
+
readonly type: "function";
|
|
43281
|
+
}, {
|
|
43282
|
+
readonly inputs: readonly [];
|
|
43283
|
+
readonly name: "oftVersion";
|
|
43284
|
+
readonly outputs: readonly [{
|
|
43285
|
+
readonly internalType: "bytes4";
|
|
43286
|
+
readonly name: "interfaceId";
|
|
43287
|
+
readonly type: "bytes4";
|
|
43288
|
+
}, {
|
|
43289
|
+
readonly internalType: "uint64";
|
|
43290
|
+
readonly name: "version";
|
|
43291
|
+
readonly type: "uint64";
|
|
43292
|
+
}];
|
|
43293
|
+
readonly stateMutability: "view";
|
|
43294
|
+
readonly type: "function";
|
|
43295
|
+
}, {
|
|
43296
|
+
readonly inputs: readonly [{
|
|
43297
|
+
readonly components: readonly [{
|
|
43298
|
+
readonly internalType: "uint32";
|
|
43299
|
+
readonly name: "dstEid";
|
|
43300
|
+
readonly type: "uint32";
|
|
43301
|
+
}, {
|
|
43302
|
+
readonly internalType: "bytes32";
|
|
43303
|
+
readonly name: "to";
|
|
43304
|
+
readonly type: "bytes32";
|
|
43305
|
+
}, {
|
|
43306
|
+
readonly internalType: "uint256";
|
|
43307
|
+
readonly name: "amountLD";
|
|
43308
|
+
readonly type: "uint256";
|
|
43309
|
+
}, {
|
|
43310
|
+
readonly internalType: "uint256";
|
|
43311
|
+
readonly name: "minAmountLD";
|
|
43312
|
+
readonly type: "uint256";
|
|
43313
|
+
}, {
|
|
43314
|
+
readonly internalType: "bytes";
|
|
43315
|
+
readonly name: "extraOptions";
|
|
43316
|
+
readonly type: "bytes";
|
|
43317
|
+
}, {
|
|
43318
|
+
readonly internalType: "bytes";
|
|
43319
|
+
readonly name: "composeMsg";
|
|
43320
|
+
readonly type: "bytes";
|
|
43321
|
+
}, {
|
|
43322
|
+
readonly internalType: "bytes";
|
|
43323
|
+
readonly name: "oftCmd";
|
|
43324
|
+
readonly type: "bytes";
|
|
43325
|
+
}];
|
|
43326
|
+
readonly internalType: "struct SendParam";
|
|
43327
|
+
readonly name: "_sendParam";
|
|
43328
|
+
readonly type: "tuple";
|
|
43329
|
+
}];
|
|
43330
|
+
readonly name: "quoteOFT";
|
|
43331
|
+
readonly outputs: readonly [{
|
|
43332
|
+
readonly components: readonly [{
|
|
43333
|
+
readonly internalType: "uint256";
|
|
43334
|
+
readonly name: "minAmountLD";
|
|
43335
|
+
readonly type: "uint256";
|
|
43336
|
+
}, {
|
|
43337
|
+
readonly internalType: "uint256";
|
|
43338
|
+
readonly name: "maxAmountLD";
|
|
43339
|
+
readonly type: "uint256";
|
|
43340
|
+
}];
|
|
43341
|
+
readonly internalType: "struct OFTLimit";
|
|
43342
|
+
readonly name: "";
|
|
43343
|
+
readonly type: "tuple";
|
|
43344
|
+
}, {
|
|
43345
|
+
readonly components: readonly [{
|
|
43346
|
+
readonly internalType: "int256";
|
|
43347
|
+
readonly name: "feeAmountLD";
|
|
43348
|
+
readonly type: "int256";
|
|
43349
|
+
}, {
|
|
43350
|
+
readonly internalType: "string";
|
|
43351
|
+
readonly name: "description";
|
|
43352
|
+
readonly type: "string";
|
|
43353
|
+
}];
|
|
43354
|
+
readonly internalType: "struct OFTFeeDetail[]";
|
|
43355
|
+
readonly name: "oftFeeDetails";
|
|
43356
|
+
readonly type: "tuple[]";
|
|
43357
|
+
}, {
|
|
43358
|
+
readonly components: readonly [{
|
|
43359
|
+
readonly internalType: "uint256";
|
|
43360
|
+
readonly name: "amountSentLD";
|
|
43361
|
+
readonly type: "uint256";
|
|
43362
|
+
}, {
|
|
43363
|
+
readonly internalType: "uint256";
|
|
43364
|
+
readonly name: "amountReceivedLD";
|
|
43365
|
+
readonly type: "uint256";
|
|
43366
|
+
}];
|
|
43367
|
+
readonly internalType: "struct OFTReceipt";
|
|
43368
|
+
readonly name: "";
|
|
43369
|
+
readonly type: "tuple";
|
|
43370
|
+
}];
|
|
43371
|
+
readonly stateMutability: "view";
|
|
43372
|
+
readonly type: "function";
|
|
43373
|
+
}, {
|
|
43374
|
+
readonly inputs: readonly [{
|
|
43375
|
+
readonly components: readonly [{
|
|
43376
|
+
readonly internalType: "uint32";
|
|
43377
|
+
readonly name: "dstEid";
|
|
43378
|
+
readonly type: "uint32";
|
|
43379
|
+
}, {
|
|
43380
|
+
readonly internalType: "bytes32";
|
|
43381
|
+
readonly name: "to";
|
|
43382
|
+
readonly type: "bytes32";
|
|
43383
|
+
}, {
|
|
43384
|
+
readonly internalType: "uint256";
|
|
43385
|
+
readonly name: "amountLD";
|
|
43386
|
+
readonly type: "uint256";
|
|
43387
|
+
}, {
|
|
43388
|
+
readonly internalType: "uint256";
|
|
43389
|
+
readonly name: "minAmountLD";
|
|
43390
|
+
readonly type: "uint256";
|
|
43391
|
+
}, {
|
|
43392
|
+
readonly internalType: "bytes";
|
|
43393
|
+
readonly name: "extraOptions";
|
|
43394
|
+
readonly type: "bytes";
|
|
43395
|
+
}, {
|
|
43396
|
+
readonly internalType: "bytes";
|
|
43397
|
+
readonly name: "composeMsg";
|
|
43398
|
+
readonly type: "bytes";
|
|
43399
|
+
}, {
|
|
43400
|
+
readonly internalType: "bytes";
|
|
43401
|
+
readonly name: "oftCmd";
|
|
43402
|
+
readonly type: "bytes";
|
|
43403
|
+
}];
|
|
43404
|
+
readonly internalType: "struct SendParam";
|
|
43405
|
+
readonly name: "_sendParam";
|
|
43406
|
+
readonly type: "tuple";
|
|
43407
|
+
}, {
|
|
43408
|
+
readonly internalType: "bool";
|
|
43409
|
+
readonly name: "_payInLzToken";
|
|
43410
|
+
readonly type: "bool";
|
|
43411
|
+
}];
|
|
43412
|
+
readonly name: "quoteSend";
|
|
43413
|
+
readonly outputs: readonly [{
|
|
43414
|
+
readonly components: readonly [{
|
|
43415
|
+
readonly internalType: "uint256";
|
|
43416
|
+
readonly name: "nativeFee";
|
|
43417
|
+
readonly type: "uint256";
|
|
43418
|
+
}, {
|
|
43419
|
+
readonly internalType: "uint256";
|
|
43420
|
+
readonly name: "lzTokenFee";
|
|
43421
|
+
readonly type: "uint256";
|
|
43422
|
+
}];
|
|
43423
|
+
readonly internalType: "struct MessagingFee";
|
|
43424
|
+
readonly name: "";
|
|
43425
|
+
readonly type: "tuple";
|
|
43426
|
+
}];
|
|
43427
|
+
readonly stateMutability: "view";
|
|
43428
|
+
readonly type: "function";
|
|
43429
|
+
}, {
|
|
43430
|
+
readonly inputs: readonly [{
|
|
43431
|
+
readonly components: readonly [{
|
|
43432
|
+
readonly internalType: "uint32";
|
|
43433
|
+
readonly name: "dstEid";
|
|
43434
|
+
readonly type: "uint32";
|
|
43435
|
+
}, {
|
|
43436
|
+
readonly internalType: "bytes32";
|
|
43437
|
+
readonly name: "to";
|
|
43438
|
+
readonly type: "bytes32";
|
|
43439
|
+
}, {
|
|
43440
|
+
readonly internalType: "uint256";
|
|
43441
|
+
readonly name: "amountLD";
|
|
43442
|
+
readonly type: "uint256";
|
|
43443
|
+
}, {
|
|
43444
|
+
readonly internalType: "uint256";
|
|
43445
|
+
readonly name: "minAmountLD";
|
|
43446
|
+
readonly type: "uint256";
|
|
43447
|
+
}, {
|
|
43448
|
+
readonly internalType: "bytes";
|
|
43449
|
+
readonly name: "extraOptions";
|
|
43450
|
+
readonly type: "bytes";
|
|
43451
|
+
}, {
|
|
43452
|
+
readonly internalType: "bytes";
|
|
43453
|
+
readonly name: "composeMsg";
|
|
43454
|
+
readonly type: "bytes";
|
|
43455
|
+
}, {
|
|
43456
|
+
readonly internalType: "bytes";
|
|
43457
|
+
readonly name: "oftCmd";
|
|
43458
|
+
readonly type: "bytes";
|
|
43459
|
+
}];
|
|
43460
|
+
readonly internalType: "struct SendParam";
|
|
43461
|
+
readonly name: "_sendParam";
|
|
43462
|
+
readonly type: "tuple";
|
|
43463
|
+
}, {
|
|
43464
|
+
readonly components: readonly [{
|
|
43465
|
+
readonly internalType: "uint256";
|
|
43466
|
+
readonly name: "nativeFee";
|
|
43467
|
+
readonly type: "uint256";
|
|
43468
|
+
}, {
|
|
43469
|
+
readonly internalType: "uint256";
|
|
43470
|
+
readonly name: "lzTokenFee";
|
|
43471
|
+
readonly type: "uint256";
|
|
43472
|
+
}];
|
|
43473
|
+
readonly internalType: "struct MessagingFee";
|
|
43474
|
+
readonly name: "_fee";
|
|
43475
|
+
readonly type: "tuple";
|
|
43476
|
+
}, {
|
|
43477
|
+
readonly internalType: "address";
|
|
43478
|
+
readonly name: "_refundAddress";
|
|
43479
|
+
readonly type: "address";
|
|
43480
|
+
}];
|
|
43481
|
+
readonly name: "send";
|
|
43482
|
+
readonly outputs: readonly [{
|
|
43483
|
+
readonly components: readonly [{
|
|
43484
|
+
readonly internalType: "bytes32";
|
|
43485
|
+
readonly name: "guid";
|
|
43486
|
+
readonly type: "bytes32";
|
|
43487
|
+
}, {
|
|
43488
|
+
readonly internalType: "uint64";
|
|
43489
|
+
readonly name: "nonce";
|
|
43490
|
+
readonly type: "uint64";
|
|
43491
|
+
}, {
|
|
43492
|
+
readonly components: readonly [{
|
|
43493
|
+
readonly internalType: "uint256";
|
|
43494
|
+
readonly name: "nativeFee";
|
|
43495
|
+
readonly type: "uint256";
|
|
43496
|
+
}, {
|
|
43497
|
+
readonly internalType: "uint256";
|
|
43498
|
+
readonly name: "lzTokenFee";
|
|
43499
|
+
readonly type: "uint256";
|
|
43500
|
+
}];
|
|
43501
|
+
readonly internalType: "struct MessagingFee";
|
|
43502
|
+
readonly name: "fee";
|
|
43503
|
+
readonly type: "tuple";
|
|
43504
|
+
}];
|
|
43505
|
+
readonly internalType: "struct MessagingReceipt";
|
|
43506
|
+
readonly name: "";
|
|
43507
|
+
readonly type: "tuple";
|
|
43508
|
+
}, {
|
|
43509
|
+
readonly components: readonly [{
|
|
43510
|
+
readonly internalType: "uint256";
|
|
43511
|
+
readonly name: "amountSentLD";
|
|
43512
|
+
readonly type: "uint256";
|
|
43513
|
+
}, {
|
|
43514
|
+
readonly internalType: "uint256";
|
|
43515
|
+
readonly name: "amountReceivedLD";
|
|
43516
|
+
readonly type: "uint256";
|
|
43517
|
+
}];
|
|
43518
|
+
readonly internalType: "struct OFTReceipt";
|
|
43519
|
+
readonly name: "";
|
|
43520
|
+
readonly type: "tuple";
|
|
43521
|
+
}];
|
|
43522
|
+
readonly stateMutability: "payable";
|
|
43523
|
+
readonly type: "function";
|
|
43524
|
+
}, {
|
|
43525
|
+
readonly inputs: readonly [{
|
|
43526
|
+
readonly components: readonly [{
|
|
43527
|
+
readonly internalType: "uint32";
|
|
43528
|
+
readonly name: "dstEid";
|
|
43529
|
+
readonly type: "uint32";
|
|
43530
|
+
}, {
|
|
43531
|
+
readonly internalType: "bytes32";
|
|
43532
|
+
readonly name: "to";
|
|
43533
|
+
readonly type: "bytes32";
|
|
43534
|
+
}, {
|
|
43535
|
+
readonly internalType: "uint256";
|
|
43536
|
+
readonly name: "amountLD";
|
|
43537
|
+
readonly type: "uint256";
|
|
43538
|
+
}, {
|
|
43539
|
+
readonly internalType: "uint256";
|
|
43540
|
+
readonly name: "minAmountLD";
|
|
43541
|
+
readonly type: "uint256";
|
|
43542
|
+
}, {
|
|
43543
|
+
readonly internalType: "bytes";
|
|
43544
|
+
readonly name: "extraOptions";
|
|
43545
|
+
readonly type: "bytes";
|
|
43546
|
+
}, {
|
|
43547
|
+
readonly internalType: "bytes";
|
|
43548
|
+
readonly name: "composeMsg";
|
|
43549
|
+
readonly type: "bytes";
|
|
43550
|
+
}, {
|
|
43551
|
+
readonly internalType: "bytes";
|
|
43552
|
+
readonly name: "oftCmd";
|
|
43553
|
+
readonly type: "bytes";
|
|
43554
|
+
}];
|
|
43555
|
+
readonly internalType: "struct SendParam";
|
|
43556
|
+
readonly name: "_sendParam";
|
|
43557
|
+
readonly type: "tuple";
|
|
43558
|
+
}, {
|
|
43559
|
+
readonly components: readonly [{
|
|
43560
|
+
readonly internalType: "uint256";
|
|
43561
|
+
readonly name: "nativeFee";
|
|
43562
|
+
readonly type: "uint256";
|
|
43563
|
+
}, {
|
|
43564
|
+
readonly internalType: "uint256";
|
|
43565
|
+
readonly name: "lzTokenFee";
|
|
43566
|
+
readonly type: "uint256";
|
|
43567
|
+
}];
|
|
43568
|
+
readonly internalType: "struct MessagingFee";
|
|
43569
|
+
readonly name: "_fee";
|
|
43570
|
+
readonly type: "tuple";
|
|
43571
|
+
}, {
|
|
43572
|
+
readonly internalType: "address";
|
|
43573
|
+
readonly name: "_refundAddress";
|
|
43574
|
+
readonly type: "address";
|
|
43575
|
+
}];
|
|
43576
|
+
readonly name: "sendToken";
|
|
43577
|
+
readonly outputs: readonly [{
|
|
43578
|
+
readonly components: readonly [{
|
|
43579
|
+
readonly internalType: "bytes32";
|
|
43580
|
+
readonly name: "guid";
|
|
43581
|
+
readonly type: "bytes32";
|
|
43582
|
+
}, {
|
|
43583
|
+
readonly internalType: "uint64";
|
|
43584
|
+
readonly name: "nonce";
|
|
43585
|
+
readonly type: "uint64";
|
|
43586
|
+
}, {
|
|
43587
|
+
readonly components: readonly [{
|
|
43588
|
+
readonly internalType: "uint256";
|
|
43589
|
+
readonly name: "nativeFee";
|
|
43590
|
+
readonly type: "uint256";
|
|
43591
|
+
}, {
|
|
43592
|
+
readonly internalType: "uint256";
|
|
43593
|
+
readonly name: "lzTokenFee";
|
|
43594
|
+
readonly type: "uint256";
|
|
43595
|
+
}];
|
|
43596
|
+
readonly internalType: "struct MessagingFee";
|
|
43597
|
+
readonly name: "fee";
|
|
43598
|
+
readonly type: "tuple";
|
|
43599
|
+
}];
|
|
43600
|
+
readonly internalType: "struct MessagingReceipt";
|
|
43601
|
+
readonly name: "msgReceipt";
|
|
43602
|
+
readonly type: "tuple";
|
|
43603
|
+
}, {
|
|
43604
|
+
readonly components: readonly [{
|
|
43605
|
+
readonly internalType: "uint256";
|
|
43606
|
+
readonly name: "amountSentLD";
|
|
43607
|
+
readonly type: "uint256";
|
|
43608
|
+
}, {
|
|
43609
|
+
readonly internalType: "uint256";
|
|
43610
|
+
readonly name: "amountReceivedLD";
|
|
43611
|
+
readonly type: "uint256";
|
|
43612
|
+
}];
|
|
43613
|
+
readonly internalType: "struct OFTReceipt";
|
|
43614
|
+
readonly name: "oftReceipt";
|
|
43615
|
+
readonly type: "tuple";
|
|
43616
|
+
}, {
|
|
43617
|
+
readonly components: readonly [{
|
|
43618
|
+
readonly internalType: "uint72";
|
|
43619
|
+
readonly name: "ticketId";
|
|
43620
|
+
readonly type: "uint72";
|
|
43621
|
+
}, {
|
|
43622
|
+
readonly internalType: "bytes";
|
|
43623
|
+
readonly name: "passengerBytes";
|
|
43624
|
+
readonly type: "bytes";
|
|
43625
|
+
}];
|
|
43626
|
+
readonly internalType: "struct Ticket";
|
|
43627
|
+
readonly name: "ticket";
|
|
43628
|
+
readonly type: "tuple";
|
|
43629
|
+
}];
|
|
43630
|
+
readonly stateMutability: "payable";
|
|
43631
|
+
readonly type: "function";
|
|
43632
|
+
}, {
|
|
43633
|
+
readonly inputs: readonly [];
|
|
43634
|
+
readonly name: "sharedDecimals";
|
|
43635
|
+
readonly outputs: readonly [{
|
|
43636
|
+
readonly internalType: "uint8";
|
|
43637
|
+
readonly name: "";
|
|
43638
|
+
readonly type: "uint8";
|
|
43639
|
+
}];
|
|
43640
|
+
readonly stateMutability: "view";
|
|
43641
|
+
readonly type: "function";
|
|
43642
|
+
}, {
|
|
43643
|
+
readonly inputs: readonly [];
|
|
43644
|
+
readonly name: "stargateType";
|
|
43645
|
+
readonly outputs: readonly [{
|
|
43646
|
+
readonly internalType: "enum StargateType";
|
|
43647
|
+
readonly name: "";
|
|
43648
|
+
readonly type: "uint8";
|
|
43649
|
+
}];
|
|
43650
|
+
readonly stateMutability: "pure";
|
|
43651
|
+
readonly type: "function";
|
|
43652
|
+
}, {
|
|
43653
|
+
readonly inputs: readonly [];
|
|
43654
|
+
readonly name: "token";
|
|
43655
|
+
readonly outputs: readonly [{
|
|
43656
|
+
readonly internalType: "address";
|
|
43657
|
+
readonly name: "";
|
|
43658
|
+
readonly type: "address";
|
|
43659
|
+
}];
|
|
43660
|
+
readonly stateMutability: "view";
|
|
43661
|
+
readonly type: "function";
|
|
43662
|
+
}];
|
|
43287
43663
|
};
|
|
43288
43664
|
export type AbiId = keyof typeof abis;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const ETH_MAINNET = 1;
|
|
2
1
|
export declare const AVALANCHE = 43114;
|
|
3
2
|
export declare const ARBITRUM = 42161;
|
|
4
3
|
export declare const BOTANIX = 3637;
|
|
4
|
+
export declare const SOURCE_ETHEREUM_MAINNET = 1;
|
|
5
5
|
export declare const SOURCE_BASE_MAINNET = 8453;
|
|
6
6
|
export declare const SOURCE_BSC_MAINNET = 56;
|
|
7
7
|
export declare const AVALANCHE_FUJI = 43113;
|