clanker-sdk 4.2.6 → 4.2.8
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/dist/cli/cli.js +14 -6
- package/dist/cli/create-clanker.js +13 -5
- package/dist/{clankerTokenV4-xiAq6G4R.d.ts → deploy-BvFgwMVl.d.ts} +7 -1
- package/dist/index.d.ts +2 -2
- package/dist/v3/index.d.ts +1 -1
- package/dist/v3/index.js +12 -4
- package/dist/v4/extensions/index.d.ts +2 -2
- package/dist/v4/extensions/index.js +9 -3
- package/dist/v4/index.d.ts +6 -4
- package/dist/v4/index.js +20 -8
- package/dist/{write-clanker-contracts-CQTURFDk.d.ts → write-clanker-contracts-wZSL1UyM.d.ts} +1 -0
- package/package.json +1 -1
package/dist/cli/cli.js
CHANGED
|
@@ -9,12 +9,12 @@ var __export = (target, all) => {
|
|
|
9
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
// node_modules/tsup/assets/esm_shims.js
|
|
12
|
+
// node_modules/.pnpm/tsup@8.4.0_typescript@5.8.3/node_modules/tsup/assets/esm_shims.js
|
|
13
13
|
import { fileURLToPath } from "url";
|
|
14
14
|
import path from "path";
|
|
15
15
|
var getFilename, getDirname, __dirname;
|
|
16
16
|
var init_esm_shims = __esm({
|
|
17
|
-
"node_modules/tsup/assets/esm_shims.js"() {
|
|
17
|
+
"node_modules/.pnpm/tsup@8.4.0_typescript@5.8.3/node_modules/tsup/assets/esm_shims.js"() {
|
|
18
18
|
"use strict";
|
|
19
19
|
getFilename = () => fileURLToPath(import.meta.url);
|
|
20
20
|
getDirname = () => path.dirname(getFilename());
|
|
@@ -6748,7 +6748,11 @@ var init_write_clanker_contracts = __esm({
|
|
|
6748
6748
|
}
|
|
6749
6749
|
}
|
|
6750
6750
|
try {
|
|
6751
|
-
const txHash = await writeContract(wallet,
|
|
6751
|
+
const txHash = await writeContract(wallet, {
|
|
6752
|
+
...tx,
|
|
6753
|
+
dataSuffix: tx.dataSuffix
|
|
6754
|
+
// biome-ignore lint/suspicious/noExplicitAny: It's difficult to type tx correctly with viem's generic constraints
|
|
6755
|
+
});
|
|
6752
6756
|
return { txHash };
|
|
6753
6757
|
} catch (e) {
|
|
6754
6758
|
return { error: understandError(e) };
|
|
@@ -6769,7 +6773,7 @@ async function simulateDeployToken(tx, account, publicClient) {
|
|
|
6769
6773
|
}
|
|
6770
6774
|
return simulateClankerContract(publicClient, account, tx);
|
|
6771
6775
|
}
|
|
6772
|
-
async function deployToken(tx, wallet, publicClient) {
|
|
6776
|
+
async function deployToken(tx, wallet, publicClient, options) {
|
|
6773
6777
|
const account = wallet?.account;
|
|
6774
6778
|
if (!account) {
|
|
6775
6779
|
throw new Error("Wallet account required for deployToken");
|
|
@@ -6784,14 +6788,18 @@ async function deployToken(tx, wallet, publicClient) {
|
|
|
6784
6788
|
`Token chainId doesn't match wallet chainId: ${tx.chainId} != ${wallet.chain?.id}`
|
|
6785
6789
|
);
|
|
6786
6790
|
}
|
|
6787
|
-
const { gas, error: gasError } = await estimateGasClankerContract(publicClient, account,
|
|
6791
|
+
const { gas, error: gasError } = await estimateGasClankerContract(publicClient, account, {
|
|
6792
|
+
...tx,
|
|
6793
|
+
dataSuffix: options?.dataSuffix
|
|
6794
|
+
});
|
|
6788
6795
|
if (gasError) return { error: gasError };
|
|
6789
6796
|
const { txHash, error: txError } = await writeClankerContract(
|
|
6790
6797
|
publicClient,
|
|
6791
6798
|
wallet,
|
|
6792
6799
|
{
|
|
6793
6800
|
...tx,
|
|
6794
|
-
gas: gas * 12n / 10n
|
|
6801
|
+
gas: gas * 12n / 10n,
|
|
6802
|
+
dataSuffix: options?.dataSuffix
|
|
6795
6803
|
},
|
|
6796
6804
|
{
|
|
6797
6805
|
simulate: true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
// node_modules/tsup/assets/esm_shims.js
|
|
3
|
+
// node_modules/.pnpm/tsup@8.4.0_typescript@5.8.3/node_modules/tsup/assets/esm_shims.js
|
|
4
4
|
import { fileURLToPath } from "url";
|
|
5
5
|
import path from "path";
|
|
6
6
|
var getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -6599,7 +6599,11 @@ var writeClankerContract = async (client, wallet, tx, options) => {
|
|
|
6599
6599
|
}
|
|
6600
6600
|
}
|
|
6601
6601
|
try {
|
|
6602
|
-
const txHash = await writeContract(wallet,
|
|
6602
|
+
const txHash = await writeContract(wallet, {
|
|
6603
|
+
...tx,
|
|
6604
|
+
dataSuffix: tx.dataSuffix
|
|
6605
|
+
// biome-ignore lint/suspicious/noExplicitAny: It's difficult to type tx correctly with viem's generic constraints
|
|
6606
|
+
});
|
|
6603
6607
|
return { txHash };
|
|
6604
6608
|
} catch (e) {
|
|
6605
6609
|
return { error: understandError(e) };
|
|
@@ -6615,7 +6619,7 @@ async function simulateDeployToken(tx, account, publicClient) {
|
|
|
6615
6619
|
}
|
|
6616
6620
|
return simulateClankerContract(publicClient, account, tx);
|
|
6617
6621
|
}
|
|
6618
|
-
async function deployToken(tx, wallet, publicClient) {
|
|
6622
|
+
async function deployToken(tx, wallet, publicClient, options) {
|
|
6619
6623
|
const account = wallet?.account;
|
|
6620
6624
|
if (!account) {
|
|
6621
6625
|
throw new Error("Wallet account required for deployToken");
|
|
@@ -6630,14 +6634,18 @@ async function deployToken(tx, wallet, publicClient) {
|
|
|
6630
6634
|
`Token chainId doesn't match wallet chainId: ${tx.chainId} != ${wallet.chain?.id}`
|
|
6631
6635
|
);
|
|
6632
6636
|
}
|
|
6633
|
-
const { gas, error: gasError } = await estimateGasClankerContract(publicClient, account,
|
|
6637
|
+
const { gas, error: gasError } = await estimateGasClankerContract(publicClient, account, {
|
|
6638
|
+
...tx,
|
|
6639
|
+
dataSuffix: options?.dataSuffix
|
|
6640
|
+
});
|
|
6634
6641
|
if (gasError) return { error: gasError };
|
|
6635
6642
|
const { txHash, error: txError } = await writeClankerContract(
|
|
6636
6643
|
publicClient,
|
|
6637
6644
|
wallet,
|
|
6638
6645
|
{
|
|
6639
6646
|
...tx,
|
|
6640
|
-
gas: gas * 12n / 10n
|
|
6647
|
+
gas: gas * 12n / 10n,
|
|
6648
|
+
dataSuffix: options?.dataSuffix
|
|
6641
6649
|
},
|
|
6642
6650
|
{
|
|
6643
6651
|
simulate: true
|
|
@@ -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<{
|
|
@@ -18133,4 +18134,9 @@ declare function encodeFeeConfig(tokenConfig: z.infer<typeof clankerTokenV4>, cl
|
|
|
18133
18134
|
poolData: `0x${string}`;
|
|
18134
18135
|
};
|
|
18135
18136
|
|
|
18136
|
-
|
|
18137
|
+
type DeployTokenOptions = {
|
|
18138
|
+
/** Data to append to the end of the transaction calldata (e.g., Base builder codes) */
|
|
18139
|
+
dataSuffix?: `0x${string}`;
|
|
18140
|
+
};
|
|
18141
|
+
|
|
18142
|
+
export { type ClankerTokenV4 as C, type DeployTokenOptions as D, type RelatedV3_1 as R, type Type as T, type Chain as a, type ClankerDeployment as b, type RelatedV4 as c, CLANKERS as d, encodeFeeConfig as e, type Clankers as f, Chains as g, ClankerDeployments as h, clankerConfigFor as i };
|
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 './
|
|
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 './
|
|
2
|
+
import { a as Chain, C as ClankerTokenV4, b as ClankerDeployment } from './deploy-BvFgwMVl.js';
|
|
3
|
+
export { d as CLANKERS, g as Chains, h as ClankerDeployments, f as Clankers, D as DeployTokenOptions, R as RelatedV3_1, c as RelatedV4, T as Type, i as clankerConfigFor } from './deploy-BvFgwMVl.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';
|
package/dist/v3/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ClankerTransactionConfig, a as Clanker_v3_1_abi, b as ClankerFactory, c as ClankerResult } from '../write-clanker-contracts-
|
|
1
|
+
import { C as ClankerTransactionConfig, a as Clanker_v3_1_abi, b as ClankerFactory, c as ClankerResult } from '../write-clanker-contracts-wZSL1UyM.js';
|
|
2
2
|
import * as viem from 'viem';
|
|
3
3
|
import { WalletClient, Transport, Chain, Account, PublicClient } from 'viem';
|
|
4
4
|
import { C as ClankerToken_v3_1_abi } from '../ClankerToken-Dra5lppJ.js';
|
package/dist/v3/index.js
CHANGED
|
@@ -6581,7 +6581,11 @@ var writeClankerContract = async (client, wallet, tx, options) => {
|
|
|
6581
6581
|
}
|
|
6582
6582
|
}
|
|
6583
6583
|
try {
|
|
6584
|
-
const txHash = await writeContract(wallet,
|
|
6584
|
+
const txHash = await writeContract(wallet, {
|
|
6585
|
+
...tx,
|
|
6586
|
+
dataSuffix: tx.dataSuffix
|
|
6587
|
+
// biome-ignore lint/suspicious/noExplicitAny: It's difficult to type tx correctly with viem's generic constraints
|
|
6588
|
+
});
|
|
6585
6589
|
return { txHash };
|
|
6586
6590
|
} catch (e) {
|
|
6587
6591
|
return { error: understandError(e) };
|
|
@@ -6597,7 +6601,7 @@ async function simulateDeployToken(tx, account, publicClient) {
|
|
|
6597
6601
|
}
|
|
6598
6602
|
return simulateClankerContract(publicClient, account, tx);
|
|
6599
6603
|
}
|
|
6600
|
-
async function deployToken(tx, wallet, publicClient) {
|
|
6604
|
+
async function deployToken(tx, wallet, publicClient, options) {
|
|
6601
6605
|
const account = wallet?.account;
|
|
6602
6606
|
if (!account) {
|
|
6603
6607
|
throw new Error("Wallet account required for deployToken");
|
|
@@ -6612,14 +6616,18 @@ async function deployToken(tx, wallet, publicClient) {
|
|
|
6612
6616
|
`Token chainId doesn't match wallet chainId: ${tx.chainId} != ${wallet.chain?.id}`
|
|
6613
6617
|
);
|
|
6614
6618
|
}
|
|
6615
|
-
const { gas, error: gasError } = await estimateGasClankerContract(publicClient, account,
|
|
6619
|
+
const { gas, error: gasError } = await estimateGasClankerContract(publicClient, account, {
|
|
6620
|
+
...tx,
|
|
6621
|
+
dataSuffix: options?.dataSuffix
|
|
6622
|
+
});
|
|
6616
6623
|
if (gasError) return { error: gasError };
|
|
6617
6624
|
const { txHash, error: txError } = await writeClankerContract(
|
|
6618
6625
|
publicClient,
|
|
6619
6626
|
wallet,
|
|
6620
6627
|
{
|
|
6621
6628
|
...tx,
|
|
6622
|
-
gas: gas * 12n / 10n
|
|
6629
|
+
gas: gas * 12n / 10n,
|
|
6630
|
+
dataSuffix: options?.dataSuffix
|
|
6623
6631
|
},
|
|
6624
6632
|
{
|
|
6625
6633
|
simulate: true
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
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-wZSL1UyM.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 '../../
|
|
4
|
+
import { a as Chain, C as ClankerTokenV4 } from '../../deploy-BvFgwMVl.js';
|
|
5
5
|
import { Clanker } from '../index.js';
|
|
6
6
|
import { C as ClankerError } from '../../errors-5Gv28Tkr.js';
|
|
7
7
|
import 'viem';
|
|
@@ -5838,7 +5838,11 @@ var writeClankerContract = async (client, wallet, tx, options) => {
|
|
|
5838
5838
|
}
|
|
5839
5839
|
}
|
|
5840
5840
|
try {
|
|
5841
|
-
const txHash = await writeContract(wallet,
|
|
5841
|
+
const txHash = await writeContract(wallet, {
|
|
5842
|
+
...tx,
|
|
5843
|
+
dataSuffix: tx.dataSuffix
|
|
5844
|
+
// biome-ignore lint/suspicious/noExplicitAny: It's difficult to type tx correctly with viem's generic constraints
|
|
5845
|
+
});
|
|
5842
5846
|
return { txHash };
|
|
5843
5847
|
} catch (e) {
|
|
5844
5848
|
return { error: understandError(e) };
|
|
@@ -7240,7 +7244,9 @@ var clankerTokenV4 = z3.strictObject({
|
|
|
7240
7244
|
hooks: addressSchema
|
|
7241
7245
|
}).default(NULL_DEVBUY_POOL_CONFIG),
|
|
7242
7246
|
/** Amount out min for the ETH -> PAIR swap. Used if the clanker is not paired with ETH. */
|
|
7243
|
-
amountOutMin: z3.number().default(0)
|
|
7247
|
+
amountOutMin: z3.number().default(0),
|
|
7248
|
+
/** Recipient address for the purchased tokens. Defaults to tokenAdmin if not specified. */
|
|
7249
|
+
recipient: addressSchema.optional()
|
|
7244
7250
|
}).optional(),
|
|
7245
7251
|
/** Fee structure for the token. */
|
|
7246
7252
|
fees: z3.discriminatedUnion("type", [
|
|
@@ -7461,7 +7467,7 @@ var clankerTokenV4Converter = async (config) => {
|
|
|
7461
7467
|
extensionData: encodeAbiParameters2(ClankerUniV4EthDevBuy_Instantiation_v4_abi, [
|
|
7462
7468
|
cfg.devBuy.poolKey,
|
|
7463
7469
|
BigInt(cfg.devBuy.amountOutMin * 1e18),
|
|
7464
|
-
cfg.tokenAdmin
|
|
7470
|
+
cfg.devBuy.recipient ?? cfg.tokenAdmin
|
|
7465
7471
|
])
|
|
7466
7472
|
}
|
|
7467
7473
|
] : [],
|
package/dist/v4/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as ClankerTransactionConfig, d as ClankerFeeLocker_abi, b as ClankerFactory, c as ClankerResult, e as ClankerLocker_v4_abi } from '../write-clanker-contracts-
|
|
1
|
+
import { C as ClankerTransactionConfig, d as ClankerFeeLocker_abi, b as ClankerFactory, c as ClankerResult, e as ClankerLocker_v4_abi } from '../write-clanker-contracts-wZSL1UyM.js';
|
|
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 '../
|
|
6
|
-
export { e as encodeFeeConfig } from '../
|
|
5
|
+
import { C as ClankerTokenV4, D as DeployTokenOptions } from '../deploy-BvFgwMVl.js';
|
|
6
|
+
export { e as encodeFeeConfig } from '../deploy-BvFgwMVl.js';
|
|
7
7
|
import { C as ClankerError } from '../errors-5Gv28Tkr.js';
|
|
8
8
|
import 'zod/v4';
|
|
9
9
|
|
|
@@ -1518,9 +1518,11 @@ declare class Clanker {
|
|
|
1518
1518
|
* Deploy a token
|
|
1519
1519
|
*
|
|
1520
1520
|
* @param token The token to deploy
|
|
1521
|
+
* @param options Optional deployment options
|
|
1522
|
+
* @param options.dataSuffix Data to append to transaction calldata (e.g., Base builder codes)
|
|
1521
1523
|
* @returns Transaction hash and awaitable function for full deployment
|
|
1522
1524
|
*/
|
|
1523
|
-
deploy(token: ClankerTokenV4): Promise<({
|
|
1525
|
+
deploy(token: ClankerTokenV4, options?: DeployTokenOptions): Promise<({
|
|
1524
1526
|
txHash: `0x${string}`;
|
|
1525
1527
|
waitForTransaction: () => ClankerResult<{
|
|
1526
1528
|
address: `0x${string}`;
|
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
|
] : [],
|
|
@@ -7205,7 +7207,11 @@ var writeClankerContract = async (client, wallet, tx, options) => {
|
|
|
7205
7207
|
}
|
|
7206
7208
|
}
|
|
7207
7209
|
try {
|
|
7208
|
-
const txHash = await writeContract(wallet,
|
|
7210
|
+
const txHash = await writeContract(wallet, {
|
|
7211
|
+
...tx,
|
|
7212
|
+
dataSuffix: tx.dataSuffix
|
|
7213
|
+
// biome-ignore lint/suspicious/noExplicitAny: It's difficult to type tx correctly with viem's generic constraints
|
|
7214
|
+
});
|
|
7209
7215
|
return { txHash };
|
|
7210
7216
|
} catch (e) {
|
|
7211
7217
|
return { error: understandError(e) };
|
|
@@ -7221,7 +7227,7 @@ async function simulateDeployToken(tx, account, publicClient) {
|
|
|
7221
7227
|
}
|
|
7222
7228
|
return simulateClankerContract(publicClient, account, tx);
|
|
7223
7229
|
}
|
|
7224
|
-
async function deployToken(tx, wallet, publicClient) {
|
|
7230
|
+
async function deployToken(tx, wallet, publicClient, options) {
|
|
7225
7231
|
const account = wallet?.account;
|
|
7226
7232
|
if (!account) {
|
|
7227
7233
|
throw new Error("Wallet account required for deployToken");
|
|
@@ -7236,14 +7242,18 @@ async function deployToken(tx, wallet, publicClient) {
|
|
|
7236
7242
|
`Token chainId doesn't match wallet chainId: ${tx.chainId} != ${wallet.chain?.id}`
|
|
7237
7243
|
);
|
|
7238
7244
|
}
|
|
7239
|
-
const { gas, error: gasError } = await estimateGasClankerContract(publicClient, account,
|
|
7245
|
+
const { gas, error: gasError } = await estimateGasClankerContract(publicClient, account, {
|
|
7246
|
+
...tx,
|
|
7247
|
+
dataSuffix: options?.dataSuffix
|
|
7248
|
+
});
|
|
7240
7249
|
if (gasError) return { error: gasError };
|
|
7241
7250
|
const { txHash, error: txError } = await writeClankerContract(
|
|
7242
7251
|
publicClient,
|
|
7243
7252
|
wallet,
|
|
7244
7253
|
{
|
|
7245
7254
|
...tx,
|
|
7246
|
-
gas: gas * 12n / 10n
|
|
7255
|
+
gas: gas * 12n / 10n,
|
|
7256
|
+
dataSuffix: options?.dataSuffix
|
|
7247
7257
|
},
|
|
7248
7258
|
{
|
|
7249
7259
|
simulate: true
|
|
@@ -7400,13 +7410,15 @@ var Clanker = class {
|
|
|
7400
7410
|
* Deploy a token
|
|
7401
7411
|
*
|
|
7402
7412
|
* @param token The token to deploy
|
|
7413
|
+
* @param options Optional deployment options
|
|
7414
|
+
* @param options.dataSuffix Data to append to transaction calldata (e.g., Base builder codes)
|
|
7403
7415
|
* @returns Transaction hash and awaitable function for full deployment
|
|
7404
7416
|
*/
|
|
7405
|
-
async deploy(token) {
|
|
7417
|
+
async deploy(token, options) {
|
|
7406
7418
|
if (!this.wallet) throw new Error("Wallet client required for deployment");
|
|
7407
7419
|
if (!this.publicClient) throw new Error("Public client required for deployment");
|
|
7408
7420
|
const input = await this.getDeployTransaction(token);
|
|
7409
|
-
return deployToken(input, this.wallet, this.publicClient);
|
|
7421
|
+
return deployToken(input, this.wallet, this.publicClient, options);
|
|
7410
7422
|
}
|
|
7411
7423
|
/**
|
|
7412
7424
|
* Get an abi-typed transaction for updating the reward recipient.
|
package/dist/{write-clanker-contracts-CQTURFDk.d.ts → write-clanker-contracts-wZSL1UyM.d.ts}
RENAMED
|
@@ -9415,6 +9415,7 @@ type ClankerTransactionConfig<abi extends ClankerContract = ClankerContract, fun
|
|
|
9415
9415
|
gasPrice?: bigint;
|
|
9416
9416
|
value?: bigint;
|
|
9417
9417
|
chainId?: number;
|
|
9418
|
+
dataSuffix?: `0x${string}`;
|
|
9418
9419
|
};
|
|
9419
9420
|
|
|
9420
9421
|
export { type ClankerTransactionConfig as C, Clanker_v3_1_abi as a, type ClankerFactory as b, type ClankerResult as c, ClankerFeeLocker_abi as d, ClankerLocker_v4_abi as e, ClankerAirdrop_v4_abi as f, Clanker_PresaleEthToCreator_v4_1_abi as g, Clanker_PresaleAllowlist_v4_1_abi as h };
|