@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,25 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "event",
|
|
4
|
+
"name": "Initialized",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "version",
|
|
8
|
+
"type": "uint64",
|
|
9
|
+
"indexed": false,
|
|
10
|
+
"internalType": "uint64"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"anonymous": false
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "error",
|
|
17
|
+
"name": "InvalidInitialization",
|
|
18
|
+
"inputs": []
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"type": "error",
|
|
22
|
+
"name": "NotInitializing",
|
|
23
|
+
"inputs": []
|
|
24
|
+
}
|
|
25
|
+
]
|
package/abis/Deploy.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "IS_SCRIPT",
|
|
5
|
+
"inputs": [],
|
|
6
|
+
"outputs": [
|
|
7
|
+
{
|
|
8
|
+
"name": "",
|
|
9
|
+
"type": "bool",
|
|
10
|
+
"internalType": "bool"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"stateMutability": "view"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"type": "function",
|
|
17
|
+
"name": "run",
|
|
18
|
+
"inputs": [],
|
|
19
|
+
"outputs": [],
|
|
20
|
+
"stateMutability": "nonpayable"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "function",
|
|
24
|
+
"name": "setUp",
|
|
25
|
+
"inputs": [],
|
|
26
|
+
"outputs": [],
|
|
27
|
+
"stateMutability": "nonpayable"
|
|
28
|
+
}
|
|
29
|
+
]
|
package/abis/ECDSA.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "error",
|
|
4
|
+
"name": "ECDSAInvalidSignature",
|
|
5
|
+
"inputs": []
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"type": "error",
|
|
9
|
+
"name": "ECDSAInvalidSignatureLength",
|
|
10
|
+
"inputs": [
|
|
11
|
+
{
|
|
12
|
+
"name": "length",
|
|
13
|
+
"type": "uint256",
|
|
14
|
+
"internalType": "uint256"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "error",
|
|
20
|
+
"name": "ECDSAInvalidSignatureS",
|
|
21
|
+
"inputs": [
|
|
22
|
+
{
|
|
23
|
+
"name": "s",
|
|
24
|
+
"type": "bytes32",
|
|
25
|
+
"internalType": "bytes32"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
]
|
package/abis/EIP712.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "eip712Domain",
|
|
5
|
+
"inputs": [],
|
|
6
|
+
"outputs": [
|
|
7
|
+
{
|
|
8
|
+
"name": "fields",
|
|
9
|
+
"type": "bytes1",
|
|
10
|
+
"internalType": "bytes1"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "name",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"internalType": "string"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "version",
|
|
19
|
+
"type": "string",
|
|
20
|
+
"internalType": "string"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "chainId",
|
|
24
|
+
"type": "uint256",
|
|
25
|
+
"internalType": "uint256"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "verifyingContract",
|
|
29
|
+
"type": "address",
|
|
30
|
+
"internalType": "address"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "salt",
|
|
34
|
+
"type": "bytes32",
|
|
35
|
+
"internalType": "bytes32"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "extensions",
|
|
39
|
+
"type": "uint256[]",
|
|
40
|
+
"internalType": "uint256[]"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"stateMutability": "view"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "event",
|
|
47
|
+
"name": "EIP712DomainChanged",
|
|
48
|
+
"inputs": [],
|
|
49
|
+
"anonymous": false
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "error",
|
|
53
|
+
"name": "InvalidShortString",
|
|
54
|
+
"inputs": []
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"type": "error",
|
|
58
|
+
"name": "StringTooLong",
|
|
59
|
+
"inputs": [
|
|
60
|
+
{
|
|
61
|
+
"name": "str",
|
|
62
|
+
"type": "string",
|
|
63
|
+
"internalType": "string"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
]
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "eip712Domain",
|
|
5
|
+
"inputs": [],
|
|
6
|
+
"outputs": [
|
|
7
|
+
{
|
|
8
|
+
"name": "fields",
|
|
9
|
+
"type": "bytes1",
|
|
10
|
+
"internalType": "bytes1"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "name",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"internalType": "string"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "version",
|
|
19
|
+
"type": "string",
|
|
20
|
+
"internalType": "string"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "chainId",
|
|
24
|
+
"type": "uint256",
|
|
25
|
+
"internalType": "uint256"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "verifyingContract",
|
|
29
|
+
"type": "address",
|
|
30
|
+
"internalType": "address"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "salt",
|
|
34
|
+
"type": "bytes32",
|
|
35
|
+
"internalType": "bytes32"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "extensions",
|
|
39
|
+
"type": "uint256[]",
|
|
40
|
+
"internalType": "uint256[]"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"stateMutability": "view"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "event",
|
|
47
|
+
"name": "EIP712DomainChanged",
|
|
48
|
+
"inputs": [],
|
|
49
|
+
"anonymous": false
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "event",
|
|
53
|
+
"name": "Initialized",
|
|
54
|
+
"inputs": [
|
|
55
|
+
{
|
|
56
|
+
"name": "version",
|
|
57
|
+
"type": "uint64",
|
|
58
|
+
"indexed": false,
|
|
59
|
+
"internalType": "uint64"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"anonymous": false
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"type": "error",
|
|
66
|
+
"name": "InvalidInitialization",
|
|
67
|
+
"inputs": []
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "error",
|
|
71
|
+
"name": "NotInitializing",
|
|
72
|
+
"inputs": []
|
|
73
|
+
}
|
|
74
|
+
]
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "constructor",
|
|
4
|
+
"inputs": [
|
|
5
|
+
{
|
|
6
|
+
"name": "implementation",
|
|
7
|
+
"type": "address",
|
|
8
|
+
"internalType": "address"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "_data",
|
|
12
|
+
"type": "bytes",
|
|
13
|
+
"internalType": "bytes"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"stateMutability": "payable"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "fallback",
|
|
20
|
+
"stateMutability": "payable"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "event",
|
|
24
|
+
"name": "Upgraded",
|
|
25
|
+
"inputs": [
|
|
26
|
+
{
|
|
27
|
+
"name": "implementation",
|
|
28
|
+
"type": "address",
|
|
29
|
+
"indexed": true,
|
|
30
|
+
"internalType": "address"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"anonymous": false
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "error",
|
|
37
|
+
"name": "AddressEmptyCode",
|
|
38
|
+
"inputs": [
|
|
39
|
+
{
|
|
40
|
+
"name": "target",
|
|
41
|
+
"type": "address",
|
|
42
|
+
"internalType": "address"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "error",
|
|
48
|
+
"name": "ERC1967InvalidImplementation",
|
|
49
|
+
"inputs": [
|
|
50
|
+
{
|
|
51
|
+
"name": "implementation",
|
|
52
|
+
"type": "address",
|
|
53
|
+
"internalType": "address"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "error",
|
|
59
|
+
"name": "ERC1967NonPayable",
|
|
60
|
+
"inputs": []
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "error",
|
|
64
|
+
"name": "FailedInnerCall",
|
|
65
|
+
"inputs": []
|
|
66
|
+
}
|
|
67
|
+
]
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "event",
|
|
4
|
+
"name": "AdminChanged",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "previousAdmin",
|
|
8
|
+
"type": "address",
|
|
9
|
+
"indexed": false,
|
|
10
|
+
"internalType": "address"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "newAdmin",
|
|
14
|
+
"type": "address",
|
|
15
|
+
"indexed": false,
|
|
16
|
+
"internalType": "address"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"anonymous": false
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "event",
|
|
23
|
+
"name": "BeaconUpgraded",
|
|
24
|
+
"inputs": [
|
|
25
|
+
{
|
|
26
|
+
"name": "beacon",
|
|
27
|
+
"type": "address",
|
|
28
|
+
"indexed": true,
|
|
29
|
+
"internalType": "address"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"anonymous": false
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "event",
|
|
36
|
+
"name": "Upgraded",
|
|
37
|
+
"inputs": [
|
|
38
|
+
{
|
|
39
|
+
"name": "implementation",
|
|
40
|
+
"type": "address",
|
|
41
|
+
"indexed": true,
|
|
42
|
+
"internalType": "address"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"anonymous": false
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"type": "error",
|
|
49
|
+
"name": "ERC1967InvalidAdmin",
|
|
50
|
+
"inputs": [
|
|
51
|
+
{
|
|
52
|
+
"name": "admin",
|
|
53
|
+
"type": "address",
|
|
54
|
+
"internalType": "address"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"type": "error",
|
|
60
|
+
"name": "ERC1967InvalidBeacon",
|
|
61
|
+
"inputs": [
|
|
62
|
+
{
|
|
63
|
+
"name": "beacon",
|
|
64
|
+
"type": "address",
|
|
65
|
+
"internalType": "address"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "error",
|
|
71
|
+
"name": "ERC1967InvalidImplementation",
|
|
72
|
+
"inputs": [
|
|
73
|
+
{
|
|
74
|
+
"name": "implementation",
|
|
75
|
+
"type": "address",
|
|
76
|
+
"internalType": "address"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"type": "error",
|
|
82
|
+
"name": "ERC1967NonPayable",
|
|
83
|
+
"inputs": []
|
|
84
|
+
}
|
|
85
|
+
]
|