@zoralabs/coins 0.7.0 → 0.9.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.
Files changed (104) hide show
  1. package/.env +1 -0
  2. package/.turbo/turbo-build.log +114 -109
  3. package/.turbo/turbo-update-contract-version.log +22 -0
  4. package/CHANGELOG.md +34 -0
  5. package/abis/BadImpl.json +15 -0
  6. package/abis/BalanceDeltaLibrary.json +15 -0
  7. package/abis/BaseCoin.json +1442 -0
  8. package/abis/BaseCoinDeployHook.json +78 -0
  9. package/abis/BaseHook.json +897 -0
  10. package/abis/BaseTest.json +13 -91
  11. package/abis/BeforeSwapDeltaLibrary.json +15 -0
  12. package/abis/BuySupplyWithSwapRouterHook.json +126 -0
  13. package/abis/Coin.json +48 -92
  14. package/abis/CoinConstants.json +65 -0
  15. package/abis/CoinTest.json +27 -91
  16. package/abis/CoinV4.json +1664 -0
  17. package/abis/CurrencyLibrary.json +25 -0
  18. package/abis/DeployHooks.json +9 -0
  19. package/abis/DopplerUniswapV3Test.json +20 -91
  20. package/abis/FactoryTest.json +13 -91
  21. package/abis/FakeHookNoInterface.json +21 -0
  22. package/abis/HookDeployer.json +68 -0
  23. package/abis/Hooks.json +28 -0
  24. package/abis/HooksTest.json +651 -0
  25. package/abis/IAllowanceTransfer.json +486 -0
  26. package/abis/ICoin.json +25 -1
  27. package/abis/ICoinDeployHook.json +31 -0
  28. package/abis/IContractMetadata.json +28 -0
  29. package/abis/IEIP712.json +15 -0
  30. package/abis/IEIP712_v4.json +15 -0
  31. package/abis/IERC20Minimal.json +172 -0
  32. package/abis/IERC6909Claims.json +288 -0
  33. package/abis/IERC721Permit_v4.json +88 -0
  34. package/abis/IExtsload.json +64 -0
  35. package/abis/IExttload.json +40 -0
  36. package/abis/IHasAfterCoinDeploy.json +31 -0
  37. package/abis/IHasContractName.json +15 -0
  38. package/abis/IHookDeployer.json +42 -0
  39. package/abis/IHooks.json +789 -0
  40. package/abis/IImmutableState.json +15 -0
  41. package/abis/IMulticall_v4.json +21 -0
  42. package/abis/INotifier.json +187 -0
  43. package/abis/IPermit2.json +865 -0
  44. package/abis/IPermit2Forwarder.json +138 -0
  45. package/abis/IPoolInitializer_v4.json +53 -0
  46. package/abis/IPoolManager.json +1286 -0
  47. package/abis/IPositionManager.json +712 -0
  48. package/abis/IProtocolFees.json +174 -0
  49. package/abis/ISignatureTransfer.json +394 -0
  50. package/abis/ISubscriber.json +89 -0
  51. package/abis/ISwapRouter.json +82 -0
  52. package/abis/IUnorderedNonce.json +44 -0
  53. package/abis/IV4Router.json +47 -0
  54. package/abis/IZoraFactory.json +144 -0
  55. package/abis/IZoraV4CoinHook.json +83 -0
  56. package/abis/ImmutableState.json +36 -0
  57. package/abis/LPFeeLibrary.json +65 -0
  58. package/abis/MultiOwnableTest.json +13 -91
  59. package/abis/Simulate.json +0 -91
  60. package/abis/UniV3BuySell.json +12 -0
  61. package/abis/UniV3Errors.json +32 -0
  62. package/abis/UpgradeFactoryImpl.json +9 -0
  63. package/abis/UpgradesTest.json +604 -0
  64. package/abis/ZoraFactoryImpl.json +111 -0
  65. package/abis/ZoraV4CoinHook.json +989 -0
  66. package/addresses/8453.json +2 -1
  67. package/addresses/84532.json +4 -3
  68. package/dist/index.cjs +125 -62
  69. package/dist/index.cjs.map +1 -1
  70. package/dist/index.js +120 -56
  71. package/dist/index.js.map +1 -1
  72. package/dist/wagmiGenerated.d.ts +212 -464
  73. package/dist/wagmiGenerated.d.ts.map +1 -1
  74. package/package/wagmiGenerated.ts +122 -66
  75. package/package.json +4 -4
  76. package/script/CoinsDeployerBase.sol +32 -0
  77. package/script/DeployHooks.s.sol +22 -0
  78. package/script/Simulate.s.sol +3 -2
  79. package/script/UpgradeCoinImpl.sol +2 -2
  80. package/script/UpgradeFactoryImpl.s.sol +23 -0
  81. package/src/Coin.sol +35 -342
  82. package/src/ZoraFactoryImpl.sol +73 -45
  83. package/src/hooks/BaseCoinDeployHook.sol +62 -0
  84. package/src/hooks/BuySupplyWithSwapRouterHook.sol +78 -0
  85. package/src/interfaces/ICoin.sol +5 -1
  86. package/src/interfaces/ICoinDeployHook.sol +8 -0
  87. package/src/interfaces/ISwapRouter.sol +1 -35
  88. package/src/interfaces/IZoraFactory.sol +52 -0
  89. package/src/{utils → libs}/CoinConstants.sol +6 -6
  90. package/src/libs/CoinLegacy.sol +4 -4
  91. package/src/libs/CoinLegacyMarket.sol +182 -0
  92. package/src/libs/CoinSetupV3.sol +111 -0
  93. package/src/libs/UniV3BuySell.sol +449 -0
  94. package/src/libs/UniV3Errors.sol +11 -0
  95. package/src/version/ContractVersionBase.sol +1 -1
  96. package/test/Coin.t.sol +35 -17
  97. package/test/CoinDopplerUniV3.t.sol +14 -17
  98. package/test/Factory.t.sol +4 -3
  99. package/test/Hooks.t.sol +274 -0
  100. package/test/Upgrades.t.sol +67 -0
  101. package/test/utils/BaseTest.sol +18 -3
  102. package/wagmi.config.ts +6 -9
  103. package/src/libs/CoinSetup.sol +0 -37
  104. /package/abis/{CoinSetup.json → CoinSetupV3.json} +0 -0
@@ -1,112 +1,137 @@
1
- export declare const coinABI: readonly [{
1
+ export declare const buySupplyWithSwapRouterHookABI: readonly [{
2
2
  readonly type: "constructor";
3
3
  readonly inputs: readonly [{
4
- readonly name: "_protocolRewardRecipient";
5
- readonly internalType: "address";
4
+ readonly name: "_factory";
5
+ readonly internalType: "contract IZoraFactory";
6
6
  readonly type: "address";
7
7
  }, {
8
- readonly name: "_protocolRewards";
9
- readonly internalType: "address";
10
- readonly type: "address";
11
- }, {
12
- readonly name: "_weth";
8
+ readonly name: "_swapRouter";
13
9
  readonly internalType: "address";
14
10
  readonly type: "address";
15
- }, {
16
- readonly name: "_v3Factory";
11
+ }];
12
+ readonly stateMutability: "nonpayable";
13
+ }, {
14
+ readonly type: "function";
15
+ readonly inputs: readonly [{
16
+ readonly name: "sender";
17
17
  readonly internalType: "address";
18
18
  readonly type: "address";
19
19
  }, {
20
- readonly name: "_swapRouter";
21
- readonly internalType: "address";
20
+ readonly name: "coin";
21
+ readonly internalType: "contract ICoin";
22
22
  readonly type: "address";
23
23
  }, {
24
- readonly name: "_airlock";
25
- readonly internalType: "address";
26
- readonly type: "address";
24
+ readonly name: "hookData";
25
+ readonly internalType: "bytes";
26
+ readonly type: "bytes";
27
27
  }];
28
- readonly stateMutability: "nonpayable";
29
- }, {
30
- readonly type: "receive";
31
- readonly stateMutability: "payable";
32
- }, {
33
- readonly type: "function";
34
- readonly inputs: readonly [];
35
- readonly name: "DOMAIN_SEPARATOR";
28
+ readonly name: "afterCoinDeploy";
36
29
  readonly outputs: readonly [{
37
30
  readonly name: "";
38
- readonly internalType: "bytes32";
39
- readonly type: "bytes32";
31
+ readonly internalType: "bytes";
32
+ readonly type: "bytes";
40
33
  }];
41
- readonly stateMutability: "view";
34
+ readonly stateMutability: "payable";
42
35
  }, {
43
36
  readonly type: "function";
44
37
  readonly inputs: readonly [];
45
- readonly name: "MAX_TOTAL_SUPPLY";
38
+ readonly name: "factory";
46
39
  readonly outputs: readonly [{
47
40
  readonly name: "";
48
- readonly internalType: "uint256";
49
- readonly type: "uint256";
41
+ readonly internalType: "contract IZoraFactory";
42
+ readonly type: "address";
50
43
  }];
51
44
  readonly stateMutability: "view";
52
45
  }, {
53
46
  readonly type: "function";
54
- readonly inputs: readonly [];
55
- readonly name: "MIN_ORDER_SIZE";
47
+ readonly inputs: readonly [{
48
+ readonly name: "interfaceId";
49
+ readonly internalType: "bytes4";
50
+ readonly type: "bytes4";
51
+ }];
52
+ readonly name: "supportsInterface";
56
53
  readonly outputs: readonly [{
57
54
  readonly name: "";
58
- readonly internalType: "uint256";
59
- readonly type: "uint256";
55
+ readonly internalType: "bool";
56
+ readonly type: "bool";
60
57
  }];
61
- readonly stateMutability: "view";
58
+ readonly stateMutability: "pure";
62
59
  }, {
63
- readonly type: "function";
60
+ readonly type: "error";
64
61
  readonly inputs: readonly [];
65
- readonly name: "PLATFORM_REFERRER_FEE_BPS";
66
- readonly outputs: readonly [{
67
- readonly name: "";
62
+ readonly name: "AddressZero";
63
+ }, {
64
+ readonly type: "error";
65
+ readonly inputs: readonly [{
66
+ readonly name: "balance";
68
67
  readonly internalType: "uint256";
69
68
  readonly type: "uint256";
70
69
  }];
71
- readonly stateMutability: "view";
70
+ readonly name: "CoinBalanceNot0";
72
71
  }, {
73
- readonly type: "function";
72
+ readonly type: "error";
74
73
  readonly inputs: readonly [];
75
- readonly name: "PROTOCOL_FEE_BPS";
76
- readonly outputs: readonly [{
77
- readonly name: "";
78
- readonly internalType: "uint256";
79
- readonly type: "uint256";
80
- }];
81
- readonly stateMutability: "view";
74
+ readonly name: "Erc20NotReceived";
82
75
  }, {
83
- readonly type: "function";
76
+ readonly type: "error";
84
77
  readonly inputs: readonly [];
85
- readonly name: "TOKEN_CREATOR_FEE_BPS";
86
- readonly outputs: readonly [{
87
- readonly name: "";
88
- readonly internalType: "uint256";
89
- readonly type: "uint256";
90
- }];
91
- readonly stateMutability: "view";
78
+ readonly name: "HookNotImplemented";
92
79
  }, {
93
- readonly type: "function";
80
+ readonly type: "error";
94
81
  readonly inputs: readonly [];
95
- readonly name: "TOTAL_FEE_BPS";
96
- readonly outputs: readonly [{
97
- readonly name: "";
98
- readonly internalType: "uint256";
99
- readonly type: "uint256";
82
+ readonly name: "InvalidSwapRouterCall";
83
+ }, {
84
+ readonly type: "error";
85
+ readonly inputs: readonly [];
86
+ readonly name: "NotFactory";
87
+ }, {
88
+ readonly type: "error";
89
+ readonly inputs: readonly [{
90
+ readonly name: "error";
91
+ readonly internalType: "bytes";
92
+ readonly type: "bytes";
100
93
  }];
101
- readonly stateMutability: "view";
94
+ readonly name: "SwapReverted";
95
+ }];
96
+ export declare const coinABI: readonly [{
97
+ readonly type: "constructor";
98
+ readonly inputs: readonly [{
99
+ readonly name: "_protocolRewardRecipient";
100
+ readonly internalType: "address";
101
+ readonly type: "address";
102
+ }, {
103
+ readonly name: "_protocolRewards";
104
+ readonly internalType: "address";
105
+ readonly type: "address";
106
+ }, {
107
+ readonly name: "_weth";
108
+ readonly internalType: "address";
109
+ readonly type: "address";
110
+ }, {
111
+ readonly name: "_v3Factory";
112
+ readonly internalType: "address";
113
+ readonly type: "address";
114
+ }, {
115
+ readonly name: "_swapRouter";
116
+ readonly internalType: "address";
117
+ readonly type: "address";
118
+ }, {
119
+ readonly name: "_airlock";
120
+ readonly internalType: "address";
121
+ readonly type: "address";
122
+ }];
123
+ readonly stateMutability: "nonpayable";
124
+ }, {
125
+ readonly type: "receive";
126
+ readonly stateMutability: "payable";
102
127
  }, {
103
128
  readonly type: "function";
104
129
  readonly inputs: readonly [];
105
- readonly name: "TRADE_REFERRER_FEE_BPS";
130
+ readonly name: "DOMAIN_SEPARATOR";
106
131
  readonly outputs: readonly [{
107
132
  readonly name: "";
108
- readonly internalType: "uint256";
109
- readonly type: "uint256";
133
+ readonly internalType: "bytes32";
134
+ readonly type: "bytes32";
110
135
  }];
111
136
  readonly stateMutability: "view";
112
137
  }, {
@@ -375,6 +400,26 @@ export declare const coinABI: readonly [{
375
400
  readonly type: "bool";
376
401
  }];
377
402
  readonly stateMutability: "view";
403
+ }, {
404
+ readonly type: "function";
405
+ readonly inputs: readonly [];
406
+ readonly name: "market";
407
+ readonly outputs: readonly [{
408
+ readonly name: "";
409
+ readonly internalType: "bytes";
410
+ readonly type: "bytes";
411
+ }];
412
+ readonly stateMutability: "view";
413
+ }, {
414
+ readonly type: "function";
415
+ readonly inputs: readonly [];
416
+ readonly name: "marketVersion";
417
+ readonly outputs: readonly [{
418
+ readonly name: "";
419
+ readonly internalType: "uint8";
420
+ readonly type: "uint8";
421
+ }];
422
+ readonly stateMutability: "view";
378
423
  }, {
379
424
  readonly type: "function";
380
425
  readonly inputs: readonly [];
@@ -1126,6 +1171,10 @@ export declare const coinABI: readonly [{
1126
1171
  readonly type: "error";
1127
1172
  readonly inputs: readonly [];
1128
1173
  readonly name: "AddressZero";
1174
+ }, {
1175
+ readonly type: "error";
1176
+ readonly inputs: readonly [];
1177
+ readonly name: "AddressZero";
1129
1178
  }, {
1130
1179
  readonly type: "error";
1131
1180
  readonly inputs: readonly [];
@@ -1306,6 +1355,10 @@ export declare const coinABI: readonly [{
1306
1355
  readonly type: "error";
1307
1356
  readonly inputs: readonly [];
1308
1357
  readonly name: "InvalidPoolVersion";
1358
+ }, {
1359
+ readonly type: "error";
1360
+ readonly inputs: readonly [];
1361
+ readonly name: "InvalidPoolVersion";
1309
1362
  }, {
1310
1363
  readonly type: "error";
1311
1364
  readonly inputs: readonly [{
@@ -1368,7 +1421,15 @@ export declare const coinABI: readonly [{
1368
1421
  readonly name: "OnlyOwner";
1369
1422
  }, {
1370
1423
  readonly type: "error";
1371
- readonly inputs: readonly [];
1424
+ readonly inputs: readonly [{
1425
+ readonly name: "sender";
1426
+ readonly internalType: "address";
1427
+ readonly type: "address";
1428
+ }, {
1429
+ readonly name: "pool";
1430
+ readonly internalType: "address";
1431
+ readonly type: "address";
1432
+ }];
1372
1433
  readonly name: "OnlyPool";
1373
1434
  }, {
1374
1435
  readonly type: "error";
@@ -1617,10 +1678,6 @@ export declare const iUniswapV3PoolABI: readonly [{
1617
1678
  }];
1618
1679
  readonly stateMutability: "nonpayable";
1619
1680
  }];
1620
- /**
1621
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x02B2705500096Ff83F9eF78873ca5DFB06C00Ddc)
1622
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
1623
- */
1624
1681
  export declare const zoraFactoryImplABI: readonly [{
1625
1682
  readonly type: "constructor";
1626
1683
  readonly inputs: readonly [{
@@ -1649,6 +1706,26 @@ export declare const zoraFactoryImplABI: readonly [{
1649
1706
  readonly type: "address";
1650
1707
  }];
1651
1708
  readonly stateMutability: "view";
1709
+ }, {
1710
+ readonly type: "function";
1711
+ readonly inputs: readonly [];
1712
+ readonly name: "contractName";
1713
+ readonly outputs: readonly [{
1714
+ readonly name: "";
1715
+ readonly internalType: "string";
1716
+ readonly type: "string";
1717
+ }];
1718
+ readonly stateMutability: "pure";
1719
+ }, {
1720
+ readonly type: "function";
1721
+ readonly inputs: readonly [];
1722
+ readonly name: "contractVersion";
1723
+ readonly outputs: readonly [{
1724
+ readonly name: "";
1725
+ readonly internalType: "string";
1726
+ readonly type: "string";
1727
+ }];
1728
+ readonly stateMutability: "pure";
1652
1729
  }, {
1653
1730
  readonly type: "function";
1654
1731
  readonly inputs: readonly [{
@@ -1745,6 +1822,56 @@ export declare const zoraFactoryImplABI: readonly [{
1745
1822
  readonly type: "uint256";
1746
1823
  }];
1747
1824
  readonly stateMutability: "payable";
1825
+ }, {
1826
+ readonly type: "function";
1827
+ readonly inputs: readonly [{
1828
+ readonly name: "payoutRecipient";
1829
+ readonly internalType: "address";
1830
+ readonly type: "address";
1831
+ }, {
1832
+ readonly name: "owners";
1833
+ readonly internalType: "address[]";
1834
+ readonly type: "address[]";
1835
+ }, {
1836
+ readonly name: "uri";
1837
+ readonly internalType: "string";
1838
+ readonly type: "string";
1839
+ }, {
1840
+ readonly name: "name";
1841
+ readonly internalType: "string";
1842
+ readonly type: "string";
1843
+ }, {
1844
+ readonly name: "symbol";
1845
+ readonly internalType: "string";
1846
+ readonly type: "string";
1847
+ }, {
1848
+ readonly name: "poolConfig";
1849
+ readonly internalType: "bytes";
1850
+ readonly type: "bytes";
1851
+ }, {
1852
+ readonly name: "platformReferrer";
1853
+ readonly internalType: "address";
1854
+ readonly type: "address";
1855
+ }, {
1856
+ readonly name: "hook";
1857
+ readonly internalType: "address";
1858
+ readonly type: "address";
1859
+ }, {
1860
+ readonly name: "hookData";
1861
+ readonly internalType: "bytes";
1862
+ readonly type: "bytes";
1863
+ }];
1864
+ readonly name: "deployWithHook";
1865
+ readonly outputs: readonly [{
1866
+ readonly name: "coin";
1867
+ readonly internalType: "address";
1868
+ readonly type: "address";
1869
+ }, {
1870
+ readonly name: "hookDataOut";
1871
+ readonly internalType: "bytes";
1872
+ readonly type: "bytes";
1873
+ }];
1874
+ readonly stateMutability: "payable";
1748
1875
  }, {
1749
1876
  readonly type: "function";
1750
1877
  readonly inputs: readonly [];
@@ -1949,6 +2076,10 @@ export declare const zoraFactoryImplABI: readonly [{
1949
2076
  readonly type: "error";
1950
2077
  readonly inputs: readonly [];
1951
2078
  readonly name: "FailedInnerCall";
2079
+ }, {
2080
+ readonly type: "error";
2081
+ readonly inputs: readonly [];
2082
+ readonly name: "InvalidHook";
1952
2083
  }, {
1953
2084
  readonly type: "error";
1954
2085
  readonly inputs: readonly [];
@@ -1997,400 +2128,17 @@ export declare const zoraFactoryImplABI: readonly [{
1997
2128
  readonly type: "bytes32";
1998
2129
  }];
1999
2130
  readonly name: "UUPSUnsupportedProxiableUUID";
2000
- }];
2001
- /**
2002
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x02B2705500096Ff83F9eF78873ca5DFB06C00Ddc)
2003
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
2004
- */
2005
- export declare const zoraFactoryImplAddress: {
2006
- readonly 8453: "0x02B2705500096Ff83F9eF78873ca5DFB06C00Ddc";
2007
- readonly 84532: "0x777777751622c0d3258f214F9DF38E35BF45baF3";
2008
- };
2009
- /**
2010
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x02B2705500096Ff83F9eF78873ca5DFB06C00Ddc)
2011
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
2012
- */
2013
- export declare const zoraFactoryImplConfig: {
2014
- readonly address: {
2015
- readonly 8453: "0x02B2705500096Ff83F9eF78873ca5DFB06C00Ddc";
2016
- readonly 84532: "0x777777751622c0d3258f214F9DF38E35BF45baF3";
2017
- };
2018
- readonly abi: readonly [{
2019
- readonly type: "constructor";
2020
- readonly inputs: readonly [{
2021
- readonly name: "_coinImpl";
2022
- readonly internalType: "address";
2023
- readonly type: "address";
2024
- }];
2025
- readonly stateMutability: "nonpayable";
2026
- }, {
2027
- readonly type: "function";
2028
- readonly inputs: readonly [];
2029
- readonly name: "UPGRADE_INTERFACE_VERSION";
2030
- readonly outputs: readonly [{
2031
- readonly name: "";
2032
- readonly internalType: "string";
2033
- readonly type: "string";
2034
- }];
2035
- readonly stateMutability: "view";
2036
- }, {
2037
- readonly type: "function";
2038
- readonly inputs: readonly [];
2039
- readonly name: "coinImpl";
2040
- readonly outputs: readonly [{
2041
- readonly name: "";
2042
- readonly internalType: "address";
2043
- readonly type: "address";
2044
- }];
2045
- readonly stateMutability: "view";
2046
- }, {
2047
- readonly type: "function";
2048
- readonly inputs: readonly [{
2049
- readonly name: "payoutRecipient";
2050
- readonly internalType: "address";
2051
- readonly type: "address";
2052
- }, {
2053
- readonly name: "owners";
2054
- readonly internalType: "address[]";
2055
- readonly type: "address[]";
2056
- }, {
2057
- readonly name: "uri";
2058
- readonly internalType: "string";
2059
- readonly type: "string";
2060
- }, {
2061
- readonly name: "name";
2062
- readonly internalType: "string";
2063
- readonly type: "string";
2064
- }, {
2065
- readonly name: "symbol";
2066
- readonly internalType: "string";
2067
- readonly type: "string";
2068
- }, {
2069
- readonly name: "platformReferrer";
2070
- readonly internalType: "address";
2071
- readonly type: "address";
2072
- }, {
2073
- readonly name: "currency";
2074
- readonly internalType: "address";
2075
- readonly type: "address";
2076
- }, {
2077
- readonly name: "tickLower";
2078
- readonly internalType: "int24";
2079
- readonly type: "int24";
2080
- }, {
2081
- readonly name: "orderSize";
2082
- readonly internalType: "uint256";
2083
- readonly type: "uint256";
2084
- }];
2085
- readonly name: "deploy";
2086
- readonly outputs: readonly [{
2087
- readonly name: "";
2088
- readonly internalType: "address";
2089
- readonly type: "address";
2090
- }, {
2091
- readonly name: "";
2092
- readonly internalType: "uint256";
2093
- readonly type: "uint256";
2094
- }];
2095
- readonly stateMutability: "payable";
2096
- }, {
2097
- readonly type: "function";
2098
- readonly inputs: readonly [{
2099
- readonly name: "payoutRecipient";
2100
- readonly internalType: "address";
2101
- readonly type: "address";
2102
- }, {
2103
- readonly name: "owners";
2104
- readonly internalType: "address[]";
2105
- readonly type: "address[]";
2106
- }, {
2107
- readonly name: "uri";
2108
- readonly internalType: "string";
2109
- readonly type: "string";
2110
- }, {
2111
- readonly name: "name";
2112
- readonly internalType: "string";
2113
- readonly type: "string";
2114
- }, {
2115
- readonly name: "symbol";
2116
- readonly internalType: "string";
2117
- readonly type: "string";
2118
- }, {
2119
- readonly name: "poolConfig";
2120
- readonly internalType: "bytes";
2121
- readonly type: "bytes";
2122
- }, {
2123
- readonly name: "platformReferrer";
2124
- readonly internalType: "address";
2125
- readonly type: "address";
2126
- }, {
2127
- readonly name: "orderSize";
2128
- readonly internalType: "uint256";
2129
- readonly type: "uint256";
2130
- }];
2131
- readonly name: "deploy";
2132
- readonly outputs: readonly [{
2133
- readonly name: "";
2134
- readonly internalType: "address";
2135
- readonly type: "address";
2136
- }, {
2137
- readonly name: "";
2138
- readonly internalType: "uint256";
2139
- readonly type: "uint256";
2140
- }];
2141
- readonly stateMutability: "payable";
2142
- }, {
2143
- readonly type: "function";
2144
- readonly inputs: readonly [];
2145
- readonly name: "implementation";
2146
- readonly outputs: readonly [{
2147
- readonly name: "";
2148
- readonly internalType: "address";
2149
- readonly type: "address";
2150
- }];
2151
- readonly stateMutability: "view";
2152
- }, {
2153
- readonly type: "function";
2154
- readonly inputs: readonly [{
2155
- readonly name: "initialOwner";
2156
- readonly internalType: "address";
2157
- readonly type: "address";
2158
- }];
2159
- readonly name: "initialize";
2160
- readonly outputs: readonly [];
2161
- readonly stateMutability: "nonpayable";
2162
- }, {
2163
- readonly type: "function";
2164
- readonly inputs: readonly [];
2165
- readonly name: "owner";
2166
- readonly outputs: readonly [{
2167
- readonly name: "";
2168
- readonly internalType: "address";
2169
- readonly type: "address";
2170
- }];
2171
- readonly stateMutability: "view";
2172
- }, {
2173
- readonly type: "function";
2174
- readonly inputs: readonly [];
2175
- readonly name: "proxiableUUID";
2176
- readonly outputs: readonly [{
2177
- readonly name: "";
2178
- readonly internalType: "bytes32";
2179
- readonly type: "bytes32";
2180
- }];
2181
- readonly stateMutability: "view";
2182
- }, {
2183
- readonly type: "function";
2184
- readonly inputs: readonly [];
2185
- readonly name: "renounceOwnership";
2186
- readonly outputs: readonly [];
2187
- readonly stateMutability: "nonpayable";
2188
- }, {
2189
- readonly type: "function";
2190
- readonly inputs: readonly [{
2191
- readonly name: "newOwner";
2192
- readonly internalType: "address";
2193
- readonly type: "address";
2194
- }];
2195
- readonly name: "transferOwnership";
2196
- readonly outputs: readonly [];
2197
- readonly stateMutability: "nonpayable";
2198
- }, {
2199
- readonly type: "function";
2200
- readonly inputs: readonly [{
2201
- readonly name: "newImplementation";
2202
- readonly internalType: "address";
2203
- readonly type: "address";
2204
- }, {
2205
- readonly name: "data";
2206
- readonly internalType: "bytes";
2207
- readonly type: "bytes";
2208
- }];
2209
- readonly name: "upgradeToAndCall";
2210
- readonly outputs: readonly [];
2211
- readonly stateMutability: "payable";
2212
- }, {
2213
- readonly type: "event";
2214
- readonly anonymous: false;
2215
- readonly inputs: readonly [{
2216
- readonly name: "caller";
2217
- readonly internalType: "address";
2218
- readonly type: "address";
2219
- readonly indexed: true;
2220
- }, {
2221
- readonly name: "payoutRecipient";
2222
- readonly internalType: "address";
2223
- readonly type: "address";
2224
- readonly indexed: true;
2225
- }, {
2226
- readonly name: "platformReferrer";
2227
- readonly internalType: "address";
2228
- readonly type: "address";
2229
- readonly indexed: true;
2230
- }, {
2231
- readonly name: "currency";
2232
- readonly internalType: "address";
2233
- readonly type: "address";
2234
- readonly indexed: false;
2235
- }, {
2236
- readonly name: "uri";
2237
- readonly internalType: "string";
2238
- readonly type: "string";
2239
- readonly indexed: false;
2240
- }, {
2241
- readonly name: "name";
2242
- readonly internalType: "string";
2243
- readonly type: "string";
2244
- readonly indexed: false;
2245
- }, {
2246
- readonly name: "symbol";
2247
- readonly internalType: "string";
2248
- readonly type: "string";
2249
- readonly indexed: false;
2250
- }, {
2251
- readonly name: "coin";
2252
- readonly internalType: "address";
2253
- readonly type: "address";
2254
- readonly indexed: false;
2255
- }, {
2256
- readonly name: "pool";
2257
- readonly internalType: "address";
2258
- readonly type: "address";
2259
- readonly indexed: false;
2260
- }, {
2261
- readonly name: "version";
2262
- readonly internalType: "string";
2263
- readonly type: "string";
2264
- readonly indexed: false;
2265
- }];
2266
- readonly name: "CoinCreated";
2267
- }, {
2268
- readonly type: "event";
2269
- readonly anonymous: false;
2270
- readonly inputs: readonly [{
2271
- readonly name: "version";
2272
- readonly internalType: "uint64";
2273
- readonly type: "uint64";
2274
- readonly indexed: false;
2275
- }];
2276
- readonly name: "Initialized";
2277
- }, {
2278
- readonly type: "event";
2279
- readonly anonymous: false;
2280
- readonly inputs: readonly [{
2281
- readonly name: "previousOwner";
2282
- readonly internalType: "address";
2283
- readonly type: "address";
2284
- readonly indexed: true;
2285
- }, {
2286
- readonly name: "newOwner";
2287
- readonly internalType: "address";
2288
- readonly type: "address";
2289
- readonly indexed: true;
2290
- }];
2291
- readonly name: "OwnershipTransferred";
2292
- }, {
2293
- readonly type: "event";
2294
- readonly anonymous: false;
2295
- readonly inputs: readonly [{
2296
- readonly name: "implementation";
2297
- readonly internalType: "address";
2298
- readonly type: "address";
2299
- readonly indexed: true;
2300
- }];
2301
- readonly name: "Upgraded";
2302
- }, {
2303
- readonly type: "error";
2304
- readonly inputs: readonly [{
2305
- readonly name: "target";
2306
- readonly internalType: "address";
2307
- readonly type: "address";
2308
- }];
2309
- readonly name: "AddressEmptyCode";
2310
- }, {
2311
- readonly type: "error";
2312
- readonly inputs: readonly [{
2313
- readonly name: "account";
2314
- readonly internalType: "address";
2315
- readonly type: "address";
2316
- }];
2317
- readonly name: "AddressInsufficientBalance";
2318
- }, {
2319
- readonly type: "error";
2320
- readonly inputs: readonly [];
2321
- readonly name: "ERC1167FailedCreateClone";
2322
- }, {
2323
- readonly type: "error";
2324
- readonly inputs: readonly [{
2325
- readonly name: "implementation";
2326
- readonly internalType: "address";
2327
- readonly type: "address";
2328
- }];
2329
- readonly name: "ERC1967InvalidImplementation";
2330
- }, {
2331
- readonly type: "error";
2332
- readonly inputs: readonly [];
2333
- readonly name: "ERC1967NonPayable";
2334
- }, {
2335
- readonly type: "error";
2336
- readonly inputs: readonly [];
2337
- readonly name: "ERC20TransferAmountMismatch";
2338
- }, {
2339
- readonly type: "error";
2340
- readonly inputs: readonly [];
2341
- readonly name: "EthTransferInvalid";
2342
- }, {
2343
- readonly type: "error";
2344
- readonly inputs: readonly [];
2345
- readonly name: "FailedInnerCall";
2346
- }, {
2347
- readonly type: "error";
2348
- readonly inputs: readonly [];
2349
- readonly name: "InvalidInitialization";
2350
- }, {
2351
- readonly type: "error";
2352
- readonly inputs: readonly [];
2353
- readonly name: "NotInitializing";
2354
- }, {
2355
- readonly type: "error";
2356
- readonly inputs: readonly [{
2357
- readonly name: "owner";
2358
- readonly internalType: "address";
2359
- readonly type: "address";
2360
- }];
2361
- readonly name: "OwnableInvalidOwner";
2362
- }, {
2363
- readonly type: "error";
2364
- readonly inputs: readonly [{
2365
- readonly name: "account";
2366
- readonly internalType: "address";
2367
- readonly type: "address";
2368
- }];
2369
- readonly name: "OwnableUnauthorizedAccount";
2370
- }, {
2371
- readonly type: "error";
2372
- readonly inputs: readonly [];
2373
- readonly name: "ReentrancyGuardReentrantCall";
2374
- }, {
2375
- readonly type: "error";
2376
- readonly inputs: readonly [{
2377
- readonly name: "token";
2378
- readonly internalType: "address";
2379
- readonly type: "address";
2380
- }];
2381
- readonly name: "SafeERC20FailedOperation";
2382
- }, {
2383
- readonly type: "error";
2384
- readonly inputs: readonly [];
2385
- readonly name: "UUPSUnauthorizedCallContext";
2131
+ }, {
2132
+ readonly type: "error";
2133
+ readonly inputs: readonly [{
2134
+ readonly name: "currentName";
2135
+ readonly internalType: "string";
2136
+ readonly type: "string";
2386
2137
  }, {
2387
- readonly type: "error";
2388
- readonly inputs: readonly [{
2389
- readonly name: "slot";
2390
- readonly internalType: "bytes32";
2391
- readonly type: "bytes32";
2392
- }];
2393
- readonly name: "UUPSUnsupportedProxiableUUID";
2138
+ readonly name: "newName";
2139
+ readonly internalType: "string";
2140
+ readonly type: "string";
2394
2141
  }];
2395
- };
2142
+ readonly name: "UpgradeToMismatchedContractName";
2143
+ }];
2396
2144
  //# sourceMappingURL=wagmiGenerated.d.ts.map