clanker-sdk 3.1.6 → 3.1.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.
- package/README.md +1 -1
- package/dist/index.js +2 -4
- package/dist/index.mjs +2 -4
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -523,8 +523,6 @@ var Clanker_v3_1_abi = [
|
|
|
523
523
|
];
|
|
524
524
|
|
|
525
525
|
// src/index.ts
|
|
526
|
-
var import_simulateContract = require("viem/_types/actions/public/simulateContract");
|
|
527
|
-
var import_writeContract = require("viem/_types/actions/wallet/writeContract");
|
|
528
526
|
var Clanker = class {
|
|
529
527
|
wallet;
|
|
530
528
|
factoryAddress;
|
|
@@ -628,7 +626,7 @@ var Clanker = class {
|
|
|
628
626
|
interfaceRewardRecipient: rewardsConfig.interfaceRewardRecipient
|
|
629
627
|
}
|
|
630
628
|
};
|
|
631
|
-
const { request } = await
|
|
629
|
+
const { request } = await this.publicClient.simulateContract({
|
|
632
630
|
address: this.factoryAddress,
|
|
633
631
|
abi: Clanker_v3_1_abi,
|
|
634
632
|
functionName: "deployToken",
|
|
@@ -637,7 +635,7 @@ var Clanker = class {
|
|
|
637
635
|
chain: this.publicClient.chain,
|
|
638
636
|
account: this.wallet.account
|
|
639
637
|
});
|
|
640
|
-
const hash = await
|
|
638
|
+
const hash = await this.wallet.writeContract(request);
|
|
641
639
|
const receipt = await this.publicClient.waitForTransactionReceipt({
|
|
642
640
|
hash
|
|
643
641
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -504,8 +504,6 @@ var Clanker_v3_1_abi = [
|
|
|
504
504
|
];
|
|
505
505
|
|
|
506
506
|
// src/index.ts
|
|
507
|
-
import { simulateContract } from "viem/_types/actions/public/simulateContract";
|
|
508
|
-
import { writeContract } from "viem/_types/actions/wallet/writeContract";
|
|
509
507
|
var Clanker = class {
|
|
510
508
|
wallet;
|
|
511
509
|
factoryAddress;
|
|
@@ -609,7 +607,7 @@ var Clanker = class {
|
|
|
609
607
|
interfaceRewardRecipient: rewardsConfig.interfaceRewardRecipient
|
|
610
608
|
}
|
|
611
609
|
};
|
|
612
|
-
const { request } = await simulateContract(
|
|
610
|
+
const { request } = await this.publicClient.simulateContract({
|
|
613
611
|
address: this.factoryAddress,
|
|
614
612
|
abi: Clanker_v3_1_abi,
|
|
615
613
|
functionName: "deployToken",
|
|
@@ -618,7 +616,7 @@ var Clanker = class {
|
|
|
618
616
|
chain: this.publicClient.chain,
|
|
619
617
|
account: this.wallet.account
|
|
620
618
|
});
|
|
621
|
-
const hash = await
|
|
619
|
+
const hash = await this.wallet.writeContract(request);
|
|
622
620
|
const receipt = await this.publicClient.waitForTransactionReceipt({
|
|
623
621
|
hash
|
|
624
622
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clanker-sdk",
|
|
3
|
-
"version": "3.1.
|
|
4
|
-
"description": "SDK for deploying tokens using Clanker v3.1.
|
|
3
|
+
"version": "3.1.7",
|
|
4
|
+
"description": "SDK for deploying tokens using Clanker v3.1.3",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|