Skip to content

Commit

Permalink
Publish updated npm package with abis and address & Bump package vers…
Browse files Browse the repository at this point in the history
…ion (ourzora#121)

* Bump package version
Add prepublish step which force a prepack

* remove prepublish step - prepack will be run on next deploy

* updated wagmi config

* make zora creator with the address
  • Loading branch information
oveddan authored Jun 8, 2023
1 parent 6e99143 commit 9cacd97
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 101 deletions.
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
{
"name": "@zoralabs/nft-drop-contracts",
"version": "1.12.0",
"version": "1.12.3",
"description": "ZORA NFT Drops Contracts",
"author": "ZORA",
"license": "MIT",
"private": false,
"type": "module",
"files": [
"contracts",
"deployments",
"addresses",
"dist/artifacts/*"
"dist/chainConfigs/*",
"dist/addresses/*",
"dist/index*"
],
"main": "./dist/index.js",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"scripts": {
"test": "forge test",
Expand Down
188 changes: 94 additions & 94 deletions package/wagmiGenerated.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by @wagmi/[email protected] on 5/10/2023 at 9:40:44 PM
// Generated by @wagmi/[email protected] on 6/7/2023 at 5:46:54 PM

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// DropMetadataRenderer
Expand Down Expand Up @@ -1629,7 +1629,7 @@ export const factoryUpgradeGateABI = [
] as const;

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ZoraNFTCreatorProxy
// ZoraNFTCreatorV1
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
Expand All @@ -1640,98 +1640,6 @@ export const factoryUpgradeGateABI = [
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x87cfd516c5ea86e50b950678CA970a8a28de27ac)
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x87cfd516c5ea86e50b950678CA970a8a28de27ac)
*/
export const zoraNftCreatorProxyABI = [
{
stateMutability: 'payable',
type: 'constructor',
inputs: [
{ name: '_logic', internalType: 'address', type: 'address' },
{ name: '_data', internalType: 'bytes', type: 'bytes' }
]
},
{
type: 'event',
anonymous: false,
inputs: [
{
name: 'previousAdmin',
internalType: 'address',
type: 'address',
indexed: false
},
{
name: 'newAdmin',
internalType: 'address',
type: 'address',
indexed: false
}
],
name: 'AdminChanged'
},
{
type: 'event',
anonymous: false,
inputs: [
{
name: 'beacon',
internalType: 'address',
type: 'address',
indexed: true
}
],
name: 'BeaconUpgraded'
},
{
type: 'event',
anonymous: false,
inputs: [
{
name: 'implementation',
internalType: 'address',
type: 'address',
indexed: true
}
],
name: 'Upgraded'
},
{ stateMutability: 'payable', type: 'fallback' },
{ stateMutability: 'payable', type: 'receive' }
] as const;

/**
* - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xF74B146ce44CC162b601deC3BE331784DB111DC1)
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xb9583D05Ba9ba8f7F14CCEe3Da10D2bc0A72f519)
* - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x7d1a46c6e614A0091c39E102F2798C27c1fA8892)
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x3C1ebcF36Ca9DD9371c9aA99c274e4988906c6E3)
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x87cfd516c5ea86e50b950678CA970a8a28de27ac)
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x87cfd516c5ea86e50b950678CA970a8a28de27ac)
*/
export const zoraNftCreatorProxyAddress = {
1: '0xF74B146ce44CC162b601deC3BE331784DB111DC1',
5: '0xb9583D05Ba9ba8f7F14CCEe3Da10D2bc0A72f519',
10: '0x7d1a46c6e614A0091c39E102F2798C27c1fA8892',
420: '0x3C1ebcF36Ca9DD9371c9aA99c274e4988906c6E3',
84531: '0x87cfd516c5ea86e50b950678CA970a8a28de27ac',
11155111: '0x87cfd516c5ea86e50b950678CA970a8a28de27ac'
} as const;

/**
* - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xF74B146ce44CC162b601deC3BE331784DB111DC1)
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xb9583D05Ba9ba8f7F14CCEe3Da10D2bc0A72f519)
* - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x7d1a46c6e614A0091c39E102F2798C27c1fA8892)
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x3C1ebcF36Ca9DD9371c9aA99c274e4988906c6E3)
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x87cfd516c5ea86e50b950678CA970a8a28de27ac)
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x87cfd516c5ea86e50b950678CA970a8a28de27ac)
*/
export const zoraNftCreatorProxyConfig = {
address: zoraNftCreatorProxyAddress,
abi: zoraNftCreatorProxyABI
} as const;

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ZoraNFTCreatorV1
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

export const zoraNftCreatorV1ABI = [
{
stateMutability: 'nonpayable',
Expand Down Expand Up @@ -2110,3 +2018,95 @@ export const zoraNftCreatorV1ABI = [
outputs: []
}
] as const;

/**
* - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xF74B146ce44CC162b601deC3BE331784DB111DC1)
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xb9583D05Ba9ba8f7F14CCEe3Da10D2bc0A72f519)
* - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x7d1a46c6e614A0091c39E102F2798C27c1fA8892)
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x3C1ebcF36Ca9DD9371c9aA99c274e4988906c6E3)
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x87cfd516c5ea86e50b950678CA970a8a28de27ac)
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x87cfd516c5ea86e50b950678CA970a8a28de27ac)
*/
export const zoraNftCreatorV1Address = {
1: '0xF74B146ce44CC162b601deC3BE331784DB111DC1',
5: '0xb9583D05Ba9ba8f7F14CCEe3Da10D2bc0A72f519',
10: '0x7d1a46c6e614A0091c39E102F2798C27c1fA8892',
420: '0x3C1ebcF36Ca9DD9371c9aA99c274e4988906c6E3',
84531: '0x87cfd516c5ea86e50b950678CA970a8a28de27ac',
11155111: '0x87cfd516c5ea86e50b950678CA970a8a28de27ac'
} as const;

/**
* - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xF74B146ce44CC162b601deC3BE331784DB111DC1)
* - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xb9583D05Ba9ba8f7F14CCEe3Da10D2bc0A72f519)
* - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x7d1a46c6e614A0091c39E102F2798C27c1fA8892)
* - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x3C1ebcF36Ca9DD9371c9aA99c274e4988906c6E3)
* - [__View Contract on Base Goerli Basescan__](https://goerli.basescan.org/address/0x87cfd516c5ea86e50b950678CA970a8a28de27ac)
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x87cfd516c5ea86e50b950678CA970a8a28de27ac)
*/
export const zoraNftCreatorV1Config = {
address: zoraNftCreatorV1Address,
abi: zoraNftCreatorV1ABI
} as const;

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ZoraNFTCreatorProxy
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

export const zoraNftCreatorProxyABI = [
{
stateMutability: 'payable',
type: 'constructor',
inputs: [
{ name: '_logic', internalType: 'address', type: 'address' },
{ name: '_data', internalType: 'bytes', type: 'bytes' }
]
},
{
type: 'event',
anonymous: false,
inputs: [
{
name: 'previousAdmin',
internalType: 'address',
type: 'address',
indexed: false
},
{
name: 'newAdmin',
internalType: 'address',
type: 'address',
indexed: false
}
],
name: 'AdminChanged'
},
{
type: 'event',
anonymous: false,
inputs: [
{
name: 'beacon',
internalType: 'address',
type: 'address',
indexed: true
}
],
name: 'BeaconUpgraded'
},
{
type: 'event',
anonymous: false,
inputs: [
{
name: 'implementation',
internalType: 'address',
type: 'address',
indexed: true
}
],
name: 'Upgraded'
},
{ stateMutability: 'payable', type: 'fallback' },
{ stateMutability: 'payable', type: 'receive' }
] as const;
2 changes: 1 addition & 1 deletion wagmi.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const getAddresses = () => {
// addAddress("ERC721Drop", chainId, jsonAddress.ERC721DROP_IMPL);
// addAddress("FactoryUpgradeGate", chainId, jsonAddress.FACTORY_UPGRADE_GATE);
addAddress(
'ZoraNFTCreatorProxy',
'ZoraNFTCreatorV1',
chainId,
jsonAddress.ZORA_NFT_CREATOR_PROXY
);
Expand Down

0 comments on commit 9cacd97

Please sign in to comment.