@zoralabs/coins 0.1.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.
Files changed (116) hide show
  1. package/.turbo/turbo-build.log +76 -0
  2. package/CHANGELOG.md +14 -0
  3. package/LICENSE +21 -0
  4. package/abis/Address.json +29 -0
  5. package/abis/BaseTest.json +691 -0
  6. package/abis/Clones.json +7 -0
  7. package/abis/Coin.json +1693 -0
  8. package/abis/CoinConstants.json +93 -0
  9. package/abis/CoinTest.json +998 -0
  10. package/abis/ContextUpgradeable.json +25 -0
  11. package/abis/ContractVersionBase.json +15 -0
  12. package/abis/Deploy.json +29 -0
  13. package/abis/ECDSA.json +29 -0
  14. package/abis/EIP712.json +67 -0
  15. package/abis/EIP712Upgradeable.json +74 -0
  16. package/abis/ERC1967Proxy.json +67 -0
  17. package/abis/ERC1967Utils.json +85 -0
  18. package/abis/ERC20PermitUpgradeable.json +527 -0
  19. package/abis/ERC20Upgradeable.json +333 -0
  20. package/abis/FactoryTest.json +845 -0
  21. package/abis/IBeacon.json +15 -0
  22. package/abis/ICoin.json +541 -0
  23. package/abis/ICoinComments.json +53 -0
  24. package/abis/IERC1155Errors.json +104 -0
  25. package/abis/IERC165.json +21 -0
  26. package/abis/IERC1822Proxiable.json +15 -0
  27. package/abis/IERC20.json +221 -0
  28. package/abis/IERC20Errors.json +88 -0
  29. package/abis/IERC20Metadata.json +224 -0
  30. package/abis/IERC20Permit.json +77 -0
  31. package/abis/IERC5267.json +51 -0
  32. package/abis/IERC721.json +287 -0
  33. package/abis/IERC721Enumerable.json +343 -0
  34. package/abis/IERC721Errors.json +105 -0
  35. package/abis/IERC721Metadata.json +332 -0
  36. package/abis/IERC721Receiver.json +36 -0
  37. package/abis/IERC721TokenReceiver.json +36 -0
  38. package/abis/IERC7572.json +21 -0
  39. package/abis/IMulticall3.json +440 -0
  40. package/abis/INonfungiblePositionManager.json +366 -0
  41. package/abis/IProtocolRewards.json +348 -0
  42. package/abis/ISwapRouter.json +137 -0
  43. package/abis/IUniswapV3Pool.json +148 -0
  44. package/abis/IUniswapV3SwapCallback.json +25 -0
  45. package/abis/IVersionedContract.json +15 -0
  46. package/abis/IWETH.json +118 -0
  47. package/abis/IZoraFactory.json +138 -0
  48. package/abis/Initializable.json +25 -0
  49. package/abis/Math.json +7 -0
  50. package/abis/MockERC20.json +322 -0
  51. package/abis/MockERC721.json +350 -0
  52. package/abis/MultiOwnable.json +171 -0
  53. package/abis/MultiOwnableTest.json +796 -0
  54. package/abis/NoncesUpgradeable.json +60 -0
  55. package/abis/OwnableUpgradeable.json +99 -0
  56. package/abis/ProtocolRewards.json +494 -0
  57. package/abis/Proxy.json +6 -0
  58. package/abis/ReentrancyGuardUpgradeable.json +30 -0
  59. package/abis/SafeERC20.json +34 -0
  60. package/abis/Script.json +15 -0
  61. package/abis/ShortStrings.json +18 -0
  62. package/abis/StdAssertions.json +379 -0
  63. package/abis/StdInvariant.json +180 -0
  64. package/abis/Strings.json +18 -0
  65. package/abis/Test.json +570 -0
  66. package/abis/UUPSUpgradeable.json +130 -0
  67. package/abis/Vm.json +8627 -0
  68. package/abis/VmSafe.json +7297 -0
  69. package/abis/ZoraFactory.json +67 -0
  70. package/abis/ZoraFactoryImpl.json +422 -0
  71. package/abis/stdError.json +119 -0
  72. package/abis/stdStorageSafe.json +52 -0
  73. package/addresses/1.json +4 -0
  74. package/addresses/8453.json +9 -0
  75. package/addresses/84532.json +9 -0
  76. package/dist/index.cjs +1236 -0
  77. package/dist/index.cjs.map +1 -0
  78. package/dist/index.d.ts +2 -0
  79. package/dist/index.d.ts.map +1 -0
  80. package/dist/index.js +1208 -0
  81. package/dist/index.js.map +1 -0
  82. package/dist/wagmiGenerated.d.ts +1645 -0
  83. package/dist/wagmiGenerated.d.ts.map +1 -0
  84. package/foundry.toml +9 -0
  85. package/package/index.ts +1 -0
  86. package/package/wagmiGenerated.ts +1211 -0
  87. package/package.json +48 -0
  88. package/remappings.txt +4 -0
  89. package/script/Deploy.s.sol +14 -0
  90. package/slither.config.json +6 -0
  91. package/src/Coin.sol +579 -0
  92. package/src/ZoraFactoryImpl.sol +142 -0
  93. package/src/interfaces/ICoin.sol +194 -0
  94. package/src/interfaces/ICoinComments.sol +8 -0
  95. package/src/interfaces/IERC7572.sol +12 -0
  96. package/src/interfaces/INonfungiblePositionManager.sol +104 -0
  97. package/src/interfaces/IProtocolRewards.sol +12 -0
  98. package/src/interfaces/ISwapRouter.sol +38 -0
  99. package/src/interfaces/IUniswapV3Pool.sol +43 -0
  100. package/src/interfaces/IUniswapV3SwapCallback.sol +17 -0
  101. package/src/interfaces/IWETH.sol +16 -0
  102. package/src/interfaces/IZoraFactory.sol +56 -0
  103. package/src/proxy/ZoraFactory.sol +26 -0
  104. package/src/utils/CoinConstants.sol +67 -0
  105. package/src/utils/MultiOwnable.sol +126 -0
  106. package/src/utils/TickMath.sol +210 -0
  107. package/src/version/ContractVersionBase.sol +14 -0
  108. package/test/Coin.t.sol +443 -0
  109. package/test/Factory.t.sol +298 -0
  110. package/test/MultiOwnable.t.sol +156 -0
  111. package/test/utils/BaseTest.sol +178 -0
  112. package/test/utils/ProtocolRewards.sol +1499 -0
  113. package/tsconfig.build.json +10 -0
  114. package/tsconfig.json +9 -0
  115. package/tsup.config.ts +11 -0
  116. package/wagmi.config.ts +16 -0
@@ -0,0 +1,76 @@
1
+
2
+ > @zoralabs/coins@0.1.1 build /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@0.1.1 wagmi:generate /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
7
+ > FOUNDRY_PROFILE=dev forge build && wagmi generate && pnpm exec rename-generated-abi-casing ./package/wagmiGenerated.ts
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
13
+ Compiler run successful with warnings:
14
+ Warning (9302): Return value of low-level calls not used.
15
+ --> test/Coin.t.sol:357:9:
16
+ |
17
+ 357 | address(coin).call{value: 1 ether}("");
18
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19
+
20
+ - Validating plugins
21
+ ✔ Validating plugins
22
+ - Resolving contracts
23
+ ✔ Resolving contracts
24
+ - Running plugins
25
+ ✔ Running plugins
26
+ - Writing to package/wagmiGenerated.ts
27
+ ✔ Writing to package/wagmiGenerated.ts
28
+ 🔄 Processing 1 file(s) to replace 'Abi' with 'ABI'...
29
+ 📝 Processing ./package/wagmiGenerated.ts...
30
+ ✅ Updated ./package/wagmiGenerated.ts (2 replacements)
31
+ ✨ All files processed successfully!
32
+
33
+ > @zoralabs/coins@0.1.1 copy-abis /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
34
+ > pnpm exec bundle-abis
35
+
36
+
37
+ > @zoralabs/coins@0.1.1 prettier:write /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins
38
+ > prettier --write 'src/**/*.sol' 'test/**/*.sol' 'script/**/*.sol'
39
+
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)
63
+ CLI Building entry: package/index.ts
64
+ CLI Using tsconfig: tsconfig.json
65
+ CLI tsup v7.3.0
66
+ CLI Using tsup config: /home/runner/work/zora-protocol-private/zora-protocol-private/packages/coins/tsup.config.ts
67
+ CLI Target: es2021
68
+ CLI Cleaning output folder
69
+ CJS Build start
70
+ 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
package/CHANGELOG.md ADDED
@@ -0,0 +1,14 @@
1
+ # @zoralabs/coins
2
+
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 1e10ac74: - Fixed coins package visibility
8
+ - Renamed export to `coinFactory*`
9
+
10
+ ## 0.1.0
11
+
12
+ ### Minor Changes
13
+
14
+ - e42eb013: Initial setup
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Zora Labs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,29 @@
1
+ [
2
+ {
3
+ "type": "error",
4
+ "name": "AddressEmptyCode",
5
+ "inputs": [
6
+ {
7
+ "name": "target",
8
+ "type": "address",
9
+ "internalType": "address"
10
+ }
11
+ ]
12
+ },
13
+ {
14
+ "type": "error",
15
+ "name": "AddressInsufficientBalance",
16
+ "inputs": [
17
+ {
18
+ "name": "account",
19
+ "type": "address",
20
+ "internalType": "address"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "type": "error",
26
+ "name": "FailedInnerCall",
27
+ "inputs": []
28
+ }
29
+ ]