@zoralabs/coins 0.1.1 → 0.3.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.
@@ -1,15 +1,13 @@
1
1
 
2
- > @zoralabs/coins@0.1.1 build /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
2
+ > @zoralabs/coins@0.3.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.1.1 wagmi:generate /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
6
+ > @zoralabs/coins@0.3.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
- Compiling 79 files with Solc 0.8.28
10
- installing solc version "0.8.28"
11
- Successfully installed solc 0.8.28
12
- Solc 0.8.28 finished in 109.58s
9
+ Compiling 79 files with Solc 0.8.23
10
+ Solc 0.8.23 finished in 200.27s
13
11
  Compiler run successful with warnings:
14
12
  Warning (9302): Return value of low-level calls not used.
15
13
  --> test/Coin.t.sol:357:9:
@@ -30,36 +28,36 @@ Warning (9302): Return value of low-level calls not used.
30
28
  ✅ Updated ./package/wagmiGenerated.ts (2 replacements)
31
29
  ✨ All files processed successfully!
32
30
 
33
- > @zoralabs/coins@0.1.1 copy-abis /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
31
+ > @zoralabs/coins@0.3.0 copy-abis /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
34
32
  > pnpm exec bundle-abis
35
33
 
36
34
 
37
- > @zoralabs/coins@0.1.1 prettier:write /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
35
+ > @zoralabs/coins@0.3.0 prettier:write /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
38
36
  > prettier --write 'src/**/*.sol' 'test/**/*.sol' 'script/**/*.sol'
39
37
 
40
- src/Coin.sol 1844ms (unchanged)
41
- src/interfaces/ICoin.sol 80ms (unchanged)
42
- src/interfaces/ICoinComments.sol 11ms (unchanged)
43
- src/interfaces/IERC7572.sol 5ms (unchanged)
44
- src/interfaces/INonfungiblePositionManager.sol 37ms (unchanged)
45
- src/interfaces/IProtocolRewards.sol 12ms (unchanged)
46
- src/interfaces/ISwapRouter.sol 23ms (unchanged)
47
- src/interfaces/IUniswapV3Pool.sol 11ms (unchanged)
48
- src/interfaces/IUniswapV3SwapCallback.sol 5ms (unchanged)
49
- src/interfaces/IWETH.sol 8ms (unchanged)
50
- src/interfaces/IZoraFactory.sol 13ms (unchanged)
51
- src/proxy/ZoraFactory.sol 26ms (unchanged)
52
- src/utils/CoinConstants.sol 14ms (unchanged)
53
- src/utils/MultiOwnable.sol 216ms (unchanged)
54
- src/utils/TickMath.sol 342ms (unchanged)
55
- src/version/ContractVersionBase.sol 7ms (unchanged)
56
- src/ZoraFactoryImpl.sol 165ms (unchanged)
57
- test/Coin.t.sol 979ms (unchanged)
58
- test/Factory.t.sol 521ms (unchanged)
59
- test/MultiOwnable.t.sol 299ms (unchanged)
60
- test/utils/BaseTest.sol 385ms (unchanged)
61
- test/utils/ProtocolRewards.sol 1163ms (unchanged)
62
- script/Deploy.s.sol 9ms (unchanged)
38
+ src/Coin.sol 763ms (unchanged)
39
+ src/interfaces/ICoin.sol 37ms (unchanged)
40
+ src/interfaces/ICoinComments.sol 4ms (unchanged)
41
+ src/interfaces/IERC7572.sol 4ms (unchanged)
42
+ src/interfaces/INonfungiblePositionManager.sol 19ms (unchanged)
43
+ src/interfaces/IProtocolRewards.sol 15ms (unchanged)
44
+ src/interfaces/ISwapRouter.sol 5ms (unchanged)
45
+ src/interfaces/IUniswapV3Pool.sol 4ms (unchanged)
46
+ src/interfaces/IUniswapV3SwapCallback.sol 2ms (unchanged)
47
+ src/interfaces/IWETH.sol 4ms (unchanged)
48
+ src/interfaces/IZoraFactory.sol 12ms (unchanged)
49
+ src/proxy/ZoraFactory.sol 17ms (unchanged)
50
+ src/utils/CoinConstants.sol 6ms (unchanged)
51
+ src/utils/MultiOwnable.sol 101ms (unchanged)
52
+ src/utils/TickMath.sol 132ms (unchanged)
53
+ src/version/ContractVersionBase.sol 4ms (unchanged)
54
+ src/ZoraFactoryImpl.sol 73ms (unchanged)
55
+ test/Coin.t.sol 398ms (unchanged)
56
+ test/Factory.t.sol 218ms (unchanged)
57
+ test/MultiOwnable.t.sol 100ms (unchanged)
58
+ test/utils/BaseTest.sol 105ms (unchanged)
59
+ test/utils/ProtocolRewards.sol 398ms (unchanged)
60
+ script/Deploy.s.sol 3ms (unchanged)
63
61
  CLI Building entry: package/index.ts
64
62
  CLI Using tsconfig: tsconfig.json
65
63
  CLI tsup v7.3.0
@@ -68,9 +66,9 @@ CLI Target: es2021
68
66
  CLI Cleaning output folder
69
67
  CJS Build start
70
68
  ESM Build start
71
- ESM dist/index.js 31.08 KB
72
- ESM dist/index.js.map 56.55 KB
73
- ESM ⚡️ Build success in 49ms
74
- CJS dist/index.cjs 32.13 KB
75
- CJS dist/index.cjs.map 56.66 KB
76
- CJS ⚡️ Build success in 52ms
69
+ ESM dist/index.js 30.79 KB
70
+ ESM dist/index.js.map 56.06 KB
71
+ ESM ⚡️ Build success in 22ms
72
+ CJS dist/index.cjs 31.84 KB
73
+ CJS dist/index.cjs.map 56.17 KB
74
+ CJS ⚡️ Build success in 22ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @zoralabs/coins
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e1a3d68f: Refactored coin interface imports
8
+
9
+ ## 0.2.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 9fa218c9: - Final events in preparation for V1 release
14
+ - Updated the starting tick for WETH pools
15
+
3
16
  ## 0.1.1
4
17
 
5
18
  ### Patch Changes
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": "creatorPayoutAddress",
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": "creatorPayoutRecipient",
1164
+ "name": "payoutRecipient",
1177
1165
  "type": "address",
1178
1166
  "indexed": true,
1179
1167
  "internalType": "address"
package/abis/ICoin.json CHANGED
@@ -51,6 +51,53 @@
51
51
  ],
52
52
  "stateMutability": "payable"
53
53
  },
54
+ {
55
+ "type": "function",
56
+ "name": "contractURI",
57
+ "inputs": [],
58
+ "outputs": [
59
+ {
60
+ "name": "",
61
+ "type": "string",
62
+ "internalType": "string"
63
+ }
64
+ ],
65
+ "stateMutability": "view"
66
+ },
67
+ {
68
+ "type": "function",
69
+ "name": "onERC721Received",
70
+ "inputs": [
71
+ {
72
+ "name": "operator",
73
+ "type": "address",
74
+ "internalType": "address"
75
+ },
76
+ {
77
+ "name": "from",
78
+ "type": "address",
79
+ "internalType": "address"
80
+ },
81
+ {
82
+ "name": "tokenId",
83
+ "type": "uint256",
84
+ "internalType": "uint256"
85
+ },
86
+ {
87
+ "name": "data",
88
+ "type": "bytes",
89
+ "internalType": "bytes"
90
+ }
91
+ ],
92
+ "outputs": [
93
+ {
94
+ "name": "",
95
+ "type": "bytes4",
96
+ "internalType": "bytes4"
97
+ }
98
+ ],
99
+ "stateMutability": "nonpayable"
100
+ },
54
101
  {
55
102
  "type": "function",
56
103
  "name": "platformReferrer",
@@ -103,6 +150,25 @@
103
150
  ],
104
151
  "stateMutability": "nonpayable"
105
152
  },
153
+ {
154
+ "type": "function",
155
+ "name": "supportsInterface",
156
+ "inputs": [
157
+ {
158
+ "name": "interfaceId",
159
+ "type": "bytes4",
160
+ "internalType": "bytes4"
161
+ }
162
+ ],
163
+ "outputs": [
164
+ {
165
+ "name": "",
166
+ "type": "bool",
167
+ "internalType": "bool"
168
+ }
169
+ ],
170
+ "stateMutability": "view"
171
+ },
106
172
  {
107
173
  "type": "function",
108
174
  "name": "tokenURI",
@@ -161,12 +227,6 @@
161
227
  "type": "uint256",
162
228
  "indexed": false,
163
229
  "internalType": "uint256"
164
- },
165
- {
166
- "name": "comment",
167
- "type": "string",
168
- "indexed": false,
169
- "internalType": "string"
170
230
  }
171
231
  ],
172
232
  "anonymous": false
@@ -176,7 +236,7 @@
176
236
  "name": "CoinMarketRewards",
177
237
  "inputs": [
178
238
  {
179
- "name": "creatorPayoutAddress",
239
+ "name": "payoutRecipient",
180
240
  "type": "address",
181
241
  "indexed": true,
182
242
  "internalType": "address"
@@ -320,12 +380,6 @@
320
380
  "type": "uint256",
321
381
  "indexed": false,
322
382
  "internalType": "uint256"
323
- },
324
- {
325
- "name": "comment",
326
- "type": "string",
327
- "indexed": false,
328
- "internalType": "string"
329
383
  }
330
384
  ],
331
385
  "anonymous": false
@@ -335,7 +389,7 @@
335
389
  "name": "CoinTradeRewards",
336
390
  "inputs": [
337
391
  {
338
- "name": "creatorPayoutRecipient",
392
+ "name": "payoutRecipient",
339
393
  "type": "address",
340
394
  "indexed": true,
341
395
  "internalType": "address"
@@ -453,6 +507,12 @@
453
507
  ],
454
508
  "anonymous": false
455
509
  },
510
+ {
511
+ "type": "event",
512
+ "name": "ContractURIUpdated",
513
+ "inputs": [],
514
+ "anonymous": false
515
+ },
456
516
  {
457
517
  "type": "error",
458
518
  "name": "AddressZero",
@@ -63,13 +63,7 @@
63
63
  "name": "CoinCreated",
64
64
  "inputs": [
65
65
  {
66
- "name": "deployer",
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": false,
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": "tokenURI",
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": "deployer",
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": false,
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": "tokenURI",
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "ZORA_FACTORY": "0xC1d310288E76bE71E7A26d269Fd6cbd3A1D9febC",
3
- "ZORA_FACTORY_IMPL": "0x61feA73333c78Ebe0bbc03092ba1D8090427846E",
4
- "COIN": "0xD9209F8a5513D30f987e694a97D3f55B4855337a",
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",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "ZORA_FACTORY": "0x1E670515d3A4C75C0860846c0605c84AF0e0db0d",
3
- "ZORA_FACTORY_IMPL": "0xf4Ef978EF7A405c88483738BeC2f5BDB0B233785",
4
- "COIN": "0x25B1a33944D8cb80d4889dCd30Ab2Ab04FA2198f",
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: "creatorPayoutAddress",
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: "creatorPayoutRecipient",
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: "deployer",
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: false
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"