Skip to content

Commit

Permalink
premint-sdk now imports from deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
oveddan committed Oct 26, 2023
1 parent 7751059 commit dd57509
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 28 deletions.
3 changes: 2 additions & 1 deletion packages/1155-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"build": "tsup",
"build:sizes": "forge build --sizes",
"storage-inspect:check": "./script/storage-check.sh check ZoraCreator1155Impl ZoraCreator1155FactoryImpl",
"storage-inspect:generate": "./script/storage-check.sh generate ZoraCreator1155Impl ZoraCreator1155FactoryImpl"
"storage-inspect:generate": "./script/storage-check.sh generate ZoraCreator1155Impl ZoraCreator1155FactoryImpl",
"update-contract-version": "node script/update-contract-version.mjs"
},
"files": [
"dist/",
Expand Down
7 changes: 3 additions & 4 deletions packages/deployments/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"name": "@zoralabs/deployments",
"name": "@zoralabs/protocol-deployments",
"version": "0.0.1",
"repository": "https://github.com/ourzora/zora-protocol",
"license": "MIT",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"types": "./dist/package/index.d.ts",
"type": "module",
"scripts": {
"build": "tsup",
"prepack": "yarn wagmi && yarn bundle-configs && yarn build",
"build": "yarn wagmi && yarn bundle-configs && tsup",
"bundle-configs": "node script/bundle-chainConfigs.mjs && yarn prettier",
"prettier": "prettier --write 'package/**/*.ts' 'script/**/*.ts' 'wagmi.config.ts'",
"update-new-deployment-addresses": "node script/copy-deployed-contracts.mjs deploy",
Expand Down
5 changes: 0 additions & 5 deletions packages/deployments/package/chainConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,4 @@ export const chainConfigs = {
MINT_FEE_RECIPIENT: "0xE84DBB2B25F761751231a9D0DAfbdD4dC3aa8252",
PROTOCOL_REWARDS: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
},
[999999999]: {
FACTORY_OWNER: "0xdEA20c96253dc2d64897D2b8d27A8d935dE74955",
MINT_FEE_RECIPIENT: "0xEcfc2ee50409E459c554a2b0376F882Ce916D853",
PROTOCOL_REWARDS: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
},
};
10 changes: 0 additions & 10 deletions packages/deployments/tsup.config.js

This file was deleted.

12 changes: 8 additions & 4 deletions packages/deployments/wagmi.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,15 @@ const getAddresses = () => {

export default defineConfig({
out: "package/wagmiGenerated.ts",
contracts: Object.entries(getAddresses()).map(
([contractName, addressConfig]) => ({
contracts: [
...Object.entries(getAddresses()).map(([contractName, addressConfig]) => ({
abi: addressConfig.abi,
address: addressConfig.address,
name: contractName,
})
),
})),
{
abi: abis.zoraCreator1155ImplABI,
name: "ZoraCreator1155Impl",
},
],
});
2 changes: 1 addition & 1 deletion packages/premint-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"anvil": "source .env.anvil && anvil --fork-url $FORK_RPC_URL --fork-block-number $FORK_BLOCK_NUMBER --chain-id 31337"
},
"dependencies": {
"@zoralabs/zora-1155-contracts": "*",
"@zoralabs/protocol-deployments": "*",
"abitype": "^0.8.7"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/premint-sdk/src/premint-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
zoraCreator1155PremintExecutorImplABI,
zoraCreator1155PremintExecutorImplAddress,
zoraCreatorFixedPriceSaleStrategyAddress,
} from "@zoralabs/zora-1155-contracts";
} from "@zoralabs/protocol-deployments";
import { foundry, zora, zoraTestnet } from "viem/chains";
import { PremintConfig, preminterTypedDataDefinition } from "./preminter";
import type {
Expand Down
2 changes: 1 addition & 1 deletion packages/premint-sdk/src/preminter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
zoraCreator1155ImplABI,
zoraCreator1155FactoryImplAddress,
zoraCreator1155FactoryImplConfig,
} from "@zoralabs/zora-1155-contracts";
} from "@zoralabs/protocol-deployments";

import {
ContractCreationConfig,
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3989,7 +3989,7 @@ [email protected]:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.1.6.tgz#02f8ac202b6dad2c0dd5e0913745b47a37998274"
integrity sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==

typescript@^5.0.4, typescript@^5.2.2:
typescript@^5.2.2:
version "5.2.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78"
integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==
Expand Down

0 comments on commit dd57509

Please sign in to comment.