@zoralabs/coins 2.1.1 → 2.2.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/.turbo/turbo-build$colon$js.log +152 -0
- package/CHANGELOG.md +60 -0
- package/abis/BaseCoin.json +26 -0
- package/abis/BaseTest.json +2 -7
- package/abis/CoinConstants.json +0 -104
- package/abis/ContentCoin.json +26 -0
- package/abis/CreatorCoin.json +30 -4
- package/abis/FeeEstimatorHook.json +0 -5
- package/abis/ICoin.json +26 -0
- package/abis/ICoinV3.json +26 -0
- package/abis/ICreatorCoin.json +39 -0
- package/abis/IERC721.json +36 -36
- package/abis/IHasCoinType.json +15 -0
- package/abis/IHasTotalSupplyForPositions.json +15 -0
- package/abis/IZoraFactory.json +52 -0
- package/abis/IZoraHookRegistry.json +188 -0
- package/abis/VmContractHelper227.json +233 -0
- package/abis/ZoraFactoryImpl.json +32 -6
- package/abis/ZoraHookRegistry.json +375 -0
- package/abis/{CreatorCoinHook.json → ZoraV4CoinHook.json} +1 -1
- package/addresses/8453.json +2 -1
- package/dist/index.cjs +72 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +72 -10
- package/dist/index.js.map +1 -1
- package/dist/wagmiGenerated.d.ts +90 -10
- package/dist/wagmiGenerated.d.ts.map +1 -1
- package/foundry.toml +4 -1
- package/package/wagmiGenerated.ts +72 -10
- package/package.json +7 -5
- package/script/PrintRegisterUpgradePath.s.sol +0 -7
- package/script/TestBackingCoinSwap.s.sol +0 -1
- package/script/TestV4Swap.s.sol +0 -1
- package/script/UpgradeFactoryImpl.s.sol +1 -1
- package/src/BaseCoin.sol +15 -12
- package/src/ContentCoin.sol +10 -0
- package/src/CreatorCoin.sol +28 -7
- package/src/ZoraFactoryImpl.sol +62 -23
- package/src/deployment/CoinsDeployerBase.sol +24 -58
- package/src/hook-registry/ZoraHookRegistry.sol +93 -0
- package/src/hooks/{BaseZoraV4CoinHook.sol → ZoraV4CoinHook.sol} +13 -8
- package/src/interfaces/ICoin.sol +19 -1
- package/src/interfaces/ICreatorCoin.sol +4 -0
- package/src/interfaces/IZoraFactory.sol +32 -10
- package/src/interfaces/IZoraHookRegistry.sol +47 -0
- package/src/libs/CoinConstants.sol +0 -32
- package/src/libs/CoinRewardsV4.sol +53 -15
- package/src/libs/CreatorCoinConstants.sol +0 -1
- package/src/libs/HooksDeployment.sol +13 -65
- package/src/libs/MarketConstants.sol +10 -12
- package/src/libs/V4Liquidity.sol +30 -0
- package/src/version/ContractVersionBase.sol +1 -1
- package/test/CoinUniV4.t.sol +33 -30
- package/test/ContentCoinRewards.t.sol +320 -0
- package/test/CreatorCoin.t.sol +1 -1
- package/test/CreatorCoinRewards.t.sol +375 -0
- package/test/DeploymentHooks.t.sol +10 -10
- package/test/Factory.t.sol +24 -7
- package/test/HooksDeployment.t.sol +4 -4
- package/test/LiquidityMigration.t.sol +4 -9
- package/test/Upgrades.t.sol +44 -48
- package/test/ZoraHookRegistry.t.sol +266 -0
- package/test/utils/BaseTest.sol +25 -42
- package/test/utils/FeeEstimatorHook.sol +4 -6
- package/test/utils/RewardTestHelpers.sol +106 -0
- package/.turbo/turbo-build.log +0 -199
- package/abis/AutoSwapperTest.json +0 -618
- package/abis/BadImpl.json +0 -15
- package/abis/BaseZoraV4CoinHook.json +0 -1664
- package/abis/CoinTest.json +0 -819
- package/abis/CoinUniV4Test.json +0 -1128
- package/abis/ContentCoinHook.json +0 -1733
- package/abis/CreatorCoinTest.json +0 -887
- package/abis/Deploy.json +0 -9
- package/abis/DeployHooks.json +0 -9
- package/abis/DeployScript.json +0 -35
- package/abis/DeployedCoinVersionLookupTest.json +0 -740
- package/abis/DifferentNamespaceVersionLookup.json +0 -39
- package/abis/FactoryTest.json +0 -748
- package/abis/FakeHookNoInterface.json +0 -21
- package/abis/GenerateDeterministicParams.json +0 -9
- package/abis/HooksDeploymentTest.json +0 -645
- package/abis/HooksTest.json +0 -709
- package/abis/InvalidLiquidityMigrationReceiver.json +0 -21
- package/abis/LiquidityMigrationReceiver.json +0 -103
- package/abis/LiquidityMigrationTest.json +0 -889
- package/abis/MockBadFactory.json +0 -15
- package/abis/MultiOwnableTest.json +0 -766
- package/abis/PrintUpgradeCommand.json +0 -9
- package/abis/TestDeployedCoinVersionLookupImplementation.json +0 -39
- package/abis/TestV4Swap.json +0 -9
- package/abis/UpgradeFactoryImpl.json +0 -9
- package/abis/UpgradeHooks.json +0 -35
- package/abis/UpgradesTest.json +0 -723
- package/src/hooks/ContentCoinHook.sol +0 -27
- package/src/hooks/CreatorCoinHook.sol +0 -27
- package/src/libs/CreatorCoinRewards.sol +0 -34
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
|
|
2
|
+
> @zoralabs/coins@2.2.1 build:js /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
3
|
+
> pnpm run wagmi:generate && pnpm run copy-abis && pnpm run prettier:write && tsup
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
> @zoralabs/coins@2.2.1 wagmi:generate /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
7
|
+
> pnpm run build:contracts:minimal && wagmi generate && pnpm exec rename-generated-abi-casing ./package/wagmiGenerated.ts
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
> @zoralabs/coins@2.2.1 build:contracts:minimal /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
11
|
+
> forge build --skip test --skip script --no-metadata
|
|
12
|
+
|
|
13
|
+
Compiling 212 files with Solc 0.8.28
|
|
14
|
+
Solc 0.8.28 finished in 80.04s
|
|
15
|
+
Compiler run successful!
|
|
16
|
+
[33m-[39m Validating plugins
|
|
17
|
+
[32m✔[39m Validating plugins
|
|
18
|
+
[33m-[39m Resolving contracts
|
|
19
|
+
[32m✔[39m Resolving contracts
|
|
20
|
+
[33m-[39m Running plugins
|
|
21
|
+
[32m✔[39m Running plugins
|
|
22
|
+
[33m-[39m Writing to [90mpackage/wagmiGenerated.ts[39m
|
|
23
|
+
[32m✔[39m Writing to [90mpackage/wagmiGenerated.ts[39m
|
|
24
|
+
🔄 Processing 1 file(s) to replace 'Abi' with 'ABI'...
|
|
25
|
+
📝 Processing ./package/wagmiGenerated.ts...
|
|
26
|
+
✅ Updated ./package/wagmiGenerated.ts (10 replacements)
|
|
27
|
+
✨ All files processed successfully!
|
|
28
|
+
|
|
29
|
+
> @zoralabs/coins@2.2.1 copy-abis /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
30
|
+
> pnpm exec bundle-abis
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
> @zoralabs/coins@2.2.1 prettier:write /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
34
|
+
> prettier --write 'src/**/*.sol' 'test/**/*.sol' 'script/**/*.sol'
|
|
35
|
+
|
|
36
|
+
src/BaseCoin.sol 780ms (unchanged)
|
|
37
|
+
src/ContentCoin.sol 81ms (unchanged)
|
|
38
|
+
src/CreatorCoin.sol 95ms (unchanged)
|
|
39
|
+
src/deployment/CoinsDeployerBase.sol 344ms (unchanged)
|
|
40
|
+
src/hook-registry/ZoraHookRegistry.sol 142ms (unchanged)
|
|
41
|
+
src/hooks/deployment/BaseCoinDeployHook.sol 40ms (unchanged)
|
|
42
|
+
src/hooks/deployment/BuySupplyWithSwapRouterHook.sol 257ms (unchanged)
|
|
43
|
+
src/hooks/HookUpgradeGate.sol 33ms (unchanged)
|
|
44
|
+
src/hooks/ZoraV4CoinHook.sol 250ms (unchanged)
|
|
45
|
+
src/interfaces/IAirlock.sol 4ms (unchanged)
|
|
46
|
+
src/interfaces/ICoin.sol 27ms (unchanged)
|
|
47
|
+
src/interfaces/ICoinComments.sol 5ms (unchanged)
|
|
48
|
+
src/interfaces/ICoinDeployHook.sol 1ms (unchanged)
|
|
49
|
+
src/interfaces/ICoinV3.sol 9ms (unchanged)
|
|
50
|
+
src/interfaces/ICreatorCoin.sol 2ms (unchanged)
|
|
51
|
+
src/interfaces/ICreatorCoinHook.sol 2ms (unchanged)
|
|
52
|
+
src/interfaces/IDeployedCoinVersionLookup.sol 3ms (unchanged)
|
|
53
|
+
src/interfaces/IDopplerErrors.sol 2ms (unchanged)
|
|
54
|
+
src/interfaces/IERC7572.sol 3ms (unchanged)
|
|
55
|
+
src/interfaces/IHasRewardsRecipients.sol 3ms (unchanged)
|
|
56
|
+
src/interfaces/IHooksUpgradeGate.sol 3ms (unchanged)
|
|
57
|
+
src/interfaces/IMsgSender.sol 2ms (unchanged)
|
|
58
|
+
src/interfaces/INonfungiblePositionManager.sol 8ms (unchanged)
|
|
59
|
+
src/interfaces/IPoolConfigEncoding.sol 1ms (unchanged)
|
|
60
|
+
src/interfaces/IProtocolRewards.sol 6ms (unchanged)
|
|
61
|
+
src/interfaces/ISwapPathRouter.sol 3ms (unchanged)
|
|
62
|
+
src/interfaces/ISwapRouter.sol 3ms (unchanged)
|
|
63
|
+
src/interfaces/IUniswapV3Factory.sol 9ms (unchanged)
|
|
64
|
+
src/interfaces/IUniswapV3Pool.sol 5ms (unchanged)
|
|
65
|
+
src/interfaces/IUniswapV3SwapCallback.sol 3ms (unchanged)
|
|
66
|
+
src/interfaces/IUpgradeableV4Hook.sol 3ms (unchanged)
|
|
67
|
+
src/interfaces/IWETH.sol 9ms (unchanged)
|
|
68
|
+
src/interfaces/IZoraFactory.sol 25ms (unchanged)
|
|
69
|
+
src/interfaces/IZoraHookRegistry.sol 11ms (unchanged)
|
|
70
|
+
src/interfaces/IZoraV4CoinHook.sol 15ms (unchanged)
|
|
71
|
+
src/libs/CoinCommon.sol 8ms (unchanged)
|
|
72
|
+
src/libs/CoinConfigurationVersions.sol 69ms (unchanged)
|
|
73
|
+
src/libs/CoinConstants.sol 4ms (unchanged)
|
|
74
|
+
src/libs/CoinDopplerMultiCurve.sol 186ms (unchanged)
|
|
75
|
+
src/libs/CoinRewardsV4.sol 189ms (unchanged)
|
|
76
|
+
src/libs/CoinSetup.sol 53ms (unchanged)
|
|
77
|
+
src/libs/CreatorCoinConstants.sol 4ms (unchanged)
|
|
78
|
+
src/libs/DopplerMath.sol 161ms (unchanged)
|
|
79
|
+
src/libs/HooksDeployment.sol 128ms (unchanged)
|
|
80
|
+
src/libs/MarketConstants.sol 5ms (unchanged)
|
|
81
|
+
src/libs/PoolStateReader.sol 6ms (unchanged)
|
|
82
|
+
src/libs/UniV4SwapHelper.sol 47ms (unchanged)
|
|
83
|
+
src/libs/UniV4SwapToCurrency.sol 82ms (unchanged)
|
|
84
|
+
src/libs/V4Liquidity.sol 250ms (unchanged)
|
|
85
|
+
src/proxy/ZoraFactory.sol 20ms (unchanged)
|
|
86
|
+
src/types/LpPosition.sol 1ms (unchanged)
|
|
87
|
+
src/types/PoolConfiguration.sol 3ms (unchanged)
|
|
88
|
+
src/types/PoolState.sol 4ms (unchanged)
|
|
89
|
+
src/utils/AutoSwapper.sol 29ms (unchanged)
|
|
90
|
+
src/utils/DeployedCoinVersionLookup.sol 8ms (unchanged)
|
|
91
|
+
src/utils/MultiOwnable.sol 66ms (unchanged)
|
|
92
|
+
src/utils/uniswap/BitMath.sol 23ms (unchanged)
|
|
93
|
+
src/utils/uniswap/BytesLib.sol 13ms (unchanged)
|
|
94
|
+
src/utils/uniswap/CustomRevert.sol 55ms (unchanged)
|
|
95
|
+
src/utils/uniswap/FixedPoint96.sol 2ms (unchanged)
|
|
96
|
+
src/utils/uniswap/FullMath.sol 35ms (unchanged)
|
|
97
|
+
src/utils/uniswap/LiquidityAmounts.sol 94ms (unchanged)
|
|
98
|
+
src/utils/uniswap/Path.sol 8ms (unchanged)
|
|
99
|
+
src/utils/uniswap/SafeCast.sol 19ms (unchanged)
|
|
100
|
+
src/utils/uniswap/SqrtPriceMath.sol 118ms (unchanged)
|
|
101
|
+
src/utils/uniswap/TickMath.sol 142ms (unchanged)
|
|
102
|
+
src/utils/uniswap/UnsafeMath.sol 6ms (unchanged)
|
|
103
|
+
src/version/ContractVersionBase.sol 1ms (unchanged)
|
|
104
|
+
src/ZoraFactoryImpl.sol 205ms (unchanged)
|
|
105
|
+
test/AutoSwapper.t.sol 64ms (unchanged)
|
|
106
|
+
test/Coin.t.sol 200ms (unchanged)
|
|
107
|
+
test/CoinUniV4.t.sol 633ms (unchanged)
|
|
108
|
+
test/ContentCoinRewards.t.sol 190ms (unchanged)
|
|
109
|
+
test/CreatorCoin.t.sol 237ms (unchanged)
|
|
110
|
+
test/CreatorCoinRewards.t.sol 159ms (unchanged)
|
|
111
|
+
test/DeploymentHooks.t.sol 131ms (unchanged)
|
|
112
|
+
test/Factory.t.sol 161ms (unchanged)
|
|
113
|
+
test/HooksDeployment.t.sol 43ms (unchanged)
|
|
114
|
+
test/LiquidityMigration.t.sol 263ms (unchanged)
|
|
115
|
+
test/mocks/MockERC20.sol 4ms (unchanged)
|
|
116
|
+
test/MultiOwnable.t.sol 138ms (unchanged)
|
|
117
|
+
test/Upgrades.t.sol 191ms (unchanged)
|
|
118
|
+
test/utils/BaseTest.sol 272ms (unchanged)
|
|
119
|
+
test/utils/ContractAddresses.sol 4ms (unchanged)
|
|
120
|
+
test/utils/DeployedCoinVersionLookup.t.sol 73ms (unchanged)
|
|
121
|
+
test/utils/FeeEstimatorHook.sol 44ms (unchanged)
|
|
122
|
+
test/utils/ProtocolRewards.sol 480ms (unchanged)
|
|
123
|
+
test/utils/ProxyShim.sol 5ms (unchanged)
|
|
124
|
+
test/utils/RewardTestHelpers.sol 94ms (unchanged)
|
|
125
|
+
test/ZoraHookRegistry.t.sol 221ms (unchanged)
|
|
126
|
+
script/Deploy.s.sol 8ms (unchanged)
|
|
127
|
+
script/DeployAutoSwapper.s.sol 12ms (unchanged)
|
|
128
|
+
script/DeployDevFactory.s.sol 4ms (unchanged)
|
|
129
|
+
script/DeployPostDeploymentHooks.s.sol 4ms (unchanged)
|
|
130
|
+
script/DeployUpgradeGate.s.sol 5ms (unchanged)
|
|
131
|
+
script/GenerateDeterministicParams.s.sol 20ms (unchanged)
|
|
132
|
+
script/PrintRegisterUpgradePath.s.sol 13ms (unchanged)
|
|
133
|
+
script/PrintUpgradeCommand.s.sol 5ms (unchanged)
|
|
134
|
+
script/TestBackingCoinSwap.s.sol 63ms (unchanged)
|
|
135
|
+
script/TestV4Swap.s.sol 65ms (unchanged)
|
|
136
|
+
script/UpgradeCoinImpl.sol 7ms (unchanged)
|
|
137
|
+
script/UpgradeFactoryImpl.s.sol 10ms (unchanged)
|
|
138
|
+
script/UpgradeHooks.s.sol 7ms (unchanged)
|
|
139
|
+
[34mCLI[39m Building entry: package/index.ts
|
|
140
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
141
|
+
[34mCLI[39m tsup v8.4.0
|
|
142
|
+
[34mCLI[39m Using tsup config: /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins/tsup.config.ts
|
|
143
|
+
[34mCLI[39m Target: es2021
|
|
144
|
+
[34mCLI[39m Cleaning output folder
|
|
145
|
+
[34mCJS[39m Build start
|
|
146
|
+
[34mESM[39m Build start
|
|
147
|
+
[32mESM[39m [1mdist/index.js [22m[32m130.01 KB[39m
|
|
148
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m232.56 KB[39m
|
|
149
|
+
[32mESM[39m ⚡️ Build success in 77ms
|
|
150
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m131.44 KB[39m
|
|
151
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m232.71 KB[39m
|
|
152
|
+
[32mCJS[39m ⚡️ Build success in 82ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
# @zoralabs/coins
|
|
2
2
|
|
|
3
|
+
## 2.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7ec6134b: Flatten hooks into single hook implementation
|
|
8
|
+
|
|
9
|
+
Consolidates multiple hook contracts into a single unified hook for simplified architecture and better maintainability.
|
|
10
|
+
|
|
11
|
+
- ae9424ab: Ignore collecting from liquidity positions with empty fee growth
|
|
12
|
+
|
|
13
|
+
## 2.2.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- adf98059: Adds platform referral and trade referral functionality to creator coins, and unifies the fee structure between content and creator coins with a simplified 1% total fee.
|
|
18
|
+
|
|
19
|
+
## New Features:
|
|
20
|
+
|
|
21
|
+
- Platform referral and trade referral functionality for creator coins (previously only supported on content coins)
|
|
22
|
+
- Unified fee structure: Both content and creator coins use identical 1% fee distribution
|
|
23
|
+
|
|
24
|
+
### Fee Changes - Content Coins
|
|
25
|
+
|
|
26
|
+
| Recipient | Before (3% total fee) | After (1% total fee) |
|
|
27
|
+
| ----------------- | --------------------- | -------------------- |
|
|
28
|
+
| | % of Fee | % of Fee |
|
|
29
|
+
| Creator | 33.33% | 50% |
|
|
30
|
+
| Platform Referral | 10% | 20% |
|
|
31
|
+
| Trade Referral | 10% | 4% |
|
|
32
|
+
| Doppler | 3.33% | 1% |
|
|
33
|
+
| Protocol | 10% | 5% |
|
|
34
|
+
| LP Rewards | 33.33% | 20% |
|
|
35
|
+
|
|
36
|
+
### Fee Changes - Creator Coins
|
|
37
|
+
|
|
38
|
+
| Recipient | Before (3% total fee) | After (1% total fee) |
|
|
39
|
+
| ----------------- | --------------------- | -------------------- |
|
|
40
|
+
| | % of Fee | % of Fee |
|
|
41
|
+
| Creator | 33.33% | 50% |
|
|
42
|
+
| Platform Referral | - | 20% |
|
|
43
|
+
| Trade Referral | - | 4% |
|
|
44
|
+
| Doppler | - | 1% |
|
|
45
|
+
| Protocol | 33.33% | 5% |
|
|
46
|
+
| LP Rewards | 33.33% | 20% |
|
|
47
|
+
|
|
48
|
+
**Implementation Changes:**
|
|
49
|
+
|
|
50
|
+
- Consolidated reward logic into `CoinRewardsV4.distributeMarketRewards()`
|
|
51
|
+
|
|
52
|
+
**Backwards Compatibility:**
|
|
53
|
+
|
|
54
|
+
- Existing `CreatorCoinRewards` event is still emitted for backwards compatibility when rewards are distributed for a CreatorCoin
|
|
55
|
+
- Additionally, when market rewards are distributed for a CreatorCoin, the same `CoinMarketRewardsV4` event that is already emitted for ContentCoins is now also emitted
|
|
56
|
+
|
|
57
|
+
## 2.1.2
|
|
58
|
+
|
|
59
|
+
### Patch Changes
|
|
60
|
+
|
|
61
|
+
- 8b85ab94: Removed some unused constants
|
|
62
|
+
|
|
3
63
|
## 2.1.1
|
|
4
64
|
|
|
5
65
|
### Patch Changes
|
package/abis/BaseCoin.json
CHANGED
|
@@ -131,6 +131,19 @@
|
|
|
131
131
|
"outputs": [],
|
|
132
132
|
"stateMutability": "nonpayable"
|
|
133
133
|
},
|
|
134
|
+
{
|
|
135
|
+
"type": "function",
|
|
136
|
+
"name": "coinType",
|
|
137
|
+
"inputs": [],
|
|
138
|
+
"outputs": [
|
|
139
|
+
{
|
|
140
|
+
"name": "",
|
|
141
|
+
"type": "uint8",
|
|
142
|
+
"internalType": "enum IHasCoinType.CoinType"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"stateMutability": "view"
|
|
146
|
+
},
|
|
134
147
|
{
|
|
135
148
|
"type": "function",
|
|
136
149
|
"name": "contractURI",
|
|
@@ -890,6 +903,19 @@
|
|
|
890
903
|
],
|
|
891
904
|
"stateMutability": "view"
|
|
892
905
|
},
|
|
906
|
+
{
|
|
907
|
+
"type": "function",
|
|
908
|
+
"name": "totalSupplyForPositions",
|
|
909
|
+
"inputs": [],
|
|
910
|
+
"outputs": [
|
|
911
|
+
{
|
|
912
|
+
"name": "",
|
|
913
|
+
"type": "uint256",
|
|
914
|
+
"internalType": "uint256"
|
|
915
|
+
}
|
|
916
|
+
],
|
|
917
|
+
"stateMutability": "view"
|
|
918
|
+
},
|
|
893
919
|
{
|
|
894
920
|
"type": "function",
|
|
895
921
|
"name": "transfer",
|
package/abis/BaseTest.json
CHANGED
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
"type": "function",
|
|
94
|
-
"name": "
|
|
94
|
+
"name": "getSalt",
|
|
95
95
|
"inputs": [
|
|
96
96
|
{
|
|
97
97
|
"name": "trustedMessageSenders",
|
|
@@ -101,12 +101,7 @@
|
|
|
101
101
|
],
|
|
102
102
|
"outputs": [
|
|
103
103
|
{
|
|
104
|
-
"name": "
|
|
105
|
-
"type": "bytes32",
|
|
106
|
-
"internalType": "bytes32"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"name": "creatorCoinSalt",
|
|
104
|
+
"name": "hookSalt",
|
|
110
105
|
"type": "bytes32",
|
|
111
106
|
"internalType": "bytes32"
|
|
112
107
|
}
|
package/abis/CoinConstants.json
CHANGED
|
@@ -12,32 +12,6 @@
|
|
|
12
12
|
],
|
|
13
13
|
"stateMutability": "view"
|
|
14
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
|
-
},
|
|
41
15
|
{
|
|
42
16
|
"type": "function",
|
|
43
17
|
"name": "MAX_TOTAL_SUPPLY",
|
|
@@ -64,32 +38,6 @@
|
|
|
64
38
|
],
|
|
65
39
|
"stateMutability": "view"
|
|
66
40
|
},
|
|
67
|
-
{
|
|
68
|
-
"type": "function",
|
|
69
|
-
"name": "PLATFORM_REFERRER_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": "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
41
|
{
|
|
94
42
|
"type": "function",
|
|
95
43
|
"name": "POOL_LAUNCH_SUPPLY",
|
|
@@ -102,57 +50,5 @@
|
|
|
102
50
|
}
|
|
103
51
|
],
|
|
104
52
|
"stateMutability": "view"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"type": "function",
|
|
108
|
-
"name": "PROTOCOL_FEE_BPS",
|
|
109
|
-
"inputs": [],
|
|
110
|
-
"outputs": [
|
|
111
|
-
{
|
|
112
|
-
"name": "",
|
|
113
|
-
"type": "uint256",
|
|
114
|
-
"internalType": "uint256"
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
"stateMutability": "view"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"type": "function",
|
|
121
|
-
"name": "TOKEN_CREATOR_FEE_BPS",
|
|
122
|
-
"inputs": [],
|
|
123
|
-
"outputs": [
|
|
124
|
-
{
|
|
125
|
-
"name": "",
|
|
126
|
-
"type": "uint256",
|
|
127
|
-
"internalType": "uint256"
|
|
128
|
-
}
|
|
129
|
-
],
|
|
130
|
-
"stateMutability": "view"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"type": "function",
|
|
134
|
-
"name": "TOTAL_FEE_BPS",
|
|
135
|
-
"inputs": [],
|
|
136
|
-
"outputs": [
|
|
137
|
-
{
|
|
138
|
-
"name": "",
|
|
139
|
-
"type": "uint256",
|
|
140
|
-
"internalType": "uint256"
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
"stateMutability": "view"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"type": "function",
|
|
147
|
-
"name": "TRADE_REFERRER_FEE_BPS",
|
|
148
|
-
"inputs": [],
|
|
149
|
-
"outputs": [
|
|
150
|
-
{
|
|
151
|
-
"name": "",
|
|
152
|
-
"type": "uint256",
|
|
153
|
-
"internalType": "uint256"
|
|
154
|
-
}
|
|
155
|
-
],
|
|
156
|
-
"stateMutability": "view"
|
|
157
53
|
}
|
|
158
54
|
]
|
package/abis/ContentCoin.json
CHANGED
|
@@ -157,6 +157,19 @@
|
|
|
157
157
|
"outputs": [],
|
|
158
158
|
"stateMutability": "nonpayable"
|
|
159
159
|
},
|
|
160
|
+
{
|
|
161
|
+
"type": "function",
|
|
162
|
+
"name": "coinType",
|
|
163
|
+
"inputs": [],
|
|
164
|
+
"outputs": [
|
|
165
|
+
{
|
|
166
|
+
"name": "",
|
|
167
|
+
"type": "uint8",
|
|
168
|
+
"internalType": "enum IHasCoinType.CoinType"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"stateMutability": "pure"
|
|
172
|
+
},
|
|
160
173
|
{
|
|
161
174
|
"type": "function",
|
|
162
175
|
"name": "contractURI",
|
|
@@ -916,6 +929,19 @@
|
|
|
916
929
|
],
|
|
917
930
|
"stateMutability": "view"
|
|
918
931
|
},
|
|
932
|
+
{
|
|
933
|
+
"type": "function",
|
|
934
|
+
"name": "totalSupplyForPositions",
|
|
935
|
+
"inputs": [],
|
|
936
|
+
"outputs": [
|
|
937
|
+
{
|
|
938
|
+
"name": "",
|
|
939
|
+
"type": "uint256",
|
|
940
|
+
"internalType": "uint256"
|
|
941
|
+
}
|
|
942
|
+
],
|
|
943
|
+
"stateMutability": "pure"
|
|
944
|
+
},
|
|
919
945
|
{
|
|
920
946
|
"type": "function",
|
|
921
947
|
"name": "transfer",
|
package/abis/CreatorCoin.json
CHANGED
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
"type": "constructor",
|
|
4
4
|
"inputs": [
|
|
5
5
|
{
|
|
6
|
-
"name": "
|
|
6
|
+
"name": "protocolRewardRecipient_",
|
|
7
7
|
"type": "address",
|
|
8
8
|
"internalType": "address"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
|
-
"name": "
|
|
11
|
+
"name": "protocolRewards_",
|
|
12
12
|
"type": "address",
|
|
13
13
|
"internalType": "address"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
|
-
"name": "
|
|
16
|
+
"name": "poolManager_",
|
|
17
17
|
"type": "address",
|
|
18
18
|
"internalType": "contract IPoolManager"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
|
-
"name": "
|
|
21
|
+
"name": "airlock_",
|
|
22
22
|
"type": "address",
|
|
23
23
|
"internalType": "address"
|
|
24
24
|
}
|
|
@@ -170,6 +170,19 @@
|
|
|
170
170
|
],
|
|
171
171
|
"stateMutability": "nonpayable"
|
|
172
172
|
},
|
|
173
|
+
{
|
|
174
|
+
"type": "function",
|
|
175
|
+
"name": "coinType",
|
|
176
|
+
"inputs": [],
|
|
177
|
+
"outputs": [
|
|
178
|
+
{
|
|
179
|
+
"name": "",
|
|
180
|
+
"type": "uint8",
|
|
181
|
+
"internalType": "enum IHasCoinType.CoinType"
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
"stateMutability": "pure"
|
|
185
|
+
},
|
|
173
186
|
{
|
|
174
187
|
"type": "function",
|
|
175
188
|
"name": "contractURI",
|
|
@@ -955,6 +968,19 @@
|
|
|
955
968
|
],
|
|
956
969
|
"stateMutability": "view"
|
|
957
970
|
},
|
|
971
|
+
{
|
|
972
|
+
"type": "function",
|
|
973
|
+
"name": "totalSupplyForPositions",
|
|
974
|
+
"inputs": [],
|
|
975
|
+
"outputs": [
|
|
976
|
+
{
|
|
977
|
+
"name": "",
|
|
978
|
+
"type": "uint256",
|
|
979
|
+
"internalType": "uint256"
|
|
980
|
+
}
|
|
981
|
+
],
|
|
982
|
+
"stateMutability": "pure"
|
|
983
|
+
},
|
|
958
984
|
{
|
|
959
985
|
"type": "function",
|
|
960
986
|
"name": "transfer",
|
package/abis/ICoin.json
CHANGED
|
@@ -25,6 +25,19 @@
|
|
|
25
25
|
"outputs": [],
|
|
26
26
|
"stateMutability": "nonpayable"
|
|
27
27
|
},
|
|
28
|
+
{
|
|
29
|
+
"type": "function",
|
|
30
|
+
"name": "coinType",
|
|
31
|
+
"inputs": [],
|
|
32
|
+
"outputs": [
|
|
33
|
+
{
|
|
34
|
+
"name": "",
|
|
35
|
+
"type": "uint8",
|
|
36
|
+
"internalType": "enum IHasCoinType.CoinType"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"stateMutability": "view"
|
|
40
|
+
},
|
|
28
41
|
{
|
|
29
42
|
"type": "function",
|
|
30
43
|
"name": "contractURI",
|
|
@@ -446,6 +459,19 @@
|
|
|
446
459
|
],
|
|
447
460
|
"stateMutability": "view"
|
|
448
461
|
},
|
|
462
|
+
{
|
|
463
|
+
"type": "function",
|
|
464
|
+
"name": "totalSupplyForPositions",
|
|
465
|
+
"inputs": [],
|
|
466
|
+
"outputs": [
|
|
467
|
+
{
|
|
468
|
+
"name": "",
|
|
469
|
+
"type": "uint256",
|
|
470
|
+
"internalType": "uint256"
|
|
471
|
+
}
|
|
472
|
+
],
|
|
473
|
+
"stateMutability": "view"
|
|
474
|
+
},
|
|
449
475
|
{
|
|
450
476
|
"type": "event",
|
|
451
477
|
"name": "CoinBuy",
|
package/abis/ICoinV3.json
CHANGED
|
@@ -95,6 +95,19 @@
|
|
|
95
95
|
"outputs": [],
|
|
96
96
|
"stateMutability": "nonpayable"
|
|
97
97
|
},
|
|
98
|
+
{
|
|
99
|
+
"type": "function",
|
|
100
|
+
"name": "coinType",
|
|
101
|
+
"inputs": [],
|
|
102
|
+
"outputs": [
|
|
103
|
+
{
|
|
104
|
+
"name": "",
|
|
105
|
+
"type": "uint8",
|
|
106
|
+
"internalType": "enum IHasCoinType.CoinType"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"stateMutability": "view"
|
|
110
|
+
},
|
|
98
111
|
{
|
|
99
112
|
"type": "function",
|
|
100
113
|
"name": "contractURI",
|
|
@@ -690,6 +703,19 @@
|
|
|
690
703
|
],
|
|
691
704
|
"stateMutability": "view"
|
|
692
705
|
},
|
|
706
|
+
{
|
|
707
|
+
"type": "function",
|
|
708
|
+
"name": "totalSupplyForPositions",
|
|
709
|
+
"inputs": [],
|
|
710
|
+
"outputs": [
|
|
711
|
+
{
|
|
712
|
+
"name": "",
|
|
713
|
+
"type": "uint256",
|
|
714
|
+
"internalType": "uint256"
|
|
715
|
+
}
|
|
716
|
+
],
|
|
717
|
+
"stateMutability": "view"
|
|
718
|
+
},
|
|
693
719
|
{
|
|
694
720
|
"type": "function",
|
|
695
721
|
"name": "v3Factory",
|
package/abis/ICreatorCoin.json
CHANGED
|
@@ -38,6 +38,19 @@
|
|
|
38
38
|
],
|
|
39
39
|
"stateMutability": "nonpayable"
|
|
40
40
|
},
|
|
41
|
+
{
|
|
42
|
+
"type": "function",
|
|
43
|
+
"name": "coinType",
|
|
44
|
+
"inputs": [],
|
|
45
|
+
"outputs": [
|
|
46
|
+
{
|
|
47
|
+
"name": "",
|
|
48
|
+
"type": "uint8",
|
|
49
|
+
"internalType": "enum IHasCoinType.CoinType"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"stateMutability": "view"
|
|
53
|
+
},
|
|
41
54
|
{
|
|
42
55
|
"type": "function",
|
|
43
56
|
"name": "contractURI",
|
|
@@ -77,6 +90,19 @@
|
|
|
77
90
|
],
|
|
78
91
|
"stateMutability": "view"
|
|
79
92
|
},
|
|
93
|
+
{
|
|
94
|
+
"type": "function",
|
|
95
|
+
"name": "getClaimableAmount",
|
|
96
|
+
"inputs": [],
|
|
97
|
+
"outputs": [
|
|
98
|
+
{
|
|
99
|
+
"name": "",
|
|
100
|
+
"type": "uint256",
|
|
101
|
+
"internalType": "uint256"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"stateMutability": "view"
|
|
105
|
+
},
|
|
80
106
|
{
|
|
81
107
|
"type": "function",
|
|
82
108
|
"name": "getPayoutSwapPath",
|
|
@@ -459,6 +485,19 @@
|
|
|
459
485
|
],
|
|
460
486
|
"stateMutability": "view"
|
|
461
487
|
},
|
|
488
|
+
{
|
|
489
|
+
"type": "function",
|
|
490
|
+
"name": "totalSupplyForPositions",
|
|
491
|
+
"inputs": [],
|
|
492
|
+
"outputs": [
|
|
493
|
+
{
|
|
494
|
+
"name": "",
|
|
495
|
+
"type": "uint256",
|
|
496
|
+
"internalType": "uint256"
|
|
497
|
+
}
|
|
498
|
+
],
|
|
499
|
+
"stateMutability": "view"
|
|
500
|
+
},
|
|
462
501
|
{
|
|
463
502
|
"type": "event",
|
|
464
503
|
"name": "CoinBuy",
|