@dodoex/dodo-contract-request 1.2.0 → 1.3.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/.cache/contract-info/UniswapV2Pair.json +1 -0
- package/CHANGELOG.md +14 -0
- package/contract-config/sepolia.json +2 -2
- package/dist/index.js +1 -1
- package/dist/types/contract/BuyoutModel.d.ts +19 -19
- package/dist/types/contract/CP.d.ts +53 -47
- package/dist/types/contract/CloneFactory.d.ts +1 -1
- package/dist/types/contract/CrowdPoolingFactory.d.ts +42 -39
- package/dist/types/contract/CustomERC20.d.ts +27 -27
- package/dist/types/contract/CustomMintableERC20.d.ts +31 -31
- package/dist/types/contract/D3Proxy.d.ts +26 -26
- package/dist/types/contract/D3Vault.d.ts +144 -105
- package/dist/types/contract/DODOApprove.d.ts +15 -15
- package/dist/types/contract/DODOApproveProxy.d.ts +17 -17
- package/dist/types/contract/DODOCalleeHelper.d.ts +12 -12
- package/dist/types/contract/DODOCirculationHelper.d.ts +12 -12
- package/dist/types/contract/DODOCpProxy.d.ts +13 -13
- package/dist/types/contract/DODOCpProxyWithoutGlobalQuota.d.ts +12 -12
- package/dist/types/contract/DODODppProxy.d.ts +17 -17
- package/dist/types/contract/DODODspProxy.d.ts +27 -27
- package/dist/types/contract/DODODspProxyWithoutGSP.d.ts +17 -17
- package/dist/types/contract/DODOIncentive.d.ts +29 -23
- package/dist/types/contract/DODOMineV2Factory.d.ts +18 -18
- package/dist/types/contract/DODOMineV3Proxy.d.ts +19 -19
- package/dist/types/contract/DODOMineV3ProxyWithoutPlatform.d.ts +18 -18
- package/dist/types/contract/DODOMineV3Registry.d.ts +13 -13
- package/dist/types/contract/DODONFT.d.ts +30 -30
- package/dist/types/contract/DODONFT1155.d.ts +23 -23
- package/dist/types/contract/DODONFTApprove.d.ts +22 -22
- package/dist/types/contract/DODONFTPoolProxy.d.ts +41 -41
- package/dist/types/contract/DODONFTProxy.d.ts +28 -28
- package/dist/types/contract/DODONFTRegistry.d.ts +17 -14
- package/dist/types/contract/DODONFTRouteHelper.d.ts +2 -2
- package/dist/types/contract/DODOSellHelper.d.ts +2 -2
- package/dist/types/contract/DODOStarterProxy.d.ts +6 -6
- package/dist/types/contract/DODOV1.d.ts +100 -97
- package/dist/types/contract/DODOV1Adapter.d.ts +3 -3
- package/dist/types/contract/DODOV1PmmHelper.d.ts +1 -1
- package/dist/types/contract/DODOV1Proxy.d.ts +14 -14
- package/dist/types/contract/DODOV2Proxy02.d.ts +93 -93
- package/dist/types/contract/DODOV2RouteHelper.d.ts +4 -4
- package/dist/types/contract/DPPAdvanced.d.ts +82 -50
- package/dist/types/contract/DPPAdvancedAdmin.d.ts +25 -25
- package/dist/types/contract/DPPFactory.d.ts +33 -30
- package/dist/types/contract/DSP.d.ts +93 -61
- package/dist/types/contract/DSPFactory.d.ts +24 -21
- package/dist/types/contract/DVM.d.ts +86 -58
- package/dist/types/contract/DVMFactory.d.ts +24 -21
- package/dist/types/contract/ERC20.d.ts +15 -15
- package/dist/types/contract/ERC20Helper.d.ts +23 -4
- package/dist/types/contract/ERC20MineV3.d.ts +48 -38
- package/dist/types/contract/ERC20V3Factory.d.ts +37 -33
- package/dist/types/contract/FeeRateDIP3Impl.d.ts +34 -25
- package/dist/types/contract/FeeRateModel.d.ts +8 -8
- package/dist/types/contract/GSP.d.ts +117 -82
- package/dist/types/contract/GSPFactory.d.ts +26 -23
- package/dist/types/contract/InitializableERC20.d.ts +16 -16
- package/dist/types/contract/LimitOrder.d.ts +38 -38
- package/dist/types/contract/LimitOrderBot.d.ts +18 -18
- package/dist/types/contract/MulticallWithValid.d.ts +8 -8
- package/dist/types/contract/PermissionManager.d.ts +13 -13
- package/dist/types/contract/UniswapV2Factory.d.ts +11 -11
- package/dist/types/contract/UniswapV2Pair.d.ts +229 -0
- package/dist/types/contract/UniswapV2Router02.d.ts +103 -103
- package/dist/types/contract/dodoTeam.d.ts +49 -46
- package/dist/types/contract/vDODOToken.d.ts +67 -55
- package/dist/types/contractRequests.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/contract/BuyoutModel.ts +16 -16
- package/src/contract/CP.ts +39 -39
- package/src/contract/CrowdPoolingFactory.ts +34 -34
- package/src/contract/CustomERC20.ts +22 -22
- package/src/contract/CustomMintableERC20.ts +26 -26
- package/src/contract/D3Proxy.ts +24 -24
- package/src/contract/D3Vault.ts +79 -79
- package/src/contract/DODOApprove.ts +8 -8
- package/src/contract/DODOApproveProxy.ts +9 -9
- package/src/contract/DODOCalleeHelper.ts +12 -12
- package/src/contract/DODOCirculationHelper.ts +7 -7
- package/src/contract/DODOCpProxy.ts +13 -13
- package/src/contract/DODOCpProxyWithoutGlobalQuota.ts +12 -12
- package/src/contract/DODODppProxy.ts +17 -17
- package/src/contract/DODODspProxy.ts +27 -27
- package/src/contract/DODODspProxyWithoutGSP.ts +17 -17
- package/src/contract/DODOIncentive.ts +17 -17
- package/src/contract/DODOMineV2Factory.ts +11 -11
- package/src/contract/DODOMineV3Proxy.ts +15 -15
- package/src/contract/DODOMineV3ProxyWithoutPlatform.ts +14 -14
- package/src/contract/DODOMineV3Registry.ts +6 -6
- package/src/contract/DODONFT.ts +24 -24
- package/src/contract/DODONFT1155.ts +19 -19
- package/src/contract/DODONFTApprove.ts +14 -14
- package/src/contract/DODONFTPoolProxy.ts +34 -34
- package/src/contract/DODONFTProxy.ts +18 -18
- package/src/contract/DODONFTRegistry.ts +7 -7
- package/src/contract/DODONFTRouteHelper.ts +2 -2
- package/src/contract/DODOSellHelper.ts +2 -2
- package/src/contract/DODOStarterProxy.ts +6 -6
- package/src/contract/DODOV1.ts +80 -80
- package/src/contract/DODOV1Adapter.ts +1 -1
- package/src/contract/DODOV1PmmHelper.ts +1 -1
- package/src/contract/DODOV1Proxy.ts +11 -11
- package/src/contract/DODOV2Proxy02.ts +88 -88
- package/src/contract/DODOV2RouteHelper.ts +4 -4
- package/src/contract/DPPAdvanced.ts +44 -44
- package/src/contract/DPPAdvancedAdmin.ts +19 -19
- package/src/contract/DPPFactory.ts +18 -18
- package/src/contract/DSP.ts +57 -57
- package/src/contract/DSPFactory.ts +15 -15
- package/src/contract/DVM.ts +54 -54
- package/src/contract/DVMFactory.ts +15 -15
- package/src/contract/ERC20.ts +14 -14
- package/src/contract/ERC20Helper.ts +4 -4
- package/src/contract/ERC20MineV3.ts +32 -32
- package/src/contract/ERC20V3Factory.ts +26 -26
- package/src/contract/FeeRateDIP3Impl.ts +18 -18
- package/src/contract/FeeRateModel.ts +4 -4
- package/src/contract/GSP.ts +75 -75
- package/src/contract/GSPFactory.ts +16 -16
- package/src/contract/InitializableERC20.ts +16 -16
- package/src/contract/LimitOrder.ts +19 -19
- package/src/contract/LimitOrderBot.ts +11 -11
- package/src/contract/MulticallWithValid.ts +7 -7
- package/src/contract/PermissionManager.ts +4 -4
- package/src/contract/UniswapV2Factory.ts +9 -9
- package/src/contract/UniswapV2Pair.ts +377 -0
- package/src/contract/UniswapV2Router02.ts +91 -91
- package/src/contract/dodoTeam.ts +38 -38
- package/src/contract/vDODOToken.ts +48 -48
- package/src/index.ts +1 -0
|
@@ -4,21 +4,21 @@
|
|
|
4
4
|
* @param {string} __to - string
|
|
5
5
|
* @returns {string} __output0 - address
|
|
6
6
|
*/
|
|
7
|
-
export declare function fetchPermissionManager_NEW_OWNER_(chainId: number, __to: string):
|
|
7
|
+
export declare function fetchPermissionManager_NEW_OWNER_(chainId: number, __to: string): Promise<string>;
|
|
8
8
|
/**
|
|
9
9
|
* fetch _OWNER_
|
|
10
10
|
* @param {number} chainId - number
|
|
11
11
|
* @param {string} __to - string
|
|
12
12
|
* @returns {string} __output0 - address
|
|
13
13
|
*/
|
|
14
|
-
export declare function fetchPermissionManager_OWNER_(chainId: number, __to: string):
|
|
14
|
+
export declare function fetchPermissionManager_OWNER_(chainId: number, __to: string): Promise<string>;
|
|
15
15
|
/**
|
|
16
16
|
* fetch _WHITELIST_MODE_ON_
|
|
17
17
|
* @param {number} chainId - number
|
|
18
18
|
* @param {string} __to - string
|
|
19
19
|
* @returns {boolean} __output0 - bool
|
|
20
20
|
*/
|
|
21
|
-
export declare function fetchPermissionManager_WHITELIST_MODE_ON_(chainId: number, __to: string):
|
|
21
|
+
export declare function fetchPermissionManager_WHITELIST_MODE_ON_(chainId: number, __to: string): Promise<boolean>;
|
|
22
22
|
/**
|
|
23
23
|
* fetch isAllowed
|
|
24
24
|
* @param {number} chainId - number
|
|
@@ -26,58 +26,58 @@ export declare function fetchPermissionManager_WHITELIST_MODE_ON_(chainId: numbe
|
|
|
26
26
|
* @param {string} account - address
|
|
27
27
|
* @returns {boolean} __output0 - bool
|
|
28
28
|
*/
|
|
29
|
-
export declare function fetchPermissionManagerIsAllowed(chainId: number, __to: string, account: string):
|
|
29
|
+
export declare function fetchPermissionManagerIsAllowed(chainId: number, __to: string, account: string): Promise<boolean>;
|
|
30
30
|
/**
|
|
31
31
|
* encode addToBlacklist
|
|
32
32
|
* @param {string} account - address
|
|
33
33
|
* @returns {string} encode data
|
|
34
34
|
*/
|
|
35
|
-
export declare function encodePermissionManagerAddToBlacklist(account: string):
|
|
35
|
+
export declare function encodePermissionManagerAddToBlacklist(account: string): string;
|
|
36
36
|
/**
|
|
37
37
|
* encode addToWhitelist
|
|
38
38
|
* @param {string} account - address
|
|
39
39
|
* @returns {string} encode data
|
|
40
40
|
*/
|
|
41
|
-
export declare function encodePermissionManagerAddToWhitelist(account: string):
|
|
41
|
+
export declare function encodePermissionManagerAddToWhitelist(account: string): string;
|
|
42
42
|
/**
|
|
43
43
|
* encode claimOwnership
|
|
44
44
|
|
|
45
45
|
* @returns {string} encode data
|
|
46
46
|
*/
|
|
47
|
-
export declare function encodePermissionManagerClaimOwnership():
|
|
47
|
+
export declare function encodePermissionManagerClaimOwnership(): string;
|
|
48
48
|
/**
|
|
49
49
|
* encode initOwner
|
|
50
50
|
* @param {string} newOwner - address
|
|
51
51
|
* @returns {string} encode data
|
|
52
52
|
*/
|
|
53
|
-
export declare function encodePermissionManagerInitOwner(newOwner: string):
|
|
53
|
+
export declare function encodePermissionManagerInitOwner(newOwner: string): string;
|
|
54
54
|
/**
|
|
55
55
|
* encode openBlacklistMode
|
|
56
56
|
|
|
57
57
|
* @returns {string} encode data
|
|
58
58
|
*/
|
|
59
|
-
export declare function encodePermissionManagerOpenBlacklistMode():
|
|
59
|
+
export declare function encodePermissionManagerOpenBlacklistMode(): string;
|
|
60
60
|
/**
|
|
61
61
|
* encode openWhitelistMode
|
|
62
62
|
|
|
63
63
|
* @returns {string} encode data
|
|
64
64
|
*/
|
|
65
|
-
export declare function encodePermissionManagerOpenWhitelistMode():
|
|
65
|
+
export declare function encodePermissionManagerOpenWhitelistMode(): string;
|
|
66
66
|
/**
|
|
67
67
|
* encode removeFromBlacklist
|
|
68
68
|
* @param {string} account - address
|
|
69
69
|
* @returns {string} encode data
|
|
70
70
|
*/
|
|
71
|
-
export declare function encodePermissionManagerRemoveFromBlacklist(account: string):
|
|
71
|
+
export declare function encodePermissionManagerRemoveFromBlacklist(account: string): string;
|
|
72
72
|
/**
|
|
73
73
|
* encode removeFromWhitelist
|
|
74
74
|
* @param {string} account - address
|
|
75
75
|
* @returns {string} encode data
|
|
76
76
|
*/
|
|
77
|
-
export declare function encodePermissionManagerRemoveFromWhitelist(account: string):
|
|
77
|
+
export declare function encodePermissionManagerRemoveFromWhitelist(account: string): string;
|
|
78
78
|
/**
|
|
79
79
|
* encode transferOwnership
|
|
80
80
|
* @param {string} newOwner - address
|
|
81
81
|
* @returns {string} encode data
|
|
82
82
|
*/
|
|
83
|
-
export declare function encodePermissionManagerTransferOwnership(newOwner: string):
|
|
83
|
+
export declare function encodePermissionManagerTransferOwnership(newOwner: string): string;
|
|
@@ -5,25 +5,25 @@ export declare function getUniswapV2FactoryContractAddressByChainId(chainId: num
|
|
|
5
5
|
* @param {number} __input1 - uint256
|
|
6
6
|
* @returns {string} __output0 - address
|
|
7
7
|
*/
|
|
8
|
-
export declare function fetchUniswapV2FactoryAllPairs(chainId: number, __input1: number):
|
|
8
|
+
export declare function fetchUniswapV2FactoryAllPairs(chainId: number, __input1: number): Promise<string>;
|
|
9
9
|
/**
|
|
10
10
|
* fetch allPairsLength
|
|
11
11
|
* @param {number} chainId - number
|
|
12
12
|
* @returns {bigint} __output0 - uint256
|
|
13
13
|
*/
|
|
14
|
-
export declare function fetchUniswapV2FactoryAllPairsLength(chainId: number):
|
|
14
|
+
export declare function fetchUniswapV2FactoryAllPairsLength(chainId: number): Promise<bigint>;
|
|
15
15
|
/**
|
|
16
16
|
* fetch feeTo
|
|
17
17
|
* @param {number} chainId - number
|
|
18
18
|
* @returns {string} __output0 - address
|
|
19
19
|
*/
|
|
20
|
-
export declare function fetchUniswapV2FactoryFeeTo(chainId: number):
|
|
20
|
+
export declare function fetchUniswapV2FactoryFeeTo(chainId: number): Promise<string>;
|
|
21
21
|
/**
|
|
22
22
|
* fetch feeToSetter
|
|
23
23
|
* @param {number} chainId - number
|
|
24
24
|
* @returns {string} __output0 - address
|
|
25
25
|
*/
|
|
26
|
-
export declare function fetchUniswapV2FactoryFeeToSetter(chainId: number):
|
|
26
|
+
export declare function fetchUniswapV2FactoryFeeToSetter(chainId: number): Promise<string>;
|
|
27
27
|
/**
|
|
28
28
|
* fetch getPair
|
|
29
29
|
* @param {number} chainId - number
|
|
@@ -32,31 +32,31 @@ export declare function fetchUniswapV2FactoryFeeToSetter(chainId: number): any;
|
|
|
32
32
|
* @param {number} __input3 - uint256
|
|
33
33
|
* @returns {string} __output0 - address
|
|
34
34
|
*/
|
|
35
|
-
export declare function fetchUniswapV2FactoryGetPair(chainId: number, __input1: string, __input2: string, __input3: number):
|
|
35
|
+
export declare function fetchUniswapV2FactoryGetPair(chainId: number, __input1: string, __input2: string, __input3: number): Promise<string>;
|
|
36
36
|
/**
|
|
37
37
|
* encode createPair
|
|
38
38
|
* @param {string} tokenA - address
|
|
39
39
|
* @param {string} tokenB - address
|
|
40
|
-
* @param {string} feeRate - uint256
|
|
40
|
+
* @param {string | number} feeRate - uint256
|
|
41
41
|
* @returns {string} encode data
|
|
42
42
|
*/
|
|
43
|
-
export declare function encodeUniswapV2FactoryCreatePair(tokenA: string, tokenB: string, feeRate: string):
|
|
43
|
+
export declare function encodeUniswapV2FactoryCreatePair(tokenA: string, tokenB: string, feeRate: string | number): string;
|
|
44
44
|
/**
|
|
45
45
|
* encode setFeeTo
|
|
46
46
|
* @param {string} _feeTo - address
|
|
47
47
|
* @returns {string} encode data
|
|
48
48
|
*/
|
|
49
|
-
export declare function encodeUniswapV2FactorySetFeeTo(_feeTo: string):
|
|
49
|
+
export declare function encodeUniswapV2FactorySetFeeTo(_feeTo: string): string;
|
|
50
50
|
/**
|
|
51
51
|
* encode setFeeToSetter
|
|
52
52
|
* @param {string} _feeToSetter - address
|
|
53
53
|
* @returns {string} encode data
|
|
54
54
|
*/
|
|
55
|
-
export declare function encodeUniswapV2FactorySetFeeToSetter(_feeToSetter: string):
|
|
55
|
+
export declare function encodeUniswapV2FactorySetFeeToSetter(_feeToSetter: string): string;
|
|
56
56
|
/**
|
|
57
57
|
* encode setLpMtRatio
|
|
58
58
|
* @param {string} pool - address
|
|
59
|
-
* @param {string} ratio - uint256
|
|
59
|
+
* @param {string | number} ratio - uint256
|
|
60
60
|
* @returns {string} encode data
|
|
61
61
|
*/
|
|
62
|
-
export declare function encodeUniswapV2FactorySetLpMtRatio(pool: string, ratio: string):
|
|
62
|
+
export declare function encodeUniswapV2FactorySetLpMtRatio(pool: string, ratio: string | number): string;
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* fetch DOMAIN_SEPARATOR
|
|
3
|
+
* @param {number} chainId - number
|
|
4
|
+
* @param {string} __to - string
|
|
5
|
+
* @returns {string} __output0 - bytes32
|
|
6
|
+
*/
|
|
7
|
+
export declare function fetchUniswapV2PairDOMAIN_SEPARATOR(chainId: number, __to: string): Promise<string>;
|
|
8
|
+
/**
|
|
9
|
+
* fetch MINIMUM_LIQUIDITY
|
|
10
|
+
* @param {number} chainId - number
|
|
11
|
+
* @param {string} __to - string
|
|
12
|
+
* @returns {bigint} __output0 - uint256
|
|
13
|
+
*/
|
|
14
|
+
export declare function fetchUniswapV2PairMINIMUM_LIQUIDITY(chainId: number, __to: string): Promise<bigint>;
|
|
15
|
+
/**
|
|
16
|
+
* fetch PERMIT_TYPEHASH
|
|
17
|
+
* @param {number} chainId - number
|
|
18
|
+
* @param {string} __to - string
|
|
19
|
+
* @returns {string} __output0 - bytes32
|
|
20
|
+
*/
|
|
21
|
+
export declare function fetchUniswapV2PairPERMIT_TYPEHASH(chainId: number, __to: string): Promise<string>;
|
|
22
|
+
/**
|
|
23
|
+
* fetch allowance
|
|
24
|
+
* @param {number} chainId - number
|
|
25
|
+
* @param {string} __to - string
|
|
26
|
+
* @param {string} __input1 - address
|
|
27
|
+
* @param {string} __input2 - address
|
|
28
|
+
* @returns {bigint} __output0 - uint256
|
|
29
|
+
*/
|
|
30
|
+
export declare function fetchUniswapV2PairAllowance(chainId: number, __to: string, __input1: string, __input2: string): Promise<bigint>;
|
|
31
|
+
/**
|
|
32
|
+
* fetch balanceOf
|
|
33
|
+
* @param {number} chainId - number
|
|
34
|
+
* @param {string} __to - string
|
|
35
|
+
* @param {string} __input1 - address
|
|
36
|
+
* @returns {bigint} __output0 - uint256
|
|
37
|
+
*/
|
|
38
|
+
export declare function fetchUniswapV2PairBalanceOf(chainId: number, __to: string, __input1: string): Promise<bigint>;
|
|
39
|
+
/**
|
|
40
|
+
* fetch decimals
|
|
41
|
+
* @param {number} chainId - number
|
|
42
|
+
* @param {string} __to - string
|
|
43
|
+
* @returns {bigint} __output0 - uint8
|
|
44
|
+
*/
|
|
45
|
+
export declare function fetchUniswapV2PairDecimals(chainId: number, __to: string): Promise<bigint>;
|
|
46
|
+
/**
|
|
47
|
+
* fetch factory
|
|
48
|
+
* @param {number} chainId - number
|
|
49
|
+
* @param {string} __to - string
|
|
50
|
+
* @returns {string} __output0 - address
|
|
51
|
+
*/
|
|
52
|
+
export declare function fetchUniswapV2PairFactory(chainId: number, __to: string): Promise<string>;
|
|
53
|
+
/**
|
|
54
|
+
* fetch feeRate
|
|
55
|
+
* @param {number} chainId - number
|
|
56
|
+
* @param {string} __to - string
|
|
57
|
+
* @returns {bigint} __output0 - uint256
|
|
58
|
+
*/
|
|
59
|
+
export declare function fetchUniswapV2PairFeeRate(chainId: number, __to: string): Promise<bigint>;
|
|
60
|
+
/**
|
|
61
|
+
* fetch getReserves
|
|
62
|
+
* @param {number} chainId - number
|
|
63
|
+
* @param {string} __to - string
|
|
64
|
+
* @returns {bigint} _reserve0 - uint112
|
|
65
|
+
* @returns {bigint} _reserve1 - uint112
|
|
66
|
+
* @returns {bigint} _blockTimestampLast - uint32
|
|
67
|
+
*/
|
|
68
|
+
export declare function fetchUniswapV2PairGetReserves(chainId: number, __to: string): Promise<{
|
|
69
|
+
_reserve0: bigint;
|
|
70
|
+
_reserve1: bigint;
|
|
71
|
+
_blockTimestampLast: bigint;
|
|
72
|
+
}>;
|
|
73
|
+
/**
|
|
74
|
+
* fetch kLast
|
|
75
|
+
* @param {number} chainId - number
|
|
76
|
+
* @param {string} __to - string
|
|
77
|
+
* @returns {bigint} __output0 - uint256
|
|
78
|
+
*/
|
|
79
|
+
export declare function fetchUniswapV2PairKLast(chainId: number, __to: string): Promise<bigint>;
|
|
80
|
+
/**
|
|
81
|
+
* fetch lpMtRatio
|
|
82
|
+
* @param {number} chainId - number
|
|
83
|
+
* @param {string} __to - string
|
|
84
|
+
* @returns {bigint} __output0 - uint256
|
|
85
|
+
*/
|
|
86
|
+
export declare function fetchUniswapV2PairLpMtRatio(chainId: number, __to: string): Promise<bigint>;
|
|
87
|
+
/**
|
|
88
|
+
* fetch name
|
|
89
|
+
* @param {number} chainId - number
|
|
90
|
+
* @param {string} __to - string
|
|
91
|
+
* @returns {string} __output0 - string
|
|
92
|
+
*/
|
|
93
|
+
export declare function fetchUniswapV2PairName(chainId: number, __to: string): Promise<string>;
|
|
94
|
+
/**
|
|
95
|
+
* fetch nonces
|
|
96
|
+
* @param {number} chainId - number
|
|
97
|
+
* @param {string} __to - string
|
|
98
|
+
* @param {string} __input1 - address
|
|
99
|
+
* @returns {bigint} __output0 - uint256
|
|
100
|
+
*/
|
|
101
|
+
export declare function fetchUniswapV2PairNonces(chainId: number, __to: string, __input1: string): Promise<bigint>;
|
|
102
|
+
/**
|
|
103
|
+
* fetch price0CumulativeLast
|
|
104
|
+
* @param {number} chainId - number
|
|
105
|
+
* @param {string} __to - string
|
|
106
|
+
* @returns {bigint} __output0 - uint256
|
|
107
|
+
*/
|
|
108
|
+
export declare function fetchUniswapV2PairPrice0CumulativeLast(chainId: number, __to: string): Promise<bigint>;
|
|
109
|
+
/**
|
|
110
|
+
* fetch price1CumulativeLast
|
|
111
|
+
* @param {number} chainId - number
|
|
112
|
+
* @param {string} __to - string
|
|
113
|
+
* @returns {bigint} __output0 - uint256
|
|
114
|
+
*/
|
|
115
|
+
export declare function fetchUniswapV2PairPrice1CumulativeLast(chainId: number, __to: string): Promise<bigint>;
|
|
116
|
+
/**
|
|
117
|
+
* fetch symbol
|
|
118
|
+
* @param {number} chainId - number
|
|
119
|
+
* @param {string} __to - string
|
|
120
|
+
* @returns {string} __output0 - string
|
|
121
|
+
*/
|
|
122
|
+
export declare function fetchUniswapV2PairSymbol(chainId: number, __to: string): Promise<string>;
|
|
123
|
+
/**
|
|
124
|
+
* fetch token0
|
|
125
|
+
* @param {number} chainId - number
|
|
126
|
+
* @param {string} __to - string
|
|
127
|
+
* @returns {string} __output0 - address
|
|
128
|
+
*/
|
|
129
|
+
export declare function fetchUniswapV2PairToken0(chainId: number, __to: string): Promise<string>;
|
|
130
|
+
/**
|
|
131
|
+
* fetch token1
|
|
132
|
+
* @param {number} chainId - number
|
|
133
|
+
* @param {string} __to - string
|
|
134
|
+
* @returns {string} __output0 - address
|
|
135
|
+
*/
|
|
136
|
+
export declare function fetchUniswapV2PairToken1(chainId: number, __to: string): Promise<string>;
|
|
137
|
+
/**
|
|
138
|
+
* fetch totalSupply
|
|
139
|
+
* @param {number} chainId - number
|
|
140
|
+
* @param {string} __to - string
|
|
141
|
+
* @returns {bigint} __output0 - uint256
|
|
142
|
+
*/
|
|
143
|
+
export declare function fetchUniswapV2PairTotalSupply(chainId: number, __to: string): Promise<bigint>;
|
|
144
|
+
/**
|
|
145
|
+
* encode approve
|
|
146
|
+
* @param {string} spender - address
|
|
147
|
+
* @param {string | number} value - uint256
|
|
148
|
+
* @returns {string} encode data
|
|
149
|
+
*/
|
|
150
|
+
export declare function encodeUniswapV2PairApprove(spender: string, value: string | number): string;
|
|
151
|
+
/**
|
|
152
|
+
* encode burn
|
|
153
|
+
* @param {string} to - address
|
|
154
|
+
* @returns {string} encode data
|
|
155
|
+
*/
|
|
156
|
+
export declare function encodeUniswapV2PairBurn(to: string): string;
|
|
157
|
+
/**
|
|
158
|
+
* encode initialize
|
|
159
|
+
* @param {string} _token0 - address
|
|
160
|
+
* @param {string} _token1 - address
|
|
161
|
+
* @returns {string} encode data
|
|
162
|
+
*/
|
|
163
|
+
export declare function encodeUniswapV2PairInitialize(_token0: string, _token1: string): string;
|
|
164
|
+
/**
|
|
165
|
+
* encode mint
|
|
166
|
+
* @param {string} to - address
|
|
167
|
+
* @returns {string} encode data
|
|
168
|
+
*/
|
|
169
|
+
export declare function encodeUniswapV2PairMint(to: string): string;
|
|
170
|
+
/**
|
|
171
|
+
* encode permit
|
|
172
|
+
* @param {string} owner - address
|
|
173
|
+
* @param {string} spender - address
|
|
174
|
+
* @param {string | number} value - uint256
|
|
175
|
+
* @param {string | number} deadline - uint256
|
|
176
|
+
* @param {string | number} v - uint8
|
|
177
|
+
* @param {string} r - bytes32
|
|
178
|
+
* @param {string} s - bytes32
|
|
179
|
+
* @returns {string} encode data
|
|
180
|
+
*/
|
|
181
|
+
export declare function encodeUniswapV2PairPermit(owner: string, spender: string, value: string | number, deadline: string | number, v: string | number, r: string, s: string): string;
|
|
182
|
+
/**
|
|
183
|
+
* encode setFeeRate
|
|
184
|
+
* @param {string | number} totalFeeRate - uint256
|
|
185
|
+
* @returns {string} encode data
|
|
186
|
+
*/
|
|
187
|
+
export declare function encodeUniswapV2PairSetFeeRate(totalFeeRate: string | number): string;
|
|
188
|
+
/**
|
|
189
|
+
* encode setLpMtRatio
|
|
190
|
+
* @param {string | number} ratio - uint256
|
|
191
|
+
* @returns {string} encode data
|
|
192
|
+
*/
|
|
193
|
+
export declare function encodeUniswapV2PairSetLpMtRatio(ratio: string | number): string;
|
|
194
|
+
/**
|
|
195
|
+
* encode skim
|
|
196
|
+
* @param {string} to - address
|
|
197
|
+
* @returns {string} encode data
|
|
198
|
+
*/
|
|
199
|
+
export declare function encodeUniswapV2PairSkim(to: string): string;
|
|
200
|
+
/**
|
|
201
|
+
* encode swap
|
|
202
|
+
* @param {string | number} amount0Out - uint256
|
|
203
|
+
* @param {string | number} amount1Out - uint256
|
|
204
|
+
* @param {string} to - address
|
|
205
|
+
* @param {string} data - bytes
|
|
206
|
+
* @returns {string} encode data
|
|
207
|
+
*/
|
|
208
|
+
export declare function encodeUniswapV2PairSwap(amount0Out: string | number, amount1Out: string | number, to: string, data: string): string;
|
|
209
|
+
/**
|
|
210
|
+
* encode sync
|
|
211
|
+
|
|
212
|
+
* @returns {string} encode data
|
|
213
|
+
*/
|
|
214
|
+
export declare function encodeUniswapV2PairSync(): string;
|
|
215
|
+
/**
|
|
216
|
+
* encode transfer
|
|
217
|
+
* @param {string} to - address
|
|
218
|
+
* @param {string | number} value - uint256
|
|
219
|
+
* @returns {string} encode data
|
|
220
|
+
*/
|
|
221
|
+
export declare function encodeUniswapV2PairTransfer(to: string, value: string | number): string;
|
|
222
|
+
/**
|
|
223
|
+
* encode transferFrom
|
|
224
|
+
* @param {string} from - address
|
|
225
|
+
* @param {string} to - address
|
|
226
|
+
* @param {string | number} value - uint256
|
|
227
|
+
* @returns {string} encode data
|
|
228
|
+
*/
|
|
229
|
+
export declare function encodeUniswapV2PairTransferFrom(from: string, to: string, value: string | number): string;
|