@zoralabs/protocol-deployments 0.3.2 → 0.3.3
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/.turbo/turbo-build.log +22 -17
- package/CHANGELOG.md +6 -0
- package/dist/encoding.d.ts +15 -0
- package/dist/encoding.d.ts.map +1 -0
- package/dist/generated/wagmi.d.ts +237 -16
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +84 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +80 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/src/encoding.ts +6 -0
- package/src/generated/wagmi.ts +107 -2
- package/src/index.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zoralabs/protocol-deployments",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"repository": "https://github.com/ourzora/zora-protocol",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -30,8 +30,9 @@
|
|
|
30
30
|
"@zoralabs/tsconfig": "^0.0.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
|
-
"build": "pnpm bundle-configs && tsup",
|
|
33
|
+
"build": "pnpm bundle-configs && pnpm copy-generated && tsup",
|
|
34
34
|
"bundle-configs": "tsx scripts/bundle-configs.ts && pnpm prettier:write",
|
|
35
|
+
"copy-generated": "cp ../protocol-deployments-gen/generated/wagmi.ts src/generated/wagmi.ts",
|
|
35
36
|
"prettier:write": "prettier --write 'src/**/*.ts' 'scripts/*'",
|
|
36
37
|
"lint": "prettier --check 'src/**/*.ts' 'scripts/*'"
|
|
37
38
|
}
|
package/src/encoding.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** ABI parameters for performing a SafeTransferFrom based swap when selling on secondary. */
|
|
2
|
+
export const safeTransferSwapAbiParameters = [
|
|
3
|
+
{ name: "recipient", internalType: "address payable", type: "address" },
|
|
4
|
+
{ name: "minEthToAcquire", internalType: "uint256", type: "uint256" },
|
|
5
|
+
{ name: "sqrtPriceLimitX96", internalType: "uint160", type: "uint160" },
|
|
6
|
+
] as const;
|
package/src/generated/wagmi.ts
CHANGED
|
@@ -2247,7 +2247,6 @@ export const secondarySwapABI = [
|
|
|
2247
2247
|
},
|
|
2248
2248
|
{ name: 'maxEthToSpend', internalType: 'uint256', type: 'uint256' },
|
|
2249
2249
|
{ name: 'sqrtPriceLimitX96', internalType: 'uint160', type: 'uint160' },
|
|
2250
|
-
{ name: 'comment', internalType: 'string', type: 'string' },
|
|
2251
2250
|
],
|
|
2252
2251
|
name: 'buy1155',
|
|
2253
2252
|
outputs: [],
|
|
@@ -2307,7 +2306,6 @@ export const secondarySwapABI = [
|
|
|
2307
2306
|
{ name: 'recipient', internalType: 'address payable', type: 'address' },
|
|
2308
2307
|
{ name: 'minEthToAcquire', internalType: 'uint256', type: 'uint256' },
|
|
2309
2308
|
{ name: 'sqrtPriceLimitX96', internalType: 'uint160', type: 'uint160' },
|
|
2310
|
-
{ name: 'comment', internalType: 'string', type: 'string' },
|
|
2311
2309
|
],
|
|
2312
2310
|
name: 'sell1155',
|
|
2313
2311
|
outputs: [],
|
|
@@ -3193,6 +3191,113 @@ export const upgradeGateConfig = {
|
|
|
3193
3191
|
abi: upgradeGateABI,
|
|
3194
3192
|
} as const
|
|
3195
3193
|
|
|
3194
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3195
|
+
// WETH
|
|
3196
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3197
|
+
|
|
3198
|
+
/**
|
|
3199
|
+
* - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2)
|
|
3200
|
+
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x4200000000000000000000000000000000000006)
|
|
3201
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x4200000000000000000000000000000000000006)
|
|
3202
|
+
* - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x82af49447d8a07e3bd95bd0d56f35241523fbab1)
|
|
3203
|
+
* - [__View Contract on Base Sepolia Blockscout__](https://base-sepolia.blockscout.com/address/0x4200000000000000000000000000000000000006)
|
|
3204
|
+
* - [__View Contract on Arbitrum Sepolia Arbiscan__](https://sepolia.arbiscan.io/address/0xc556bae1e86b2ae9c22ea5e036b07e55e7596074)
|
|
3205
|
+
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x4200000000000000000000000000000000000006)
|
|
3206
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9)
|
|
3207
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x4200000000000000000000000000000000000006)
|
|
3208
|
+
*/
|
|
3209
|
+
export const wethABI = [
|
|
3210
|
+
{
|
|
3211
|
+
stateMutability: 'nonpayable',
|
|
3212
|
+
type: 'function',
|
|
3213
|
+
inputs: [
|
|
3214
|
+
{ name: 'guy', internalType: 'address', type: 'address' },
|
|
3215
|
+
{ name: 'wad', internalType: 'uint256', type: 'uint256' },
|
|
3216
|
+
],
|
|
3217
|
+
name: 'approve',
|
|
3218
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3219
|
+
},
|
|
3220
|
+
{
|
|
3221
|
+
stateMutability: 'view',
|
|
3222
|
+
type: 'function',
|
|
3223
|
+
inputs: [{ name: 'guy', internalType: 'address', type: 'address' }],
|
|
3224
|
+
name: 'balanceOf',
|
|
3225
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3226
|
+
},
|
|
3227
|
+
{
|
|
3228
|
+
stateMutability: 'payable',
|
|
3229
|
+
type: 'function',
|
|
3230
|
+
inputs: [],
|
|
3231
|
+
name: 'deposit',
|
|
3232
|
+
outputs: [],
|
|
3233
|
+
},
|
|
3234
|
+
{
|
|
3235
|
+
stateMutability: 'nonpayable',
|
|
3236
|
+
type: 'function',
|
|
3237
|
+
inputs: [
|
|
3238
|
+
{ name: 'dst', internalType: 'address', type: 'address' },
|
|
3239
|
+
{ name: 'wad', internalType: 'uint256', type: 'uint256' },
|
|
3240
|
+
],
|
|
3241
|
+
name: 'transfer',
|
|
3242
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3243
|
+
},
|
|
3244
|
+
{
|
|
3245
|
+
stateMutability: 'nonpayable',
|
|
3246
|
+
type: 'function',
|
|
3247
|
+
inputs: [
|
|
3248
|
+
{ name: 'src', internalType: 'address', type: 'address' },
|
|
3249
|
+
{ name: 'dst', internalType: 'address', type: 'address' },
|
|
3250
|
+
{ name: 'wad', internalType: 'uint256', type: 'uint256' },
|
|
3251
|
+
],
|
|
3252
|
+
name: 'transferFrom',
|
|
3253
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3254
|
+
},
|
|
3255
|
+
{
|
|
3256
|
+
stateMutability: 'nonpayable',
|
|
3257
|
+
type: 'function',
|
|
3258
|
+
inputs: [{ name: 'wad', internalType: 'uint256', type: 'uint256' }],
|
|
3259
|
+
name: 'withdraw',
|
|
3260
|
+
outputs: [],
|
|
3261
|
+
},
|
|
3262
|
+
] as const
|
|
3263
|
+
|
|
3264
|
+
/**
|
|
3265
|
+
* - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2)
|
|
3266
|
+
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x4200000000000000000000000000000000000006)
|
|
3267
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x4200000000000000000000000000000000000006)
|
|
3268
|
+
* - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x82af49447d8a07e3bd95bd0d56f35241523fbab1)
|
|
3269
|
+
* - [__View Contract on Base Sepolia Blockscout__](https://base-sepolia.blockscout.com/address/0x4200000000000000000000000000000000000006)
|
|
3270
|
+
* - [__View Contract on Arbitrum Sepolia Arbiscan__](https://sepolia.arbiscan.io/address/0xc556bae1e86b2ae9c22ea5e036b07e55e7596074)
|
|
3271
|
+
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x4200000000000000000000000000000000000006)
|
|
3272
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9)
|
|
3273
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x4200000000000000000000000000000000000006)
|
|
3274
|
+
*/
|
|
3275
|
+
export const wethAddress = {
|
|
3276
|
+
1: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
|
3277
|
+
10: '0x4200000000000000000000000000000000000006',
|
|
3278
|
+
8453: '0x4200000000000000000000000000000000000006',
|
|
3279
|
+
42161: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1',
|
|
3280
|
+
81457: '0x4300000000000000000000000000000000000004',
|
|
3281
|
+
84532: '0x4200000000000000000000000000000000000006',
|
|
3282
|
+
421614: '0xc556bAe1e86B2aE9c22eA5E036b07E55E7596074',
|
|
3283
|
+
7777777: '0x4200000000000000000000000000000000000006',
|
|
3284
|
+
11155111: '0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9',
|
|
3285
|
+
999999999: '0x4200000000000000000000000000000000000006',
|
|
3286
|
+
} as const
|
|
3287
|
+
|
|
3288
|
+
/**
|
|
3289
|
+
* - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2)
|
|
3290
|
+
* - [__View Contract on Op Mainnet Optimism Explorer__](https://explorer.optimism.io/address/0x4200000000000000000000000000000000000006)
|
|
3291
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0x4200000000000000000000000000000000000006)
|
|
3292
|
+
* - [__View Contract on Arbitrum One Arbiscan__](https://arbiscan.io/address/0x82af49447d8a07e3bd95bd0d56f35241523fbab1)
|
|
3293
|
+
* - [__View Contract on Base Sepolia Blockscout__](https://base-sepolia.blockscout.com/address/0x4200000000000000000000000000000000000006)
|
|
3294
|
+
* - [__View Contract on Arbitrum Sepolia Arbiscan__](https://sepolia.arbiscan.io/address/0xc556bae1e86b2ae9c22ea5e036b07e55e7596074)
|
|
3295
|
+
* - [__View Contract on Zora Explorer__](https://explorer.zora.energy/address/0x4200000000000000000000000000000000000006)
|
|
3296
|
+
* - [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9)
|
|
3297
|
+
* - [__View Contract on Zora Sepolia Zora Sepolia Explorer__](https://sepolia.explorer.zora.energy//address/0x4200000000000000000000000000000000000006)
|
|
3298
|
+
*/
|
|
3299
|
+
export const wethConfig = { address: wethAddress, abi: wethABI } as const
|
|
3300
|
+
|
|
3196
3301
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
3197
3302
|
// ZoraCreator1155FactoryImpl
|
|
3198
3303
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|