@dodoex/dodo-contract-request 1.3.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/CHANGELOG.md +7 -0
- 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 +45 -41
- 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/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 +36 -36
- package/src/contract/UniswapV2Router02.ts +91 -91
- package/src/contract/dodoTeam.ts +38 -38
- package/src/contract/vDODOToken.ts +48 -48
|
@@ -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;
|
|
@@ -4,21 +4,21 @@
|
|
|
4
4
|
* @param {string} __to - string
|
|
5
5
|
* @returns {string} __output0 - bytes32
|
|
6
6
|
*/
|
|
7
|
-
export declare function fetchUniswapV2PairDOMAIN_SEPARATOR(chainId: number, __to: string):
|
|
7
|
+
export declare function fetchUniswapV2PairDOMAIN_SEPARATOR(chainId: number, __to: string): Promise<string>;
|
|
8
8
|
/**
|
|
9
9
|
* fetch MINIMUM_LIQUIDITY
|
|
10
10
|
* @param {number} chainId - number
|
|
11
11
|
* @param {string} __to - string
|
|
12
12
|
* @returns {bigint} __output0 - uint256
|
|
13
13
|
*/
|
|
14
|
-
export declare function fetchUniswapV2PairMINIMUM_LIQUIDITY(chainId: number, __to: string):
|
|
14
|
+
export declare function fetchUniswapV2PairMINIMUM_LIQUIDITY(chainId: number, __to: string): Promise<bigint>;
|
|
15
15
|
/**
|
|
16
16
|
* fetch PERMIT_TYPEHASH
|
|
17
17
|
* @param {number} chainId - number
|
|
18
18
|
* @param {string} __to - string
|
|
19
19
|
* @returns {string} __output0 - bytes32
|
|
20
20
|
*/
|
|
21
|
-
export declare function fetchUniswapV2PairPERMIT_TYPEHASH(chainId: number, __to: string):
|
|
21
|
+
export declare function fetchUniswapV2PairPERMIT_TYPEHASH(chainId: number, __to: string): Promise<string>;
|
|
22
22
|
/**
|
|
23
23
|
* fetch allowance
|
|
24
24
|
* @param {number} chainId - number
|
|
@@ -27,7 +27,7 @@ export declare function fetchUniswapV2PairPERMIT_TYPEHASH(chainId: number, __to:
|
|
|
27
27
|
* @param {string} __input2 - address
|
|
28
28
|
* @returns {bigint} __output0 - uint256
|
|
29
29
|
*/
|
|
30
|
-
export declare function fetchUniswapV2PairAllowance(chainId: number, __to: string, __input1: string, __input2: string):
|
|
30
|
+
export declare function fetchUniswapV2PairAllowance(chainId: number, __to: string, __input1: string, __input2: string): Promise<bigint>;
|
|
31
31
|
/**
|
|
32
32
|
* fetch balanceOf
|
|
33
33
|
* @param {number} chainId - number
|
|
@@ -35,28 +35,28 @@ export declare function fetchUniswapV2PairAllowance(chainId: number, __to: strin
|
|
|
35
35
|
* @param {string} __input1 - address
|
|
36
36
|
* @returns {bigint} __output0 - uint256
|
|
37
37
|
*/
|
|
38
|
-
export declare function fetchUniswapV2PairBalanceOf(chainId: number, __to: string, __input1: string):
|
|
38
|
+
export declare function fetchUniswapV2PairBalanceOf(chainId: number, __to: string, __input1: string): Promise<bigint>;
|
|
39
39
|
/**
|
|
40
40
|
* fetch decimals
|
|
41
41
|
* @param {number} chainId - number
|
|
42
42
|
* @param {string} __to - string
|
|
43
43
|
* @returns {bigint} __output0 - uint8
|
|
44
44
|
*/
|
|
45
|
-
export declare function fetchUniswapV2PairDecimals(chainId: number, __to: string):
|
|
45
|
+
export declare function fetchUniswapV2PairDecimals(chainId: number, __to: string): Promise<bigint>;
|
|
46
46
|
/**
|
|
47
47
|
* fetch factory
|
|
48
48
|
* @param {number} chainId - number
|
|
49
49
|
* @param {string} __to - string
|
|
50
50
|
* @returns {string} __output0 - address
|
|
51
51
|
*/
|
|
52
|
-
export declare function fetchUniswapV2PairFactory(chainId: number, __to: string):
|
|
52
|
+
export declare function fetchUniswapV2PairFactory(chainId: number, __to: string): Promise<string>;
|
|
53
53
|
/**
|
|
54
54
|
* fetch feeRate
|
|
55
55
|
* @param {number} chainId - number
|
|
56
56
|
* @param {string} __to - string
|
|
57
57
|
* @returns {bigint} __output0 - uint256
|
|
58
58
|
*/
|
|
59
|
-
export declare function fetchUniswapV2PairFeeRate(chainId: number, __to: string):
|
|
59
|
+
export declare function fetchUniswapV2PairFeeRate(chainId: number, __to: string): Promise<bigint>;
|
|
60
60
|
/**
|
|
61
61
|
* fetch getReserves
|
|
62
62
|
* @param {number} chainId - number
|
|
@@ -65,28 +65,32 @@ export declare function fetchUniswapV2PairFeeRate(chainId: number, __to: string)
|
|
|
65
65
|
* @returns {bigint} _reserve1 - uint112
|
|
66
66
|
* @returns {bigint} _blockTimestampLast - uint32
|
|
67
67
|
*/
|
|
68
|
-
export declare function fetchUniswapV2PairGetReserves(chainId: number, __to: string):
|
|
68
|
+
export declare function fetchUniswapV2PairGetReserves(chainId: number, __to: string): Promise<{
|
|
69
|
+
_reserve0: bigint;
|
|
70
|
+
_reserve1: bigint;
|
|
71
|
+
_blockTimestampLast: bigint;
|
|
72
|
+
}>;
|
|
69
73
|
/**
|
|
70
74
|
* fetch kLast
|
|
71
75
|
* @param {number} chainId - number
|
|
72
76
|
* @param {string} __to - string
|
|
73
77
|
* @returns {bigint} __output0 - uint256
|
|
74
78
|
*/
|
|
75
|
-
export declare function fetchUniswapV2PairKLast(chainId: number, __to: string):
|
|
79
|
+
export declare function fetchUniswapV2PairKLast(chainId: number, __to: string): Promise<bigint>;
|
|
76
80
|
/**
|
|
77
81
|
* fetch lpMtRatio
|
|
78
82
|
* @param {number} chainId - number
|
|
79
83
|
* @param {string} __to - string
|
|
80
84
|
* @returns {bigint} __output0 - uint256
|
|
81
85
|
*/
|
|
82
|
-
export declare function fetchUniswapV2PairLpMtRatio(chainId: number, __to: string):
|
|
86
|
+
export declare function fetchUniswapV2PairLpMtRatio(chainId: number, __to: string): Promise<bigint>;
|
|
83
87
|
/**
|
|
84
88
|
* fetch name
|
|
85
89
|
* @param {number} chainId - number
|
|
86
90
|
* @param {string} __to - string
|
|
87
91
|
* @returns {string} __output0 - string
|
|
88
92
|
*/
|
|
89
|
-
export declare function fetchUniswapV2PairName(chainId: number, __to: string):
|
|
93
|
+
export declare function fetchUniswapV2PairName(chainId: number, __to: string): Promise<string>;
|
|
90
94
|
/**
|
|
91
95
|
* fetch nonces
|
|
92
96
|
* @param {number} chainId - number
|
|
@@ -94,132 +98,132 @@ export declare function fetchUniswapV2PairName(chainId: number, __to: string): a
|
|
|
94
98
|
* @param {string} __input1 - address
|
|
95
99
|
* @returns {bigint} __output0 - uint256
|
|
96
100
|
*/
|
|
97
|
-
export declare function fetchUniswapV2PairNonces(chainId: number, __to: string, __input1: string):
|
|
101
|
+
export declare function fetchUniswapV2PairNonces(chainId: number, __to: string, __input1: string): Promise<bigint>;
|
|
98
102
|
/**
|
|
99
103
|
* fetch price0CumulativeLast
|
|
100
104
|
* @param {number} chainId - number
|
|
101
105
|
* @param {string} __to - string
|
|
102
106
|
* @returns {bigint} __output0 - uint256
|
|
103
107
|
*/
|
|
104
|
-
export declare function fetchUniswapV2PairPrice0CumulativeLast(chainId: number, __to: string):
|
|
108
|
+
export declare function fetchUniswapV2PairPrice0CumulativeLast(chainId: number, __to: string): Promise<bigint>;
|
|
105
109
|
/**
|
|
106
110
|
* fetch price1CumulativeLast
|
|
107
111
|
* @param {number} chainId - number
|
|
108
112
|
* @param {string} __to - string
|
|
109
113
|
* @returns {bigint} __output0 - uint256
|
|
110
114
|
*/
|
|
111
|
-
export declare function fetchUniswapV2PairPrice1CumulativeLast(chainId: number, __to: string):
|
|
115
|
+
export declare function fetchUniswapV2PairPrice1CumulativeLast(chainId: number, __to: string): Promise<bigint>;
|
|
112
116
|
/**
|
|
113
117
|
* fetch symbol
|
|
114
118
|
* @param {number} chainId - number
|
|
115
119
|
* @param {string} __to - string
|
|
116
120
|
* @returns {string} __output0 - string
|
|
117
121
|
*/
|
|
118
|
-
export declare function fetchUniswapV2PairSymbol(chainId: number, __to: string):
|
|
122
|
+
export declare function fetchUniswapV2PairSymbol(chainId: number, __to: string): Promise<string>;
|
|
119
123
|
/**
|
|
120
124
|
* fetch token0
|
|
121
125
|
* @param {number} chainId - number
|
|
122
126
|
* @param {string} __to - string
|
|
123
127
|
* @returns {string} __output0 - address
|
|
124
128
|
*/
|
|
125
|
-
export declare function fetchUniswapV2PairToken0(chainId: number, __to: string):
|
|
129
|
+
export declare function fetchUniswapV2PairToken0(chainId: number, __to: string): Promise<string>;
|
|
126
130
|
/**
|
|
127
131
|
* fetch token1
|
|
128
132
|
* @param {number} chainId - number
|
|
129
133
|
* @param {string} __to - string
|
|
130
134
|
* @returns {string} __output0 - address
|
|
131
135
|
*/
|
|
132
|
-
export declare function fetchUniswapV2PairToken1(chainId: number, __to: string):
|
|
136
|
+
export declare function fetchUniswapV2PairToken1(chainId: number, __to: string): Promise<string>;
|
|
133
137
|
/**
|
|
134
138
|
* fetch totalSupply
|
|
135
139
|
* @param {number} chainId - number
|
|
136
140
|
* @param {string} __to - string
|
|
137
141
|
* @returns {bigint} __output0 - uint256
|
|
138
142
|
*/
|
|
139
|
-
export declare function fetchUniswapV2PairTotalSupply(chainId: number, __to: string):
|
|
143
|
+
export declare function fetchUniswapV2PairTotalSupply(chainId: number, __to: string): Promise<bigint>;
|
|
140
144
|
/**
|
|
141
145
|
* encode approve
|
|
142
146
|
* @param {string} spender - address
|
|
143
|
-
* @param {string} value - uint256
|
|
147
|
+
* @param {string | number} value - uint256
|
|
144
148
|
* @returns {string} encode data
|
|
145
149
|
*/
|
|
146
|
-
export declare function encodeUniswapV2PairApprove(spender: string, value: string):
|
|
150
|
+
export declare function encodeUniswapV2PairApprove(spender: string, value: string | number): string;
|
|
147
151
|
/**
|
|
148
152
|
* encode burn
|
|
149
153
|
* @param {string} to - address
|
|
150
154
|
* @returns {string} encode data
|
|
151
155
|
*/
|
|
152
|
-
export declare function encodeUniswapV2PairBurn(to: string):
|
|
156
|
+
export declare function encodeUniswapV2PairBurn(to: string): string;
|
|
153
157
|
/**
|
|
154
158
|
* encode initialize
|
|
155
159
|
* @param {string} _token0 - address
|
|
156
160
|
* @param {string} _token1 - address
|
|
157
161
|
* @returns {string} encode data
|
|
158
162
|
*/
|
|
159
|
-
export declare function encodeUniswapV2PairInitialize(_token0: string, _token1: string):
|
|
163
|
+
export declare function encodeUniswapV2PairInitialize(_token0: string, _token1: string): string;
|
|
160
164
|
/**
|
|
161
165
|
* encode mint
|
|
162
166
|
* @param {string} to - address
|
|
163
167
|
* @returns {string} encode data
|
|
164
168
|
*/
|
|
165
|
-
export declare function encodeUniswapV2PairMint(to: string):
|
|
169
|
+
export declare function encodeUniswapV2PairMint(to: string): string;
|
|
166
170
|
/**
|
|
167
171
|
* encode permit
|
|
168
172
|
* @param {string} owner - address
|
|
169
173
|
* @param {string} spender - address
|
|
170
|
-
* @param {string} value - uint256
|
|
171
|
-
* @param {string} deadline - uint256
|
|
172
|
-
* @param {string} v - uint8
|
|
174
|
+
* @param {string | number} value - uint256
|
|
175
|
+
* @param {string | number} deadline - uint256
|
|
176
|
+
* @param {string | number} v - uint8
|
|
173
177
|
* @param {string} r - bytes32
|
|
174
178
|
* @param {string} s - bytes32
|
|
175
179
|
* @returns {string} encode data
|
|
176
180
|
*/
|
|
177
|
-
export declare function encodeUniswapV2PairPermit(owner: string, spender: string, value: string, deadline: string, v: string, r: string, s: string):
|
|
181
|
+
export declare function encodeUniswapV2PairPermit(owner: string, spender: string, value: string | number, deadline: string | number, v: string | number, r: string, s: string): string;
|
|
178
182
|
/**
|
|
179
183
|
* encode setFeeRate
|
|
180
|
-
* @param {string} totalFeeRate - uint256
|
|
184
|
+
* @param {string | number} totalFeeRate - uint256
|
|
181
185
|
* @returns {string} encode data
|
|
182
186
|
*/
|
|
183
|
-
export declare function encodeUniswapV2PairSetFeeRate(totalFeeRate: string):
|
|
187
|
+
export declare function encodeUniswapV2PairSetFeeRate(totalFeeRate: string | number): string;
|
|
184
188
|
/**
|
|
185
189
|
* encode setLpMtRatio
|
|
186
|
-
* @param {string} ratio - uint256
|
|
190
|
+
* @param {string | number} ratio - uint256
|
|
187
191
|
* @returns {string} encode data
|
|
188
192
|
*/
|
|
189
|
-
export declare function encodeUniswapV2PairSetLpMtRatio(ratio: string):
|
|
193
|
+
export declare function encodeUniswapV2PairSetLpMtRatio(ratio: string | number): string;
|
|
190
194
|
/**
|
|
191
195
|
* encode skim
|
|
192
196
|
* @param {string} to - address
|
|
193
197
|
* @returns {string} encode data
|
|
194
198
|
*/
|
|
195
|
-
export declare function encodeUniswapV2PairSkim(to: string):
|
|
199
|
+
export declare function encodeUniswapV2PairSkim(to: string): string;
|
|
196
200
|
/**
|
|
197
201
|
* encode swap
|
|
198
|
-
* @param {string} amount0Out - uint256
|
|
199
|
-
* @param {string} amount1Out - uint256
|
|
202
|
+
* @param {string | number} amount0Out - uint256
|
|
203
|
+
* @param {string | number} amount1Out - uint256
|
|
200
204
|
* @param {string} to - address
|
|
201
205
|
* @param {string} data - bytes
|
|
202
206
|
* @returns {string} encode data
|
|
203
207
|
*/
|
|
204
|
-
export declare function encodeUniswapV2PairSwap(amount0Out: string, amount1Out: string, to: string, data: string):
|
|
208
|
+
export declare function encodeUniswapV2PairSwap(amount0Out: string | number, amount1Out: string | number, to: string, data: string): string;
|
|
205
209
|
/**
|
|
206
210
|
* encode sync
|
|
207
211
|
|
|
208
212
|
* @returns {string} encode data
|
|
209
213
|
*/
|
|
210
|
-
export declare function encodeUniswapV2PairSync():
|
|
214
|
+
export declare function encodeUniswapV2PairSync(): string;
|
|
211
215
|
/**
|
|
212
216
|
* encode transfer
|
|
213
217
|
* @param {string} to - address
|
|
214
|
-
* @param {string} value - uint256
|
|
218
|
+
* @param {string | number} value - uint256
|
|
215
219
|
* @returns {string} encode data
|
|
216
220
|
*/
|
|
217
|
-
export declare function encodeUniswapV2PairTransfer(to: string, value: string):
|
|
221
|
+
export declare function encodeUniswapV2PairTransfer(to: string, value: string | number): string;
|
|
218
222
|
/**
|
|
219
223
|
* encode transferFrom
|
|
220
224
|
* @param {string} from - address
|
|
221
225
|
* @param {string} to - address
|
|
222
|
-
* @param {string} value - uint256
|
|
226
|
+
* @param {string | number} value - uint256
|
|
223
227
|
* @returns {string} encode data
|
|
224
228
|
*/
|
|
225
|
-
export declare function encodeUniswapV2PairTransferFrom(from: string, to: string, value: string):
|
|
229
|
+
export declare function encodeUniswapV2PairTransferFrom(from: string, to: string, value: string | number): string;
|