@zoralabs/coins 0.1.1 → 0.2.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/.turbo/turbo-build.log +33 -33
- package/CHANGELOG.md +7 -0
- package/abis/Coin.json +2 -14
- package/abis/ICoin.json +2 -14
- package/abis/IZoraFactory.json +9 -9
- package/abis/ZoraFactoryImpl.json +9 -9
- package/addresses/8453.json +2 -2
- package/addresses/84532.json +2 -2
- package/dist/index.cjs +11 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -28
- package/dist/index.js.map +1 -1
- package/dist/wagmiGenerated.d.ts +10 -20
- package/dist/wagmiGenerated.d.ts.map +1 -1
- package/package/wagmiGenerated.ts +11 -28
- package/package.json +1 -1
- package/src/Coin.sol +2 -2
- package/src/ZoraFactoryImpl.sol +2 -2
- package/src/interfaces/ICoin.sol +6 -8
- package/src/interfaces/IZoraFactory.sol +8 -8
- package/src/utils/CoinConstants.sol +1 -1
- package/src/version/ContractVersionBase.sol +1 -1
- package/test/Coin.t.sol +7 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
> @zoralabs/coins@0.
|
|
2
|
+
> @zoralabs/coins@0.2.0 build /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
3
3
|
> pnpm run wagmi:generate && pnpm run copy-abis && pnpm run prettier:write && tsup
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @zoralabs/coins@0.
|
|
6
|
+
> @zoralabs/coins@0.2.0 wagmi:generate /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
7
7
|
> FOUNDRY_PROFILE=dev forge build && wagmi generate && pnpm exec rename-generated-abi-casing ./package/wagmiGenerated.ts
|
|
8
8
|
|
|
9
9
|
Compiling 79 files with Solc 0.8.28
|
|
10
10
|
installing solc version "0.8.28"
|
|
11
11
|
Successfully installed solc 0.8.28
|
|
12
|
-
Solc 0.8.28 finished in
|
|
12
|
+
Solc 0.8.28 finished in 102.91s
|
|
13
13
|
Compiler run successful with warnings:
|
|
14
14
|
Warning (9302): Return value of low-level calls not used.
|
|
15
15
|
--> test/Coin.t.sol:357:9:
|
|
@@ -30,36 +30,36 @@ Warning (9302): Return value of low-level calls not used.
|
|
|
30
30
|
✅ Updated ./package/wagmiGenerated.ts (2 replacements)
|
|
31
31
|
✨ All files processed successfully!
|
|
32
32
|
|
|
33
|
-
> @zoralabs/coins@0.
|
|
33
|
+
> @zoralabs/coins@0.2.0 copy-abis /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
34
34
|
> pnpm exec bundle-abis
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
> @zoralabs/coins@0.
|
|
37
|
+
> @zoralabs/coins@0.2.0 prettier:write /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
|
|
38
38
|
> prettier --write 'src/**/*.sol' 'test/**/*.sol' 'script/**/*.sol'
|
|
39
39
|
|
|
40
|
-
src/Coin.sol
|
|
41
|
-
src/interfaces/ICoin.sol
|
|
42
|
-
src/interfaces/ICoinComments.sol
|
|
43
|
-
src/interfaces/IERC7572.sol
|
|
44
|
-
src/interfaces/INonfungiblePositionManager.sol
|
|
45
|
-
src/interfaces/IProtocolRewards.sol
|
|
46
|
-
src/interfaces/ISwapRouter.sol
|
|
47
|
-
src/interfaces/IUniswapV3Pool.sol
|
|
40
|
+
src/Coin.sol 1716ms (unchanged)
|
|
41
|
+
src/interfaces/ICoin.sol 71ms (unchanged)
|
|
42
|
+
src/interfaces/ICoinComments.sol 5ms (unchanged)
|
|
43
|
+
src/interfaces/IERC7572.sol 4ms (unchanged)
|
|
44
|
+
src/interfaces/INonfungiblePositionManager.sol 28ms (unchanged)
|
|
45
|
+
src/interfaces/IProtocolRewards.sol 13ms (unchanged)
|
|
46
|
+
src/interfaces/ISwapRouter.sol 12ms (unchanged)
|
|
47
|
+
src/interfaces/IUniswapV3Pool.sol 13ms (unchanged)
|
|
48
48
|
src/interfaces/IUniswapV3SwapCallback.sol 5ms (unchanged)
|
|
49
|
-
src/interfaces/IWETH.sol
|
|
50
|
-
src/interfaces/IZoraFactory.sol
|
|
51
|
-
src/proxy/ZoraFactory.sol
|
|
52
|
-
src/utils/CoinConstants.sol
|
|
53
|
-
src/utils/MultiOwnable.sol
|
|
54
|
-
src/utils/TickMath.sol
|
|
55
|
-
src/version/ContractVersionBase.sol
|
|
56
|
-
src/ZoraFactoryImpl.sol
|
|
57
|
-
test/Coin.t.sol
|
|
58
|
-
test/Factory.t.sol
|
|
59
|
-
test/MultiOwnable.t.sol
|
|
60
|
-
test/utils/BaseTest.sol
|
|
61
|
-
test/utils/ProtocolRewards.sol
|
|
62
|
-
script/Deploy.s.sol
|
|
49
|
+
src/interfaces/IWETH.sol 13ms (unchanged)
|
|
50
|
+
src/interfaces/IZoraFactory.sol 16ms (unchanged)
|
|
51
|
+
src/proxy/ZoraFactory.sol 17ms (unchanged)
|
|
52
|
+
src/utils/CoinConstants.sol 16ms (unchanged)
|
|
53
|
+
src/utils/MultiOwnable.sol 163ms (unchanged)
|
|
54
|
+
src/utils/TickMath.sol 359ms (unchanged)
|
|
55
|
+
src/version/ContractVersionBase.sol 4ms (unchanged)
|
|
56
|
+
src/ZoraFactoryImpl.sol 128ms (unchanged)
|
|
57
|
+
test/Coin.t.sol 1035ms (unchanged)
|
|
58
|
+
test/Factory.t.sol 443ms (unchanged)
|
|
59
|
+
test/MultiOwnable.t.sol 210ms (unchanged)
|
|
60
|
+
test/utils/BaseTest.sol 290ms (unchanged)
|
|
61
|
+
test/utils/ProtocolRewards.sol 1058ms (unchanged)
|
|
62
|
+
script/Deploy.s.sol 14ms (unchanged)
|
|
63
63
|
CLI Building entry: package/index.ts
|
|
64
64
|
CLI Using tsconfig: tsconfig.json
|
|
65
65
|
CLI tsup v7.3.0
|
|
@@ -68,9 +68,9 @@ CLI Target: es2021
|
|
|
68
68
|
CLI Cleaning output folder
|
|
69
69
|
CJS Build start
|
|
70
70
|
ESM Build start
|
|
71
|
-
ESM dist/index.js
|
|
72
|
-
ESM dist/index.js.map 56.
|
|
73
|
-
ESM ⚡️ Build success in
|
|
74
|
-
CJS dist/index.cjs
|
|
75
|
-
CJS dist/index.cjs.map 56.
|
|
76
|
-
CJS ⚡️ Build success in
|
|
71
|
+
ESM dist/index.js 30.79 KB
|
|
72
|
+
ESM dist/index.js.map 56.06 KB
|
|
73
|
+
ESM ⚡️ Build success in 45ms
|
|
74
|
+
CJS dist/index.cjs 31.84 KB
|
|
75
|
+
CJS dist/index.cjs.map 56.17 KB
|
|
76
|
+
CJS ⚡️ Build success in 48ms
|
package/CHANGELOG.md
CHANGED
package/abis/Coin.json
CHANGED
|
@@ -999,12 +999,6 @@
|
|
|
999
999
|
"type": "uint256",
|
|
1000
1000
|
"indexed": false,
|
|
1001
1001
|
"internalType": "uint256"
|
|
1002
|
-
},
|
|
1003
|
-
{
|
|
1004
|
-
"name": "comment",
|
|
1005
|
-
"type": "string",
|
|
1006
|
-
"indexed": false,
|
|
1007
|
-
"internalType": "string"
|
|
1008
1002
|
}
|
|
1009
1003
|
],
|
|
1010
1004
|
"anonymous": false
|
|
@@ -1014,7 +1008,7 @@
|
|
|
1014
1008
|
"name": "CoinMarketRewards",
|
|
1015
1009
|
"inputs": [
|
|
1016
1010
|
{
|
|
1017
|
-
"name": "
|
|
1011
|
+
"name": "payoutRecipient",
|
|
1018
1012
|
"type": "address",
|
|
1019
1013
|
"indexed": true,
|
|
1020
1014
|
"internalType": "address"
|
|
@@ -1158,12 +1152,6 @@
|
|
|
1158
1152
|
"type": "uint256",
|
|
1159
1153
|
"indexed": false,
|
|
1160
1154
|
"internalType": "uint256"
|
|
1161
|
-
},
|
|
1162
|
-
{
|
|
1163
|
-
"name": "comment",
|
|
1164
|
-
"type": "string",
|
|
1165
|
-
"indexed": false,
|
|
1166
|
-
"internalType": "string"
|
|
1167
1155
|
}
|
|
1168
1156
|
],
|
|
1169
1157
|
"anonymous": false
|
|
@@ -1173,7 +1161,7 @@
|
|
|
1173
1161
|
"name": "CoinTradeRewards",
|
|
1174
1162
|
"inputs": [
|
|
1175
1163
|
{
|
|
1176
|
-
"name": "
|
|
1164
|
+
"name": "payoutRecipient",
|
|
1177
1165
|
"type": "address",
|
|
1178
1166
|
"indexed": true,
|
|
1179
1167
|
"internalType": "address"
|
package/abis/ICoin.json
CHANGED
|
@@ -161,12 +161,6 @@
|
|
|
161
161
|
"type": "uint256",
|
|
162
162
|
"indexed": false,
|
|
163
163
|
"internalType": "uint256"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"name": "comment",
|
|
167
|
-
"type": "string",
|
|
168
|
-
"indexed": false,
|
|
169
|
-
"internalType": "string"
|
|
170
164
|
}
|
|
171
165
|
],
|
|
172
166
|
"anonymous": false
|
|
@@ -176,7 +170,7 @@
|
|
|
176
170
|
"name": "CoinMarketRewards",
|
|
177
171
|
"inputs": [
|
|
178
172
|
{
|
|
179
|
-
"name": "
|
|
173
|
+
"name": "payoutRecipient",
|
|
180
174
|
"type": "address",
|
|
181
175
|
"indexed": true,
|
|
182
176
|
"internalType": "address"
|
|
@@ -320,12 +314,6 @@
|
|
|
320
314
|
"type": "uint256",
|
|
321
315
|
"indexed": false,
|
|
322
316
|
"internalType": "uint256"
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
"name": "comment",
|
|
326
|
-
"type": "string",
|
|
327
|
-
"indexed": false,
|
|
328
|
-
"internalType": "string"
|
|
329
317
|
}
|
|
330
318
|
],
|
|
331
319
|
"anonymous": false
|
|
@@ -335,7 +323,7 @@
|
|
|
335
323
|
"name": "CoinTradeRewards",
|
|
336
324
|
"inputs": [
|
|
337
325
|
{
|
|
338
|
-
"name": "
|
|
326
|
+
"name": "payoutRecipient",
|
|
339
327
|
"type": "address",
|
|
340
328
|
"indexed": true,
|
|
341
329
|
"internalType": "address"
|
package/abis/IZoraFactory.json
CHANGED
|
@@ -63,13 +63,7 @@
|
|
|
63
63
|
"name": "CoinCreated",
|
|
64
64
|
"inputs": [
|
|
65
65
|
{
|
|
66
|
-
"name": "
|
|
67
|
-
"type": "address",
|
|
68
|
-
"indexed": true,
|
|
69
|
-
"internalType": "address"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"name": "creator",
|
|
66
|
+
"name": "caller",
|
|
73
67
|
"type": "address",
|
|
74
68
|
"indexed": true,
|
|
75
69
|
"internalType": "address"
|
|
@@ -83,7 +77,7 @@
|
|
|
83
77
|
{
|
|
84
78
|
"name": "platformReferrer",
|
|
85
79
|
"type": "address",
|
|
86
|
-
"indexed":
|
|
80
|
+
"indexed": true,
|
|
87
81
|
"internalType": "address"
|
|
88
82
|
},
|
|
89
83
|
{
|
|
@@ -93,7 +87,7 @@
|
|
|
93
87
|
"internalType": "address"
|
|
94
88
|
},
|
|
95
89
|
{
|
|
96
|
-
"name": "
|
|
90
|
+
"name": "uri",
|
|
97
91
|
"type": "string",
|
|
98
92
|
"indexed": false,
|
|
99
93
|
"internalType": "string"
|
|
@@ -121,6 +115,12 @@
|
|
|
121
115
|
"type": "address",
|
|
122
116
|
"indexed": false,
|
|
123
117
|
"internalType": "address"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "version",
|
|
121
|
+
"type": "string",
|
|
122
|
+
"indexed": false,
|
|
123
|
+
"internalType": "string"
|
|
124
124
|
}
|
|
125
125
|
],
|
|
126
126
|
"anonymous": false
|
|
@@ -190,13 +190,7 @@
|
|
|
190
190
|
"name": "CoinCreated",
|
|
191
191
|
"inputs": [
|
|
192
192
|
{
|
|
193
|
-
"name": "
|
|
194
|
-
"type": "address",
|
|
195
|
-
"indexed": true,
|
|
196
|
-
"internalType": "address"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"name": "creator",
|
|
193
|
+
"name": "caller",
|
|
200
194
|
"type": "address",
|
|
201
195
|
"indexed": true,
|
|
202
196
|
"internalType": "address"
|
|
@@ -210,7 +204,7 @@
|
|
|
210
204
|
{
|
|
211
205
|
"name": "platformReferrer",
|
|
212
206
|
"type": "address",
|
|
213
|
-
"indexed":
|
|
207
|
+
"indexed": true,
|
|
214
208
|
"internalType": "address"
|
|
215
209
|
},
|
|
216
210
|
{
|
|
@@ -220,7 +214,7 @@
|
|
|
220
214
|
"internalType": "address"
|
|
221
215
|
},
|
|
222
216
|
{
|
|
223
|
-
"name": "
|
|
217
|
+
"name": "uri",
|
|
224
218
|
"type": "string",
|
|
225
219
|
"indexed": false,
|
|
226
220
|
"internalType": "string"
|
|
@@ -248,6 +242,12 @@
|
|
|
248
242
|
"type": "address",
|
|
249
243
|
"indexed": false,
|
|
250
244
|
"internalType": "address"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"name": "version",
|
|
248
|
+
"type": "string",
|
|
249
|
+
"indexed": false,
|
|
250
|
+
"internalType": "string"
|
|
251
251
|
}
|
|
252
252
|
],
|
|
253
253
|
"anonymous": false
|
package/addresses/8453.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"ZORA_FACTORY": "0xC1d310288E76bE71E7A26d269Fd6cbd3A1D9febC",
|
|
3
|
-
"ZORA_FACTORY_IMPL": "
|
|
4
|
-
"COIN": "
|
|
3
|
+
"ZORA_FACTORY_IMPL": "0x70550C41200f2dF40eA46555fA011Ba45Ea0d3fa",
|
|
4
|
+
"COIN": "0xB96870B471f1c5233324452175605fc9e6730782",
|
|
5
5
|
"NONFUNGIBLE_POSITION_MANAGER": "0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1",
|
|
6
6
|
"SWAP_ROUTER_02": "0x2626664c2603336E57B271c5C0b26F421741e481",
|
|
7
7
|
"UNISWAP_QUOTER": "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",
|
package/addresses/84532.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"ZORA_FACTORY": "0x1E670515d3A4C75C0860846c0605c84AF0e0db0d",
|
|
3
|
-
"ZORA_FACTORY_IMPL": "
|
|
4
|
-
"COIN": "
|
|
3
|
+
"ZORA_FACTORY_IMPL": "0x54Ea33A9456fe8ceBC9cabd4cCA217Af98ba1B90",
|
|
4
|
+
"COIN": "0x335b9aaDA5091aa5f00FEAaF1d75EC57709b7409",
|
|
5
5
|
"NONFUNGIBLE_POSITION_MANAGER": "0x27F971cb582BF9E50F397e4d29a5C7A34f11faA2",
|
|
6
6
|
"SWAP_ROUTER_02": "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
|
|
7
7
|
"UNISWAP_QUOTER": "0xC5290058841028F1614F3A6F0F5816cAd0df5E27",
|
package/dist/index.cjs
CHANGED
|
@@ -532,12 +532,6 @@ var coinABI = [
|
|
|
532
532
|
internalType: "uint256",
|
|
533
533
|
type: "uint256",
|
|
534
534
|
indexed: false
|
|
535
|
-
},
|
|
536
|
-
{
|
|
537
|
-
name: "comment",
|
|
538
|
-
internalType: "string",
|
|
539
|
-
type: "string",
|
|
540
|
-
indexed: false
|
|
541
535
|
}
|
|
542
536
|
],
|
|
543
537
|
name: "CoinBuy"
|
|
@@ -547,7 +541,7 @@ var coinABI = [
|
|
|
547
541
|
anonymous: false,
|
|
548
542
|
inputs: [
|
|
549
543
|
{
|
|
550
|
-
name: "
|
|
544
|
+
name: "payoutRecipient",
|
|
551
545
|
internalType: "address",
|
|
552
546
|
type: "address",
|
|
553
547
|
indexed: true
|
|
@@ -687,12 +681,6 @@ var coinABI = [
|
|
|
687
681
|
internalType: "uint256",
|
|
688
682
|
type: "uint256",
|
|
689
683
|
indexed: false
|
|
690
|
-
},
|
|
691
|
-
{
|
|
692
|
-
name: "comment",
|
|
693
|
-
internalType: "string",
|
|
694
|
-
type: "string",
|
|
695
|
-
indexed: false
|
|
696
684
|
}
|
|
697
685
|
],
|
|
698
686
|
name: "CoinSell"
|
|
@@ -702,7 +690,7 @@ var coinABI = [
|
|
|
702
690
|
anonymous: false,
|
|
703
691
|
inputs: [
|
|
704
692
|
{
|
|
705
|
-
name: "
|
|
693
|
+
name: "payoutRecipient",
|
|
706
694
|
internalType: "address",
|
|
707
695
|
type: "address",
|
|
708
696
|
indexed: true
|
|
@@ -1079,13 +1067,7 @@ var zoraFactoryImplABI = [
|
|
|
1079
1067
|
anonymous: false,
|
|
1080
1068
|
inputs: [
|
|
1081
1069
|
{
|
|
1082
|
-
name: "
|
|
1083
|
-
internalType: "address",
|
|
1084
|
-
type: "address",
|
|
1085
|
-
indexed: true
|
|
1086
|
-
},
|
|
1087
|
-
{
|
|
1088
|
-
name: "creator",
|
|
1070
|
+
name: "caller",
|
|
1089
1071
|
internalType: "address",
|
|
1090
1072
|
type: "address",
|
|
1091
1073
|
indexed: true
|
|
@@ -1100,7 +1082,7 @@ var zoraFactoryImplABI = [
|
|
|
1100
1082
|
name: "platformReferrer",
|
|
1101
1083
|
internalType: "address",
|
|
1102
1084
|
type: "address",
|
|
1103
|
-
indexed:
|
|
1085
|
+
indexed: true
|
|
1104
1086
|
},
|
|
1105
1087
|
{
|
|
1106
1088
|
name: "currency",
|
|
@@ -1108,12 +1090,7 @@ var zoraFactoryImplABI = [
|
|
|
1108
1090
|
type: "address",
|
|
1109
1091
|
indexed: false
|
|
1110
1092
|
},
|
|
1111
|
-
{
|
|
1112
|
-
name: "tokenURI",
|
|
1113
|
-
internalType: "string",
|
|
1114
|
-
type: "string",
|
|
1115
|
-
indexed: false
|
|
1116
|
-
},
|
|
1093
|
+
{ name: "uri", internalType: "string", type: "string", indexed: false },
|
|
1117
1094
|
{ name: "name", internalType: "string", type: "string", indexed: false },
|
|
1118
1095
|
{
|
|
1119
1096
|
name: "symbol",
|
|
@@ -1132,6 +1109,12 @@ var zoraFactoryImplABI = [
|
|
|
1132
1109
|
internalType: "address",
|
|
1133
1110
|
type: "address",
|
|
1134
1111
|
indexed: false
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
name: "version",
|
|
1115
|
+
internalType: "string",
|
|
1116
|
+
type: "string",
|
|
1117
|
+
indexed: false
|
|
1135
1118
|
}
|
|
1136
1119
|
],
|
|
1137
1120
|
name: "CoinCreated"
|