@zoralabs/protocol-deployments 0.0.14-MINT.0 → 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 +2 -5
- package/package.json +3 -5
- 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/src/chainConfigs.ts +0 -62
- package/src/wagmiGenerated.ts +0 -3693
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
# @zoralabs/premint-sdk
|
|
2
2
|
|
|
3
|
-
## 0.0.14
|
|
3
|
+
## 0.0.14
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
- Updated dependencies [f883b69d]
|
|
9
|
-
- @zoralabs/zora-1155-contracts@2.8.0-MINT.0
|
|
10
|
-
- @zoralabs/1155-deployments@0.0.2-MINT.0
|
|
7
|
+
- Added back protocol-deployments - bundling 1155-deployments into it
|
|
11
8
|
|
|
12
9
|
## 0.0.13
|
|
13
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zoralabs/protocol-deployments",
|
|
3
|
-
"version": "0.0.14
|
|
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,10 +14,8 @@
|
|
|
14
14
|
"wagmi": "wagmi generate"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@zoralabs/
|
|
18
|
-
"@zoralabs/
|
|
19
|
-
"@zoralabs/1155-deployments": "0.0.2-MINT.0",
|
|
20
|
-
"@zoralabs/zora-1155-contracts": "2.8.0-MINT.0"
|
|
17
|
+
"@zoralabs/1155-deployments": "*",
|
|
18
|
+
"@zoralabs/zora-1155-contracts": "*"
|
|
21
19
|
},
|
|
22
20
|
"devDependencies": {
|
|
23
21
|
"zoralabs-tsconfig": "*",
|
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 [90msrc/wagmiGenerated.ts[39m
|
|
10
|
-
✔ Writing to [90msrc/wagmiGenerated.ts[39m
|
|
11
|
-
$ node scripts/bundle-chainConfigs.mjs && yarn prettier
|
|
12
|
-
$ prettier --write 'src/**/*.ts' 'scripts/*' 'wagmi.config.ts'
|
|
13
|
-
src/chainConfigs.ts 237ms
|
|
14
|
-
src/deployment.ts 34ms (unchanged)
|
|
15
|
-
src/index.ts 4ms (unchanged)
|
|
16
|
-
src/wagmiGenerated.ts 533ms
|
|
17
|
-
scripts/bundle-chainConfigs.mjs 42ms (unchanged)
|
|
18
|
-
wagmi.config.ts 31ms (unchanged)
|
|
19
|
-
[34mCLI[39m Building entry: src/index.ts
|
|
20
|
-
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
21
|
-
[34mCLI[39m tsup v7.3.0
|
|
22
|
-
[34mCLI[39m Using tsup config: /home/runner/work/zora-protocol-private/zora-protocol-private/packages/protocol-deployments/tsup.config.ts
|
|
23
|
-
[34mCLI[39m Target: es2021
|
|
24
|
-
[34mCLI[39m Cleaning output folder
|
|
25
|
-
[34mCJS[39m Build start
|
|
26
|
-
[34mESM[39m Build start
|
|
27
|
-
[32mCJS[39m [1mdist/index.cjs [22m[32m102.14 KB[39m
|
|
28
|
-
[32mCJS[39m [1mdist/index.cjs.map [22m[32m203.14 KB[39m
|
|
29
|
-
[32mCJS[39m ⚡️ Build success in 36ms
|
|
30
|
-
[32mESM[39m [1mdist/index.js [22m[32m99.84 KB[39m
|
|
31
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m202.74 KB[39m
|
|
32
|
-
[32mESM[39m ⚡️ Build success in 36ms
|
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"}
|