@zoralabs/coins 0.7.1 → 0.9.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/.env +1 -0
- package/.turbo/turbo-build.log +114 -109
- package/.turbo/turbo-update-contract-version.log +22 -0
- package/CHANGELOG.md +28 -0
- package/abis/BadImpl.json +15 -0
- package/abis/BalanceDeltaLibrary.json +15 -0
- package/abis/BaseCoin.json +1442 -0
- package/abis/BaseCoinDeployHook.json +78 -0
- package/abis/BaseHook.json +897 -0
- package/abis/BaseTest.json +13 -91
- package/abis/BeforeSwapDeltaLibrary.json +15 -0
- package/abis/BuySupplyWithSwapRouterHook.json +126 -0
- package/abis/Coin.json +48 -92
- package/abis/CoinConstants.json +65 -0
- package/abis/CoinTest.json +13 -91
- package/abis/CoinV4.json +1664 -0
- package/abis/CurrencyLibrary.json +25 -0
- package/abis/DeployHooks.json +9 -0
- package/abis/DopplerUniswapV3Test.json +13 -91
- package/abis/FactoryTest.json +13 -91
- package/abis/FakeHookNoInterface.json +21 -0
- package/abis/HookDeployer.json +68 -0
- package/abis/Hooks.json +28 -0
- package/abis/HooksTest.json +651 -0
- package/abis/IAllowanceTransfer.json +486 -0
- package/abis/ICoin.json +25 -1
- package/abis/ICoinDeployHook.json +31 -0
- package/abis/IContractMetadata.json +28 -0
- package/abis/IEIP712.json +15 -0
- package/abis/IEIP712_v4.json +15 -0
- package/abis/IERC20Minimal.json +172 -0
- package/abis/IERC6909Claims.json +288 -0
- package/abis/IERC721Permit_v4.json +88 -0
- package/abis/IExtsload.json +64 -0
- package/abis/IExttload.json +40 -0
- package/abis/IHasAfterCoinDeploy.json +31 -0
- package/abis/IHasContractName.json +15 -0
- package/abis/IHookDeployer.json +42 -0
- package/abis/IHooks.json +789 -0
- package/abis/IImmutableState.json +15 -0
- package/abis/IMulticall_v4.json +21 -0
- package/abis/INotifier.json +187 -0
- package/abis/IPermit2.json +865 -0
- package/abis/IPermit2Forwarder.json +138 -0
- package/abis/IPoolInitializer_v4.json +53 -0
- package/abis/IPoolManager.json +1286 -0
- package/abis/IPositionManager.json +712 -0
- package/abis/IProtocolFees.json +174 -0
- package/abis/ISignatureTransfer.json +394 -0
- package/abis/ISubscriber.json +89 -0
- package/abis/ISwapRouter.json +82 -0
- package/abis/IUnorderedNonce.json +44 -0
- package/abis/IV4Router.json +47 -0
- package/abis/IZoraFactory.json +144 -0
- package/abis/IZoraV4CoinHook.json +83 -0
- package/abis/ImmutableState.json +36 -0
- package/abis/LPFeeLibrary.json +65 -0
- package/abis/MultiOwnableTest.json +13 -91
- package/abis/Simulate.json +0 -91
- package/abis/UniV3BuySell.json +12 -0
- package/abis/UniV3Errors.json +32 -0
- package/abis/UpgradeFactoryImpl.json +9 -0
- package/abis/UpgradesTest.json +604 -0
- package/abis/ZoraFactoryImpl.json +111 -0
- package/abis/ZoraV4CoinHook.json +989 -0
- package/addresses/8453.json +2 -1
- package/addresses/84532.json +4 -3
- package/dist/index.cjs +125 -62
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +120 -56
- package/dist/index.js.map +1 -1
- package/dist/wagmiGenerated.d.ts +212 -464
- package/dist/wagmiGenerated.d.ts.map +1 -1
- package/package/wagmiGenerated.ts +122 -66
- package/package.json +4 -4
- package/script/CoinsDeployerBase.sol +32 -0
- package/script/DeployHooks.s.sol +22 -0
- package/script/Simulate.s.sol +3 -2
- package/script/UpgradeCoinImpl.sol +2 -2
- package/script/UpgradeFactoryImpl.s.sol +23 -0
- package/src/Coin.sol +35 -342
- package/src/ZoraFactoryImpl.sol +73 -45
- package/src/hooks/BaseCoinDeployHook.sol +62 -0
- package/src/hooks/BuySupplyWithSwapRouterHook.sol +78 -0
- package/src/interfaces/ICoin.sol +5 -1
- package/src/interfaces/ICoinDeployHook.sol +8 -0
- package/src/interfaces/ISwapRouter.sol +1 -35
- package/src/interfaces/IZoraFactory.sol +52 -0
- package/src/{utils → libs}/CoinConstants.sol +6 -6
- package/src/libs/CoinLegacy.sol +4 -4
- package/src/libs/CoinLegacyMarket.sol +182 -0
- package/src/libs/CoinSetupV3.sol +111 -0
- package/src/libs/UniV3BuySell.sol +449 -0
- package/src/libs/UniV3Errors.sol +11 -0
- package/src/version/ContractVersionBase.sol +1 -1
- package/test/Coin.t.sol +20 -17
- package/test/CoinDopplerUniV3.t.sol +7 -17
- package/test/Factory.t.sol +4 -3
- package/test/Hooks.t.sol +274 -0
- package/test/Upgrades.t.sol +67 -0
- package/test/utils/BaseTest.sol +18 -3
- package/wagmi.config.ts +6 -9
- package/src/libs/CoinSetup.sol +0 -37
- /package/abis/{CoinSetup.json → CoinSetupV3.json} +0 -0
package/abis/BaseTest.json
CHANGED
|
@@ -12,97 +12,6 @@
|
|
|
12
12
|
],
|
|
13
13
|
"stateMutability": "view"
|
|
14
14
|
},
|
|
15
|
-
{
|
|
16
|
-
"type": "function",
|
|
17
|
-
"name": "MAX_TOTAL_SUPPLY",
|
|
18
|
-
"inputs": [],
|
|
19
|
-
"outputs": [
|
|
20
|
-
{
|
|
21
|
-
"name": "",
|
|
22
|
-
"type": "uint256",
|
|
23
|
-
"internalType": "uint256"
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"stateMutability": "view"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"type": "function",
|
|
30
|
-
"name": "MIN_ORDER_SIZE",
|
|
31
|
-
"inputs": [],
|
|
32
|
-
"outputs": [
|
|
33
|
-
{
|
|
34
|
-
"name": "",
|
|
35
|
-
"type": "uint256",
|
|
36
|
-
"internalType": "uint256"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"stateMutability": "view"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"type": "function",
|
|
43
|
-
"name": "PLATFORM_REFERRER_FEE_BPS",
|
|
44
|
-
"inputs": [],
|
|
45
|
-
"outputs": [
|
|
46
|
-
{
|
|
47
|
-
"name": "",
|
|
48
|
-
"type": "uint256",
|
|
49
|
-
"internalType": "uint256"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"stateMutability": "view"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"type": "function",
|
|
56
|
-
"name": "PROTOCOL_FEE_BPS",
|
|
57
|
-
"inputs": [],
|
|
58
|
-
"outputs": [
|
|
59
|
-
{
|
|
60
|
-
"name": "",
|
|
61
|
-
"type": "uint256",
|
|
62
|
-
"internalType": "uint256"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"stateMutability": "view"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"type": "function",
|
|
69
|
-
"name": "TOKEN_CREATOR_FEE_BPS",
|
|
70
|
-
"inputs": [],
|
|
71
|
-
"outputs": [
|
|
72
|
-
{
|
|
73
|
-
"name": "",
|
|
74
|
-
"type": "uint256",
|
|
75
|
-
"internalType": "uint256"
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
"stateMutability": "view"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"type": "function",
|
|
82
|
-
"name": "TOTAL_FEE_BPS",
|
|
83
|
-
"inputs": [],
|
|
84
|
-
"outputs": [
|
|
85
|
-
{
|
|
86
|
-
"name": "",
|
|
87
|
-
"type": "uint256",
|
|
88
|
-
"internalType": "uint256"
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
"stateMutability": "view"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"type": "function",
|
|
95
|
-
"name": "TRADE_REFERRER_FEE_BPS",
|
|
96
|
-
"inputs": [],
|
|
97
|
-
"outputs": [
|
|
98
|
-
{
|
|
99
|
-
"name": "",
|
|
100
|
-
"type": "uint256",
|
|
101
|
-
"internalType": "uint256"
|
|
102
|
-
}
|
|
103
|
-
],
|
|
104
|
-
"stateMutability": "view"
|
|
105
|
-
},
|
|
106
15
|
{
|
|
107
16
|
"type": "function",
|
|
108
17
|
"name": "excludeArtifacts",
|
|
@@ -187,6 +96,19 @@
|
|
|
187
96
|
"outputs": [],
|
|
188
97
|
"stateMutability": "nonpayable"
|
|
189
98
|
},
|
|
99
|
+
{
|
|
100
|
+
"type": "function",
|
|
101
|
+
"name": "setUpWithBlockNumber",
|
|
102
|
+
"inputs": [
|
|
103
|
+
{
|
|
104
|
+
"name": "forkBlockNumber",
|
|
105
|
+
"type": "uint256",
|
|
106
|
+
"internalType": "uint256"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"outputs": [],
|
|
110
|
+
"stateMutability": "nonpayable"
|
|
111
|
+
},
|
|
190
112
|
{
|
|
191
113
|
"type": "function",
|
|
192
114
|
"name": "targetArtifactSelectors",
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "constructor",
|
|
4
|
+
"inputs": [
|
|
5
|
+
{
|
|
6
|
+
"name": "_factory",
|
|
7
|
+
"type": "address",
|
|
8
|
+
"internalType": "contract IZoraFactory"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "_swapRouter",
|
|
12
|
+
"type": "address",
|
|
13
|
+
"internalType": "address"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"stateMutability": "nonpayable"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "function",
|
|
20
|
+
"name": "afterCoinDeploy",
|
|
21
|
+
"inputs": [
|
|
22
|
+
{
|
|
23
|
+
"name": "sender",
|
|
24
|
+
"type": "address",
|
|
25
|
+
"internalType": "address"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "coin",
|
|
29
|
+
"type": "address",
|
|
30
|
+
"internalType": "contract ICoin"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "hookData",
|
|
34
|
+
"type": "bytes",
|
|
35
|
+
"internalType": "bytes"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"outputs": [
|
|
39
|
+
{
|
|
40
|
+
"name": "",
|
|
41
|
+
"type": "bytes",
|
|
42
|
+
"internalType": "bytes"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"stateMutability": "payable"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"type": "function",
|
|
49
|
+
"name": "factory",
|
|
50
|
+
"inputs": [],
|
|
51
|
+
"outputs": [
|
|
52
|
+
{
|
|
53
|
+
"name": "",
|
|
54
|
+
"type": "address",
|
|
55
|
+
"internalType": "contract IZoraFactory"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"stateMutability": "view"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "function",
|
|
62
|
+
"name": "supportsInterface",
|
|
63
|
+
"inputs": [
|
|
64
|
+
{
|
|
65
|
+
"name": "interfaceId",
|
|
66
|
+
"type": "bytes4",
|
|
67
|
+
"internalType": "bytes4"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"outputs": [
|
|
71
|
+
{
|
|
72
|
+
"name": "",
|
|
73
|
+
"type": "bool",
|
|
74
|
+
"internalType": "bool"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"stateMutability": "pure"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "error",
|
|
81
|
+
"name": "AddressZero",
|
|
82
|
+
"inputs": []
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"type": "error",
|
|
86
|
+
"name": "CoinBalanceNot0",
|
|
87
|
+
"inputs": [
|
|
88
|
+
{
|
|
89
|
+
"name": "balance",
|
|
90
|
+
"type": "uint256",
|
|
91
|
+
"internalType": "uint256"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type": "error",
|
|
97
|
+
"name": "Erc20NotReceived",
|
|
98
|
+
"inputs": []
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"type": "error",
|
|
102
|
+
"name": "HookNotImplemented",
|
|
103
|
+
"inputs": []
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"type": "error",
|
|
107
|
+
"name": "InvalidSwapRouterCall",
|
|
108
|
+
"inputs": []
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"type": "error",
|
|
112
|
+
"name": "NotFactory",
|
|
113
|
+
"inputs": []
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"type": "error",
|
|
117
|
+
"name": "SwapReverted",
|
|
118
|
+
"inputs": [
|
|
119
|
+
{
|
|
120
|
+
"name": "error",
|
|
121
|
+
"type": "bytes",
|
|
122
|
+
"internalType": "bytes"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
]
|
package/abis/Coin.json
CHANGED
|
@@ -52,97 +52,6 @@
|
|
|
52
52
|
],
|
|
53
53
|
"stateMutability": "view"
|
|
54
54
|
},
|
|
55
|
-
{
|
|
56
|
-
"type": "function",
|
|
57
|
-
"name": "MAX_TOTAL_SUPPLY",
|
|
58
|
-
"inputs": [],
|
|
59
|
-
"outputs": [
|
|
60
|
-
{
|
|
61
|
-
"name": "",
|
|
62
|
-
"type": "uint256",
|
|
63
|
-
"internalType": "uint256"
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
|
-
"stateMutability": "view"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"type": "function",
|
|
70
|
-
"name": "MIN_ORDER_SIZE",
|
|
71
|
-
"inputs": [],
|
|
72
|
-
"outputs": [
|
|
73
|
-
{
|
|
74
|
-
"name": "",
|
|
75
|
-
"type": "uint256",
|
|
76
|
-
"internalType": "uint256"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"stateMutability": "view"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"type": "function",
|
|
83
|
-
"name": "PLATFORM_REFERRER_FEE_BPS",
|
|
84
|
-
"inputs": [],
|
|
85
|
-
"outputs": [
|
|
86
|
-
{
|
|
87
|
-
"name": "",
|
|
88
|
-
"type": "uint256",
|
|
89
|
-
"internalType": "uint256"
|
|
90
|
-
}
|
|
91
|
-
],
|
|
92
|
-
"stateMutability": "view"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"type": "function",
|
|
96
|
-
"name": "PROTOCOL_FEE_BPS",
|
|
97
|
-
"inputs": [],
|
|
98
|
-
"outputs": [
|
|
99
|
-
{
|
|
100
|
-
"name": "",
|
|
101
|
-
"type": "uint256",
|
|
102
|
-
"internalType": "uint256"
|
|
103
|
-
}
|
|
104
|
-
],
|
|
105
|
-
"stateMutability": "view"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"type": "function",
|
|
109
|
-
"name": "TOKEN_CREATOR_FEE_BPS",
|
|
110
|
-
"inputs": [],
|
|
111
|
-
"outputs": [
|
|
112
|
-
{
|
|
113
|
-
"name": "",
|
|
114
|
-
"type": "uint256",
|
|
115
|
-
"internalType": "uint256"
|
|
116
|
-
}
|
|
117
|
-
],
|
|
118
|
-
"stateMutability": "view"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"type": "function",
|
|
122
|
-
"name": "TOTAL_FEE_BPS",
|
|
123
|
-
"inputs": [],
|
|
124
|
-
"outputs": [
|
|
125
|
-
{
|
|
126
|
-
"name": "",
|
|
127
|
-
"type": "uint256",
|
|
128
|
-
"internalType": "uint256"
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
"stateMutability": "view"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"type": "function",
|
|
135
|
-
"name": "TRADE_REFERRER_FEE_BPS",
|
|
136
|
-
"inputs": [],
|
|
137
|
-
"outputs": [
|
|
138
|
-
{
|
|
139
|
-
"name": "",
|
|
140
|
-
"type": "uint256",
|
|
141
|
-
"internalType": "uint256"
|
|
142
|
-
}
|
|
143
|
-
],
|
|
144
|
-
"stateMutability": "view"
|
|
145
|
-
},
|
|
146
55
|
{
|
|
147
56
|
"type": "function",
|
|
148
57
|
"name": "WETH",
|
|
@@ -489,6 +398,32 @@
|
|
|
489
398
|
],
|
|
490
399
|
"stateMutability": "view"
|
|
491
400
|
},
|
|
401
|
+
{
|
|
402
|
+
"type": "function",
|
|
403
|
+
"name": "market",
|
|
404
|
+
"inputs": [],
|
|
405
|
+
"outputs": [
|
|
406
|
+
{
|
|
407
|
+
"name": "",
|
|
408
|
+
"type": "bytes",
|
|
409
|
+
"internalType": "bytes"
|
|
410
|
+
}
|
|
411
|
+
],
|
|
412
|
+
"stateMutability": "view"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"type": "function",
|
|
416
|
+
"name": "marketVersion",
|
|
417
|
+
"inputs": [],
|
|
418
|
+
"outputs": [
|
|
419
|
+
{
|
|
420
|
+
"name": "",
|
|
421
|
+
"type": "uint8",
|
|
422
|
+
"internalType": "uint8"
|
|
423
|
+
}
|
|
424
|
+
],
|
|
425
|
+
"stateMutability": "view"
|
|
426
|
+
},
|
|
492
427
|
{
|
|
493
428
|
"type": "function",
|
|
494
429
|
"name": "name",
|
|
@@ -1443,6 +1378,11 @@
|
|
|
1443
1378
|
"name": "AddressZero",
|
|
1444
1379
|
"inputs": []
|
|
1445
1380
|
},
|
|
1381
|
+
{
|
|
1382
|
+
"type": "error",
|
|
1383
|
+
"name": "AddressZero",
|
|
1384
|
+
"inputs": []
|
|
1385
|
+
},
|
|
1446
1386
|
{
|
|
1447
1387
|
"type": "error",
|
|
1448
1388
|
"name": "AlreadyOwner",
|
|
@@ -1679,6 +1619,11 @@
|
|
|
1679
1619
|
"name": "InvalidPoolVersion",
|
|
1680
1620
|
"inputs": []
|
|
1681
1621
|
},
|
|
1622
|
+
{
|
|
1623
|
+
"type": "error",
|
|
1624
|
+
"name": "InvalidPoolVersion",
|
|
1625
|
+
"inputs": []
|
|
1626
|
+
},
|
|
1682
1627
|
{
|
|
1683
1628
|
"type": "error",
|
|
1684
1629
|
"name": "InvalidTickRangeMisordered",
|
|
@@ -1759,7 +1704,18 @@
|
|
|
1759
1704
|
{
|
|
1760
1705
|
"type": "error",
|
|
1761
1706
|
"name": "OnlyPool",
|
|
1762
|
-
"inputs": [
|
|
1707
|
+
"inputs": [
|
|
1708
|
+
{
|
|
1709
|
+
"name": "sender",
|
|
1710
|
+
"type": "address",
|
|
1711
|
+
"internalType": "address"
|
|
1712
|
+
},
|
|
1713
|
+
{
|
|
1714
|
+
"name": "pool",
|
|
1715
|
+
"type": "address",
|
|
1716
|
+
"internalType": "address"
|
|
1717
|
+
}
|
|
1718
|
+
]
|
|
1763
1719
|
},
|
|
1764
1720
|
{
|
|
1765
1721
|
"type": "error",
|
package/abis/CoinConstants.json
CHANGED
|
@@ -1,4 +1,43 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "CREATOR_LAUNCH_REWARD",
|
|
5
|
+
"inputs": [],
|
|
6
|
+
"outputs": [
|
|
7
|
+
{
|
|
8
|
+
"name": "",
|
|
9
|
+
"type": "uint256",
|
|
10
|
+
"internalType": "uint256"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"stateMutability": "view"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "function",
|
|
17
|
+
"name": "CREATOR_MARKET_REWARD_BPS",
|
|
18
|
+
"inputs": [],
|
|
19
|
+
"outputs": [
|
|
20
|
+
{
|
|
21
|
+
"name": "",
|
|
22
|
+
"type": "uint256",
|
|
23
|
+
"internalType": "uint256"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"stateMutability": "view"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "function",
|
|
30
|
+
"name": "DOPPLER_MARKET_REWARD_BPS",
|
|
31
|
+
"inputs": [],
|
|
32
|
+
"outputs": [
|
|
33
|
+
{
|
|
34
|
+
"name": "",
|
|
35
|
+
"type": "uint256",
|
|
36
|
+
"internalType": "uint256"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"stateMutability": "view"
|
|
40
|
+
},
|
|
2
41
|
{
|
|
3
42
|
"type": "function",
|
|
4
43
|
"name": "MAX_TOTAL_SUPPLY",
|
|
@@ -38,6 +77,32 @@
|
|
|
38
77
|
],
|
|
39
78
|
"stateMutability": "view"
|
|
40
79
|
},
|
|
80
|
+
{
|
|
81
|
+
"type": "function",
|
|
82
|
+
"name": "PLATFORM_REFERRER_MARKET_REWARD_BPS",
|
|
83
|
+
"inputs": [],
|
|
84
|
+
"outputs": [
|
|
85
|
+
{
|
|
86
|
+
"name": "",
|
|
87
|
+
"type": "uint256",
|
|
88
|
+
"internalType": "uint256"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"stateMutability": "view"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"type": "function",
|
|
95
|
+
"name": "POOL_LAUNCH_SUPPLY",
|
|
96
|
+
"inputs": [],
|
|
97
|
+
"outputs": [
|
|
98
|
+
{
|
|
99
|
+
"name": "",
|
|
100
|
+
"type": "uint256",
|
|
101
|
+
"internalType": "uint256"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"stateMutability": "view"
|
|
105
|
+
},
|
|
41
106
|
{
|
|
42
107
|
"type": "function",
|
|
43
108
|
"name": "PROTOCOL_FEE_BPS",
|
package/abis/CoinTest.json
CHANGED
|
@@ -12,97 +12,6 @@
|
|
|
12
12
|
],
|
|
13
13
|
"stateMutability": "view"
|
|
14
14
|
},
|
|
15
|
-
{
|
|
16
|
-
"type": "function",
|
|
17
|
-
"name": "MAX_TOTAL_SUPPLY",
|
|
18
|
-
"inputs": [],
|
|
19
|
-
"outputs": [
|
|
20
|
-
{
|
|
21
|
-
"name": "",
|
|
22
|
-
"type": "uint256",
|
|
23
|
-
"internalType": "uint256"
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"stateMutability": "view"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"type": "function",
|
|
30
|
-
"name": "MIN_ORDER_SIZE",
|
|
31
|
-
"inputs": [],
|
|
32
|
-
"outputs": [
|
|
33
|
-
{
|
|
34
|
-
"name": "",
|
|
35
|
-
"type": "uint256",
|
|
36
|
-
"internalType": "uint256"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"stateMutability": "view"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"type": "function",
|
|
43
|
-
"name": "PLATFORM_REFERRER_FEE_BPS",
|
|
44
|
-
"inputs": [],
|
|
45
|
-
"outputs": [
|
|
46
|
-
{
|
|
47
|
-
"name": "",
|
|
48
|
-
"type": "uint256",
|
|
49
|
-
"internalType": "uint256"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"stateMutability": "view"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"type": "function",
|
|
56
|
-
"name": "PROTOCOL_FEE_BPS",
|
|
57
|
-
"inputs": [],
|
|
58
|
-
"outputs": [
|
|
59
|
-
{
|
|
60
|
-
"name": "",
|
|
61
|
-
"type": "uint256",
|
|
62
|
-
"internalType": "uint256"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"stateMutability": "view"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"type": "function",
|
|
69
|
-
"name": "TOKEN_CREATOR_FEE_BPS",
|
|
70
|
-
"inputs": [],
|
|
71
|
-
"outputs": [
|
|
72
|
-
{
|
|
73
|
-
"name": "",
|
|
74
|
-
"type": "uint256",
|
|
75
|
-
"internalType": "uint256"
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
"stateMutability": "view"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"type": "function",
|
|
82
|
-
"name": "TOTAL_FEE_BPS",
|
|
83
|
-
"inputs": [],
|
|
84
|
-
"outputs": [
|
|
85
|
-
{
|
|
86
|
-
"name": "",
|
|
87
|
-
"type": "uint256",
|
|
88
|
-
"internalType": "uint256"
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
"stateMutability": "view"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"type": "function",
|
|
95
|
-
"name": "TRADE_REFERRER_FEE_BPS",
|
|
96
|
-
"inputs": [],
|
|
97
|
-
"outputs": [
|
|
98
|
-
{
|
|
99
|
-
"name": "",
|
|
100
|
-
"type": "uint256",
|
|
101
|
-
"internalType": "uint256"
|
|
102
|
-
}
|
|
103
|
-
],
|
|
104
|
-
"stateMutability": "view"
|
|
105
|
-
},
|
|
106
15
|
{
|
|
107
16
|
"type": "function",
|
|
108
17
|
"name": "excludeArtifacts",
|
|
@@ -187,6 +96,19 @@
|
|
|
187
96
|
"outputs": [],
|
|
188
97
|
"stateMutability": "nonpayable"
|
|
189
98
|
},
|
|
99
|
+
{
|
|
100
|
+
"type": "function",
|
|
101
|
+
"name": "setUpWithBlockNumber",
|
|
102
|
+
"inputs": [
|
|
103
|
+
{
|
|
104
|
+
"name": "forkBlockNumber",
|
|
105
|
+
"type": "uint256",
|
|
106
|
+
"internalType": "uint256"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"outputs": [],
|
|
110
|
+
"stateMutability": "nonpayable"
|
|
111
|
+
},
|
|
190
112
|
{
|
|
191
113
|
"type": "function",
|
|
192
114
|
"name": "targetArtifactSelectors",
|