@zoralabs/protocol-deployments 0.0.13 → 0.0.14
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/CHANGELOG.md +6 -0
- package/package.json +1 -3
- package/wagmi.config.ts +6 -28
- package/.turbo/turbo-build.log +0 -32
- package/dist/chainConfigs.d.ts +0 -63
- package/dist/chainConfigs.d.ts.map +0 -1
- package/dist/deployment.d.ts +0 -32
- package/dist/deployment.d.ts.map +0 -1
- package/dist/index.cjs +0 -3569
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -3526
- package/dist/index.js.map +0 -1
- package/dist/wagmiGenerated.d.ts +0 -7582
- package/dist/wagmiGenerated.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zoralabs/protocol-deployments",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"repository": "https://github.com/ourzora/zora-protocol",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
"wagmi": "wagmi generate"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@zoralabs/mints-contracts": "*",
|
|
18
|
-
"@zoralabs/mints-deployments": "*",
|
|
19
17
|
"@zoralabs/1155-deployments": "*",
|
|
20
18
|
"@zoralabs/zora-1155-contracts": "*"
|
|
21
19
|
},
|
package/wagmi.config.ts
CHANGED
|
@@ -14,7 +14,7 @@ type Addresses = {
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
const
|
|
17
|
+
const getAddresses = () => {
|
|
18
18
|
const addresses: Addresses = {};
|
|
19
19
|
|
|
20
20
|
const addressesFiles = readdirSync("../1155-deployments/addresses");
|
|
@@ -91,36 +91,14 @@ const get1155Addresses = () => {
|
|
|
91
91
|
return addresses;
|
|
92
92
|
};
|
|
93
93
|
|
|
94
|
-
const getMintsAddresses = () => {
|
|
95
|
-
const addressesFiles = readdirSync("../mints-deployments/addresses");
|
|
96
|
-
|
|
97
|
-
const chainIds = addressesFiles.map((x) => Number(x.split(".")[0]));
|
|
98
|
-
|
|
99
|
-
const mintsProxyConfig = JSON.parse(
|
|
100
|
-
readFileSync(
|
|
101
|
-
"../mints-deployments/deterministicConfig/mintsProxy/params.json",
|
|
102
|
-
"utf-8",
|
|
103
|
-
),
|
|
104
|
-
);
|
|
105
|
-
|
|
106
|
-
const mintsProxyAddress =
|
|
107
|
-
mintsProxyConfig.expectedTransparentProxyAddress as Address;
|
|
108
|
-
|
|
109
|
-
return Object.fromEntries(
|
|
110
|
-
chainIds.map((chainId) => [chainId, mintsProxyAddress]),
|
|
111
|
-
);
|
|
112
|
-
};
|
|
113
|
-
|
|
114
94
|
export default defineConfig({
|
|
115
95
|
out: "src/wagmiGenerated.ts",
|
|
116
96
|
contracts: [
|
|
117
|
-
...Object.entries(
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}),
|
|
123
|
-
),
|
|
97
|
+
...Object.entries(getAddresses()).map(([contractName, addressConfig]) => ({
|
|
98
|
+
abi: addressConfig.abi,
|
|
99
|
+
address: addressConfig.address,
|
|
100
|
+
name: contractName,
|
|
101
|
+
})),
|
|
124
102
|
{
|
|
125
103
|
abi: abis.zoraCreator1155ImplABI,
|
|
126
104
|
name: "ZoraCreator1155Impl",
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
$ yarn wagmi && yarn bundle-configs && tsup
|
|
2
|
-
$ wagmi generate
|
|
3
|
-
- Validating plugins
|
|
4
|
-
✔ Validating plugins
|
|
5
|
-
- Resolving contracts
|
|
6
|
-
✔ Resolving contracts
|
|
7
|
-
- Running plugins
|
|
8
|
-
✔ Running plugins
|
|
9
|
-
- Writing to src/wagmiGenerated.ts
|
|
10
|
-
✔ Writing to src/wagmiGenerated.ts
|
|
11
|
-
$ node scripts/bundle-chainConfigs.mjs && yarn prettier
|
|
12
|
-
$ prettier --write 'src/**/*.ts' 'scripts/*' 'wagmi.config.ts'
|
|
13
|
-
src/chainConfigs.ts 97ms
|
|
14
|
-
src/deployment.ts 14ms (unchanged)
|
|
15
|
-
src/index.ts 1ms (unchanged)
|
|
16
|
-
src/wagmiGenerated.ts 131ms
|
|
17
|
-
scripts/bundle-chainConfigs.mjs 18ms (unchanged)
|
|
18
|
-
wagmi.config.ts 7ms (unchanged)
|
|
19
|
-
CLI Building entry: src/index.ts
|
|
20
|
-
CLI Using tsconfig: tsconfig.json
|
|
21
|
-
CLI tsup v7.3.0
|
|
22
|
-
CLI Using tsup config: /Users/danovedzora/source/zora-protocol/packages/protocol-deployments/tsup.config.ts
|
|
23
|
-
CLI Target: es2021
|
|
24
|
-
CLI Cleaning output folder
|
|
25
|
-
CJS Build start
|
|
26
|
-
ESM Build start
|
|
27
|
-
CJS dist/index.cjs 102.14 KB
|
|
28
|
-
CJS dist/index.cjs.map 203.14 KB
|
|
29
|
-
CJS ⚡️ Build success in 14ms
|
|
30
|
-
ESM dist/index.js 99.84 KB
|
|
31
|
-
ESM dist/index.js.map 202.74 KB
|
|
32
|
-
ESM ⚡️ Build success in 14ms
|
package/dist/chainConfigs.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
export declare const chainConfigs: {
|
|
2
|
-
1: {
|
|
3
|
-
FACTORY_OWNER: string;
|
|
4
|
-
MINT_FEE_RECIPIENT: string;
|
|
5
|
-
PROTOCOL_REWARDS: string;
|
|
6
|
-
};
|
|
7
|
-
10: {
|
|
8
|
-
FACTORY_OWNER: string;
|
|
9
|
-
MINT_FEE_RECIPIENT: string;
|
|
10
|
-
PROTOCOL_REWARDS: string;
|
|
11
|
-
};
|
|
12
|
-
11155111: {
|
|
13
|
-
FACTORY_OWNER: string;
|
|
14
|
-
MINT_FEE_RECIPIENT: string;
|
|
15
|
-
PROTOCOL_REWARDS: string;
|
|
16
|
-
};
|
|
17
|
-
420: {
|
|
18
|
-
FACTORY_OWNER: string;
|
|
19
|
-
MINT_FEE_RECIPIENT: string;
|
|
20
|
-
PROTOCOL_REWARDS: string;
|
|
21
|
-
};
|
|
22
|
-
42161: {
|
|
23
|
-
FACTORY_OWNER: string;
|
|
24
|
-
MINT_FEE_RECIPIENT: string;
|
|
25
|
-
PROTOCOL_REWARDS: string;
|
|
26
|
-
};
|
|
27
|
-
421614: {
|
|
28
|
-
FACTORY_OWNER: string;
|
|
29
|
-
MINT_FEE_RECIPIENT: string;
|
|
30
|
-
PROTOCOL_REWARDS: string;
|
|
31
|
-
};
|
|
32
|
-
5: {
|
|
33
|
-
FACTORY_OWNER: string;
|
|
34
|
-
MINT_FEE_RECIPIENT: string;
|
|
35
|
-
PROTOCOL_REWARDS: string;
|
|
36
|
-
};
|
|
37
|
-
7777777: {
|
|
38
|
-
FACTORY_OWNER: string;
|
|
39
|
-
MINT_FEE_RECIPIENT: string;
|
|
40
|
-
PROTOCOL_REWARDS: string;
|
|
41
|
-
};
|
|
42
|
-
8453: {
|
|
43
|
-
FACTORY_OWNER: string;
|
|
44
|
-
MINT_FEE_RECIPIENT: string;
|
|
45
|
-
PROTOCOL_REWARDS: string;
|
|
46
|
-
};
|
|
47
|
-
84531: {
|
|
48
|
-
FACTORY_OWNER: string;
|
|
49
|
-
MINT_FEE_RECIPIENT: string;
|
|
50
|
-
PROTOCOL_REWARDS: string;
|
|
51
|
-
};
|
|
52
|
-
999: {
|
|
53
|
-
FACTORY_OWNER: string;
|
|
54
|
-
MINT_FEE_RECIPIENT: string;
|
|
55
|
-
PROTOCOL_REWARDS: string;
|
|
56
|
-
};
|
|
57
|
-
999999999: {
|
|
58
|
-
FACTORY_OWNER: string;
|
|
59
|
-
MINT_FEE_RECIPIENT: string;
|
|
60
|
-
PROTOCOL_REWARDS: string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
//# sourceMappingURL=chainConfigs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chainConfigs.d.ts","sourceRoot":"","sources":["../src/chainConfigs.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DxB,CAAC"}
|
package/dist/deployment.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Address, LocalAccount, Hex } from "viem";
|
|
2
|
-
export type ConfiguredSalt = `0x${string}`;
|
|
3
|
-
export type DeterministicDeploymentConfig = {
|
|
4
|
-
proxyDeployerAddress: Address;
|
|
5
|
-
proxyShimSalt: ConfiguredSalt;
|
|
6
|
-
proxySalt: ConfiguredSalt;
|
|
7
|
-
proxyCreationCode: Hex;
|
|
8
|
-
};
|
|
9
|
-
export type GenericDeploymentConfiguration = {
|
|
10
|
-
creationCode: Hex;
|
|
11
|
-
salt: Hex;
|
|
12
|
-
deployerAddress: Address;
|
|
13
|
-
upgradeGateAddress: Address;
|
|
14
|
-
proxyDeployerAddress: Address;
|
|
15
|
-
};
|
|
16
|
-
export type DeployedContracts = {
|
|
17
|
-
factoryImplAddress: Address;
|
|
18
|
-
};
|
|
19
|
-
export declare const signDeployFactory: ({ account, deterministicDeploymentConfig: config, implementationAddress, owner, chainId, }: {
|
|
20
|
-
account: LocalAccount;
|
|
21
|
-
deterministicDeploymentConfig: DeterministicDeploymentConfig;
|
|
22
|
-
implementationAddress: Address;
|
|
23
|
-
owner: Address;
|
|
24
|
-
chainId: number;
|
|
25
|
-
}) => Promise<`0x${string}`>;
|
|
26
|
-
export declare const signGenericDeploy: ({ account, config, chainId, initCall, }: {
|
|
27
|
-
account: LocalAccount;
|
|
28
|
-
config: GenericDeploymentConfiguration;
|
|
29
|
-
initCall: Hex;
|
|
30
|
-
chainId: number;
|
|
31
|
-
}) => Promise<`0x${string}`>;
|
|
32
|
-
//# sourceMappingURL=deployment.d.ts.map
|
package/dist/deployment.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deployment.d.ts","sourceRoot":"","sources":["../src/deployment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG,KAAK,MAAM,EAAE,CAAC;AAE3C,MAAM,MAAM,6BAA6B,GAAG;IAC1C,oBAAoB,EAAE,OAAO,CAAC;IAC9B,aAAa,EAAE,cAAc,CAAC;IAC9B,SAAS,EAAE,cAAc,CAAC;IAC1B,iBAAiB,EAAE,GAAG,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,YAAY,EAAE,GAAG,CAAC;IAClB,IAAI,EAAE,GAAG,CAAC;IACV,eAAe,EAAE,OAAO,CAAC;IACzB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oBAAoB,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,kBAAkB,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,iBAAiB;aAOnB,YAAY;mCACU,6BAA6B;2BACrC,OAAO;WACvB,OAAO;aACL,MAAM;4BA0Bb,CAAC;AAEL,eAAO,MAAM,iBAAiB;aAMnB,YAAY;YACb,8BAA8B;cAC5B,GAAG;aACJ,MAAM;4BAsBb,CAAC"}
|