@zoralabs/protocol-deployments 0.6.2 → 0.6.4-PRE.0

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.
@@ -1,8 +1,5 @@
1
1
  import { Address } from "viem";
2
- import { uniswapV3SwapRouterABI } from "./generated/wagmi";
3
- import { buySupplyWithSwapRouterHookAddress } from "./generated/wagmi";
4
2
  import { Hex } from "viem";
5
- import { AbiParametersToPrimitiveTypes, ExtractAbiFunction } from "abitype";
6
3
  /** ABI parameters for performing a SafeTransferFrom based swap when selling on secondary. */
7
4
  export declare const safeTransferSwapAbiParameters: readonly [{
8
5
  readonly name: "recipient";
@@ -35,57 +32,6 @@ export declare const buySupplyWithSwapRouterHookReturnParameters: readonly [{
35
32
  readonly internalType: "uint256";
36
33
  readonly type: "uint256";
37
34
  }];
38
- /**
39
- * Encodes the calldata for the BuySupplyWithSwapRouterHook.
40
- *
41
- * @param buyRecipient - The address of the recipient of the coins that are purchased.
42
- * @param swapRouterCall - The calldata to send for swapping on the swap router. For the call, the recipient of the swap
43
- * must be the hook contract.
44
- * @returns The encoded calldata.
45
- */
46
- export declare const encodeBuySupplyWithSwapRouterHookCalldata: (buyRecipient: Address, swapRouterCall: Hex) => `0x${string}`;
47
- type ExactInputSingleParams = AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof uniswapV3SwapRouterABI, "exactInputSingle">["inputs"]>[0];
48
- type ExactInputParams = AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof uniswapV3SwapRouterABI, "exactInput">["inputs"]>[0];
49
- /**
50
- * Encodes the call data for buying supply with a single-hop swap router hook.
51
- * This function creates the hook call and hook data needed to buy Coin supply using ETH through a Uniswap V3 single-hop swap.
52
- *
53
- * @param buyRecipient - The address that will receive the coins purchased
54
- * @param exactInputSingleParams - The parameters for the exactInputSingle function on the swap router (recipient is omitted as it will be set to the hook address)
55
- * @param chainId - The chain ID to use for getting the hook address
56
- * @param ethValue - Optional amount of ETH to send with the call to the swap router
57
- * @returns Object containing the encoded hook call, hook data, and ETH value
58
- */
59
- export declare const encodeBuySupplyWithSingleHopSwapRouterHookCall: ({ buyRecipient, exactInputSingleParams, chainId, ethValue, }: {
60
- buyRecipient: Address;
61
- exactInputSingleParams: Omit<ExactInputSingleParams, "recipient">;
62
- chainId: keyof typeof buySupplyWithSwapRouterHookAddress;
63
- ethValue?: bigint;
64
- }) => {
65
- hook: "0xc90e349360C43a0217CEF289f231C66D4748960F" | "0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE";
66
- hookData: `0x${string}`;
67
- value: bigint | undefined;
68
- };
69
- /**
70
- * Encodes the call data for buying supply with a multi-hop swap router hook.
71
- * This function creates the hook call and hook data needed to buy Coin supply using ETH through a Uniswap V3 multi-hop swap.
72
- *
73
- * @param buyRecipient - The address that will receive the coins purchased
74
- * @param exactInputParams - The parameters for the exactInput function on the swap router (recipient is omitted as it will be set to the hook address)
75
- * @param chainId - The chain ID to use for getting the hook address
76
- * @param ethValue - Optional amount of ETH to send with the call to the swap router
77
- * @returns Object containing the encoded hook call, hook data, and ETH value
78
- */
79
- export declare const encodeBuySupplyWithMultiHopSwapRouterHookCall: ({ buyRecipient, exactInputParams, chainId, ethValue, }: {
80
- buyRecipient: Address;
81
- exactInputParams: Omit<ExactInputParams, "recipient">;
82
- chainId: keyof typeof buySupplyWithSwapRouterHookAddress;
83
- ethValue?: bigint;
84
- }) => {
85
- hook: "0xc90e349360C43a0217CEF289f231C66D4748960F" | "0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE";
86
- hookData: `0x${string}`;
87
- value: bigint | undefined;
88
- };
89
35
  /**
90
36
  * Decodes the return data from the BuySupplyWithSwapRouterHook.
91
37
  *
@@ -120,5 +66,4 @@ export declare const encodeMultiCurvePoolConfig: ({ currency, tickLower, tickUpp
120
66
  numDiscoveryPositions: number[];
121
67
  maxDiscoverySupplyShare: bigint[];
122
68
  }) => `0x${string}`;
123
- export {};
124
69
  //# sourceMappingURL=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