@dodoex/dodo-contract-request 1.0.0
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/BuyoutModel.json +1 -0
- package/.cache/contract-info/CP.json +1 -0
- package/.cache/contract-info/CloneFactory.json +1 -0
- package/.cache/contract-info/CrowdPoolingFactory.json +1 -0
- package/.cache/contract-info/CustomERC20.json +1 -0
- package/.cache/contract-info/CustomMintableERC20.json +1 -0
- package/.cache/contract-info/D3Proxy.json +1 -0
- package/.cache/contract-info/D3Vault.json +1 -0
- package/.cache/contract-info/DODOApprove.json +1 -0
- package/.cache/contract-info/DODOApproveProxy.json +1 -0
- package/.cache/contract-info/DODOCalleeHelper.json +1 -0
- package/.cache/contract-info/DODOCirculationHelper.json +1 -0
- package/.cache/contract-info/DODOCpProxy.json +148 -0
- package/.cache/contract-info/DODOCpProxyWithoutGlobalQuota.json +1 -0
- package/.cache/contract-info/DODODppProxy.json +1 -0
- package/.cache/contract-info/DODODspProxy.json +1 -0
- package/.cache/contract-info/DODODspProxyWithoutGSP.json +1 -0
- package/.cache/contract-info/DODOIncentive.json +1 -0
- package/.cache/contract-info/DODOMineV2Factory.json +1 -0
- package/.cache/contract-info/DODOMineV3Proxy.json +373 -0
- package/.cache/contract-info/DODOMineV3ProxyWithoutPlatform.json +1 -0
- package/.cache/contract-info/DODOMineV3Registry.json +1 -0
- package/.cache/contract-info/DODONFT.json +1 -0
- package/.cache/contract-info/DODONFT1155.json +1 -0
- package/.cache/contract-info/DODONFTApprove.json +1 -0
- package/.cache/contract-info/DODONFTPoolProxy.json +1 -0
- package/.cache/contract-info/DODONFTProxy.json +1 -0
- package/.cache/contract-info/DODONFTRegistry.json +1 -0
- package/.cache/contract-info/DODONFTRouteHelper.json +1 -0
- package/.cache/contract-info/DODOSellHelper.json +1 -0
- package/.cache/contract-info/DODOStarterProxy.json +1 -0
- package/.cache/contract-info/DODOV1.json +1 -0
- package/.cache/contract-info/DODOV1Adapter.json +1 -0
- package/.cache/contract-info/DODOV1PmmHelper.json +88 -0
- package/.cache/contract-info/DODOV1Proxy.json +1 -0
- package/.cache/contract-info/DODOV2Proxy02.json +1 -0
- package/.cache/contract-info/DODOV2RouteHelper.json +1 -0
- package/.cache/contract-info/DPPAdvanced.json +1 -0
- package/.cache/contract-info/DPPAdvancedAdmin.json +1 -0
- package/.cache/contract-info/DPPFactory.json +1 -0
- package/.cache/contract-info/DSP.json +1 -0
- package/.cache/contract-info/DSPFactory.json +1 -0
- package/.cache/contract-info/DVM.json +1 -0
- package/.cache/contract-info/DVMFactory.json +1 -0
- package/.cache/contract-info/ERC20.json +1 -0
- package/.cache/contract-info/ERC20Helper.json +1 -0
- package/.cache/contract-info/ERC20MineV3.json +1 -0
- package/.cache/contract-info/ERC20V3Factory.json +1 -0
- package/.cache/contract-info/FeeRateDIP3Impl.json +1 -0
- package/.cache/contract-info/FeeRateModel.json +1 -0
- package/.cache/contract-info/GSP.json +1 -0
- package/.cache/contract-info/GSPFactory.json +1 -0
- package/.cache/contract-info/InitializableERC20.json +1 -0
- package/.cache/contract-info/LimitOrder.json +1 -0
- package/.cache/contract-info/LimitOrderBot.json +1 -0
- package/.cache/contract-info/MulticallWithValid.json +1 -0
- package/.cache/contract-info/PermissionManager.json +1 -0
- package/.cache/contract-info/dodoTeam.json +1 -0
- package/.cache/contract-info/vDODOToken.json +1 -0
- package/.env.sample +1 -0
- package/.releaserc.json +31 -0
- package/CHANGELOG.md +16 -0
- package/README.md +75 -0
- package/babel.config.js +6 -0
- package/contract-config/arbitrum.json +85 -0
- package/contract-config/aurora.json +84 -0
- package/contract-config/avalanche.json +84 -0
- package/contract-config/base.json +84 -0
- package/contract-config/berachain-testnet.json +65 -0
- package/contract-config/bitlayer.json +84 -0
- package/contract-config/bsc.json +85 -0
- package/contract-config/conflux.json +84 -0
- package/contract-config/eth.json +90 -0
- package/contract-config/linea.json +84 -0
- package/contract-config/manta.json +84 -0
- package/contract-config/mantle.json +85 -0
- package/contract-config/morph.json +65 -0
- package/contract-config/optimism.json +84 -0
- package/contract-config/polygon.json +84 -0
- package/contract-config/scroll.json +84 -0
- package/contract-config/sepolia.json +85 -0
- package/contract-config/taiko.json +65 -0
- package/contract-config/x-layer.json +84 -0
- package/contract-config/zero-mainnet.json +65 -0
- package/contract-config/zircuit-mainnet.json +84 -0
- package/dist/config.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/config/arbitrum.d.ts +40 -0
- package/dist/types/config/aurora.d.ts +25 -0
- package/dist/types/config/avalanche.d.ts +27 -0
- package/dist/types/config/base.d.ts +23 -0
- package/dist/types/config/berachain-testnet.d.ts +30 -0
- package/dist/types/config/bitlayer.d.ts +24 -0
- package/dist/types/config/bsc.d.ts +40 -0
- package/dist/types/config/conflux.d.ts +23 -0
- package/dist/types/config/ethereum.d.ts +45 -0
- package/dist/types/config/index.d.ts +179 -0
- package/dist/types/config/linea.d.ts +24 -0
- package/dist/types/config/manta.d.ts +24 -0
- package/dist/types/config/mantle.d.ts +24 -0
- package/dist/types/config/morph.d.ts +30 -0
- package/dist/types/config/optimism.d.ts +26 -0
- package/dist/types/config/polygon.d.ts +38 -0
- package/dist/types/config/scroll.d.ts +24 -0
- package/dist/types/config/sepolia.d.ts +27 -0
- package/dist/types/config/taiko.d.ts +30 -0
- package/dist/types/config/x-layer.d.ts +25 -0
- package/dist/types/config/zero-mainnet.d.ts +30 -0
- package/dist/types/config/zircuit-mainnet.d.ts +24 -0
- package/dist/types/contract/BuyoutModel.d.ts +83 -0
- package/dist/types/contract/CP.d.ts +317 -0
- package/dist/types/contract/CloneFactory.d.ts +6 -0
- package/dist/types/contract/CrowdPoolingFactory.d.ts +207 -0
- package/dist/types/contract/CustomERC20.d.ts +145 -0
- package/dist/types/contract/CustomMintableERC20.d.ts +158 -0
- package/dist/types/contract/D3Proxy.d.ts +104 -0
- package/dist/types/contract/D3Vault.d.ts +639 -0
- package/dist/types/contract/DODOApprove.d.ts +89 -0
- package/dist/types/contract/DODOApproveProxy.d.ts +103 -0
- package/dist/types/contract/DODOCalleeHelper.d.ts +42 -0
- package/dist/types/contract/DODOCirculationHelper.d.ts +74 -0
- package/dist/types/contract/DODOCpProxy.d.ts +40 -0
- package/dist/types/contract/DODOCpProxyWithoutGlobalQuota.d.ts +40 -0
- package/dist/types/contract/DODODppProxy.d.ts +45 -0
- package/dist/types/contract/DODODspProxy.d.ts +67 -0
- package/dist/types/contract/DODODspProxyWithoutGSP.d.ts +45 -0
- package/dist/types/contract/DODOIncentive.d.ts +137 -0
- package/dist/types/contract/DODOMineV2Factory.d.ts +99 -0
- package/dist/types/contract/DODOMineV3Proxy.d.ts +88 -0
- package/dist/types/contract/DODOMineV3ProxyWithoutPlatform.d.ts +88 -0
- package/dist/types/contract/DODOMineV3Registry.d.ts +89 -0
- package/dist/types/contract/DODONFT.d.ts +172 -0
- package/dist/types/contract/DODONFT1155.d.ts +117 -0
- package/dist/types/contract/DODONFTApprove.d.ts +117 -0
- package/dist/types/contract/DODONFTPoolProxy.d.ts +181 -0
- package/dist/types/contract/DODONFTProxy.d.ts +152 -0
- package/dist/types/contract/DODONFTRegistry.d.ts +101 -0
- package/dist/types/contract/DODONFTRouteHelper.d.ts +16 -0
- package/dist/types/contract/DODOSellHelper.d.ts +17 -0
- package/dist/types/contract/DODOStarterProxy.d.ts +22 -0
- package/dist/types/contract/DODOV1.d.ts +514 -0
- package/dist/types/contract/DODOV1Adapter.d.ts +23 -0
- package/dist/types/contract/DODOV1PmmHelper.d.ts +8 -0
- package/dist/types/contract/DODOV1Proxy.d.ts +55 -0
- package/dist/types/contract/DODOV2Proxy02.d.ts +280 -0
- package/dist/types/contract/DODOV2RouteHelper.d.ts +28 -0
- package/dist/types/contract/DPPAdvanced.d.ts +320 -0
- package/dist/types/contract/DPPAdvancedAdmin.d.ts +115 -0
- package/dist/types/contract/DPPFactory.d.ts +194 -0
- package/dist/types/contract/DSP.d.ts +392 -0
- package/dist/types/contract/DSPFactory.d.ts +134 -0
- package/dist/types/contract/DVM.d.ts +363 -0
- package/dist/types/contract/DVMFactory.d.ts +134 -0
- package/dist/types/contract/ERC20.d.ts +79 -0
- package/dist/types/contract/ERC20Helper.d.ts +67 -0
- package/dist/types/contract/ERC20MineV3.d.ts +204 -0
- package/dist/types/contract/ERC20V3Factory.d.ts +161 -0
- package/dist/types/contract/FeeRateDIP3Impl.d.ts +158 -0
- package/dist/types/contract/FeeRateModel.d.ts +53 -0
- package/dist/types/contract/GSP.d.ts +488 -0
- package/dist/types/contract/GSPFactory.d.ts +137 -0
- package/dist/types/contract/InitializableERC20.d.ts +84 -0
- package/dist/types/contract/LimitOrder.d.ts +164 -0
- package/dist/types/contract/LimitOrderBot.d.ts +102 -0
- package/dist/types/contract/MulticallWithValid.d.ts +51 -0
- package/dist/types/contract/PermissionManager.d.ts +83 -0
- package/dist/types/contract/dodoTeam.d.ts +244 -0
- package/dist/types/contract/vDODOToken.d.ts +309 -0
- package/dist/types/contractRequests.d.ts +3 -0
- package/dist/types/index.d.ts +60 -0
- package/package.json +41 -0
- package/rollup.config.mjs +51 -0
- package/scripts/contract-generate.ts +192 -0
- package/src/config/arbitrum.ts +4 -0
- package/src/config/aurora.ts +4 -0
- package/src/config/avalanche.ts +4 -0
- package/src/config/base.ts +4 -0
- package/src/config/berachain-testnet.ts +4 -0
- package/src/config/bitlayer.ts +4 -0
- package/src/config/bsc.ts +4 -0
- package/src/config/conflux.ts +4 -0
- package/src/config/ethereum.ts +4 -0
- package/src/config/index.ts +95 -0
- package/src/config/linea.ts +4 -0
- package/src/config/manta.ts +4 -0
- package/src/config/mantle.ts +4 -0
- package/src/config/morph.ts +4 -0
- package/src/config/optimism.ts +4 -0
- package/src/config/polygon.ts +4 -0
- package/src/config/scroll.ts +4 -0
- package/src/config/sepolia.ts +4 -0
- package/src/config/taiko.ts +4 -0
- package/src/config/x-layer.ts +4 -0
- package/src/config/zero-mainnet.ts +4 -0
- package/src/config/zircuit-mainnet.ts +4 -0
- package/src/contract/BuyoutModel.ts +158 -0
- package/src/contract/CP.ts +532 -0
- package/src/contract/CloneFactory.ts +15 -0
- package/src/contract/CrowdPoolingFactory.ts +397 -0
- package/src/contract/CustomERC20.ts +241 -0
- package/src/contract/CustomMintableERC20.ts +262 -0
- package/src/contract/D3Proxy.ts +177 -0
- package/src/contract/D3Vault.ts +1124 -0
- package/src/contract/DODOApprove.ts +172 -0
- package/src/contract/DODOApproveProxy.ts +197 -0
- package/src/contract/DODOCalleeHelper.ts +74 -0
- package/src/contract/DODOCirculationHelper.ts +152 -0
- package/src/contract/DODOCpProxy.ts +78 -0
- package/src/contract/DODOCpProxyWithoutGlobalQuota.ts +78 -0
- package/src/contract/DODODppProxy.ts +83 -0
- package/src/contract/DODODspProxy.ts +116 -0
- package/src/contract/DODODspProxyWithoutGSP.ts +83 -0
- package/src/contract/DODOIncentive.ts +259 -0
- package/src/contract/DODOMineV2Factory.ts +189 -0
- package/src/contract/DODOMineV3Proxy.ts +167 -0
- package/src/contract/DODOMineV3ProxyWithoutPlatform.ts +167 -0
- package/src/contract/DODOMineV3Registry.ts +168 -0
- package/src/contract/DODONFT.ts +323 -0
- package/src/contract/DODONFT1155.ts +214 -0
- package/src/contract/DODONFTApprove.ts +212 -0
- package/src/contract/DODONFTPoolProxy.ts +316 -0
- package/src/contract/DODONFTProxy.ts +293 -0
- package/src/contract/DODONFTRegistry.ts +187 -0
- package/src/contract/DODONFTRouteHelper.ts +39 -0
- package/src/contract/DODOSellHelper.ts +40 -0
- package/src/contract/DODOStarterProxy.ts +49 -0
- package/src/contract/DODOV1.ts +854 -0
- package/src/contract/DODOV1Adapter.ts +47 -0
- package/src/contract/DODOV1PmmHelper.ts +24 -0
- package/src/contract/DODOV1Proxy.ts +99 -0
- package/src/contract/DODOV2Proxy02.ts +456 -0
- package/src/contract/DODOV2RouteHelper.ts +65 -0
- package/src/contract/DPPAdvanced.ts +492 -0
- package/src/contract/DPPAdvancedAdmin.ts +191 -0
- package/src/contract/DPPFactory.ts +353 -0
- package/src/contract/DSP.ts +608 -0
- package/src/contract/DSPFactory.ts +248 -0
- package/src/contract/DVM.ts +564 -0
- package/src/contract/DVMFactory.ts +248 -0
- package/src/contract/ERC20.ts +134 -0
- package/src/contract/ERC20Helper.ts +104 -0
- package/src/contract/ERC20MineV3.ts +326 -0
- package/src/contract/ERC20V3Factory.ts +291 -0
- package/src/contract/FeeRateDIP3Impl.ts +281 -0
- package/src/contract/FeeRateModel.ts +94 -0
- package/src/contract/GSP.ts +766 -0
- package/src/contract/GSPFactory.ts +248 -0
- package/src/contract/InitializableERC20.ts +140 -0
- package/src/contract/LimitOrder.ts +267 -0
- package/src/contract/LimitOrderBot.ts +189 -0
- package/src/contract/MulticallWithValid.ts +113 -0
- package/src/contract/PermissionManager.ts +144 -0
- package/src/contract/dodoTeam.ts +415 -0
- package/src/contract/vDODOToken.ts +592 -0
- package/src/contractRequests.ts +10 -0
- package/src/index.ts +61 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* fetch _NEW_OWNER_
|
|
3
|
+
* @param {number} chainId - number
|
|
4
|
+
* @param {string} __to - string
|
|
5
|
+
* @returns {string} __output0 - address
|
|
6
|
+
*/
|
|
7
|
+
export declare function fetchCustomERC20_NEW_OWNER_(chainId: number, __to: string): Promise<string>;
|
|
8
|
+
/**
|
|
9
|
+
* fetch _OWNER_
|
|
10
|
+
* @param {number} chainId - number
|
|
11
|
+
* @param {string} __to - string
|
|
12
|
+
* @returns {string} __output0 - address
|
|
13
|
+
*/
|
|
14
|
+
export declare function fetchCustomERC20_OWNER_(chainId: number, __to: string): Promise<string>;
|
|
15
|
+
/**
|
|
16
|
+
* fetch allowance
|
|
17
|
+
* @param {number} chainId - number
|
|
18
|
+
* @param {string} __to - string
|
|
19
|
+
* @param {string} owner - address
|
|
20
|
+
* @param {string} spender - address
|
|
21
|
+
* @returns {bigint} __output0 - uint256
|
|
22
|
+
*/
|
|
23
|
+
export declare function fetchCustomERC20Allowance(chainId: number, __to: string, owner: string, spender: string): Promise<bigint>;
|
|
24
|
+
/**
|
|
25
|
+
* fetch balanceOf
|
|
26
|
+
* @param {number} chainId - number
|
|
27
|
+
* @param {string} __to - string
|
|
28
|
+
* @param {string} owner - address
|
|
29
|
+
* @returns {bigint} balance - uint256
|
|
30
|
+
*/
|
|
31
|
+
export declare function fetchCustomERC20BalanceOf(chainId: number, __to: string, owner: string): Promise<bigint>;
|
|
32
|
+
/**
|
|
33
|
+
* fetch decimals
|
|
34
|
+
* @param {number} chainId - number
|
|
35
|
+
* @param {string} __to - string
|
|
36
|
+
* @returns {bigint} __output0 - uint8
|
|
37
|
+
*/
|
|
38
|
+
export declare function fetchCustomERC20Decimals(chainId: number, __to: string): Promise<bigint>;
|
|
39
|
+
/**
|
|
40
|
+
* fetch name
|
|
41
|
+
* @param {number} chainId - number
|
|
42
|
+
* @param {string} __to - string
|
|
43
|
+
* @returns {string} __output0 - string
|
|
44
|
+
*/
|
|
45
|
+
export declare function fetchCustomERC20Name(chainId: number, __to: string): Promise<string>;
|
|
46
|
+
/**
|
|
47
|
+
* fetch symbol
|
|
48
|
+
* @param {number} chainId - number
|
|
49
|
+
* @param {string} __to - string
|
|
50
|
+
* @returns {string} __output0 - string
|
|
51
|
+
*/
|
|
52
|
+
export declare function fetchCustomERC20Symbol(chainId: number, __to: string): Promise<string>;
|
|
53
|
+
/**
|
|
54
|
+
* fetch team
|
|
55
|
+
* @param {number} chainId - number
|
|
56
|
+
* @param {string} __to - string
|
|
57
|
+
* @returns {string} __output0 - address
|
|
58
|
+
*/
|
|
59
|
+
export declare function fetchCustomERC20Team(chainId: number, __to: string): Promise<string>;
|
|
60
|
+
/**
|
|
61
|
+
* fetch totalSupply
|
|
62
|
+
* @param {number} chainId - number
|
|
63
|
+
* @param {string} __to - string
|
|
64
|
+
* @returns {bigint} __output0 - uint256
|
|
65
|
+
*/
|
|
66
|
+
export declare function fetchCustomERC20TotalSupply(chainId: number, __to: string): Promise<bigint>;
|
|
67
|
+
/**
|
|
68
|
+
* fetch tradeBurnRatio
|
|
69
|
+
* @param {number} chainId - number
|
|
70
|
+
* @param {string} __to - string
|
|
71
|
+
* @returns {bigint} __output0 - uint256
|
|
72
|
+
*/
|
|
73
|
+
export declare function fetchCustomERC20TradeBurnRatio(chainId: number, __to: string): Promise<bigint>;
|
|
74
|
+
/**
|
|
75
|
+
* fetch tradeFeeRatio
|
|
76
|
+
* @param {number} chainId - number
|
|
77
|
+
* @param {string} __to - string
|
|
78
|
+
* @returns {bigint} __output0 - uint256
|
|
79
|
+
*/
|
|
80
|
+
export declare function fetchCustomERC20TradeFeeRatio(chainId: number, __to: string): Promise<bigint>;
|
|
81
|
+
/**
|
|
82
|
+
* encode abandonOwnership
|
|
83
|
+
* @param {string} zeroAddress - address
|
|
84
|
+
* @returns {string} encode data
|
|
85
|
+
*/
|
|
86
|
+
export declare function encodeCustomERC20AbandonOwnership(zeroAddress: string): string;
|
|
87
|
+
/**
|
|
88
|
+
* encode approve
|
|
89
|
+
* @param {string} spender - address
|
|
90
|
+
* @param {number} amount - uint256
|
|
91
|
+
* @returns {string} encode data
|
|
92
|
+
*/
|
|
93
|
+
export declare function encodeCustomERC20Approve(spender: string, amount: number): string;
|
|
94
|
+
/**
|
|
95
|
+
* encode changeTeamAccount
|
|
96
|
+
* @param {string} newTeam - address
|
|
97
|
+
* @returns {string} encode data
|
|
98
|
+
*/
|
|
99
|
+
export declare function encodeCustomERC20ChangeTeamAccount(newTeam: string): string;
|
|
100
|
+
/**
|
|
101
|
+
* encode claimOwnership
|
|
102
|
+
|
|
103
|
+
* @returns {string} encode data
|
|
104
|
+
*/
|
|
105
|
+
export declare function encodeCustomERC20ClaimOwnership(): string;
|
|
106
|
+
/**
|
|
107
|
+
* encode init
|
|
108
|
+
* @param {string} _creator - address
|
|
109
|
+
* @param {number} _totalSupply - uint256
|
|
110
|
+
* @param {string} _name - string
|
|
111
|
+
* @param {string} _symbol - string
|
|
112
|
+
* @param {number} _decimals - uint8
|
|
113
|
+
* @param {number} _tradeBurnRatio - uint256
|
|
114
|
+
* @param {number} _tradeFeeRatio - uint256
|
|
115
|
+
* @param {string} _team - address
|
|
116
|
+
* @returns {string} encode data
|
|
117
|
+
*/
|
|
118
|
+
export declare function encodeCustomERC20Init(_creator: string, _totalSupply: number, _name: string, _symbol: string, _decimals: number, _tradeBurnRatio: number, _tradeFeeRatio: number, _team: string): string;
|
|
119
|
+
/**
|
|
120
|
+
* encode initOwner
|
|
121
|
+
* @param {string} newOwner - address
|
|
122
|
+
* @returns {string} encode data
|
|
123
|
+
*/
|
|
124
|
+
export declare function encodeCustomERC20InitOwner(newOwner: string): string;
|
|
125
|
+
/**
|
|
126
|
+
* encode transfer
|
|
127
|
+
* @param {string} to - address
|
|
128
|
+
* @param {number} amount - uint256
|
|
129
|
+
* @returns {string} encode data
|
|
130
|
+
*/
|
|
131
|
+
export declare function encodeCustomERC20Transfer(to: string, amount: number): string;
|
|
132
|
+
/**
|
|
133
|
+
* encode transferFrom
|
|
134
|
+
* @param {string} from - address
|
|
135
|
+
* @param {string} to - address
|
|
136
|
+
* @param {number} amount - uint256
|
|
137
|
+
* @returns {string} encode data
|
|
138
|
+
*/
|
|
139
|
+
export declare function encodeCustomERC20TransferFrom(from: string, to: string, amount: number): string;
|
|
140
|
+
/**
|
|
141
|
+
* encode transferOwnership
|
|
142
|
+
* @param {string} newOwner - address
|
|
143
|
+
* @returns {string} encode data
|
|
144
|
+
*/
|
|
145
|
+
export declare function encodeCustomERC20TransferOwnership(newOwner: string): string;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* fetch _NEW_OWNER_
|
|
3
|
+
* @param {number} chainId - number
|
|
4
|
+
* @param {string} __to - string
|
|
5
|
+
* @returns {string} __output0 - address
|
|
6
|
+
*/
|
|
7
|
+
export declare function fetchCustomMintableERC20_NEW_OWNER_(chainId: number, __to: string): Promise<string>;
|
|
8
|
+
/**
|
|
9
|
+
* fetch _OWNER_
|
|
10
|
+
* @param {number} chainId - number
|
|
11
|
+
* @param {string} __to - string
|
|
12
|
+
* @returns {string} __output0 - address
|
|
13
|
+
*/
|
|
14
|
+
export declare function fetchCustomMintableERC20_OWNER_(chainId: number, __to: string): Promise<string>;
|
|
15
|
+
/**
|
|
16
|
+
* fetch allowance
|
|
17
|
+
* @param {number} chainId - number
|
|
18
|
+
* @param {string} __to - string
|
|
19
|
+
* @param {string} owner - address
|
|
20
|
+
* @param {string} spender - address
|
|
21
|
+
* @returns {bigint} __output0 - uint256
|
|
22
|
+
*/
|
|
23
|
+
export declare function fetchCustomMintableERC20Allowance(chainId: number, __to: string, owner: string, spender: string): Promise<bigint>;
|
|
24
|
+
/**
|
|
25
|
+
* fetch balanceOf
|
|
26
|
+
* @param {number} chainId - number
|
|
27
|
+
* @param {string} __to - string
|
|
28
|
+
* @param {string} owner - address
|
|
29
|
+
* @returns {bigint} balance - uint256
|
|
30
|
+
*/
|
|
31
|
+
export declare function fetchCustomMintableERC20BalanceOf(chainId: number, __to: string, owner: string): Promise<bigint>;
|
|
32
|
+
/**
|
|
33
|
+
* fetch decimals
|
|
34
|
+
* @param {number} chainId - number
|
|
35
|
+
* @param {string} __to - string
|
|
36
|
+
* @returns {bigint} __output0 - uint8
|
|
37
|
+
*/
|
|
38
|
+
export declare function fetchCustomMintableERC20Decimals(chainId: number, __to: string): Promise<bigint>;
|
|
39
|
+
/**
|
|
40
|
+
* fetch name
|
|
41
|
+
* @param {number} chainId - number
|
|
42
|
+
* @param {string} __to - string
|
|
43
|
+
* @returns {string} __output0 - string
|
|
44
|
+
*/
|
|
45
|
+
export declare function fetchCustomMintableERC20Name(chainId: number, __to: string): Promise<string>;
|
|
46
|
+
/**
|
|
47
|
+
* fetch symbol
|
|
48
|
+
* @param {number} chainId - number
|
|
49
|
+
* @param {string} __to - string
|
|
50
|
+
* @returns {string} __output0 - string
|
|
51
|
+
*/
|
|
52
|
+
export declare function fetchCustomMintableERC20Symbol(chainId: number, __to: string): Promise<string>;
|
|
53
|
+
/**
|
|
54
|
+
* fetch team
|
|
55
|
+
* @param {number} chainId - number
|
|
56
|
+
* @param {string} __to - string
|
|
57
|
+
* @returns {string} __output0 - address
|
|
58
|
+
*/
|
|
59
|
+
export declare function fetchCustomMintableERC20Team(chainId: number, __to: string): Promise<string>;
|
|
60
|
+
/**
|
|
61
|
+
* fetch totalSupply
|
|
62
|
+
* @param {number} chainId - number
|
|
63
|
+
* @param {string} __to - string
|
|
64
|
+
* @returns {bigint} __output0 - uint256
|
|
65
|
+
*/
|
|
66
|
+
export declare function fetchCustomMintableERC20TotalSupply(chainId: number, __to: string): Promise<bigint>;
|
|
67
|
+
/**
|
|
68
|
+
* fetch tradeBurnRatio
|
|
69
|
+
* @param {number} chainId - number
|
|
70
|
+
* @param {string} __to - string
|
|
71
|
+
* @returns {bigint} __output0 - uint256
|
|
72
|
+
*/
|
|
73
|
+
export declare function fetchCustomMintableERC20TradeBurnRatio(chainId: number, __to: string): Promise<bigint>;
|
|
74
|
+
/**
|
|
75
|
+
* fetch tradeFeeRatio
|
|
76
|
+
* @param {number} chainId - number
|
|
77
|
+
* @param {string} __to - string
|
|
78
|
+
* @returns {bigint} __output0 - uint256
|
|
79
|
+
*/
|
|
80
|
+
export declare function fetchCustomMintableERC20TradeFeeRatio(chainId: number, __to: string): Promise<bigint>;
|
|
81
|
+
/**
|
|
82
|
+
* encode abandonOwnership
|
|
83
|
+
* @param {string} zeroAddress - address
|
|
84
|
+
* @returns {string} encode data
|
|
85
|
+
*/
|
|
86
|
+
export declare function encodeCustomMintableERC20AbandonOwnership(zeroAddress: string): string;
|
|
87
|
+
/**
|
|
88
|
+
* encode approve
|
|
89
|
+
* @param {string} spender - address
|
|
90
|
+
* @param {number} amount - uint256
|
|
91
|
+
* @returns {string} encode data
|
|
92
|
+
*/
|
|
93
|
+
export declare function encodeCustomMintableERC20Approve(spender: string, amount: number): string;
|
|
94
|
+
/**
|
|
95
|
+
* encode burn
|
|
96
|
+
* @param {number} value - uint256
|
|
97
|
+
* @returns {string} encode data
|
|
98
|
+
*/
|
|
99
|
+
export declare function encodeCustomMintableERC20Burn(value: number): string;
|
|
100
|
+
/**
|
|
101
|
+
* encode changeTeamAccount
|
|
102
|
+
* @param {string} newTeam - address
|
|
103
|
+
* @returns {string} encode data
|
|
104
|
+
*/
|
|
105
|
+
export declare function encodeCustomMintableERC20ChangeTeamAccount(newTeam: string): string;
|
|
106
|
+
/**
|
|
107
|
+
* encode claimOwnership
|
|
108
|
+
|
|
109
|
+
* @returns {string} encode data
|
|
110
|
+
*/
|
|
111
|
+
export declare function encodeCustomMintableERC20ClaimOwnership(): string;
|
|
112
|
+
/**
|
|
113
|
+
* encode init
|
|
114
|
+
* @param {string} _creator - address
|
|
115
|
+
* @param {number} _initSupply - uint256
|
|
116
|
+
* @param {string} _name - string
|
|
117
|
+
* @param {string} _symbol - string
|
|
118
|
+
* @param {number} _decimals - uint8
|
|
119
|
+
* @param {number} _tradeBurnRatio - uint256
|
|
120
|
+
* @param {number} _tradeFeeRatio - uint256
|
|
121
|
+
* @param {string} _team - address
|
|
122
|
+
* @returns {string} encode data
|
|
123
|
+
*/
|
|
124
|
+
export declare function encodeCustomMintableERC20Init(_creator: string, _initSupply: number, _name: string, _symbol: string, _decimals: number, _tradeBurnRatio: number, _tradeFeeRatio: number, _team: string): string;
|
|
125
|
+
/**
|
|
126
|
+
* encode initOwner
|
|
127
|
+
* @param {string} newOwner - address
|
|
128
|
+
* @returns {string} encode data
|
|
129
|
+
*/
|
|
130
|
+
export declare function encodeCustomMintableERC20InitOwner(newOwner: string): string;
|
|
131
|
+
/**
|
|
132
|
+
* encode mint
|
|
133
|
+
* @param {string} user - address
|
|
134
|
+
* @param {number} value - uint256
|
|
135
|
+
* @returns {string} encode data
|
|
136
|
+
*/
|
|
137
|
+
export declare function encodeCustomMintableERC20Mint(user: string, value: number): string;
|
|
138
|
+
/**
|
|
139
|
+
* encode transfer
|
|
140
|
+
* @param {string} to - address
|
|
141
|
+
* @param {number} amount - uint256
|
|
142
|
+
* @returns {string} encode data
|
|
143
|
+
*/
|
|
144
|
+
export declare function encodeCustomMintableERC20Transfer(to: string, amount: number): string;
|
|
145
|
+
/**
|
|
146
|
+
* encode transferFrom
|
|
147
|
+
* @param {string} from - address
|
|
148
|
+
* @param {string} to - address
|
|
149
|
+
* @param {number} amount - uint256
|
|
150
|
+
* @returns {string} encode data
|
|
151
|
+
*/
|
|
152
|
+
export declare function encodeCustomMintableERC20TransferFrom(from: string, to: string, amount: number): string;
|
|
153
|
+
/**
|
|
154
|
+
* encode transferOwnership
|
|
155
|
+
* @param {string} newOwner - address
|
|
156
|
+
* @returns {string} encode data
|
|
157
|
+
*/
|
|
158
|
+
export declare function encodeCustomMintableERC20TransferOwnership(newOwner: string): string;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export declare function getD3ProxyContractAddressByChainId(chainId: number): string;
|
|
2
|
+
/**
|
|
3
|
+
* fetch _D3_VAULT_
|
|
4
|
+
* @param {number} chainId - number
|
|
5
|
+
* @returns {string} __output0 - address
|
|
6
|
+
*/
|
|
7
|
+
export declare function fetchD3Proxy_D3_VAULT_(chainId: number): Promise<string>;
|
|
8
|
+
/**
|
|
9
|
+
* fetch _DODO_APPROVE_PROXY_
|
|
10
|
+
* @param {number} chainId - number
|
|
11
|
+
* @returns {string} __output0 - address
|
|
12
|
+
*/
|
|
13
|
+
export declare function fetchD3Proxy_DODO_APPROVE_PROXY_(chainId: number): Promise<string>;
|
|
14
|
+
/**
|
|
15
|
+
* fetch _ETH_ADDRESS_
|
|
16
|
+
* @param {number} chainId - number
|
|
17
|
+
* @returns {string} __output0 - address
|
|
18
|
+
*/
|
|
19
|
+
export declare function fetchD3Proxy_ETH_ADDRESS_(chainId: number): Promise<string>;
|
|
20
|
+
/**
|
|
21
|
+
* fetch _WETH_
|
|
22
|
+
* @param {number} chainId - number
|
|
23
|
+
* @returns {string} __output0 - address
|
|
24
|
+
*/
|
|
25
|
+
export declare function fetchD3Proxy_WETH_(chainId: number): Promise<string>;
|
|
26
|
+
/**
|
|
27
|
+
* encode buyTokens
|
|
28
|
+
* @param {string} pool - address
|
|
29
|
+
* @param {string} to - address
|
|
30
|
+
* @param {string} fromToken - address
|
|
31
|
+
* @param {string} toToken - address
|
|
32
|
+
* @param {number} quoteAmount - uint256
|
|
33
|
+
* @param {number} maxPayAmount - uint256
|
|
34
|
+
* @param {string} data - bytes
|
|
35
|
+
* @param {number} deadLine - uint256
|
|
36
|
+
* @returns {string} encode data
|
|
37
|
+
*/
|
|
38
|
+
export declare function encodeD3ProxyBuyTokens(pool: string, to: string, fromToken: string, toToken: string, quoteAmount: number, maxPayAmount: number, data: string, deadLine: number): string;
|
|
39
|
+
/**
|
|
40
|
+
* encode d3MMSwapCallBack
|
|
41
|
+
* @param {string} token - address
|
|
42
|
+
* @param {number} value - uint256
|
|
43
|
+
* @param {string} _data - bytes
|
|
44
|
+
* @returns {string} encode data
|
|
45
|
+
*/
|
|
46
|
+
export declare function encodeD3ProxyD3MMSwapCallBack(token: string, value: number, _data: string): string;
|
|
47
|
+
/**
|
|
48
|
+
* encode makerDeposit
|
|
49
|
+
* @param {string} pool - address
|
|
50
|
+
* @param {string} token - address
|
|
51
|
+
* @param {number} amount - uint256
|
|
52
|
+
* @returns {string} encode data
|
|
53
|
+
*/
|
|
54
|
+
export declare function encodeD3ProxyMakerDeposit(pool: string, token: string, amount: number): string;
|
|
55
|
+
/**
|
|
56
|
+
* encode multicall
|
|
57
|
+
* @param {Array<string>} data - bytes[]
|
|
58
|
+
* @returns {string} encode data
|
|
59
|
+
*/
|
|
60
|
+
export declare function encodeD3ProxyMulticall(data: Array<string>): string;
|
|
61
|
+
/**
|
|
62
|
+
* encode refundETH
|
|
63
|
+
|
|
64
|
+
* @returns {string} encode data
|
|
65
|
+
*/
|
|
66
|
+
export declare function encodeD3ProxyRefundETH(): string;
|
|
67
|
+
/**
|
|
68
|
+
* encode sellTokens
|
|
69
|
+
* @param {string} pool - address
|
|
70
|
+
* @param {string} to - address
|
|
71
|
+
* @param {string} fromToken - address
|
|
72
|
+
* @param {string} toToken - address
|
|
73
|
+
* @param {number} fromAmount - uint256
|
|
74
|
+
* @param {number} minReceiveAmount - uint256
|
|
75
|
+
* @param {string} data - bytes
|
|
76
|
+
* @param {number} deadLine - uint256
|
|
77
|
+
* @returns {string} encode data
|
|
78
|
+
*/
|
|
79
|
+
export declare function encodeD3ProxySellTokens(pool: string, to: string, fromToken: string, toToken: string, fromAmount: number, minReceiveAmount: number, data: string, deadLine: number): string;
|
|
80
|
+
/**
|
|
81
|
+
* encode userDeposit
|
|
82
|
+
* @param {string} user - address
|
|
83
|
+
* @param {string} token - address
|
|
84
|
+
* @param {number} amount - uint256
|
|
85
|
+
* @param {number} minDtokenAmount - uint256
|
|
86
|
+
* @returns {string} encode data
|
|
87
|
+
*/
|
|
88
|
+
export declare function encodeD3ProxyUserDeposit(user: string, token: string, amount: number, minDtokenAmount: number): string;
|
|
89
|
+
/**
|
|
90
|
+
* encode userWithdraw
|
|
91
|
+
* @param {string} to - address
|
|
92
|
+
* @param {string} token - address
|
|
93
|
+
* @param {number} dTokenAmount - uint256
|
|
94
|
+
* @param {number} minReceiveAmount - uint256
|
|
95
|
+
* @returns {string} encode data
|
|
96
|
+
*/
|
|
97
|
+
export declare function encodeD3ProxyUserWithdraw(to: string, token: string, dTokenAmount: number, minReceiveAmount: number): string;
|
|
98
|
+
/**
|
|
99
|
+
* encode withdrawWETH
|
|
100
|
+
* @param {string} to - address
|
|
101
|
+
* @param {number} minAmount - uint256
|
|
102
|
+
* @returns {string} encode data
|
|
103
|
+
*/
|
|
104
|
+
export declare function encodeD3ProxyWithdrawWETH(to: string, minAmount: number): string;
|