@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.
- package/.turbo/turbo-build.log +76 -0
- package/CHANGELOG.md +14 -0
- package/LICENSE +21 -0
- package/abis/Address.json +29 -0
- package/abis/BaseTest.json +691 -0
- package/abis/Clones.json +7 -0
- package/abis/Coin.json +1693 -0
- package/abis/CoinConstants.json +93 -0
- package/abis/CoinTest.json +998 -0
- package/abis/ContextUpgradeable.json +25 -0
- package/abis/ContractVersionBase.json +15 -0
- package/abis/Deploy.json +29 -0
- package/abis/ECDSA.json +29 -0
- package/abis/EIP712.json +67 -0
- package/abis/EIP712Upgradeable.json +74 -0
- package/abis/ERC1967Proxy.json +67 -0
- package/abis/ERC1967Utils.json +85 -0
- package/abis/ERC20PermitUpgradeable.json +527 -0
- package/abis/ERC20Upgradeable.json +333 -0
- package/abis/FactoryTest.json +845 -0
- package/abis/IBeacon.json +15 -0
- package/abis/ICoin.json +541 -0
- package/abis/ICoinComments.json +53 -0
- package/abis/IERC1155Errors.json +104 -0
- package/abis/IERC165.json +21 -0
- package/abis/IERC1822Proxiable.json +15 -0
- package/abis/IERC20.json +221 -0
- package/abis/IERC20Errors.json +88 -0
- package/abis/IERC20Metadata.json +224 -0
- package/abis/IERC20Permit.json +77 -0
- package/abis/IERC5267.json +51 -0
- package/abis/IERC721.json +287 -0
- package/abis/IERC721Enumerable.json +343 -0
- package/abis/IERC721Errors.json +105 -0
- package/abis/IERC721Metadata.json +332 -0
- package/abis/IERC721Receiver.json +36 -0
- package/abis/IERC721TokenReceiver.json +36 -0
- package/abis/IERC7572.json +21 -0
- package/abis/IMulticall3.json +440 -0
- package/abis/INonfungiblePositionManager.json +366 -0
- package/abis/IProtocolRewards.json +348 -0
- package/abis/ISwapRouter.json +137 -0
- package/abis/IUniswapV3Pool.json +148 -0
- package/abis/IUniswapV3SwapCallback.json +25 -0
- package/abis/IVersionedContract.json +15 -0
- package/abis/IWETH.json +118 -0
- package/abis/IZoraFactory.json +138 -0
- package/abis/Initializable.json +25 -0
- package/abis/Math.json +7 -0
- package/abis/MockERC20.json +322 -0
- package/abis/MockERC721.json +350 -0
- package/abis/MultiOwnable.json +171 -0
- package/abis/MultiOwnableTest.json +796 -0
- package/abis/NoncesUpgradeable.json +60 -0
- package/abis/OwnableUpgradeable.json +99 -0
- package/abis/ProtocolRewards.json +494 -0
- package/abis/Proxy.json +6 -0
- package/abis/ReentrancyGuardUpgradeable.json +30 -0
- package/abis/SafeERC20.json +34 -0
- package/abis/Script.json +15 -0
- package/abis/ShortStrings.json +18 -0
- package/abis/StdAssertions.json +379 -0
- package/abis/StdInvariant.json +180 -0
- package/abis/Strings.json +18 -0
- package/abis/Test.json +570 -0
- package/abis/UUPSUpgradeable.json +130 -0
- package/abis/Vm.json +8627 -0
- package/abis/VmSafe.json +7297 -0
- package/abis/ZoraFactory.json +67 -0
- package/abis/ZoraFactoryImpl.json +422 -0
- package/abis/stdError.json +119 -0
- package/abis/stdStorageSafe.json +52 -0
- package/addresses/1.json +4 -0
- package/addresses/8453.json +9 -0
- package/addresses/84532.json +9 -0
- package/dist/index.cjs +1236 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1208 -0
- package/dist/index.js.map +1 -0
- package/dist/wagmiGenerated.d.ts +1645 -0
- package/dist/wagmiGenerated.d.ts.map +1 -0
- package/foundry.toml +9 -0
- package/package/index.ts +1 -0
- package/package/wagmiGenerated.ts +1211 -0
- package/package.json +48 -0
- package/remappings.txt +4 -0
- package/script/Deploy.s.sol +14 -0
- package/slither.config.json +6 -0
- package/src/Coin.sol +579 -0
- package/src/ZoraFactoryImpl.sol +142 -0
- package/src/interfaces/ICoin.sol +194 -0
- package/src/interfaces/ICoinComments.sol +8 -0
- package/src/interfaces/IERC7572.sol +12 -0
- package/src/interfaces/INonfungiblePositionManager.sol +104 -0
- package/src/interfaces/IProtocolRewards.sol +12 -0
- package/src/interfaces/ISwapRouter.sol +38 -0
- package/src/interfaces/IUniswapV3Pool.sol +43 -0
- package/src/interfaces/IUniswapV3SwapCallback.sol +17 -0
- package/src/interfaces/IWETH.sol +16 -0
- package/src/interfaces/IZoraFactory.sol +56 -0
- package/src/proxy/ZoraFactory.sol +26 -0
- package/src/utils/CoinConstants.sol +67 -0
- package/src/utils/MultiOwnable.sol +126 -0
- package/src/utils/TickMath.sol +210 -0
- package/src/version/ContractVersionBase.sol +14 -0
- package/test/Coin.t.sol +443 -0
- package/test/Factory.t.sol +298 -0
- package/test/MultiOwnable.t.sol +156 -0
- package/test/utils/BaseTest.sol +178 -0
- package/test/utils/ProtocolRewards.sol +1499 -0
- package/tsconfig.build.json +10 -0
- package/tsconfig.json +9 -0
- package/tsup.config.ts +11 -0
- 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
|
+
[33m-[39m Validating plugins
|
|
21
|
+
[32m✔[39m Validating plugins
|
|
22
|
+
[33m-[39m Resolving contracts
|
|
23
|
+
[32m✔[39m Resolving contracts
|
|
24
|
+
[33m-[39m Running plugins
|
|
25
|
+
[32m✔[39m Running plugins
|
|
26
|
+
[33m-[39m Writing to [90mpackage/wagmiGenerated.ts[39m
|
|
27
|
+
[32m✔[39m Writing to [90mpackage/wagmiGenerated.ts[39m
|
|
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
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
|
+
]
|