clanker-sdk 4.2.6 → 4.2.7
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.
|
@@ -18082,6 +18082,7 @@ declare const clankerTokenV4: z.ZodObject<{
|
|
|
18082
18082
|
hooks: z.ZodCustom<`0x${string}`, `0x${string}`>;
|
|
18083
18083
|
}, z.core.$strip>>;
|
|
18084
18084
|
amountOutMin: z.ZodDefault<z.ZodNumber>;
|
|
18085
|
+
recipient: z.ZodOptional<z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
18085
18086
|
}, z.core.$strip>>;
|
|
18086
18087
|
/** Fee structure for the token. */
|
|
18087
18088
|
fees: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { C as ClankerTokenV3 } from './clankerTokenV3-BqHTF9QY.js';
|
|
2
|
-
import { a as Chain, C as ClankerTokenV4, b as ClankerDeployment } from './clankerTokenV4-
|
|
3
|
-
export { d as CLANKERS, g as Chains, h as ClankerDeployments, f as Clankers, R as RelatedV3_1, c as RelatedV4, T as Type, i as clankerConfigFor } from './clankerTokenV4-
|
|
2
|
+
import { a as Chain, C as ClankerTokenV4, b as ClankerDeployment } from './clankerTokenV4-nI7uj0d1.js';
|
|
3
|
+
export { d as CLANKERS, g as Chains, h as ClankerDeployments, f as Clankers, R as RelatedV3_1, c as RelatedV4, T as Type, i as clankerConfigFor } from './clankerTokenV4-nI7uj0d1.js';
|
|
4
4
|
import { ContractConstructorArgs, Hex, PublicClient } from 'viem';
|
|
5
5
|
import { C as ClankerToken_v3_1_abi, a as ClankerToken_v4_abi } from './ClankerToken-Dra5lppJ.js';
|
|
6
6
|
import { StandardMerkleTree } from '@openzeppelin/merkle-tree';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as ClankerTransactionConfig, f as ClankerAirdrop_v4_abi, c as ClankerResult, g as Clanker_PresaleEthToCreator_v4_1_abi, h as Clanker_PresaleAllowlist_v4_1_abi } from '../../write-clanker-contracts-CQTURFDk.js';
|
|
2
2
|
import { MerkleTree } from '@openzeppelin/merkle-tree/dist/merkletree.js';
|
|
3
3
|
import * as z from 'zod/v4';
|
|
4
|
-
import { a as Chain, C as ClankerTokenV4 } from '../../clankerTokenV4-
|
|
4
|
+
import { a as Chain, C as ClankerTokenV4 } from '../../clankerTokenV4-nI7uj0d1.js';
|
|
5
5
|
import { Clanker } from '../index.js';
|
|
6
6
|
import { C as ClankerError } from '../../errors-5Gv28Tkr.js';
|
|
7
7
|
import 'viem';
|
|
@@ -7240,7 +7240,9 @@ var clankerTokenV4 = z3.strictObject({
|
|
|
7240
7240
|
hooks: addressSchema
|
|
7241
7241
|
}).default(NULL_DEVBUY_POOL_CONFIG),
|
|
7242
7242
|
/** Amount out min for the ETH -> PAIR swap. Used if the clanker is not paired with ETH. */
|
|
7243
|
-
amountOutMin: z3.number().default(0)
|
|
7243
|
+
amountOutMin: z3.number().default(0),
|
|
7244
|
+
/** Recipient address for the purchased tokens. Defaults to tokenAdmin if not specified. */
|
|
7245
|
+
recipient: addressSchema.optional()
|
|
7244
7246
|
}).optional(),
|
|
7245
7247
|
/** Fee structure for the token. */
|
|
7246
7248
|
fees: z3.discriminatedUnion("type", [
|
|
@@ -7461,7 +7463,7 @@ var clankerTokenV4Converter = async (config) => {
|
|
|
7461
7463
|
extensionData: encodeAbiParameters2(ClankerUniV4EthDevBuy_Instantiation_v4_abi, [
|
|
7462
7464
|
cfg.devBuy.poolKey,
|
|
7463
7465
|
BigInt(cfg.devBuy.amountOutMin * 1e18),
|
|
7464
|
-
cfg.tokenAdmin
|
|
7466
|
+
cfg.devBuy.recipient ?? cfg.tokenAdmin
|
|
7465
7467
|
])
|
|
7466
7468
|
}
|
|
7467
7469
|
] : [],
|
package/dist/v4/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { C as ClankerTransactionConfig, d as ClankerFeeLocker_abi, b as ClankerF
|
|
|
2
2
|
import * as viem from 'viem';
|
|
3
3
|
import { WalletClient, Transport, Chain, Account, PublicClient } from 'viem';
|
|
4
4
|
import { a as ClankerToken_v4_abi } from '../ClankerToken-Dra5lppJ.js';
|
|
5
|
-
import { C as ClankerTokenV4 } from '../clankerTokenV4-
|
|
6
|
-
export { e as encodeFeeConfig } from '../clankerTokenV4-
|
|
5
|
+
import { C as ClankerTokenV4 } from '../clankerTokenV4-nI7uj0d1.js';
|
|
6
|
+
export { e as encodeFeeConfig } from '../clankerTokenV4-nI7uj0d1.js';
|
|
7
7
|
import { C as ClankerError } from '../errors-5Gv28Tkr.js';
|
|
8
8
|
import 'zod/v4';
|
|
9
9
|
|
package/dist/v4/index.js
CHANGED
|
@@ -6795,7 +6795,9 @@ var clankerTokenV4 = z2.strictObject({
|
|
|
6795
6795
|
hooks: addressSchema
|
|
6796
6796
|
}).default(NULL_DEVBUY_POOL_CONFIG),
|
|
6797
6797
|
/** Amount out min for the ETH -> PAIR swap. Used if the clanker is not paired with ETH. */
|
|
6798
|
-
amountOutMin: z2.number().default(0)
|
|
6798
|
+
amountOutMin: z2.number().default(0),
|
|
6799
|
+
/** Recipient address for the purchased tokens. Defaults to tokenAdmin if not specified. */
|
|
6800
|
+
recipient: addressSchema.optional()
|
|
6799
6801
|
}).optional(),
|
|
6800
6802
|
/** Fee structure for the token. */
|
|
6801
6803
|
fees: z2.discriminatedUnion("type", [
|
|
@@ -7016,7 +7018,7 @@ var clankerTokenV4Converter = async (config) => {
|
|
|
7016
7018
|
extensionData: encodeAbiParameters2(ClankerUniV4EthDevBuy_Instantiation_v4_abi, [
|
|
7017
7019
|
cfg.devBuy.poolKey,
|
|
7018
7020
|
BigInt(cfg.devBuy.amountOutMin * 1e18),
|
|
7019
|
-
cfg.tokenAdmin
|
|
7021
|
+
cfg.devBuy.recipient ?? cfg.tokenAdmin
|
|
7020
7022
|
])
|
|
7021
7023
|
}
|
|
7022
7024
|
] : [],
|