@zoralabs/protocol-deployments 0.5.9 → 0.5.10
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 +46 -47
- package/CHANGELOG.md +6 -0
- package/LICENSE +21 -0
- package/dist/encoding.d.ts +2 -2
- package/dist/generated/wagmi.d.ts +132 -12
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +34 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +34 -6
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
- package/src/generated/wagmi.ts +38 -10
- package/.turbo/turbo-lint.log +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zoralabs/protocol-deployments",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.10",
|
|
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/generated/wagmi.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* - [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
6
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0xd77038a7f400E8242d2916f7EB5741e689d4aE25)
|
|
7
7
|
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE)
|
|
8
8
|
*/
|
|
9
9
|
export const buySupplyWithSwapRouterHookABI = [
|
|
@@ -16,6 +16,7 @@ export const buySupplyWithSwapRouterHookABI = [
|
|
|
16
16
|
type: 'address',
|
|
17
17
|
},
|
|
18
18
|
{ name: '_swapRouter', internalType: 'address', type: 'address' },
|
|
19
|
+
{ name: '_poolManager', internalType: 'address', type: 'address' },
|
|
19
20
|
],
|
|
20
21
|
stateMutability: 'nonpayable',
|
|
21
22
|
},
|
|
@@ -46,16 +47,29 @@ export const buySupplyWithSwapRouterHookABI = [
|
|
|
46
47
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
47
48
|
stateMutability: 'pure',
|
|
48
49
|
},
|
|
50
|
+
{
|
|
51
|
+
type: 'function',
|
|
52
|
+
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
53
|
+
name: 'unlockCallback',
|
|
54
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
55
|
+
stateMutability: 'nonpayable',
|
|
56
|
+
},
|
|
49
57
|
{ type: 'error', inputs: [], name: 'AddressZero' },
|
|
50
58
|
{
|
|
51
59
|
type: 'error',
|
|
52
60
|
inputs: [{ name: 'balance', internalType: 'uint256', type: 'uint256' }],
|
|
53
61
|
name: 'CoinBalanceNot0',
|
|
54
62
|
},
|
|
63
|
+
{
|
|
64
|
+
type: 'error',
|
|
65
|
+
inputs: [{ name: 'balance', internalType: 'uint256', type: 'uint256' }],
|
|
66
|
+
name: 'CurrencyBalanceNot0',
|
|
67
|
+
},
|
|
55
68
|
{ type: 'error', inputs: [], name: 'Erc20NotReceived' },
|
|
56
69
|
{ type: 'error', inputs: [], name: 'HookNotImplemented' },
|
|
57
70
|
{ type: 'error', inputs: [], name: 'InvalidSwapRouterCall' },
|
|
58
71
|
{ type: 'error', inputs: [], name: 'NotFactory' },
|
|
72
|
+
{ type: 'error', inputs: [], name: 'OnlyPoolManager' },
|
|
59
73
|
{
|
|
60
74
|
type: 'error',
|
|
61
75
|
inputs: [{ name: 'error', internalType: 'bytes', type: 'bytes' }],
|
|
@@ -64,16 +78,16 @@ export const buySupplyWithSwapRouterHookABI = [
|
|
|
64
78
|
] as const
|
|
65
79
|
|
|
66
80
|
/**
|
|
67
|
-
* - [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
81
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0xd77038a7f400E8242d2916f7EB5741e689d4aE25)
|
|
68
82
|
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE)
|
|
69
83
|
*/
|
|
70
84
|
export const buySupplyWithSwapRouterHookAddress = {
|
|
71
|
-
8453: '
|
|
85
|
+
8453: '0xd77038a7f400E8242d2916f7EB5741e689d4aE25',
|
|
72
86
|
84532: '0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE',
|
|
73
87
|
} as const
|
|
74
88
|
|
|
75
89
|
/**
|
|
76
|
-
* - [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
90
|
+
* - [__View Contract on Base Basescan__](https://basescan.org/address/0xd77038a7f400E8242d2916f7EB5741e689d4aE25)
|
|
77
91
|
* - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE)
|
|
78
92
|
*/
|
|
79
93
|
export const buySupplyWithSwapRouterHookConfig = {
|
|
@@ -1305,7 +1319,7 @@ export const coinABI = [
|
|
|
1305
1319
|
{
|
|
1306
1320
|
type: 'function',
|
|
1307
1321
|
inputs: [],
|
|
1308
|
-
name: '
|
|
1322
|
+
name: 'dopplerFeeRecipient',
|
|
1309
1323
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1310
1324
|
stateMutability: 'view',
|
|
1311
1325
|
},
|
|
@@ -2796,7 +2810,7 @@ export const coinV4ABI = [
|
|
|
2796
2810
|
{
|
|
2797
2811
|
type: 'function',
|
|
2798
2812
|
inputs: [],
|
|
2799
|
-
name: '
|
|
2813
|
+
name: 'dopplerFeeRecipient',
|
|
2800
2814
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
2801
2815
|
stateMutability: 'view',
|
|
2802
2816
|
},
|
|
@@ -5513,7 +5527,7 @@ export const commentsConfig = {
|
|
|
5513
5527
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
5514
5528
|
|
|
5515
5529
|
/**
|
|
5516
|
-
* [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
5530
|
+
* [__View Contract on Base Basescan__](https://basescan.org/address/0x0a747629609b22E348d0ea9865fC2A5a04ED945d)
|
|
5517
5531
|
*/
|
|
5518
5532
|
export const devBuySupplyWithSwapRouterHookABI = [
|
|
5519
5533
|
{
|
|
@@ -5525,6 +5539,7 @@ export const devBuySupplyWithSwapRouterHookABI = [
|
|
|
5525
5539
|
type: 'address',
|
|
5526
5540
|
},
|
|
5527
5541
|
{ name: '_swapRouter', internalType: 'address', type: 'address' },
|
|
5542
|
+
{ name: '_poolManager', internalType: 'address', type: 'address' },
|
|
5528
5543
|
],
|
|
5529
5544
|
stateMutability: 'nonpayable',
|
|
5530
5545
|
},
|
|
@@ -5555,16 +5570,29 @@ export const devBuySupplyWithSwapRouterHookABI = [
|
|
|
5555
5570
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5556
5571
|
stateMutability: 'pure',
|
|
5557
5572
|
},
|
|
5573
|
+
{
|
|
5574
|
+
type: 'function',
|
|
5575
|
+
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
5576
|
+
name: 'unlockCallback',
|
|
5577
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
5578
|
+
stateMutability: 'nonpayable',
|
|
5579
|
+
},
|
|
5558
5580
|
{ type: 'error', inputs: [], name: 'AddressZero' },
|
|
5559
5581
|
{
|
|
5560
5582
|
type: 'error',
|
|
5561
5583
|
inputs: [{ name: 'balance', internalType: 'uint256', type: 'uint256' }],
|
|
5562
5584
|
name: 'CoinBalanceNot0',
|
|
5563
5585
|
},
|
|
5586
|
+
{
|
|
5587
|
+
type: 'error',
|
|
5588
|
+
inputs: [{ name: 'balance', internalType: 'uint256', type: 'uint256' }],
|
|
5589
|
+
name: 'CurrencyBalanceNot0',
|
|
5590
|
+
},
|
|
5564
5591
|
{ type: 'error', inputs: [], name: 'Erc20NotReceived' },
|
|
5565
5592
|
{ type: 'error', inputs: [], name: 'HookNotImplemented' },
|
|
5566
5593
|
{ type: 'error', inputs: [], name: 'InvalidSwapRouterCall' },
|
|
5567
5594
|
{ type: 'error', inputs: [], name: 'NotFactory' },
|
|
5595
|
+
{ type: 'error', inputs: [], name: 'OnlyPoolManager' },
|
|
5568
5596
|
{
|
|
5569
5597
|
type: 'error',
|
|
5570
5598
|
inputs: [{ name: 'error', internalType: 'bytes', type: 'bytes' }],
|
|
@@ -5573,14 +5601,14 @@ export const devBuySupplyWithSwapRouterHookABI = [
|
|
|
5573
5601
|
] as const
|
|
5574
5602
|
|
|
5575
5603
|
/**
|
|
5576
|
-
* [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
5604
|
+
* [__View Contract on Base Basescan__](https://basescan.org/address/0x0a747629609b22E348d0ea9865fC2A5a04ED945d)
|
|
5577
5605
|
*/
|
|
5578
5606
|
export const devBuySupplyWithSwapRouterHookAddress = {
|
|
5579
|
-
8453: '
|
|
5607
|
+
8453: '0x0a747629609b22E348d0ea9865fC2A5a04ED945d',
|
|
5580
5608
|
} as const
|
|
5581
5609
|
|
|
5582
5610
|
/**
|
|
5583
|
-
* [__View Contract on Base Basescan__](https://basescan.org/address/
|
|
5611
|
+
* [__View Contract on Base Basescan__](https://basescan.org/address/0x0a747629609b22E348d0ea9865fC2A5a04ED945d)
|
|
5584
5612
|
*/
|
|
5585
5613
|
export const devBuySupplyWithSwapRouterHookConfig = {
|
|
5586
5614
|
address: devBuySupplyWithSwapRouterHookAddress,
|
package/.turbo/turbo-lint.log
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
> @zoralabs/protocol-deployments@0.5.5 lint /Users/danovedzora/source/zora-protocol/packages/protocol-deployments
|
|
4
|
-
> prettier --check 'src/**/*.ts' 'scripts/*'
|
|
5
|
-
|
|
6
|
-
Checking formatting...
|
|
7
|
-
src/encoding.ts[2K[1Gsrc/index.ts[2K[1Gsrc/typedData.ts[2K[1Gsrc/types.ts[2K[1Gscripts/bundle-chainConfigs.ts[2K[1Gscripts/bundle-configs.ts[2K[1GAll matched files use Prettier code style!
|