@pendle/sdk-boros 0.3.6 → 0.3.7-khanh2
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/contracts/viemAbis.d.ts +679 -103
- package/dist/contracts/viemAbis.js +358 -47
- package/dist/contracts/viemAbis.js.map +1 -1
- package/dist/entities/exchange/exchange.d.ts +456 -0
- package/dist/entities/exchange/exchange.js +2 -1
- package/dist/entities/exchange/exchange.js.map +1 -1
- package/dist/entities/exchange/utils.d.ts +114 -0
- package/dist/errors/PendleContractError/customHandler.d.ts +2 -0
- package/dist/errors/PendleContractError/customHandler.js +9 -0
- package/dist/errors/PendleContractError/customHandler.js.map +1 -0
- package/dist/errors/PendleContractError/type.d.ts +14 -3
- package/dist/errors/ViemErrorDecoder.js.map +1 -1
- package/dist/types/encoders.d.ts +1 -2
- package/dist/types/encoders.js +1 -1
- package/dist/types/encoders.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,90 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.iBOROS20Abi = exports.iAMMAbi = exports.iFIndexOracleAbi = exports.iAuthModuleAbi = exports.iTradeModuleAbi = exports.iMarkRateOracleAbi = exports.iExplorerAbi = exports.iMulticall3Abi = exports.iMarketOffViewOnlyAbi = exports.iMarketEntryAbi = exports.iMarketRiskManagementAbi = exports.iMarketSettingAbi = exports.iMarketAllTypesAbi = exports.iMarketOrderAndOtcAbi = exports.iMarketOffAbi = exports.iMarketAbi = exports.iMarketAllEventsAndTypesAbi = exports.iRouterAbi = exports.iMarketFactoryAbi = exports.iMarketHubStorageOnlyAbi = exports.iMarketHubAllEventsAndTypesAbi = exports.iMarginManagerOnlyAbi = exports.iMarketHubAbi = exports.iMarketHubRiskManagementAbi = exports.iMarketHubEntryOnlyAbi = void 0;
|
|
3
|
+
exports.arbitrageExecutorAbi = exports.iMultiTokenMerkleDistributorAbi = exports.iBOROS20Abi = exports.iAMMAbi = exports.iFIndexOracleAbi = exports.iAuthModuleAbi = exports.iTradeModuleAbi = exports.iMarkRateOracleAbi = exports.iExplorerAbi = exports.iMulticall3Abi = exports.iMarketOffViewOnlyAbi = exports.iMarketEntryAbi = exports.iMarketRiskManagementAbi = exports.iMarketSettingAbi = exports.iMarketAllTypesAbi = exports.iMarketOrderAndOtcAbi = exports.iMarketOffAbi = exports.iMarketAbi = exports.iMarketAllEventsAndTypesAbi = exports.iRouterAbi = exports.iMarketFactoryAbi = exports.iMarketHubStorageOnlyAbi = exports.iMarketHubAllEventsAndTypesAbi = exports.iMarginManagerOnlyAbi = exports.iMarketHubAbi = exports.iMarketHubRiskManagementAbi = exports.iMarketHubEntryOnlyAbi = exports.iAMMFactoryAbi = void 0;
|
|
4
|
+
exports.iAMMFactoryAbi = [
|
|
5
|
+
{
|
|
6
|
+
anonymous: false,
|
|
7
|
+
inputs: [
|
|
8
|
+
{ indexed: false, internalType: 'address', name: 'amm', type: 'address' },
|
|
9
|
+
{ indexed: false, internalType: 'bool', name: 'isPositive', type: 'bool' },
|
|
10
|
+
{
|
|
11
|
+
components: [
|
|
12
|
+
{ internalType: 'AMMId', name: 'ammId', type: 'uint24' },
|
|
13
|
+
{ internalType: 'string', name: 'name', type: 'string' },
|
|
14
|
+
{ internalType: 'string', name: 'symbol', type: 'string' },
|
|
15
|
+
{ internalType: 'address', name: 'router', type: 'address' },
|
|
16
|
+
{ internalType: 'address', name: 'market', type: 'address' },
|
|
17
|
+
{ internalType: 'uint32', name: 'oracleImpliedRateWindow', type: 'uint32' },
|
|
18
|
+
{ internalType: 'uint64', name: 'feeRate', type: 'uint64' },
|
|
19
|
+
{ internalType: 'uint256', name: 'totalSupplyCap', type: 'uint256' },
|
|
20
|
+
{ internalType: 'MarketAcc', name: 'seeder', type: 'bytes26' },
|
|
21
|
+
{ internalType: 'address', name: 'permissionController', type: 'address' },
|
|
22
|
+
],
|
|
23
|
+
indexed: false,
|
|
24
|
+
internalType: 'struct AMMCreateParams',
|
|
25
|
+
name: 'createParams',
|
|
26
|
+
type: 'tuple',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
components: [
|
|
30
|
+
{ internalType: 'uint256', name: 'minAbsRate', type: 'uint256' },
|
|
31
|
+
{ internalType: 'uint256', name: 'maxAbsRate', type: 'uint256' },
|
|
32
|
+
{ internalType: 'uint256', name: 'cutOffTimestamp', type: 'uint256' },
|
|
33
|
+
{ internalType: 'uint256', name: 'initialAbsRate', type: 'uint256' },
|
|
34
|
+
{ internalType: 'int256', name: 'initialSize', type: 'int256' },
|
|
35
|
+
{ internalType: 'uint256', name: 'flipLiquidity', type: 'uint256' },
|
|
36
|
+
{ internalType: 'uint256', name: 'initialCash', type: 'uint256' },
|
|
37
|
+
],
|
|
38
|
+
indexed: false,
|
|
39
|
+
internalType: 'struct AMMSeedParams',
|
|
40
|
+
name: 'seedParams',
|
|
41
|
+
type: 'tuple',
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
name: 'AMMCreated',
|
|
45
|
+
type: 'event',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
inputs: [
|
|
49
|
+
{ internalType: 'bool', name: 'isPositive', type: 'bool' },
|
|
50
|
+
{
|
|
51
|
+
components: [
|
|
52
|
+
{ internalType: 'AMMId', name: 'ammId', type: 'uint24' },
|
|
53
|
+
{ internalType: 'string', name: 'name', type: 'string' },
|
|
54
|
+
{ internalType: 'string', name: 'symbol', type: 'string' },
|
|
55
|
+
{ internalType: 'address', name: 'router', type: 'address' },
|
|
56
|
+
{ internalType: 'address', name: 'market', type: 'address' },
|
|
57
|
+
{ internalType: 'uint32', name: 'oracleImpliedRateWindow', type: 'uint32' },
|
|
58
|
+
{ internalType: 'uint64', name: 'feeRate', type: 'uint64' },
|
|
59
|
+
{ internalType: 'uint256', name: 'totalSupplyCap', type: 'uint256' },
|
|
60
|
+
{ internalType: 'MarketAcc', name: 'seeder', type: 'bytes26' },
|
|
61
|
+
{ internalType: 'address', name: 'permissionController', type: 'address' },
|
|
62
|
+
],
|
|
63
|
+
internalType: 'struct AMMCreateParams',
|
|
64
|
+
name: 'createParams',
|
|
65
|
+
type: 'tuple',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
components: [
|
|
69
|
+
{ internalType: 'uint256', name: 'minAbsRate', type: 'uint256' },
|
|
70
|
+
{ internalType: 'uint256', name: 'maxAbsRate', type: 'uint256' },
|
|
71
|
+
{ internalType: 'uint256', name: 'cutOffTimestamp', type: 'uint256' },
|
|
72
|
+
{ internalType: 'uint256', name: 'initialAbsRate', type: 'uint256' },
|
|
73
|
+
{ internalType: 'int256', name: 'initialSize', type: 'int256' },
|
|
74
|
+
{ internalType: 'uint256', name: 'flipLiquidity', type: 'uint256' },
|
|
75
|
+
{ internalType: 'uint256', name: 'initialCash', type: 'uint256' },
|
|
76
|
+
],
|
|
77
|
+
internalType: 'struct AMMSeedParams',
|
|
78
|
+
name: 'seedParams',
|
|
79
|
+
type: 'tuple',
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
name: 'create',
|
|
83
|
+
outputs: [{ internalType: 'address', name: 'newAMM', type: 'address' }],
|
|
84
|
+
stateMutability: 'nonpayable',
|
|
85
|
+
type: 'function',
|
|
86
|
+
},
|
|
87
|
+
];
|
|
4
88
|
exports.iMarketHubEntryOnlyAbi = [
|
|
5
89
|
{
|
|
6
90
|
inputs: [
|
|
@@ -1968,7 +2052,10 @@ exports.iRouterAbi = [
|
|
|
1968
2052
|
},
|
|
1969
2053
|
],
|
|
1970
2054
|
name: 'batchSimulate',
|
|
1971
|
-
outputs: [
|
|
2055
|
+
outputs: [
|
|
2056
|
+
{ internalType: 'bytes[]', name: 'results', type: 'bytes[]' },
|
|
2057
|
+
{ internalType: 'uint256[]', name: 'gasUsed', type: 'uint256[]' },
|
|
2058
|
+
],
|
|
1972
2059
|
stateMutability: 'nonpayable',
|
|
1973
2060
|
type: 'function',
|
|
1974
2061
|
},
|
|
@@ -2135,30 +2222,14 @@ exports.iRouterAbi = [
|
|
|
2135
2222
|
inputs: [
|
|
2136
2223
|
{
|
|
2137
2224
|
components: [
|
|
2138
|
-
{ internalType: '
|
|
2139
|
-
{ internalType: 'uint8', name: 'accountId', type: 'uint8' },
|
|
2140
|
-
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
2225
|
+
{ internalType: 'bool', name: 'cross', type: 'bool' },
|
|
2141
2226
|
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
2142
2227
|
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
2143
|
-
{ internalType: 'uint64', name: 'nonce', type: 'uint64' },
|
|
2144
2228
|
],
|
|
2145
|
-
internalType: 'struct IRouterEventsAndTypes.
|
|
2146
|
-
name: '
|
|
2229
|
+
internalType: 'struct IRouterEventsAndTypes.PayTreasuryReq',
|
|
2230
|
+
name: 'req',
|
|
2147
2231
|
type: 'tuple',
|
|
2148
2232
|
},
|
|
2149
|
-
{ internalType: 'bytes', name: 'signature', type: 'bytes' },
|
|
2150
|
-
],
|
|
2151
|
-
name: 'payTreasury',
|
|
2152
|
-
outputs: [],
|
|
2153
|
-
stateMutability: 'nonpayable',
|
|
2154
|
-
type: 'function',
|
|
2155
|
-
},
|
|
2156
|
-
{
|
|
2157
|
-
inputs: [
|
|
2158
|
-
{ internalType: 'uint8', name: 'accountId', type: 'uint8' },
|
|
2159
|
-
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
2160
|
-
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
2161
|
-
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
2162
2233
|
],
|
|
2163
2234
|
name: 'payTreasury',
|
|
2164
2235
|
outputs: [],
|
|
@@ -6864,10 +6935,16 @@ exports.iTradeModuleAbi = [
|
|
|
6864
6935
|
},
|
|
6865
6936
|
{
|
|
6866
6937
|
inputs: [
|
|
6867
|
-
{
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6938
|
+
{
|
|
6939
|
+
components: [
|
|
6940
|
+
{ internalType: 'bool', name: 'cross', type: 'bool' },
|
|
6941
|
+
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
6942
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
6943
|
+
],
|
|
6944
|
+
internalType: 'struct IRouterEventsAndTypes.PayTreasuryReq',
|
|
6945
|
+
name: 'req',
|
|
6946
|
+
type: 'tuple',
|
|
6947
|
+
},
|
|
6871
6948
|
],
|
|
6872
6949
|
name: 'payTreasury',
|
|
6873
6950
|
outputs: [],
|
|
@@ -7152,28 +7229,6 @@ exports.iAuthModuleAbi = [
|
|
|
7152
7229
|
stateMutability: 'nonpayable',
|
|
7153
7230
|
type: 'function',
|
|
7154
7231
|
},
|
|
7155
|
-
{
|
|
7156
|
-
inputs: [
|
|
7157
|
-
{
|
|
7158
|
-
components: [
|
|
7159
|
-
{ internalType: 'address', name: 'root', type: 'address' },
|
|
7160
|
-
{ internalType: 'uint8', name: 'accountId', type: 'uint8' },
|
|
7161
|
-
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
7162
|
-
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
7163
|
-
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
7164
|
-
{ internalType: 'uint64', name: 'nonce', type: 'uint64' },
|
|
7165
|
-
],
|
|
7166
|
-
internalType: 'struct IRouterEventsAndTypes.PayTreasuryMessage',
|
|
7167
|
-
name: 'message',
|
|
7168
|
-
type: 'tuple',
|
|
7169
|
-
},
|
|
7170
|
-
{ internalType: 'bytes', name: 'signature', type: 'bytes' },
|
|
7171
|
-
],
|
|
7172
|
-
name: 'payTreasury',
|
|
7173
|
-
outputs: [],
|
|
7174
|
-
stateMutability: 'nonpayable',
|
|
7175
|
-
type: 'function',
|
|
7176
|
-
},
|
|
7177
7232
|
{
|
|
7178
7233
|
inputs: [
|
|
7179
7234
|
{
|
|
@@ -7771,4 +7826,260 @@ exports.iBOROS20Abi = [
|
|
|
7771
7826
|
type: 'function',
|
|
7772
7827
|
},
|
|
7773
7828
|
];
|
|
7829
|
+
exports.iMultiTokenMerkleDistributorAbi = [
|
|
7830
|
+
{ inputs: [], name: 'InvalidMerkleProof', type: 'error' },
|
|
7831
|
+
{
|
|
7832
|
+
anonymous: false,
|
|
7833
|
+
inputs: [
|
|
7834
|
+
{ indexed: true, internalType: 'address', name: 'token', type: 'address' },
|
|
7835
|
+
{ indexed: true, internalType: 'address', name: 'user', type: 'address' },
|
|
7836
|
+
{ indexed: true, internalType: 'address', name: 'receiver', type: 'address' },
|
|
7837
|
+
{ indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
7838
|
+
],
|
|
7839
|
+
name: 'Claimed',
|
|
7840
|
+
type: 'event',
|
|
7841
|
+
},
|
|
7842
|
+
{
|
|
7843
|
+
anonymous: false,
|
|
7844
|
+
inputs: [{ indexed: true, internalType: 'bytes32', name: 'merkleRoot', type: 'bytes32' }],
|
|
7845
|
+
name: 'SetMerkleRoot',
|
|
7846
|
+
type: 'event',
|
|
7847
|
+
},
|
|
7848
|
+
{
|
|
7849
|
+
anonymous: false,
|
|
7850
|
+
inputs: [
|
|
7851
|
+
{ indexed: true, internalType: 'address', name: 'token', type: 'address' },
|
|
7852
|
+
{ indexed: true, internalType: 'address', name: 'user', type: 'address' },
|
|
7853
|
+
{ indexed: false, internalType: 'uint256', name: 'amountClaimable', type: 'uint256' },
|
|
7854
|
+
],
|
|
7855
|
+
name: 'Verified',
|
|
7856
|
+
type: 'event',
|
|
7857
|
+
},
|
|
7858
|
+
{
|
|
7859
|
+
inputs: [
|
|
7860
|
+
{ internalType: 'address', name: 'receiver', type: 'address' },
|
|
7861
|
+
{ internalType: 'address[]', name: 'tokens', type: 'address[]' },
|
|
7862
|
+
{ internalType: 'uint256[]', name: 'totalAccrueds', type: 'uint256[]' },
|
|
7863
|
+
{ internalType: 'bytes32[][]', name: 'proofs', type: 'bytes32[][]' },
|
|
7864
|
+
],
|
|
7865
|
+
name: 'claim',
|
|
7866
|
+
outputs: [{ internalType: 'uint256[]', name: 'amountOuts', type: 'uint256[]' }],
|
|
7867
|
+
stateMutability: 'nonpayable',
|
|
7868
|
+
type: 'function',
|
|
7869
|
+
},
|
|
7870
|
+
{
|
|
7871
|
+
inputs: [
|
|
7872
|
+
{ internalType: 'address', name: 'receiver', type: 'address' },
|
|
7873
|
+
{ internalType: 'address[]', name: 'tokens', type: 'address[]' },
|
|
7874
|
+
],
|
|
7875
|
+
name: 'claimVerified',
|
|
7876
|
+
outputs: [{ internalType: 'uint256[]', name: 'amountOuts', type: 'uint256[]' }],
|
|
7877
|
+
stateMutability: 'nonpayable',
|
|
7878
|
+
type: 'function',
|
|
7879
|
+
},
|
|
7880
|
+
{
|
|
7881
|
+
inputs: [
|
|
7882
|
+
{ internalType: 'address', name: 'token', type: 'address' },
|
|
7883
|
+
{ internalType: 'address', name: 'user', type: 'address' },
|
|
7884
|
+
],
|
|
7885
|
+
name: 'claimed',
|
|
7886
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
7887
|
+
stateMutability: 'view',
|
|
7888
|
+
type: 'function',
|
|
7889
|
+
},
|
|
7890
|
+
{
|
|
7891
|
+
inputs: [],
|
|
7892
|
+
name: 'merkleRoot',
|
|
7893
|
+
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
|
|
7894
|
+
stateMutability: 'view',
|
|
7895
|
+
type: 'function',
|
|
7896
|
+
},
|
|
7897
|
+
{
|
|
7898
|
+
inputs: [{ internalType: 'bytes32', name: 'newMerkleRoot', type: 'bytes32' }],
|
|
7899
|
+
name: 'setMerkleRoot',
|
|
7900
|
+
outputs: [],
|
|
7901
|
+
stateMutability: 'nonpayable',
|
|
7902
|
+
type: 'function',
|
|
7903
|
+
},
|
|
7904
|
+
{
|
|
7905
|
+
inputs: [
|
|
7906
|
+
{ internalType: 'address', name: 'token', type: 'address' },
|
|
7907
|
+
{ internalType: 'address', name: 'user', type: 'address' },
|
|
7908
|
+
],
|
|
7909
|
+
name: 'verified',
|
|
7910
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
7911
|
+
stateMutability: 'view',
|
|
7912
|
+
type: 'function',
|
|
7913
|
+
},
|
|
7914
|
+
{
|
|
7915
|
+
inputs: [
|
|
7916
|
+
{ internalType: 'address', name: 'user', type: 'address' },
|
|
7917
|
+
{ internalType: 'address[]', name: 'tokens', type: 'address[]' },
|
|
7918
|
+
{ internalType: 'uint256[]', name: 'totalAccrueds', type: 'uint256[]' },
|
|
7919
|
+
{ internalType: 'bytes32[][]', name: 'proofs', type: 'bytes32[][]' },
|
|
7920
|
+
],
|
|
7921
|
+
name: 'verify',
|
|
7922
|
+
outputs: [{ internalType: 'uint256[]', name: 'amountClaimable', type: 'uint256[]' }],
|
|
7923
|
+
stateMutability: 'nonpayable',
|
|
7924
|
+
type: 'function',
|
|
7925
|
+
},
|
|
7926
|
+
];
|
|
7927
|
+
exports.arbitrageExecutorAbi = [
|
|
7928
|
+
{
|
|
7929
|
+
inputs: [
|
|
7930
|
+
{ internalType: 'address', name: 'permissionController_', type: 'address' },
|
|
7931
|
+
{ internalType: 'address', name: 'router_', type: 'address' },
|
|
7932
|
+
{ internalType: 'address', name: 'marketHub_', type: 'address' },
|
|
7933
|
+
{ internalType: 'uint16', name: 'nTicksToTryAtOnce_', type: 'uint16' },
|
|
7934
|
+
],
|
|
7935
|
+
stateMutability: 'nonpayable',
|
|
7936
|
+
type: 'constructor',
|
|
7937
|
+
},
|
|
7938
|
+
{ inputs: [{ internalType: 'address', name: 'target', type: 'address' }], name: 'AddressEmptyCode', type: 'error' },
|
|
7939
|
+
{
|
|
7940
|
+
inputs: [{ internalType: 'address', name: 'implementation', type: 'address' }],
|
|
7941
|
+
name: 'ERC1967InvalidImplementation',
|
|
7942
|
+
type: 'error',
|
|
7943
|
+
},
|
|
7944
|
+
{ inputs: [], name: 'ERC1967NonPayable', type: 'error' },
|
|
7945
|
+
{ inputs: [], name: 'FailedCall', type: 'error' },
|
|
7946
|
+
{ inputs: [], name: 'InsufficientProfit', type: 'error' },
|
|
7947
|
+
{ inputs: [], name: 'InvalidInitialization', type: 'error' },
|
|
7948
|
+
{ inputs: [], name: 'MarketMatured', type: 'error' },
|
|
7949
|
+
{ inputs: [], name: 'NotInitializing', type: 'error' },
|
|
7950
|
+
{ inputs: [], name: 'ProfitMismatch', type: 'error' },
|
|
7951
|
+
{
|
|
7952
|
+
inputs: [{ internalType: 'address', name: 'token', type: 'address' }],
|
|
7953
|
+
name: 'SafeERC20FailedOperation',
|
|
7954
|
+
type: 'error',
|
|
7955
|
+
},
|
|
7956
|
+
{ inputs: [], name: 'UUPSUnauthorizedCallContext', type: 'error' },
|
|
7957
|
+
{
|
|
7958
|
+
inputs: [{ internalType: 'bytes32', name: 'slot', type: 'bytes32' }],
|
|
7959
|
+
name: 'UUPSUnsupportedProxiableUUID',
|
|
7960
|
+
type: 'error',
|
|
7961
|
+
},
|
|
7962
|
+
{ inputs: [], name: 'Unauthorized', type: 'error' },
|
|
7963
|
+
{
|
|
7964
|
+
anonymous: false,
|
|
7965
|
+
inputs: [{ indexed: false, internalType: 'uint64', name: 'version', type: 'uint64' }],
|
|
7966
|
+
name: 'Initialized',
|
|
7967
|
+
type: 'event',
|
|
7968
|
+
},
|
|
7969
|
+
{
|
|
7970
|
+
anonymous: false,
|
|
7971
|
+
inputs: [{ indexed: true, internalType: 'address', name: 'implementation', type: 'address' }],
|
|
7972
|
+
name: 'Upgraded',
|
|
7973
|
+
type: 'event',
|
|
7974
|
+
},
|
|
7975
|
+
{
|
|
7976
|
+
inputs: [],
|
|
7977
|
+
name: 'UPGRADE_INTERFACE_VERSION',
|
|
7978
|
+
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
7979
|
+
stateMutability: 'view',
|
|
7980
|
+
type: 'function',
|
|
7981
|
+
},
|
|
7982
|
+
{
|
|
7983
|
+
inputs: [
|
|
7984
|
+
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
7985
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
7986
|
+
],
|
|
7987
|
+
name: 'deposit',
|
|
7988
|
+
outputs: [],
|
|
7989
|
+
stateMutability: 'nonpayable',
|
|
7990
|
+
type: 'function',
|
|
7991
|
+
},
|
|
7992
|
+
{
|
|
7993
|
+
inputs: [
|
|
7994
|
+
{
|
|
7995
|
+
components: [
|
|
7996
|
+
{ internalType: 'enum Side', name: 'bookSide', type: 'uint8' },
|
|
7997
|
+
{ internalType: 'AMMId', name: 'ammId', type: 'uint24' },
|
|
7998
|
+
{ internalType: 'int256', name: 'minProfit', type: 'int256' },
|
|
7999
|
+
{ internalType: 'bool', name: 'maximizeProfit', type: 'bool' },
|
|
8000
|
+
],
|
|
8001
|
+
internalType: 'struct ArbitrageExecutor.ArbitrageParams',
|
|
8002
|
+
name: 'params',
|
|
8003
|
+
type: 'tuple',
|
|
8004
|
+
},
|
|
8005
|
+
],
|
|
8006
|
+
name: 'executeArbitrage',
|
|
8007
|
+
outputs: [
|
|
8008
|
+
{ internalType: 'uint256', name: 'arbSize', type: 'uint256' },
|
|
8009
|
+
{ internalType: 'int256', name: 'profit', type: 'int256' },
|
|
8010
|
+
],
|
|
8011
|
+
stateMutability: 'nonpayable',
|
|
8012
|
+
type: 'function',
|
|
8013
|
+
},
|
|
8014
|
+
{ inputs: [], name: 'initialize', outputs: [], stateMutability: 'nonpayable', type: 'function' },
|
|
8015
|
+
{
|
|
8016
|
+
inputs: [],
|
|
8017
|
+
name: 'marketHub',
|
|
8018
|
+
outputs: [{ internalType: 'contract IMarketHub', name: '', type: 'address' }],
|
|
8019
|
+
stateMutability: 'view',
|
|
8020
|
+
type: 'function',
|
|
8021
|
+
},
|
|
8022
|
+
{
|
|
8023
|
+
inputs: [],
|
|
8024
|
+
name: 'nTicksToTryAtOnce',
|
|
8025
|
+
outputs: [{ internalType: 'uint16', name: '', type: 'uint16' }],
|
|
8026
|
+
stateMutability: 'view',
|
|
8027
|
+
type: 'function',
|
|
8028
|
+
},
|
|
8029
|
+
{
|
|
8030
|
+
inputs: [
|
|
8031
|
+
{ internalType: 'bool', name: 'cross', type: 'bool' },
|
|
8032
|
+
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
8033
|
+
],
|
|
8034
|
+
name: 'payMarketEntranceFee',
|
|
8035
|
+
outputs: [],
|
|
8036
|
+
stateMutability: 'nonpayable',
|
|
8037
|
+
type: 'function',
|
|
8038
|
+
},
|
|
8039
|
+
{
|
|
8040
|
+
inputs: [],
|
|
8041
|
+
name: 'proxiableUUID',
|
|
8042
|
+
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
|
|
8043
|
+
stateMutability: 'view',
|
|
8044
|
+
type: 'function',
|
|
8045
|
+
},
|
|
8046
|
+
{
|
|
8047
|
+
inputs: [
|
|
8048
|
+
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
8049
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
8050
|
+
],
|
|
8051
|
+
name: 'requestWithdrawal',
|
|
8052
|
+
outputs: [],
|
|
8053
|
+
stateMutability: 'nonpayable',
|
|
8054
|
+
type: 'function',
|
|
8055
|
+
},
|
|
8056
|
+
{
|
|
8057
|
+
inputs: [],
|
|
8058
|
+
name: 'router',
|
|
8059
|
+
outputs: [{ internalType: 'contract IRouter', name: '', type: 'address' }],
|
|
8060
|
+
stateMutability: 'view',
|
|
8061
|
+
type: 'function',
|
|
8062
|
+
},
|
|
8063
|
+
{
|
|
8064
|
+
inputs: [
|
|
8065
|
+
{ internalType: 'address', name: 'newImplementation', type: 'address' },
|
|
8066
|
+
{ internalType: 'bytes', name: 'data', type: 'bytes' },
|
|
8067
|
+
],
|
|
8068
|
+
name: 'upgradeToAndCall',
|
|
8069
|
+
outputs: [],
|
|
8070
|
+
stateMutability: 'payable',
|
|
8071
|
+
type: 'function',
|
|
8072
|
+
},
|
|
8073
|
+
{
|
|
8074
|
+
inputs: [
|
|
8075
|
+
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
8076
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
8077
|
+
{ internalType: 'address', name: 'receiver', type: 'address' },
|
|
8078
|
+
],
|
|
8079
|
+
name: 'withdraw',
|
|
8080
|
+
outputs: [],
|
|
8081
|
+
stateMutability: 'nonpayable',
|
|
8082
|
+
type: 'function',
|
|
8083
|
+
},
|
|
8084
|
+
];
|
|
7774
8085
|
//# sourceMappingURL=viemAbis.js.map
|