@zoralabs/coins 0.6.0 → 0.6.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.
@@ -1313,6 +1313,124 @@ export declare const coinABI: readonly [{
1313
1313
  readonly inputs: readonly [];
1314
1314
  readonly name: "UseRevokeOwnershipToRemoveSelf";
1315
1315
  }];
1316
+ export declare const iUniswapV3PoolABI: readonly [{
1317
+ readonly type: "function";
1318
+ readonly inputs: readonly [];
1319
+ readonly name: "feeGrowthGlobal0X128";
1320
+ readonly outputs: readonly [{
1321
+ readonly name: "";
1322
+ readonly internalType: "uint256";
1323
+ readonly type: "uint256";
1324
+ }];
1325
+ readonly stateMutability: "view";
1326
+ }, {
1327
+ readonly type: "function";
1328
+ readonly inputs: readonly [];
1329
+ readonly name: "feeGrowthGlobal1X128";
1330
+ readonly outputs: readonly [{
1331
+ readonly name: "";
1332
+ readonly internalType: "uint256";
1333
+ readonly type: "uint256";
1334
+ }];
1335
+ readonly stateMutability: "view";
1336
+ }, {
1337
+ readonly type: "function";
1338
+ readonly inputs: readonly [];
1339
+ readonly name: "slot0";
1340
+ readonly outputs: readonly [{
1341
+ readonly name: "slot0";
1342
+ readonly internalType: "struct IUniswapV3Pool.Slot0";
1343
+ readonly type: "tuple";
1344
+ readonly components: readonly [{
1345
+ readonly name: "sqrtPriceX96";
1346
+ readonly internalType: "uint160";
1347
+ readonly type: "uint160";
1348
+ }, {
1349
+ readonly name: "tick";
1350
+ readonly internalType: "int24";
1351
+ readonly type: "int24";
1352
+ }, {
1353
+ readonly name: "observationIndex";
1354
+ readonly internalType: "uint16";
1355
+ readonly type: "uint16";
1356
+ }, {
1357
+ readonly name: "observationCardinality";
1358
+ readonly internalType: "uint16";
1359
+ readonly type: "uint16";
1360
+ }, {
1361
+ readonly name: "observationCardinalityNext";
1362
+ readonly internalType: "uint16";
1363
+ readonly type: "uint16";
1364
+ }, {
1365
+ readonly name: "feeProtocol";
1366
+ readonly internalType: "uint8";
1367
+ readonly type: "uint8";
1368
+ }, {
1369
+ readonly name: "unlocked";
1370
+ readonly internalType: "bool";
1371
+ readonly type: "bool";
1372
+ }];
1373
+ }];
1374
+ readonly stateMutability: "view";
1375
+ }, {
1376
+ readonly type: "function";
1377
+ readonly inputs: readonly [{
1378
+ readonly name: "recipient";
1379
+ readonly internalType: "address";
1380
+ readonly type: "address";
1381
+ }, {
1382
+ readonly name: "zeroForOne";
1383
+ readonly internalType: "bool";
1384
+ readonly type: "bool";
1385
+ }, {
1386
+ readonly name: "amountSpecified";
1387
+ readonly internalType: "int256";
1388
+ readonly type: "int256";
1389
+ }, {
1390
+ readonly name: "sqrtPriceLimitX96";
1391
+ readonly internalType: "uint160";
1392
+ readonly type: "uint160";
1393
+ }, {
1394
+ readonly name: "data";
1395
+ readonly internalType: "bytes";
1396
+ readonly type: "bytes";
1397
+ }];
1398
+ readonly name: "swap";
1399
+ readonly outputs: readonly [{
1400
+ readonly name: "amount0";
1401
+ readonly internalType: "int256";
1402
+ readonly type: "int256";
1403
+ }, {
1404
+ readonly name: "amount1";
1405
+ readonly internalType: "int256";
1406
+ readonly type: "int256";
1407
+ }];
1408
+ readonly stateMutability: "nonpayable";
1409
+ }, {
1410
+ readonly type: "function";
1411
+ readonly inputs: readonly [];
1412
+ readonly name: "token0";
1413
+ readonly outputs: readonly [{
1414
+ readonly name: "";
1415
+ readonly internalType: "address";
1416
+ readonly type: "address";
1417
+ }];
1418
+ readonly stateMutability: "nonpayable";
1419
+ }, {
1420
+ readonly type: "function";
1421
+ readonly inputs: readonly [];
1422
+ readonly name: "token1";
1423
+ readonly outputs: readonly [{
1424
+ readonly name: "";
1425
+ readonly internalType: "address";
1426
+ readonly type: "address";
1427
+ }];
1428
+ readonly stateMutability: "nonpayable";
1429
+ }];
1430
+ /**
1431
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
1432
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
1433
+ */
1316
1434
  export declare const zoraFactoryImplABI: readonly [{
1317
1435
  readonly type: "constructor";
1318
1436
  readonly inputs: readonly [{
@@ -1644,4 +1762,353 @@ export declare const zoraFactoryImplABI: readonly [{
1644
1762
  }];
1645
1763
  readonly name: "UUPSUnsupportedProxiableUUID";
1646
1764
  }];
1765
+ /**
1766
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
1767
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
1768
+ */
1769
+ export declare const zoraFactoryImplAddress: {
1770
+ readonly 8453: "0x777777751622c0d3258f214F9DF38E35BF45baF3";
1771
+ readonly 84532: "0x777777751622c0d3258f214F9DF38E35BF45baF3";
1772
+ };
1773
+ /**
1774
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
1775
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
1776
+ */
1777
+ export declare const zoraFactoryImplConfig: {
1778
+ readonly address: {
1779
+ readonly 8453: "0x777777751622c0d3258f214F9DF38E35BF45baF3";
1780
+ readonly 84532: "0x777777751622c0d3258f214F9DF38E35BF45baF3";
1781
+ };
1782
+ readonly abi: readonly [{
1783
+ readonly type: "constructor";
1784
+ readonly inputs: readonly [{
1785
+ readonly name: "_coinImpl";
1786
+ readonly internalType: "address";
1787
+ readonly type: "address";
1788
+ }];
1789
+ readonly stateMutability: "nonpayable";
1790
+ }, {
1791
+ readonly type: "function";
1792
+ readonly inputs: readonly [];
1793
+ readonly name: "UPGRADE_INTERFACE_VERSION";
1794
+ readonly outputs: readonly [{
1795
+ readonly name: "";
1796
+ readonly internalType: "string";
1797
+ readonly type: "string";
1798
+ }];
1799
+ readonly stateMutability: "view";
1800
+ }, {
1801
+ readonly type: "function";
1802
+ readonly inputs: readonly [];
1803
+ readonly name: "coinImpl";
1804
+ readonly outputs: readonly [{
1805
+ readonly name: "";
1806
+ readonly internalType: "address";
1807
+ readonly type: "address";
1808
+ }];
1809
+ readonly stateMutability: "view";
1810
+ }, {
1811
+ readonly type: "function";
1812
+ readonly inputs: readonly [{
1813
+ readonly name: "payoutRecipient";
1814
+ readonly internalType: "address";
1815
+ readonly type: "address";
1816
+ }, {
1817
+ readonly name: "owners";
1818
+ readonly internalType: "address[]";
1819
+ readonly type: "address[]";
1820
+ }, {
1821
+ readonly name: "uri";
1822
+ readonly internalType: "string";
1823
+ readonly type: "string";
1824
+ }, {
1825
+ readonly name: "name";
1826
+ readonly internalType: "string";
1827
+ readonly type: "string";
1828
+ }, {
1829
+ readonly name: "symbol";
1830
+ readonly internalType: "string";
1831
+ readonly type: "string";
1832
+ }, {
1833
+ readonly name: "platformReferrer";
1834
+ readonly internalType: "address";
1835
+ readonly type: "address";
1836
+ }, {
1837
+ readonly name: "currency";
1838
+ readonly internalType: "address";
1839
+ readonly type: "address";
1840
+ }, {
1841
+ readonly name: "tickLower";
1842
+ readonly internalType: "int24";
1843
+ readonly type: "int24";
1844
+ }, {
1845
+ readonly name: "orderSize";
1846
+ readonly internalType: "uint256";
1847
+ readonly type: "uint256";
1848
+ }];
1849
+ readonly name: "deploy";
1850
+ readonly outputs: readonly [{
1851
+ readonly name: "";
1852
+ readonly internalType: "address";
1853
+ readonly type: "address";
1854
+ }, {
1855
+ readonly name: "";
1856
+ readonly internalType: "uint256";
1857
+ readonly type: "uint256";
1858
+ }];
1859
+ readonly stateMutability: "payable";
1860
+ }, {
1861
+ readonly type: "function";
1862
+ readonly inputs: readonly [];
1863
+ readonly name: "implementation";
1864
+ readonly outputs: readonly [{
1865
+ readonly name: "";
1866
+ readonly internalType: "address";
1867
+ readonly type: "address";
1868
+ }];
1869
+ readonly stateMutability: "view";
1870
+ }, {
1871
+ readonly type: "function";
1872
+ readonly inputs: readonly [{
1873
+ readonly name: "initialOwner";
1874
+ readonly internalType: "address";
1875
+ readonly type: "address";
1876
+ }];
1877
+ readonly name: "initialize";
1878
+ readonly outputs: readonly [];
1879
+ readonly stateMutability: "nonpayable";
1880
+ }, {
1881
+ readonly type: "function";
1882
+ readonly inputs: readonly [];
1883
+ readonly name: "owner";
1884
+ readonly outputs: readonly [{
1885
+ readonly name: "";
1886
+ readonly internalType: "address";
1887
+ readonly type: "address";
1888
+ }];
1889
+ readonly stateMutability: "view";
1890
+ }, {
1891
+ readonly type: "function";
1892
+ readonly inputs: readonly [];
1893
+ readonly name: "proxiableUUID";
1894
+ readonly outputs: readonly [{
1895
+ readonly name: "";
1896
+ readonly internalType: "bytes32";
1897
+ readonly type: "bytes32";
1898
+ }];
1899
+ readonly stateMutability: "view";
1900
+ }, {
1901
+ readonly type: "function";
1902
+ readonly inputs: readonly [];
1903
+ readonly name: "renounceOwnership";
1904
+ readonly outputs: readonly [];
1905
+ readonly stateMutability: "nonpayable";
1906
+ }, {
1907
+ readonly type: "function";
1908
+ readonly inputs: readonly [{
1909
+ readonly name: "newOwner";
1910
+ readonly internalType: "address";
1911
+ readonly type: "address";
1912
+ }];
1913
+ readonly name: "transferOwnership";
1914
+ readonly outputs: readonly [];
1915
+ readonly stateMutability: "nonpayable";
1916
+ }, {
1917
+ readonly type: "function";
1918
+ readonly inputs: readonly [{
1919
+ readonly name: "newImplementation";
1920
+ readonly internalType: "address";
1921
+ readonly type: "address";
1922
+ }, {
1923
+ readonly name: "data";
1924
+ readonly internalType: "bytes";
1925
+ readonly type: "bytes";
1926
+ }];
1927
+ readonly name: "upgradeToAndCall";
1928
+ readonly outputs: readonly [];
1929
+ readonly stateMutability: "payable";
1930
+ }, {
1931
+ readonly type: "event";
1932
+ readonly anonymous: false;
1933
+ readonly inputs: readonly [{
1934
+ readonly name: "caller";
1935
+ readonly internalType: "address";
1936
+ readonly type: "address";
1937
+ readonly indexed: true;
1938
+ }, {
1939
+ readonly name: "payoutRecipient";
1940
+ readonly internalType: "address";
1941
+ readonly type: "address";
1942
+ readonly indexed: true;
1943
+ }, {
1944
+ readonly name: "platformReferrer";
1945
+ readonly internalType: "address";
1946
+ readonly type: "address";
1947
+ readonly indexed: true;
1948
+ }, {
1949
+ readonly name: "currency";
1950
+ readonly internalType: "address";
1951
+ readonly type: "address";
1952
+ readonly indexed: false;
1953
+ }, {
1954
+ readonly name: "uri";
1955
+ readonly internalType: "string";
1956
+ readonly type: "string";
1957
+ readonly indexed: false;
1958
+ }, {
1959
+ readonly name: "name";
1960
+ readonly internalType: "string";
1961
+ readonly type: "string";
1962
+ readonly indexed: false;
1963
+ }, {
1964
+ readonly name: "symbol";
1965
+ readonly internalType: "string";
1966
+ readonly type: "string";
1967
+ readonly indexed: false;
1968
+ }, {
1969
+ readonly name: "coin";
1970
+ readonly internalType: "address";
1971
+ readonly type: "address";
1972
+ readonly indexed: false;
1973
+ }, {
1974
+ readonly name: "pool";
1975
+ readonly internalType: "address";
1976
+ readonly type: "address";
1977
+ readonly indexed: false;
1978
+ }, {
1979
+ readonly name: "version";
1980
+ readonly internalType: "string";
1981
+ readonly type: "string";
1982
+ readonly indexed: false;
1983
+ }];
1984
+ readonly name: "CoinCreated";
1985
+ }, {
1986
+ readonly type: "event";
1987
+ readonly anonymous: false;
1988
+ readonly inputs: readonly [{
1989
+ readonly name: "version";
1990
+ readonly internalType: "uint64";
1991
+ readonly type: "uint64";
1992
+ readonly indexed: false;
1993
+ }];
1994
+ readonly name: "Initialized";
1995
+ }, {
1996
+ readonly type: "event";
1997
+ readonly anonymous: false;
1998
+ readonly inputs: readonly [{
1999
+ readonly name: "previousOwner";
2000
+ readonly internalType: "address";
2001
+ readonly type: "address";
2002
+ readonly indexed: true;
2003
+ }, {
2004
+ readonly name: "newOwner";
2005
+ readonly internalType: "address";
2006
+ readonly type: "address";
2007
+ readonly indexed: true;
2008
+ }];
2009
+ readonly name: "OwnershipTransferred";
2010
+ }, {
2011
+ readonly type: "event";
2012
+ readonly anonymous: false;
2013
+ readonly inputs: readonly [{
2014
+ readonly name: "implementation";
2015
+ readonly internalType: "address";
2016
+ readonly type: "address";
2017
+ readonly indexed: true;
2018
+ }];
2019
+ readonly name: "Upgraded";
2020
+ }, {
2021
+ readonly type: "error";
2022
+ readonly inputs: readonly [{
2023
+ readonly name: "target";
2024
+ readonly internalType: "address";
2025
+ readonly type: "address";
2026
+ }];
2027
+ readonly name: "AddressEmptyCode";
2028
+ }, {
2029
+ readonly type: "error";
2030
+ readonly inputs: readonly [{
2031
+ readonly name: "account";
2032
+ readonly internalType: "address";
2033
+ readonly type: "address";
2034
+ }];
2035
+ readonly name: "AddressInsufficientBalance";
2036
+ }, {
2037
+ readonly type: "error";
2038
+ readonly inputs: readonly [];
2039
+ readonly name: "ERC1167FailedCreateClone";
2040
+ }, {
2041
+ readonly type: "error";
2042
+ readonly inputs: readonly [{
2043
+ readonly name: "implementation";
2044
+ readonly internalType: "address";
2045
+ readonly type: "address";
2046
+ }];
2047
+ readonly name: "ERC1967InvalidImplementation";
2048
+ }, {
2049
+ readonly type: "error";
2050
+ readonly inputs: readonly [];
2051
+ readonly name: "ERC1967NonPayable";
2052
+ }, {
2053
+ readonly type: "error";
2054
+ readonly inputs: readonly [];
2055
+ readonly name: "ERC20TransferAmountMismatch";
2056
+ }, {
2057
+ readonly type: "error";
2058
+ readonly inputs: readonly [];
2059
+ readonly name: "EthTransferInvalid";
2060
+ }, {
2061
+ readonly type: "error";
2062
+ readonly inputs: readonly [];
2063
+ readonly name: "FailedInnerCall";
2064
+ }, {
2065
+ readonly type: "error";
2066
+ readonly inputs: readonly [];
2067
+ readonly name: "InvalidInitialization";
2068
+ }, {
2069
+ readonly type: "error";
2070
+ readonly inputs: readonly [];
2071
+ readonly name: "NotInitializing";
2072
+ }, {
2073
+ readonly type: "error";
2074
+ readonly inputs: readonly [{
2075
+ readonly name: "owner";
2076
+ readonly internalType: "address";
2077
+ readonly type: "address";
2078
+ }];
2079
+ readonly name: "OwnableInvalidOwner";
2080
+ }, {
2081
+ readonly type: "error";
2082
+ readonly inputs: readonly [{
2083
+ readonly name: "account";
2084
+ readonly internalType: "address";
2085
+ readonly type: "address";
2086
+ }];
2087
+ readonly name: "OwnableUnauthorizedAccount";
2088
+ }, {
2089
+ readonly type: "error";
2090
+ readonly inputs: readonly [];
2091
+ readonly name: "ReentrancyGuardReentrantCall";
2092
+ }, {
2093
+ readonly type: "error";
2094
+ readonly inputs: readonly [{
2095
+ readonly name: "token";
2096
+ readonly internalType: "address";
2097
+ readonly type: "address";
2098
+ }];
2099
+ readonly name: "SafeERC20FailedOperation";
2100
+ }, {
2101
+ readonly type: "error";
2102
+ readonly inputs: readonly [];
2103
+ readonly name: "UUPSUnauthorizedCallContext";
2104
+ }, {
2105
+ readonly type: "error";
2106
+ readonly inputs: readonly [{
2107
+ readonly name: "slot";
2108
+ readonly internalType: "bytes32";
2109
+ readonly type: "bytes32";
2110
+ }];
2111
+ readonly name: "UUPSUnsupportedProxiableUUID";
2112
+ }];
2113
+ };
1647
2114
  //# sourceMappingURL=wagmiGenerated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wagmiGenerated.d.ts","sourceRoot":"","sources":["../package/wagmiGenerated.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkPrB,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;CAGzB,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGxB,CAAA"}
@@ -954,10 +954,95 @@ export const coinABI = [
954
954
  { type: 'error', inputs: [], name: 'UseRevokeOwnershipToRemoveSelf' },
955
955
  ] as const
956
956
 
957
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
958
+ // IUniswapV3Pool
959
+ //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
960
+
961
+ export const iUniswapV3PoolABI = [
962
+ {
963
+ type: 'function',
964
+ inputs: [],
965
+ name: 'feeGrowthGlobal0X128',
966
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
967
+ stateMutability: 'view',
968
+ },
969
+ {
970
+ type: 'function',
971
+ inputs: [],
972
+ name: 'feeGrowthGlobal1X128',
973
+ outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
974
+ stateMutability: 'view',
975
+ },
976
+ {
977
+ type: 'function',
978
+ inputs: [],
979
+ name: 'slot0',
980
+ outputs: [
981
+ {
982
+ name: 'slot0',
983
+ internalType: 'struct IUniswapV3Pool.Slot0',
984
+ type: 'tuple',
985
+ components: [
986
+ { name: 'sqrtPriceX96', internalType: 'uint160', type: 'uint160' },
987
+ { name: 'tick', internalType: 'int24', type: 'int24' },
988
+ { name: 'observationIndex', internalType: 'uint16', type: 'uint16' },
989
+ {
990
+ name: 'observationCardinality',
991
+ internalType: 'uint16',
992
+ type: 'uint16',
993
+ },
994
+ {
995
+ name: 'observationCardinalityNext',
996
+ internalType: 'uint16',
997
+ type: 'uint16',
998
+ },
999
+ { name: 'feeProtocol', internalType: 'uint8', type: 'uint8' },
1000
+ { name: 'unlocked', internalType: 'bool', type: 'bool' },
1001
+ ],
1002
+ },
1003
+ ],
1004
+ stateMutability: 'view',
1005
+ },
1006
+ {
1007
+ type: 'function',
1008
+ inputs: [
1009
+ { name: 'recipient', internalType: 'address', type: 'address' },
1010
+ { name: 'zeroForOne', internalType: 'bool', type: 'bool' },
1011
+ { name: 'amountSpecified', internalType: 'int256', type: 'int256' },
1012
+ { name: 'sqrtPriceLimitX96', internalType: 'uint160', type: 'uint160' },
1013
+ { name: 'data', internalType: 'bytes', type: 'bytes' },
1014
+ ],
1015
+ name: 'swap',
1016
+ outputs: [
1017
+ { name: 'amount0', internalType: 'int256', type: 'int256' },
1018
+ { name: 'amount1', internalType: 'int256', type: 'int256' },
1019
+ ],
1020
+ stateMutability: 'nonpayable',
1021
+ },
1022
+ {
1023
+ type: 'function',
1024
+ inputs: [],
1025
+ name: 'token0',
1026
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1027
+ stateMutability: 'nonpayable',
1028
+ },
1029
+ {
1030
+ type: 'function',
1031
+ inputs: [],
1032
+ name: 'token1',
1033
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
1034
+ stateMutability: 'nonpayable',
1035
+ },
1036
+ ] as const
1037
+
957
1038
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
958
1039
  // ZoraFactoryImpl
959
1040
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
960
1041
 
1042
+ /**
1043
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
1044
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
1045
+ */
961
1046
  export const zoraFactoryImplABI = [
962
1047
  {
963
1048
  type: 'constructor',
@@ -1201,3 +1286,21 @@ export const zoraFactoryImplABI = [
1201
1286
  name: 'UUPSUnsupportedProxiableUUID',
1202
1287
  },
1203
1288
  ] as const
1289
+
1290
+ /**
1291
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
1292
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
1293
+ */
1294
+ export const zoraFactoryImplAddress = {
1295
+ 8453: '0x777777751622c0d3258f214F9DF38E35BF45baF3',
1296
+ 84532: '0x777777751622c0d3258f214F9DF38E35BF45baF3',
1297
+ } as const
1298
+
1299
+ /**
1300
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
1301
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
1302
+ */
1303
+ export const zoraFactoryImplConfig = {
1304
+ address: zoraFactoryImplAddress,
1305
+ abi: zoraFactoryImplABI,
1306
+ } as const
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zoralabs/coins",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -30,8 +30,8 @@
30
30
  "tsx": "^3.13.0",
31
31
  "typescript": "^5.2.2",
32
32
  "viem": "^2.21.18",
33
- "@zoralabs/shared-contracts": "^0.0.1",
34
33
  "@zoralabs/shared-scripts": "^0.0.0",
34
+ "@zoralabs/shared-contracts": "^0.0.1",
35
35
  "@zoralabs/tsconfig": "^0.0.1"
36
36
  },
37
37
  "scripts": {
@@ -59,15 +59,21 @@ contract CoinsDeployerBase is ProxyDeployerScript {
59
59
  return new ZoraFactoryImpl(coinImpl);
60
60
  }
61
61
 
62
- function deployZoraDeterministic(CoinsDeployment memory deployment, DeterministicDeployerAndCaller deployer) internal {
63
- // read previously saved deterministic config
64
- DeterministicContractConfig memory zoraConfig = readDeterministicContractConfig("zoraFactory");
65
-
62
+ function deployImpls(CoinsDeployment memory deployment) internal returns (CoinsDeployment memory) {
66
63
  // Deploy implementation contracts
67
64
  deployment.coinImpl = address(deployCoinImpl());
68
65
  deployment.zoraFactoryImpl = address(deployZoraFactoryImpl(deployment.coinImpl));
69
66
  deployment.coinVersion = IVersionedContract(deployment.coinImpl).contractVersion();
70
67
 
68
+ return deployment;
69
+ }
70
+
71
+ function deployZoraDeterministic(CoinsDeployment memory deployment, DeterministicDeployerAndCaller deployer) internal {
72
+ // read previously saved deterministic config
73
+ DeterministicContractConfig memory zoraConfig = readDeterministicContractConfig("zoraFactory");
74
+
75
+ deployment = deployImpls(deployment);
76
+
71
77
  if (deployment.zoraFactoryImpl.code.length == 0) {
72
78
  revert("Factory Impl not yet deployed. Make sure to deploy it with DeployImpl.s.sol");
73
79
  }
@@ -0,0 +1,23 @@
1
+ // SPDX-License-Identifier: MIT
2
+ pragma solidity ^0.8.26;
3
+
4
+ import {ProxyDeployerScript, DeterministicDeployerAndCaller} from "@zoralabs/shared-contracts/deployment/ProxyDeployerScript.sol";
5
+ import {CoinsDeployerBase} from "./CoinsDeployerBase.sol";
6
+
7
+ contract UpgradeCoinImpl is CoinsDeployerBase {
8
+ function run() public {
9
+ CoinsDeployment memory deployment = readDeployment();
10
+
11
+ vm.startBroadcast();
12
+
13
+ // get deployer contract
14
+ DeterministicDeployerAndCaller deployer = createOrGetDeployerAndCaller();
15
+
16
+ deployment = deployImpls(deployment);
17
+
18
+ vm.stopBroadcast();
19
+
20
+ // save the deployment json
21
+ saveDeployment(deployment);
22
+ }
23
+ }