@zoralabs/coins 0.4.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 -74
- package/CHANGELOG.md +12 -0
- package/README.md +29 -0
- package/abis/Coin.json +10 -0
- package/abis/CoinTest.json +55 -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/ICoin.json +10 -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 +100 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +96 -3
- package/dist/index.js.map +1 -1
- package/dist/wagmiGenerated.d.ts +475 -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 +111 -2
- 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/Coin.sol +25 -7
- package/src/ZoraFactoryImpl.sol +2 -2
- package/src/interfaces/ICoin.sol +8 -2
- package/src/proxy/ZoraFactory.sol +7 -1
- package/src/version/ContractVersionBase.sol +1 -1
- package/test/Coin.t.sol +152 -4
- 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
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "constructor",
|
|
4
|
+
"inputs": [],
|
|
5
|
+
"stateMutability": "nonpayable"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"type": "function",
|
|
9
|
+
"name": "UPGRADE_INTERFACE_VERSION",
|
|
10
|
+
"inputs": [],
|
|
11
|
+
"outputs": [
|
|
12
|
+
{
|
|
13
|
+
"name": "",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"internalType": "string"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"stateMutability": "view"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"type": "function",
|
|
22
|
+
"name": "proxiableUUID",
|
|
23
|
+
"inputs": [],
|
|
24
|
+
"outputs": [
|
|
25
|
+
{
|
|
26
|
+
"name": "",
|
|
27
|
+
"type": "bytes32",
|
|
28
|
+
"internalType": "bytes32"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"stateMutability": "view"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "function",
|
|
35
|
+
"name": "upgradeToAndCall",
|
|
36
|
+
"inputs": [
|
|
37
|
+
{
|
|
38
|
+
"name": "newImplementation",
|
|
39
|
+
"type": "address",
|
|
40
|
+
"internalType": "address"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "data",
|
|
44
|
+
"type": "bytes",
|
|
45
|
+
"internalType": "bytes"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"outputs": [],
|
|
49
|
+
"stateMutability": "payable"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "event",
|
|
53
|
+
"name": "Upgraded",
|
|
54
|
+
"inputs": [
|
|
55
|
+
{
|
|
56
|
+
"name": "implementation",
|
|
57
|
+
"type": "address",
|
|
58
|
+
"indexed": true,
|
|
59
|
+
"internalType": "address"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"anonymous": false
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"type": "error",
|
|
66
|
+
"name": "AddressEmptyCode",
|
|
67
|
+
"inputs": [
|
|
68
|
+
{
|
|
69
|
+
"name": "target",
|
|
70
|
+
"type": "address",
|
|
71
|
+
"internalType": "address"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "error",
|
|
77
|
+
"name": "ERC1967InvalidImplementation",
|
|
78
|
+
"inputs": [
|
|
79
|
+
{
|
|
80
|
+
"name": "implementation",
|
|
81
|
+
"type": "address",
|
|
82
|
+
"internalType": "address"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"type": "error",
|
|
88
|
+
"name": "ERC1967NonPayable",
|
|
89
|
+
"inputs": []
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"type": "error",
|
|
93
|
+
"name": "FailedInnerCall",
|
|
94
|
+
"inputs": []
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"type": "error",
|
|
98
|
+
"name": "UUPSUnauthorizedCallContext",
|
|
99
|
+
"inputs": []
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "error",
|
|
103
|
+
"name": "UUPSUnsupportedProxiableUUID",
|
|
104
|
+
"inputs": [
|
|
105
|
+
{
|
|
106
|
+
"name": "slot",
|
|
107
|
+
"type": "bytes32",
|
|
108
|
+
"internalType": "bytes32"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
]
|
package/abis/ZoraFactory.json
CHANGED
package/addresses/8453.json
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
"UNISWAP_QUOTER": "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",
|
|
8
|
-
"WETH": "0x4200000000000000000000000000000000000006"
|
|
9
|
-
}
|
|
2
|
+
"COIN_IMPL": "0x6B78be0808262b1d5E9B1eeDfE448aDCE2C637a8",
|
|
3
|
+
"COIN_VERSION": "0.5.0",
|
|
4
|
+
"ZORA_FACTORY": "0x777777751622c0d3258f214F9DF38E35BF45baF3",
|
|
5
|
+
"ZORA_FACTORY_IMPL": "0xa7B4065893F34241302FFFF8a9819fd639Ee8893"
|
|
6
|
+
}
|
package/addresses/84532.json
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
"UNISWAP_QUOTER": "0xC5290058841028F1614F3A6F0F5816cAd0df5E27",
|
|
8
|
-
"WETH": "0x4200000000000000000000000000000000000006"
|
|
9
|
-
}
|
|
2
|
+
"COIN_IMPL": "0xFD2FDCE0d316410d3F57459DF33f88626EDF5Bc0",
|
|
3
|
+
"COIN_VERSION": "0.5.0",
|
|
4
|
+
"ZORA_FACTORY": "0x777777751622c0d3258f214F9DF38E35BF45baF3",
|
|
5
|
+
"ZORA_FACTORY_IMPL": "0x8CE3674De81E82adb4DcAbA20B236cb1f3820886"
|
|
6
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"creationCode": "0x610180604052346101a1576040516100186040826101a5565b601e815260208101907f44657465726d696e69737469634465706c6f796572416e6443616c6c657200008252604051916100536040846101a5565b600183526020830191603160f81b835261006c816101c8565b610120526100798461035e565b61014052519020918260e05251902080610100524660a0526040519060208201927f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f8452604083015260608201524660808201523060a082015260a081526100e260c0826101a5565b5190206080523060c05260405161046b80820191906001600160401b0383118284101761018d575f928291610fbd8339039082f580156101825761016052604051610b269081610497823960805181610980015260a05181610a3d015260c0518161094a015260e051816109cf015261010051816109f50152610120518161025e0152610140518161028701526101605181818161035301526104bf0152f35b6040513d5f823e3d90fd5b634e487b7160e01b5f52604160045260245ffd5b5f80fd5b601f909101601f19168101906001600160401b0382119082101761018d57604052565b908151602081105f14610242575090601f8151116102025760208151910151602082106101f3571790565b5f198260200360031b1b161790565b604460209160405192839163305a27a960e01b83528160048401528051918291826024860152018484015e5f828201840152601f01601f19168101030190fd5b6001600160401b03811161018d575f54600181811c91168015610354575b602082101461034057601f811161030e575b50602092601f82116001146102af57928192935f926102a4575b50508160011b915f199060031b1c1916175f5560ff90565b015190505f8061028c565b601f198216935f8052805f20915f5b8681106102f657508360019596106102de575b505050811b015f5560ff90565b01515f1960f88460031b161c191690555f80806102d1565b919260206001819286850151815501940192016102be565b5f8052601f60205f20910160051c810190601f830160051c015b8181106103355750610272565b5f8155600101610328565b634e487b7160e01b5f52602260045260245ffd5b90607f1690610260565b908151602081105f14610389575090601f8151116102025760208151910151602082106101f3571790565b6001600160401b03811161018d57600154600181811c9116801561048c575b602082101461034057601f8111610459575b50602092601f82116001146103f857928192935f926103ed575b50508160011b915f199060031b1c19161760015560ff90565b015190505f806103d4565b601f1982169360015f52805f20915f5b8681106104415750836001959610610429575b505050811b0160015560ff90565b01515f1960f88460031b161c191690555f808061041b565b91926020600181928685015181550194019201610408565b60015f52601f60205f20910160051c810190601f830160051c015b81811061048157506103ba565b5f8155600101610474565b90607f16906103a856fe60806040526004361015610011575f80fd5b5f3560e01c806325746d39146103825780637db68ec41461033e57806384b0196e1461024657806386881034146101cf578063e3867c2914610105578063eae49c87146100d25763f9baed1814610066575f80fd5b346100ce5760603660031901126100ce5760243567ffffffffffffffff81116100ce57610097903690600401610449565b60443567ffffffffffffffff81116100ce576020916100bd6100c6923690600401610449565b906004356104f6565b604051908152f35b5f80fd5b346100ce575f3660031901126100ce576101016100ed6104b3565b60405191829160208352602083019061048f565b0390f35b60a03660031901126100ce5760043567ffffffffffffffff81116100ce57610131903690600401610449565b6024359060443567ffffffffffffffff81116100ce57610155903690600401610449565b60643567ffffffffffffffff81116100ce57610175903690600401610449565b608435916001600160a01b03831683036100ce57846101b8816101b36101aa6101bd986101a5888860209d6104f6565b610899565b909291926108d3565b61057a565b6105a8565b6040516001600160a01b039091168152f35b346100ce5760203660031901126100ce5760043567ffffffffffffffff81116100ce5760206100ed610208610101933690600401610449565b82806102126104b3565b6040519584879551918291018487015e8401908282015f8152815193849201905e01015f815203601f1981018352826103f7565b346100ce575f3660031901126100ce576102e26102827f00000000000000000000000000000000000000000000000000000000000000006106a6565b6102ab7f00000000000000000000000000000000000000000000000000000000000000006107c9565b60206102f0604051926102be83856103f7565b5f84525f368137604051958695600f60f81b875260e08588015260e087019061048f565b90858203604087015261048f565b4660608501523060808501525f60a085015283810360c08501528180845192838152019301915f5b82811061032757505050500390f35b835185528695509381019392810192600101610318565b346100ce575f3660031901126100ce576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b60803660031901126100ce5760043560243567ffffffffffffffff81116100ce576103b1903690600401610449565b9060443567ffffffffffffffff81116100ce576103d2903690600401610449565b606435906001600160a01b03821682036100ce57602093836101b86101bd953361057a565b90601f8019910116810190811067ffffffffffffffff82111761041957604052565b634e487b7160e01b5f52604160045260245ffd5b67ffffffffffffffff811161041957601f01601f191660200190565b81601f820112156100ce578035906104608261042d565b9261046e60405194856103f7565b828452602083830101116100ce57815f926020809301838601378301015290565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b60405160018060a01b037f0000000000000000000000000000000000000000000000000000000000000000166020820152602081526104f36040826103f7565b90565b90916042926020815191012090602081519101206040519160208301937fdc039731015eea17e316614c8f3af7dca5fc4664683c8e8f2adc4e0ff71a7c9285526040840152606083015260808201526080815261055460a0826103f7565b51902061055f610947565b906040519161190160f01b8352600283015260228201522090565b6001600160a01b0316606082901c819003610593575050565b632696d3f160e11b5f5260045260245260445ffd5b919290805191600b602083019384206040519060408201528560208201523081520160ff8153605590206001600160a01b0390811691168181036106915750508051156106825751905ff5906001600160a01b03821615610673575f816020829351910182855af13d1561066b573d906106218261042d565b9161062f60405193846103f7565b82523d5f602084013e5b15610642575090565b60405163a5fa8d2b60e01b81526020600482015290819061066790602483019061048f565b0390fd5b606090610639565b633a0ba96160e11b5f5260045ffd5b631328927760e21b5f5260045ffd5b6312ae30e560e01b5f5260045260245260445ffd5b60ff81146106ec5760ff811690601f82116106dd57604051916106ca6040846103f7565b6020808452838101919036833783525290565b632cd44ac360e21b5f5260045ffd5b506040515f5f548060011c91600182169182156107bf575b6020841083146107ab57838552849290811561078c575060011461072f575b6104f3925003826103f7565b505f80805290917f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b8183106107705750509060206104f392820101610723565b6020919350806001915483858801015201910190918392610758565b602092506104f394915060ff191682840152151560051b820101610723565b634e487b7160e01b5f52602260045260245ffd5b92607f1692610704565b60ff81146107ed5760ff811690601f82116106dd57604051916106ca6040846103f7565b506040515f6001548060011c916001821691821561088f575b6020841083146107ab57838552849290811561078c5750600114610830576104f3925003826103f7565b5060015f90815290917fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b8183106108735750509060206104f392820101610723565b602091935080600191548385880101520191019091839261085b565b92607f1692610806565b81519190604183036108c9576108c29250602082015190606060408401519301515f1a90610a63565b9192909190565b50505f9160029190565b600481101561093357806108e5575050565b600181036108fc5763f645eedf60e01b5f5260045ffd5b60028103610917575063fce698f760e01b5f5260045260245ffd5b6003146109215750565b6335e2f38360e21b5f5260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b307f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161480610a3a575b156109a2577f000000000000000000000000000000000000000000000000000000000000000090565b60405160208101907f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f82527f000000000000000000000000000000000000000000000000000000000000000060408201527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260a08152610a3460c0826103f7565b51902090565b507f00000000000000000000000000000000000000000000000000000000000000004614610979565b91907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411610ae5579160209360809260ff5f9560405194855216868401526040830152606082015282805260015afa15610ada575f516001600160a01b03811615610ad057905f905f90565b505f906001905f90565b6040513d5f823e3d90fd5b5050505f916003919056fea264697066735822122020d4cc29643fbc137d039c78a8d78f52fd9a09b7daa1a5943440ff9a3e8ea56f64736f6c634300081c003360c08060405234603257306080523360a0526104349081610037823960805181818160ae015261018b015260a051815050f35b5f80fdfe60806040526004361015610011575f80fd5b5f3560e01c80634f1ef2861461010257806352d1902d1461009c5763ad3cb1cc1461003a575f80fd5b34610098575f366003190112610098576040805190610059818361032e565b600582526020820191640352e302e360dc1b83528151928391602083525180918160208501528484015e5f828201840152601f01601f19168101030190f35b5f80fd5b34610098575f366003190112610098577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031630036100f35760206040515f5160206103df5f395f51905f528152f35b63703e46dd60e11b5f5260045ffd5b6040366003190112610098576004356001600160a01b03811690818103610098576024359067ffffffffffffffff821161009857366023830112156100985781600401359161015083610364565b9261015e604051948561032e565b8084526020840191366024838301011161009857815f926024602093018537850101526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630811490811561030c575b506100f3576040516352d1902d60e01b8152602081600481885afa5f91816102d8575b506101f15784634c9c8ce360e01b5f5260045260245ffd5b805f5160206103df5f395f51905f528692036102c65750823b156102b4575f5160206103df5f395f51905f5280546001600160a01b031916821790557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a282511561029b575f8091610291945190845af43d15610293573d9161027583610364565b92610283604051948561032e565b83523d5f602085013e610380565b005b606091610380565b505050346102a557005b63b398979f60e01b5f5260045ffd5b634c9c8ce360e01b5f5260045260245ffd5b632a87526960e21b5f5260045260245ffd5b9091506020813d602011610304575b816102f46020938361032e565b81010312610098575190866101d9565b3d91506102e7565b5f5160206103df5f395f51905f52546001600160a01b031614159050856101b6565b90601f8019910116810190811067ffffffffffffffff82111761035057604052565b634e487b7160e01b5f52604160045260245ffd5b67ffffffffffffffff811161035057601f01601f191660200190565b906103a4575080511561039557805190602001fd5b630a12f52160e11b5f5260045ffd5b815115806103d5575b6103b5575090565b639996b31560e01b5f9081526001600160a01b0391909116600452602490fd5b50803b156103ad56fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122005f8ca25544854f7fe07eac3cac751ac5b35b9a8529e80352f19449570409c3364736f6c634300081c0033",
|
|
3
|
+
"deployedAddress": "0xCB571Eaa13A8276B1Ed44348291dD80b5BC360dA",
|
|
4
|
+
"salt": "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
5
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"constructorArgs": "0x00000000000000000000000015b56e81f8a628aab8a5a8b9414f05cf5728d1ff",
|
|
3
|
+
"contractName": "Zora",
|
|
4
|
+
"creationCode": "0x60a06040523461016c575f61028a6020813803918261001d81610170565b93849283398101031261016c5751906001600160a01b03821680830361016c576100476020610170565b905f8252833b1561015a577f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b031916821790557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a280511561015257818160208293519101855af43d15610145573d926001600160401b038411610131576100f7936100e7601f8201601f1916602001610170565b908152809360203d92013e6101a9565b505b7fffd9efbec42a225861234c46dd9ad199e6b6c0e9dc65ff463e6987cedc26d6a1608052604051608290816102088239608051815050f35b634e487b7160e01b83526041600452602483fd5b6100f792606092506101a9565b5050506100f9565b634c9c8ce360e01b5f5260045260245ffd5b5f80fd5b6040519190601f01601f191682016001600160401b0381118382101761019557604052565b634e487b7160e01b5f52604160045260245ffd5b906101cd57508051156101be57805190602001fd5b630a12f52160e11b5f5260045ffd5b815115806101fe575b6101de575090565b639996b31560e01b5f9081526001600160a01b0391909116600452602490fd5b50803b156101d656fe60806040527f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545f9081906001600160a01b0316368280378136915af43d5f803e156048573d5ff35b3d5ffdfea2646970667358221220d17864a0488eaaba33173ba368bd2448917739c58ea27a5b985e8b13c01d346664736f6c634300081c003300000000000000000000000015b56e81f8a628aab8a5a8b9414f05cf5728d1ff",
|
|
5
|
+
"deployedAddress": "0x777777751622c0d3258f214F9DF38E35BF45baF3",
|
|
6
|
+
"deploymentCaller": "0x680E26B472d8cae8148ee21FCAd6A69D73766436",
|
|
7
|
+
"salt": "0x680e26b472d8cae8148ee21fcad6a69d73766436f27a901327372bd2be5d38f6"
|
|
8
|
+
}
|
package/dist/index.cjs
CHANGED
|
@@ -21,7 +21,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var package_exports = {};
|
|
22
22
|
__export(package_exports, {
|
|
23
23
|
coinABI: () => coinABI,
|
|
24
|
-
|
|
24
|
+
iUniswapV3PoolABI: () => iUniswapV3PoolABI,
|
|
25
|
+
zoraFactoryImplABI: () => zoraFactoryImplABI,
|
|
26
|
+
zoraFactoryImplAddress: () => zoraFactoryImplAddress,
|
|
27
|
+
zoraFactoryImplConfig: () => zoraFactoryImplConfig
|
|
25
28
|
});
|
|
26
29
|
module.exports = __toCommonJS(package_exports);
|
|
27
30
|
|
|
@@ -170,7 +173,10 @@ var coinABI = [
|
|
|
170
173
|
{ name: "tradeReferrer", internalType: "address", type: "address" }
|
|
171
174
|
],
|
|
172
175
|
name: "buy",
|
|
173
|
-
outputs: [
|
|
176
|
+
outputs: [
|
|
177
|
+
{ name: "", internalType: "uint256", type: "uint256" },
|
|
178
|
+
{ name: "", internalType: "uint256", type: "uint256" }
|
|
179
|
+
],
|
|
174
180
|
stateMutability: "payable"
|
|
175
181
|
},
|
|
176
182
|
{
|
|
@@ -376,7 +382,10 @@ var coinABI = [
|
|
|
376
382
|
{ name: "tradeReferrer", internalType: "address", type: "address" }
|
|
377
383
|
],
|
|
378
384
|
name: "sell",
|
|
379
|
-
outputs: [
|
|
385
|
+
outputs: [
|
|
386
|
+
{ name: "", internalType: "uint256", type: "uint256" },
|
|
387
|
+
{ name: "", internalType: "uint256", type: "uint256" }
|
|
388
|
+
],
|
|
380
389
|
stateMutability: "nonpayable"
|
|
381
390
|
},
|
|
382
391
|
{
|
|
@@ -971,6 +980,82 @@ var coinABI = [
|
|
|
971
980
|
{ type: "error", inputs: [], name: "SlippageBoundsExceeded" },
|
|
972
981
|
{ type: "error", inputs: [], name: "UseRevokeOwnershipToRemoveSelf" }
|
|
973
982
|
];
|
|
983
|
+
var iUniswapV3PoolABI = [
|
|
984
|
+
{
|
|
985
|
+
type: "function",
|
|
986
|
+
inputs: [],
|
|
987
|
+
name: "feeGrowthGlobal0X128",
|
|
988
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
989
|
+
stateMutability: "view"
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
type: "function",
|
|
993
|
+
inputs: [],
|
|
994
|
+
name: "feeGrowthGlobal1X128",
|
|
995
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
996
|
+
stateMutability: "view"
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
type: "function",
|
|
1000
|
+
inputs: [],
|
|
1001
|
+
name: "slot0",
|
|
1002
|
+
outputs: [
|
|
1003
|
+
{
|
|
1004
|
+
name: "slot0",
|
|
1005
|
+
internalType: "struct IUniswapV3Pool.Slot0",
|
|
1006
|
+
type: "tuple",
|
|
1007
|
+
components: [
|
|
1008
|
+
{ name: "sqrtPriceX96", internalType: "uint160", type: "uint160" },
|
|
1009
|
+
{ name: "tick", internalType: "int24", type: "int24" },
|
|
1010
|
+
{ name: "observationIndex", internalType: "uint16", type: "uint16" },
|
|
1011
|
+
{
|
|
1012
|
+
name: "observationCardinality",
|
|
1013
|
+
internalType: "uint16",
|
|
1014
|
+
type: "uint16"
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
name: "observationCardinalityNext",
|
|
1018
|
+
internalType: "uint16",
|
|
1019
|
+
type: "uint16"
|
|
1020
|
+
},
|
|
1021
|
+
{ name: "feeProtocol", internalType: "uint8", type: "uint8" },
|
|
1022
|
+
{ name: "unlocked", internalType: "bool", type: "bool" }
|
|
1023
|
+
]
|
|
1024
|
+
}
|
|
1025
|
+
],
|
|
1026
|
+
stateMutability: "view"
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
type: "function",
|
|
1030
|
+
inputs: [
|
|
1031
|
+
{ name: "recipient", internalType: "address", type: "address" },
|
|
1032
|
+
{ name: "zeroForOne", internalType: "bool", type: "bool" },
|
|
1033
|
+
{ name: "amountSpecified", internalType: "int256", type: "int256" },
|
|
1034
|
+
{ name: "sqrtPriceLimitX96", internalType: "uint160", type: "uint160" },
|
|
1035
|
+
{ name: "data", internalType: "bytes", type: "bytes" }
|
|
1036
|
+
],
|
|
1037
|
+
name: "swap",
|
|
1038
|
+
outputs: [
|
|
1039
|
+
{ name: "amount0", internalType: "int256", type: "int256" },
|
|
1040
|
+
{ name: "amount1", internalType: "int256", type: "int256" }
|
|
1041
|
+
],
|
|
1042
|
+
stateMutability: "nonpayable"
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
type: "function",
|
|
1046
|
+
inputs: [],
|
|
1047
|
+
name: "token0",
|
|
1048
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
1049
|
+
stateMutability: "nonpayable"
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
type: "function",
|
|
1053
|
+
inputs: [],
|
|
1054
|
+
name: "token1",
|
|
1055
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
1056
|
+
stateMutability: "nonpayable"
|
|
1057
|
+
}
|
|
1058
|
+
];
|
|
974
1059
|
var zoraFactoryImplABI = [
|
|
975
1060
|
{
|
|
976
1061
|
type: "constructor",
|
|
@@ -1214,9 +1299,20 @@ var zoraFactoryImplABI = [
|
|
|
1214
1299
|
name: "UUPSUnsupportedProxiableUUID"
|
|
1215
1300
|
}
|
|
1216
1301
|
];
|
|
1302
|
+
var zoraFactoryImplAddress = {
|
|
1303
|
+
8453: "0x777777751622c0d3258f214F9DF38E35BF45baF3",
|
|
1304
|
+
84532: "0x777777751622c0d3258f214F9DF38E35BF45baF3"
|
|
1305
|
+
};
|
|
1306
|
+
var zoraFactoryImplConfig = {
|
|
1307
|
+
address: zoraFactoryImplAddress,
|
|
1308
|
+
abi: zoraFactoryImplABI
|
|
1309
|
+
};
|
|
1217
1310
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1218
1311
|
0 && (module.exports = {
|
|
1219
1312
|
coinABI,
|
|
1220
|
-
|
|
1313
|
+
iUniswapV3PoolABI,
|
|
1314
|
+
zoraFactoryImplABI,
|
|
1315
|
+
zoraFactoryImplAddress,
|
|
1316
|
+
zoraFactoryImplConfig
|
|
1221
1317
|
});
|
|
1222
1318
|
//# sourceMappingURL=index.cjs.map
|