@zoralabs/coins 0.5.0 → 0.5.1-sdkalpha.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/.env.example +7 -0
- package/.turbo/turbo-build.log +93 -76
- package/CHANGELOG.md +6 -0
- package/README.md +29 -0
- package/abis/CoinTest.json +35 -0
- package/abis/Create2.json +28 -0
- package/abis/DeployScript.json +9 -0
- package/abis/DeterministicDeployerAndCaller.json +315 -0
- package/abis/DeterministicUUPSProxyDeployer.json +167 -0
- package/abis/FactoryTest.json +20 -0
- package/abis/GenerateDeterministicParams.json +9 -0
- package/abis/IImmutableCreate2Factory.json +93 -0
- package/abis/ISafe.json +15 -0
- package/abis/ISymbol.json +15 -0
- package/abis/ImmutableCreate2FactoryUtils.json +15 -0
- package/abis/LibString.json +7 -0
- package/abis/ProxyShim.json +112 -0
- package/abis/ZoraFactory.json +0 -5
- package/addresses/8453.json +5 -8
- package/addresses/84532.json +5 -8
- package/deterministicConfig/deployerAndCaller.json +5 -0
- package/deterministicConfig/zoraFactory.json +8 -0
- package/dist/index.cjs +92 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +88 -1
- package/dist/index.js.map +1 -1
- package/dist/wagmiGenerated.d.ts +467 -0
- package/dist/wagmiGenerated.d.ts.map +1 -1
- package/foundry.toml +14 -0
- package/integration/.env +2 -0
- package/lcov.info +634 -0
- package/package/wagmiGenerated.ts +103 -0
- package/package.json +4 -3
- package/remappings.txt +2 -1
- package/script/CoinsDeployerBase.sol +98 -0
- package/script/Deploy.s.sol +14 -5
- package/script/GenerateDeterministicParams.s.sol +43 -0
- package/src/proxy/ZoraFactory.sol +7 -1
- package/test/Coin.t.sol +115 -0
- package/test/Factory.t.sol +33 -0
- package/test/utils/BaseTest.sol +4 -4
- package/wagmi.config.ts +7 -1
- package/abis/Deploy.json +0 -29
- package/addresses/1.json +0 -4
package/.env.example
ADDED
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,76 +1,93 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Compiler run
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
24
|
-
[33m
|
|
25
|
-
|
|
26
|
-
[
|
|
27
|
-
[
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
src
|
|
53
|
-
|
|
54
|
-
src/
|
|
55
|
-
src/
|
|
56
|
-
src/
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @zoralabs/coins@0.5.0 build /Users/iain/zora/zora-protocol-private/packages/coins
|
|
4
|
+
> pnpm run wagmi:generate && pnpm run copy-abis && pnpm run prettier:write && tsup
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
> @zoralabs/coins@0.5.0 wagmi:generate /Users/iain/zora/zora-protocol-private/packages/coins
|
|
8
|
+
> FOUNDRY_PROFILE=dev forge build && wagmi generate && pnpm exec rename-generated-abi-casing ./package/wagmiGenerated.ts
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
Compiler run [33msuccessful with warnings[0m:
|
|
14
|
+
[1;33mWarning (9302)[0m[1;37m: Return value of low-level calls not used.[0m
|
|
15
|
+
[34m-->[0m test/Coin.t.sol:527:9:
|
|
16
|
+
[34m |[0m
|
|
17
|
+
[34m527 |[0m [33maddress(coin).call{value: 1 ether}("")[0m;
|
|
18
|
+
[34m |[0m [1;33m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m
|
|
19
|
+
|
|
20
|
+
[1;33mWarning (2072)[0m[1;37m: Unused local variable.[0m
|
|
21
|
+
[34m-->[0m script/DeployCoinImpl.s.sol:14:9:
|
|
22
|
+
[34m |[0m
|
|
23
|
+
[34m14 |[0m [33mDeterministicDeployerAndCaller deployer[0m = createOrGetDeployerAndCaller();
|
|
24
|
+
[34m |[0m [1;33m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m
|
|
25
|
+
|
|
26
|
+
[1;33mWarning (2072)[0m[1;37m: Unused local variable.[0m
|
|
27
|
+
[34m-->[0m test/Coin.t.sol:446:10:
|
|
28
|
+
[34m |[0m
|
|
29
|
+
[34m446 |[0m ([33maddress newCoinAddr[0m, ) = factory.deploy(
|
|
30
|
+
[34m |[0m [1;33m^^^^^^^^^^^^^^^^^^^[0m
|
|
31
|
+
|
|
32
|
+
[1;33mWarning (2072)[0m[1;37m: Unused local variable.[0m
|
|
33
|
+
[34m-->[0m test/Coin.t.sol:464:10:
|
|
34
|
+
[34m |[0m
|
|
35
|
+
[34m464 |[0m ([33maddress newCoinAddr[0m, ) = factory.deploy(
|
|
36
|
+
[34m |[0m [1;33m^^^^^^^^^^^^^^^^^^^[0m
|
|
37
|
+
|
|
38
|
+
[?25l[1G[33m⠋[39m Validating plugins[1G[2K[1G[32m✔[39m Validating plugins
|
|
39
|
+
[?25h[?25l[1G[33m⠙[39m Resolving contracts[1G[2K[1G[32m✔[39m Resolving contracts
|
|
40
|
+
[?25h[?25l[1G[33m⠹[39m Running plugins[1G[2K[1G[32m✔[39m Running plugins
|
|
41
|
+
[?25h[?25l[1G[33m⠸[39m Writing to [90mpackage/wagmiGenerated.ts[39m[?25l[1G[2K[1G[33m⠼[39m Writing to [90mpackage/wagmiGenerated.ts[39m[1G[2K[1G[32m✔[39m Writing to [90mpackage/wagmiGenerated.ts[39m
|
|
42
|
+
[?25h🔄 Processing 1 file(s) to replace 'Abi' with 'ABI'...
|
|
43
|
+
📝 Processing ./package/wagmiGenerated.ts...
|
|
44
|
+
✅ Updated ./package/wagmiGenerated.ts (2 replacements)
|
|
45
|
+
✨ All files processed successfully!
|
|
46
|
+
|
|
47
|
+
> @zoralabs/coins@0.5.0 copy-abis /Users/iain/zora/zora-protocol-private/packages/coins
|
|
48
|
+
> pnpm exec bundle-abis
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
> @zoralabs/coins@0.5.0 prettier:write /Users/iain/zora/zora-protocol-private/packages/coins
|
|
52
|
+
> prettier --write 'src/**/*.sol' 'test/**/*.sol' 'script/**/*.sol'
|
|
53
|
+
|
|
54
|
+
src/Coin.sol[2K[1G[90msrc/Coin.sol[39m 364ms (unchanged)
|
|
55
|
+
src/interfaces/ICoin.sol[2K[1G[90msrc/interfaces/ICoin.sol[39m 19ms (unchanged)
|
|
56
|
+
src/interfaces/ICoinComments.sol[2K[1G[90msrc/interfaces/ICoinComments.sol[39m 2ms (unchanged)
|
|
57
|
+
src/interfaces/IERC7572.sol[2K[1G[90msrc/interfaces/IERC7572.sol[39m 1ms (unchanged)
|
|
58
|
+
src/interfaces/INonfungiblePositionManager.sol[2K[1G[90msrc/interfaces/INonfungiblePositionManager.sol[39m 8ms (unchanged)
|
|
59
|
+
src/interfaces/IProtocolRewards.sol[2K[1G[90msrc/interfaces/IProtocolRewards.sol[39m 3ms (unchanged)
|
|
60
|
+
src/interfaces/ISwapRouter.sol[2K[1G[90msrc/interfaces/ISwapRouter.sol[39m 2ms (unchanged)
|
|
61
|
+
src/interfaces/IUniswapV3Pool.sol[2K[1G[90msrc/interfaces/IUniswapV3Pool.sol[39m 2ms (unchanged)
|
|
62
|
+
src/interfaces/IUniswapV3SwapCallback.sol[2K[1G[90msrc/interfaces/IUniswapV3SwapCallback.sol[39m 1ms (unchanged)
|
|
63
|
+
src/interfaces/IWETH.sol[2K[1G[90msrc/interfaces/IWETH.sol[39m 2ms (unchanged)
|
|
64
|
+
src/interfaces/IZoraFactory.sol[2K[1G[90msrc/interfaces/IZoraFactory.sol[39m 3ms (unchanged)
|
|
65
|
+
src/proxy/ZoraFactory.sol[2K[1G[90msrc/proxy/ZoraFactory.sol[39m 7ms (unchanged)
|
|
66
|
+
src/utils/CoinConstants.sol[2K[1G[90msrc/utils/CoinConstants.sol[39m 4ms (unchanged)
|
|
67
|
+
src/utils/MultiOwnable.sol[2K[1G[90msrc/utils/MultiOwnable.sol[39m 47ms (unchanged)
|
|
68
|
+
src/utils/TickMath.sol[2K[1G[90msrc/utils/TickMath.sol[39m 89ms (unchanged)
|
|
69
|
+
src/version/ContractVersionBase.sol[2K[1G[90msrc/version/ContractVersionBase.sol[39m 1ms (unchanged)
|
|
70
|
+
src/ZoraFactoryImpl.sol[2K[1G[90msrc/ZoraFactoryImpl.sol[39m 45ms (unchanged)
|
|
71
|
+
test/Coin.t.sol[2K[1G[90mtest/Coin.t.sol[39m 276ms (unchanged)
|
|
72
|
+
test/Factory.t.sol[2K[1G[90mtest/Factory.t.sol[39m 131ms (unchanged)
|
|
73
|
+
test/MultiOwnable.t.sol[2K[1G[90mtest/MultiOwnable.t.sol[39m 68ms (unchanged)
|
|
74
|
+
test/utils/BaseTest.sol[2K[1G[90mtest/utils/BaseTest.sol[39m 69ms (unchanged)
|
|
75
|
+
test/utils/ProtocolRewards.sol[2K[1G[90mtest/utils/ProtocolRewards.sol[39m 255ms (unchanged)
|
|
76
|
+
script/CoinsDeployerBase.sol[2K[1G[90mscript/CoinsDeployerBase.sol[39m 30ms (unchanged)
|
|
77
|
+
script/Deploy.s.sol[2K[1G[90mscript/Deploy.s.sol[39m 4ms (unchanged)
|
|
78
|
+
script/DeployCoinImpl.s.sol[2K[1G[90mscript/DeployCoinImpl.s.sol[39m 4ms (unchanged)
|
|
79
|
+
script/GenerateDeterministicParams.s.sol[2K[1G[90mscript/GenerateDeterministicParams.s.sol[39m 11ms (unchanged)
|
|
80
|
+
[34mCLI[39m Building entry: package/index.ts
|
|
81
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
82
|
+
[34mCLI[39m tsup v7.3.0
|
|
83
|
+
[34mCLI[39m Using tsup config: /Users/iain/zora/zora-protocol-private/packages/coins/tsup.config.ts
|
|
84
|
+
[34mCLI[39m Target: es2021
|
|
85
|
+
[34mCLI[39m Cleaning output folder
|
|
86
|
+
[34mCJS[39m Build start
|
|
87
|
+
[34mESM[39m Build start
|
|
88
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m32.06 KB[39m
|
|
89
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m56.56 KB[39m
|
|
90
|
+
[32mCJS[39m ⚡️ Build success in 12ms
|
|
91
|
+
[32mESM[39m [1mdist/index.js [22m[32m31.00 KB[39m
|
|
92
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m56.45 KB[39m
|
|
93
|
+
[32mESM[39m ⚡️ Build success in 12ms
|
package/CHANGELOG.md
CHANGED
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Coins
|
|
2
|
+
|
|
3
|
+
## Deployment
|
|
4
|
+
|
|
5
|
+
The `ZoraFactory` contract is deployed deterministically using a turnkey account. The deployment process uses a helper contract, [DeterministicDeployerAndCaller](../../packages/shared-contracts/src/deployment/DeterministicDeployerAndCaller.sol).
|
|
6
|
+
|
|
7
|
+
### Prerequisites
|
|
8
|
+
|
|
9
|
+
- Ensure you have [Forge](https://book.getfoundry.sh/getting-started/installation) installed.
|
|
10
|
+
- Familiarity with [turnkey accounts](https://docs.turnkey.com/) is recommended.
|
|
11
|
+
|
|
12
|
+
### Setting up environment variables
|
|
13
|
+
|
|
14
|
+
In the `packages/coins` directory:
|
|
15
|
+
|
|
16
|
+
1. Copy `.env.example` to `.env`
|
|
17
|
+
2. Populate the parameters in `.env`
|
|
18
|
+
|
|
19
|
+
### Deploying the Coins Factory
|
|
20
|
+
|
|
21
|
+
1. Deploy the `ZoraFactory` contract, you must pass the `--ffi` flag to enable calling an external script to sign the deployment with turnkey:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
forge script script/Deploy.s.sol $(chains {chainName} --deploy) --broadcast --verify --ffi
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
where `{chainName}` is the emdash name of the chain you want to deploy on.
|
|
28
|
+
|
|
29
|
+
2. Verify the factory contract. Since it is deployed with create2, foundry won't always recognize the deployed contract; verification instructions will be printed out in the logs.
|
package/abis/CoinTest.json
CHANGED
|
@@ -418,6 +418,13 @@
|
|
|
418
418
|
"outputs": [],
|
|
419
419
|
"stateMutability": "nonpayable"
|
|
420
420
|
},
|
|
421
|
+
{
|
|
422
|
+
"type": "function",
|
|
423
|
+
"name": "test_fork_buy_with_eth",
|
|
424
|
+
"inputs": [],
|
|
425
|
+
"outputs": [],
|
|
426
|
+
"stateMutability": "nonpayable"
|
|
427
|
+
},
|
|
421
428
|
{
|
|
422
429
|
"type": "function",
|
|
423
430
|
"name": "test_initialize_validation",
|
|
@@ -425,6 +432,20 @@
|
|
|
425
432
|
"outputs": [],
|
|
426
433
|
"stateMutability": "nonpayable"
|
|
427
434
|
},
|
|
435
|
+
{
|
|
436
|
+
"type": "function",
|
|
437
|
+
"name": "test_invalid_currency_tick",
|
|
438
|
+
"inputs": [],
|
|
439
|
+
"outputs": [],
|
|
440
|
+
"stateMutability": "nonpayable"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"type": "function",
|
|
444
|
+
"name": "test_invalid_weth_tick",
|
|
445
|
+
"inputs": [],
|
|
446
|
+
"outputs": [],
|
|
447
|
+
"stateMutability": "nonpayable"
|
|
448
|
+
},
|
|
428
449
|
{
|
|
429
450
|
"type": "function",
|
|
430
451
|
"name": "test_market_slippage",
|
|
@@ -516,6 +537,20 @@
|
|
|
516
537
|
"outputs": [],
|
|
517
538
|
"stateMutability": "nonpayable"
|
|
518
539
|
},
|
|
540
|
+
{
|
|
541
|
+
"type": "function",
|
|
542
|
+
"name": "test_sell_for_eth_direct_and_claim_secondary",
|
|
543
|
+
"inputs": [],
|
|
544
|
+
"outputs": [],
|
|
545
|
+
"stateMutability": "nonpayable"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"type": "function",
|
|
549
|
+
"name": "test_sell_for_eth_direct_and_claim_secondary_push_eth",
|
|
550
|
+
"inputs": [],
|
|
551
|
+
"outputs": [],
|
|
552
|
+
"stateMutability": "nonpayable"
|
|
553
|
+
},
|
|
519
554
|
{
|
|
520
555
|
"type": "function",
|
|
521
556
|
"name": "test_sell_for_eth_fuzz",
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "error",
|
|
4
|
+
"name": "Create2EmptyBytecode",
|
|
5
|
+
"inputs": []
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"type": "error",
|
|
9
|
+
"name": "Create2FailedDeployment",
|
|
10
|
+
"inputs": []
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"type": "error",
|
|
14
|
+
"name": "Create2InsufficientBalance",
|
|
15
|
+
"inputs": [
|
|
16
|
+
{
|
|
17
|
+
"name": "balance",
|
|
18
|
+
"type": "uint256",
|
|
19
|
+
"internalType": "uint256"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "needed",
|
|
23
|
+
"type": "uint256",
|
|
24
|
+
"internalType": "uint256"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
]
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "constructor",
|
|
4
|
+
"inputs": [],
|
|
5
|
+
"stateMutability": "nonpayable"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"type": "function",
|
|
9
|
+
"name": "eip712Domain",
|
|
10
|
+
"inputs": [],
|
|
11
|
+
"outputs": [
|
|
12
|
+
{
|
|
13
|
+
"name": "fields",
|
|
14
|
+
"type": "bytes1",
|
|
15
|
+
"internalType": "bytes1"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "name",
|
|
19
|
+
"type": "string",
|
|
20
|
+
"internalType": "string"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "version",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"internalType": "string"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "chainId",
|
|
29
|
+
"type": "uint256",
|
|
30
|
+
"internalType": "uint256"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "verifyingContract",
|
|
34
|
+
"type": "address",
|
|
35
|
+
"internalType": "address"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "salt",
|
|
39
|
+
"type": "bytes32",
|
|
40
|
+
"internalType": "bytes32"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "extensions",
|
|
44
|
+
"type": "uint256[]",
|
|
45
|
+
"internalType": "uint256[]"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"stateMutability": "view"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"type": "function",
|
|
52
|
+
"name": "hashDigest",
|
|
53
|
+
"inputs": [
|
|
54
|
+
{
|
|
55
|
+
"name": "salt",
|
|
56
|
+
"type": "bytes32",
|
|
57
|
+
"internalType": "bytes32"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "code",
|
|
61
|
+
"type": "bytes",
|
|
62
|
+
"internalType": "bytes"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "postCreateCall",
|
|
66
|
+
"type": "bytes",
|
|
67
|
+
"internalType": "bytes"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"outputs": [
|
|
71
|
+
{
|
|
72
|
+
"name": "",
|
|
73
|
+
"type": "bytes32",
|
|
74
|
+
"internalType": "bytes32"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"stateMutability": "view"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "function",
|
|
81
|
+
"name": "permitSafeCreate2AndCall",
|
|
82
|
+
"inputs": [
|
|
83
|
+
{
|
|
84
|
+
"name": "signature",
|
|
85
|
+
"type": "bytes",
|
|
86
|
+
"internalType": "bytes"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "salt",
|
|
90
|
+
"type": "bytes32",
|
|
91
|
+
"internalType": "bytes32"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "code",
|
|
95
|
+
"type": "bytes",
|
|
96
|
+
"internalType": "bytes"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "postCreateCall",
|
|
100
|
+
"type": "bytes",
|
|
101
|
+
"internalType": "bytes"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "_expectedAddress",
|
|
105
|
+
"type": "address",
|
|
106
|
+
"internalType": "address"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"outputs": [
|
|
110
|
+
{
|
|
111
|
+
"name": "",
|
|
112
|
+
"type": "address",
|
|
113
|
+
"internalType": "address"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"stateMutability": "payable"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"type": "function",
|
|
120
|
+
"name": "proxyConstructorArgs",
|
|
121
|
+
"inputs": [],
|
|
122
|
+
"outputs": [
|
|
123
|
+
{
|
|
124
|
+
"name": "",
|
|
125
|
+
"type": "bytes",
|
|
126
|
+
"internalType": "bytes"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"stateMutability": "view"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"type": "function",
|
|
133
|
+
"name": "proxyCreationCode",
|
|
134
|
+
"inputs": [
|
|
135
|
+
{
|
|
136
|
+
"name": "proxyCode",
|
|
137
|
+
"type": "bytes",
|
|
138
|
+
"internalType": "bytes"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"outputs": [
|
|
142
|
+
{
|
|
143
|
+
"name": "",
|
|
144
|
+
"type": "bytes",
|
|
145
|
+
"internalType": "bytes"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"stateMutability": "view"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"type": "function",
|
|
152
|
+
"name": "proxyShim",
|
|
153
|
+
"inputs": [],
|
|
154
|
+
"outputs": [
|
|
155
|
+
{
|
|
156
|
+
"name": "",
|
|
157
|
+
"type": "address",
|
|
158
|
+
"internalType": "contract ProxyShim"
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
"stateMutability": "view"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"type": "function",
|
|
165
|
+
"name": "safeCreate2AndCall",
|
|
166
|
+
"inputs": [
|
|
167
|
+
{
|
|
168
|
+
"name": "salt",
|
|
169
|
+
"type": "bytes32",
|
|
170
|
+
"internalType": "bytes32"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "code",
|
|
174
|
+
"type": "bytes",
|
|
175
|
+
"internalType": "bytes"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "postCreateCall",
|
|
179
|
+
"type": "bytes",
|
|
180
|
+
"internalType": "bytes"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "_expectedAddress",
|
|
184
|
+
"type": "address",
|
|
185
|
+
"internalType": "address"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"outputs": [
|
|
189
|
+
{
|
|
190
|
+
"name": "",
|
|
191
|
+
"type": "address",
|
|
192
|
+
"internalType": "address"
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"stateMutability": "payable"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"type": "event",
|
|
199
|
+
"name": "EIP712DomainChanged",
|
|
200
|
+
"inputs": [],
|
|
201
|
+
"anonymous": false
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"type": "error",
|
|
205
|
+
"name": "CallFailed",
|
|
206
|
+
"inputs": [
|
|
207
|
+
{
|
|
208
|
+
"name": "returnData",
|
|
209
|
+
"type": "bytes",
|
|
210
|
+
"internalType": "bytes"
|
|
211
|
+
}
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"type": "error",
|
|
216
|
+
"name": "Create2EmptyBytecode",
|
|
217
|
+
"inputs": []
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"type": "error",
|
|
221
|
+
"name": "Create2FailedDeployment",
|
|
222
|
+
"inputs": []
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"type": "error",
|
|
226
|
+
"name": "Create2InsufficientBalance",
|
|
227
|
+
"inputs": [
|
|
228
|
+
{
|
|
229
|
+
"name": "balance",
|
|
230
|
+
"type": "uint256",
|
|
231
|
+
"internalType": "uint256"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "needed",
|
|
235
|
+
"type": "uint256",
|
|
236
|
+
"internalType": "uint256"
|
|
237
|
+
}
|
|
238
|
+
]
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"type": "error",
|
|
242
|
+
"name": "ECDSAInvalidSignature",
|
|
243
|
+
"inputs": []
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"type": "error",
|
|
247
|
+
"name": "ECDSAInvalidSignatureLength",
|
|
248
|
+
"inputs": [
|
|
249
|
+
{
|
|
250
|
+
"name": "length",
|
|
251
|
+
"type": "uint256",
|
|
252
|
+
"internalType": "uint256"
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"type": "error",
|
|
258
|
+
"name": "ECDSAInvalidSignatureS",
|
|
259
|
+
"inputs": [
|
|
260
|
+
{
|
|
261
|
+
"name": "s",
|
|
262
|
+
"type": "bytes32",
|
|
263
|
+
"internalType": "bytes32"
|
|
264
|
+
}
|
|
265
|
+
]
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"type": "error",
|
|
269
|
+
"name": "FactoryProxyAddressMismatch",
|
|
270
|
+
"inputs": [
|
|
271
|
+
{
|
|
272
|
+
"name": "expected",
|
|
273
|
+
"type": "address",
|
|
274
|
+
"internalType": "address"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"name": "actual",
|
|
278
|
+
"type": "address",
|
|
279
|
+
"internalType": "address"
|
|
280
|
+
}
|
|
281
|
+
]
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"type": "error",
|
|
285
|
+
"name": "InvalidSalt",
|
|
286
|
+
"inputs": [
|
|
287
|
+
{
|
|
288
|
+
"name": "signer",
|
|
289
|
+
"type": "address",
|
|
290
|
+
"internalType": "address"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "salt",
|
|
294
|
+
"type": "bytes32",
|
|
295
|
+
"internalType": "bytes32"
|
|
296
|
+
}
|
|
297
|
+
]
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"type": "error",
|
|
301
|
+
"name": "InvalidShortString",
|
|
302
|
+
"inputs": []
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"type": "error",
|
|
306
|
+
"name": "StringTooLong",
|
|
307
|
+
"inputs": [
|
|
308
|
+
{
|
|
309
|
+
"name": "str",
|
|
310
|
+
"type": "string",
|
|
311
|
+
"internalType": "string"
|
|
312
|
+
}
|
|
313
|
+
]
|
|
314
|
+
}
|
|
315
|
+
]
|