@zoralabs/protocol-deployments 0.5.5-PRE.0 → 0.5.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zoralabs/protocol-deployments",
3
- "version": "0.5.5-PRE.0",
3
+ "version": "0.5.5",
4
4
  "repository": "https://github.com/ourzora/zora-protocol",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -15,17 +15,9 @@
15
15
  "default": "./dist/index.cjs"
16
16
  }
17
17
  },
18
- "scripts": {
19
- "build": "pnpm bundle-configs && pnpm copy-generated && tsup",
20
- "bundle-configs": "tsx scripts/bundle-configs.ts && pnpm prettier:write",
21
- "copy-generated": "cp ../protocol-deployments-gen/generated/wagmi.ts src/generated/wagmi.ts",
22
- "prettier:write": "prettier --write 'src/**/*.ts' 'scripts/*'",
23
- "lint": "prettier --check 'src/**/*.ts' 'scripts/*'"
24
- },
25
18
  "devDependencies": {
26
19
  "@lavamoat/preinstall-always-fail": "2.0.0",
27
20
  "@types/node": "^20.3.2",
28
- "@zoralabs/tsconfig": "workspace:^",
29
21
  "abitype": "^1.0.2",
30
22
  "es-main": "^1.2.0",
31
23
  "prettier": "^3.2.5",
@@ -33,6 +25,14 @@
33
25
  "tsup": "^7.2.0",
34
26
  "tsx": "^3.13.0",
35
27
  "typescript": "^5.2.2",
36
- "viem": "^2.21.21"
28
+ "viem": "^2.21.21",
29
+ "@zoralabs/tsconfig": "^0.0.1"
30
+ },
31
+ "scripts": {
32
+ "build": "pnpm bundle-configs && pnpm copy-generated && tsup",
33
+ "bundle-configs": "tsx scripts/bundle-configs.ts && pnpm prettier:write",
34
+ "copy-generated": "cp ../protocol-deployments-gen/generated/wagmi.ts src/generated/wagmi.ts",
35
+ "prettier:write": "prettier --write 'src/**/*.ts' 'scripts/*'",
36
+ "lint": "prettier --check 'src/**/*.ts' 'scripts/*'"
37
37
  }
38
- }
38
+ }
package/src/encoding.ts CHANGED
@@ -91,7 +91,7 @@ export const encodeBuySupplyWithSingleHopSwapRouterHookCall = ({
91
91
  });
92
92
 
93
93
  return {
94
- hook: encodeBuySupplyWithSwapRouterHookCalldata(hook, callToSwapRouter),
94
+ hook,
95
95
  hookData: encodeBuySupplyWithSwapRouterHookCalldata(
96
96
  buyRecipient,
97
97
  callToSwapRouter,
@@ -135,7 +135,7 @@ export const encodeBuySupplyWithMultiHopSwapRouterHookCall = ({
135
135
  });
136
136
 
137
137
  return {
138
- hook: encodeBuySupplyWithSwapRouterHookCalldata(hook, callToSwapRouter),
138
+ hook,
139
139
  hookData: encodeBuySupplyWithSwapRouterHookCalldata(
140
140
  buyRecipient,
141
141
  callToSwapRouter,
@@ -3,7 +3,8 @@
3
3
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4
4
 
5
5
  /**
6
- * [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x6B78be0808262b1d5E9B1eeDfE448aDCE2C637a8)
6
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x264b731e40691Da5B40aA63AC5c3B7F7DAafA721)
7
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x6B78be0808262b1d5E9B1eeDfE448aDCE2C637a8)
7
8
  */
8
9
  export const buySupplyWithSwapRouterHookABI = [
9
10
  {
@@ -63,14 +64,17 @@ export const buySupplyWithSwapRouterHookABI = [
63
64
  ] as const
64
65
 
65
66
  /**
66
- * [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x6B78be0808262b1d5E9B1eeDfE448aDCE2C637a8)
67
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x264b731e40691Da5B40aA63AC5c3B7F7DAafA721)
68
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x6B78be0808262b1d5E9B1eeDfE448aDCE2C637a8)
67
69
  */
68
70
  export const buySupplyWithSwapRouterHookAddress = {
71
+ 8453: '0x264b731e40691Da5B40aA63AC5c3B7F7DAafA721',
69
72
  84532: '0x6B78be0808262b1d5E9B1eeDfE448aDCE2C637a8',
70
73
  } as const
71
74
 
72
75
  /**
73
- * [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x6B78be0808262b1d5E9B1eeDfE448aDCE2C637a8)
76
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x264b731e40691Da5B40aA63AC5c3B7F7DAafA721)
77
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x6B78be0808262b1d5E9B1eeDfE448aDCE2C637a8)
74
78
  */
75
79
  export const buySupplyWithSwapRouterHookConfig = {
76
80
  address: buySupplyWithSwapRouterHookAddress,
@@ -1183,55 +1187,6 @@ export const coinABI = [
1183
1187
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
1184
1188
  stateMutability: 'view',
1185
1189
  },
1186
- {
1187
- type: 'function',
1188
- inputs: [],
1189
- name: 'MAX_TOTAL_SUPPLY',
1190
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1191
- stateMutability: 'view',
1192
- },
1193
- {
1194
- type: 'function',
1195
- inputs: [],
1196
- name: 'MIN_ORDER_SIZE',
1197
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1198
- stateMutability: 'view',
1199
- },
1200
- {
1201
- type: 'function',
1202
- inputs: [],
1203
- name: 'PLATFORM_REFERRER_FEE_BPS',
1204
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1205
- stateMutability: 'view',
1206
- },
1207
- {
1208
- type: 'function',
1209
- inputs: [],
1210
- name: 'PROTOCOL_FEE_BPS',
1211
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1212
- stateMutability: 'view',
1213
- },
1214
- {
1215
- type: 'function',
1216
- inputs: [],
1217
- name: 'TOKEN_CREATOR_FEE_BPS',
1218
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1219
- stateMutability: 'view',
1220
- },
1221
- {
1222
- type: 'function',
1223
- inputs: [],
1224
- name: 'TOTAL_FEE_BPS',
1225
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1226
- stateMutability: 'view',
1227
- },
1228
- {
1229
- type: 'function',
1230
- inputs: [],
1231
- name: 'TRADE_REFERRER_FEE_BPS',
1232
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1233
- stateMutability: 'view',
1234
- },
1235
1190
  {
1236
1191
  type: 'function',
1237
1192
  inputs: [],
@@ -1384,6 +1339,20 @@ export const coinABI = [
1384
1339
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1385
1340
  stateMutability: 'view',
1386
1341
  },
1342
+ {
1343
+ type: 'function',
1344
+ inputs: [],
1345
+ name: 'market',
1346
+ outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
1347
+ stateMutability: 'view',
1348
+ },
1349
+ {
1350
+ type: 'function',
1351
+ inputs: [],
1352
+ name: 'marketVersion',
1353
+ outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
1354
+ stateMutability: 'view',
1355
+ },
1387
1356
  {
1388
1357
  type: 'function',
1389
1358
  inputs: [],
@@ -2029,6 +1998,7 @@ export const coinABI = [
2029
1998
  name: 'AddressInsufficientBalance',
2030
1999
  },
2031
2000
  { type: 'error', inputs: [], name: 'AddressZero' },
2001
+ { type: 'error', inputs: [], name: 'AddressZero' },
2032
2002
  { type: 'error', inputs: [], name: 'AlreadyOwner' },
2033
2003
  { type: 'error', inputs: [], name: 'CannotMintZeroLiquidity' },
2034
2004
  {
@@ -2119,6 +2089,7 @@ export const coinABI = [
2119
2089
  { type: 'error', inputs: [], name: 'InvalidInitialization' },
2120
2090
  { type: 'error', inputs: [], name: 'InvalidMarketType' },
2121
2091
  { type: 'error', inputs: [], name: 'InvalidPoolVersion' },
2092
+ { type: 'error', inputs: [], name: 'InvalidPoolVersion' },
2122
2093
  {
2123
2094
  type: 'error',
2124
2095
  inputs: [
@@ -2144,7 +2115,14 @@ export const coinABI = [
2144
2115
  { type: 'error', inputs: [], name: 'NumDiscoveryPositionsOutOfRange' },
2145
2116
  { type: 'error', inputs: [], name: 'OneOwnerRequired' },
2146
2117
  { type: 'error', inputs: [], name: 'OnlyOwner' },
2147
- { type: 'error', inputs: [], name: 'OnlyPool' },
2118
+ {
2119
+ type: 'error',
2120
+ inputs: [
2121
+ { name: 'sender', internalType: 'address', type: 'address' },
2122
+ { name: 'pool', internalType: 'address', type: 'address' },
2123
+ ],
2124
+ name: 'OnlyPool',
2125
+ },
2148
2126
  { type: 'error', inputs: [], name: 'OnlyWeth' },
2149
2127
  { type: 'error', inputs: [], name: 'OwnerCannotBeAddressZero' },
2150
2128
  { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' },