@zoralabs/protocol-deployments 0.5.8 → 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 +334 -7
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +101 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +98 -4
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
- package/src/generated/wagmi.ts +113 -6
- 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
|
},
|
|
@@ -5508,6 +5522,99 @@ export const commentsConfig = {
|
|
|
5508
5522
|
abi: commentsABI,
|
|
5509
5523
|
} as const
|
|
5510
5524
|
|
|
5525
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
5526
|
+
// DevBuySupplyWithSwapRouterHook
|
|
5527
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
5528
|
+
|
|
5529
|
+
/**
|
|
5530
|
+
* [__View Contract on Base Basescan__](https://basescan.org/address/0x0a747629609b22E348d0ea9865fC2A5a04ED945d)
|
|
5531
|
+
*/
|
|
5532
|
+
export const devBuySupplyWithSwapRouterHookABI = [
|
|
5533
|
+
{
|
|
5534
|
+
type: 'constructor',
|
|
5535
|
+
inputs: [
|
|
5536
|
+
{
|
|
5537
|
+
name: '_factory',
|
|
5538
|
+
internalType: 'contract IZoraFactory',
|
|
5539
|
+
type: 'address',
|
|
5540
|
+
},
|
|
5541
|
+
{ name: '_swapRouter', internalType: 'address', type: 'address' },
|
|
5542
|
+
{ name: '_poolManager', internalType: 'address', type: 'address' },
|
|
5543
|
+
],
|
|
5544
|
+
stateMutability: 'nonpayable',
|
|
5545
|
+
},
|
|
5546
|
+
{
|
|
5547
|
+
type: 'function',
|
|
5548
|
+
inputs: [
|
|
5549
|
+
{ name: 'sender', internalType: 'address', type: 'address' },
|
|
5550
|
+
{ name: 'coin', internalType: 'contract ICoin', type: 'address' },
|
|
5551
|
+
{ name: 'hookData', internalType: 'bytes', type: 'bytes' },
|
|
5552
|
+
],
|
|
5553
|
+
name: 'afterCoinDeploy',
|
|
5554
|
+
outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
|
|
5555
|
+
stateMutability: 'payable',
|
|
5556
|
+
},
|
|
5557
|
+
{
|
|
5558
|
+
type: 'function',
|
|
5559
|
+
inputs: [],
|
|
5560
|
+
name: 'factory',
|
|
5561
|
+
outputs: [
|
|
5562
|
+
{ name: '', internalType: 'contract IZoraFactory', type: 'address' },
|
|
5563
|
+
],
|
|
5564
|
+
stateMutability: 'view',
|
|
5565
|
+
},
|
|
5566
|
+
{
|
|
5567
|
+
type: 'function',
|
|
5568
|
+
inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
|
|
5569
|
+
name: 'supportsInterface',
|
|
5570
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5571
|
+
stateMutability: 'pure',
|
|
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
|
+
},
|
|
5580
|
+
{ type: 'error', inputs: [], name: 'AddressZero' },
|
|
5581
|
+
{
|
|
5582
|
+
type: 'error',
|
|
5583
|
+
inputs: [{ name: 'balance', internalType: 'uint256', type: 'uint256' }],
|
|
5584
|
+
name: 'CoinBalanceNot0',
|
|
5585
|
+
},
|
|
5586
|
+
{
|
|
5587
|
+
type: 'error',
|
|
5588
|
+
inputs: [{ name: 'balance', internalType: 'uint256', type: 'uint256' }],
|
|
5589
|
+
name: 'CurrencyBalanceNot0',
|
|
5590
|
+
},
|
|
5591
|
+
{ type: 'error', inputs: [], name: 'Erc20NotReceived' },
|
|
5592
|
+
{ type: 'error', inputs: [], name: 'HookNotImplemented' },
|
|
5593
|
+
{ type: 'error', inputs: [], name: 'InvalidSwapRouterCall' },
|
|
5594
|
+
{ type: 'error', inputs: [], name: 'NotFactory' },
|
|
5595
|
+
{ type: 'error', inputs: [], name: 'OnlyPoolManager' },
|
|
5596
|
+
{
|
|
5597
|
+
type: 'error',
|
|
5598
|
+
inputs: [{ name: 'error', internalType: 'bytes', type: 'bytes' }],
|
|
5599
|
+
name: 'SwapReverted',
|
|
5600
|
+
},
|
|
5601
|
+
] as const
|
|
5602
|
+
|
|
5603
|
+
/**
|
|
5604
|
+
* [__View Contract on Base Basescan__](https://basescan.org/address/0x0a747629609b22E348d0ea9865fC2A5a04ED945d)
|
|
5605
|
+
*/
|
|
5606
|
+
export const devBuySupplyWithSwapRouterHookAddress = {
|
|
5607
|
+
8453: '0x0a747629609b22E348d0ea9865fC2A5a04ED945d',
|
|
5608
|
+
} as const
|
|
5609
|
+
|
|
5610
|
+
/**
|
|
5611
|
+
* [__View Contract on Base Basescan__](https://basescan.org/address/0x0a747629609b22E348d0ea9865fC2A5a04ED945d)
|
|
5612
|
+
*/
|
|
5613
|
+
export const devBuySupplyWithSwapRouterHookConfig = {
|
|
5614
|
+
address: devBuySupplyWithSwapRouterHookAddress,
|
|
5615
|
+
abi: devBuySupplyWithSwapRouterHookABI,
|
|
5616
|
+
} as const
|
|
5617
|
+
|
|
5511
5618
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
5512
5619
|
// DevCoinFactory
|
|
5513
5620
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
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!
|