@settlemint/sdk-cli 2.5.1-mainf0c7fb9b → 2.5.1-pr0d35cbcb
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.js +52 -30
- package/dist/cli.js.map +11 -11
- package/package.json +8 -8
package/dist/cli.js
CHANGED
@@ -231623,7 +231623,7 @@ function size(value4) {
|
|
231623
231623
|
var init_size = () => {};
|
231624
231624
|
|
231625
231625
|
// ../../node_modules/viem/_esm/errors/version.js
|
231626
|
-
var version5 = "2.
|
231626
|
+
var version5 = "2.33.0";
|
231627
231627
|
|
231628
231628
|
// ../../node_modules/viem/_esm/errors/base.js
|
231629
231629
|
function walk(err, fn) {
|
@@ -239020,7 +239020,7 @@ var init_ccip2 = __esm(() => {
|
|
239020
239020
|
|
239021
239021
|
// ../../node_modules/viem/_esm/actions/public/call.js
|
239022
239022
|
async function call(client, args) {
|
239023
|
-
const { account: account_ = client.account, authorizationList, batch = Boolean(client.batch?.multicall), blockNumber, blockTag = "latest", accessList, blobs, blockOverrides, code: code2, data: data_, factory, factoryData, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value: value4, stateOverride, ...rest } = args;
|
239023
|
+
const { account: account_ = client.account, authorizationList, batch = Boolean(client.batch?.multicall), blockNumber, blockTag = client.experimental_blockTag ?? "latest", accessList, blobs, blockOverrides, code: code2, data: data_, factory, factoryData, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value: value4, stateOverride, ...rest } = args;
|
239024
239024
|
const account = account_ ? parseAccount(account_) : undefined;
|
239025
239025
|
if (code2 && (factory || factoryData))
|
239026
239026
|
throw new BaseError2("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
|
@@ -239128,7 +239128,7 @@ function shouldPerformMulticall({ request: request2 }) {
|
|
239128
239128
|
}
|
239129
239129
|
async function scheduleMulticall(client, args) {
|
239130
239130
|
const { batchSize = 1024, wait = 0 } = typeof client.batch?.multicall === "object" ? client.batch.multicall : {};
|
239131
|
-
const { blockNumber, blockTag = "latest", data, multicallAddress: multicallAddress_, to } = args;
|
239131
|
+
const { blockNumber, blockTag = client.experimental_blockTag ?? "latest", data, multicallAddress: multicallAddress_, to } = args;
|
239132
239132
|
let multicallAddress = multicallAddress_;
|
239133
239133
|
if (!multicallAddress) {
|
239134
239134
|
if (!client.chain)
|
@@ -265083,7 +265083,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
265083
265083
|
var package_default = {
|
265084
265084
|
name: "@settlemint/sdk-cli",
|
265085
265085
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
265086
|
-
version: "2.5.1-
|
265086
|
+
version: "2.5.1-pr0d35cbcb",
|
265087
265087
|
type: "module",
|
265088
265088
|
private: false,
|
265089
265089
|
license: "FSL-1.1-MIT",
|
@@ -265134,11 +265134,11 @@ var package_default = {
|
|
265134
265134
|
"@inquirer/input": "4.2.0",
|
265135
265135
|
"@inquirer/password": "4.0.16",
|
265136
265136
|
"@inquirer/select": "4.2.4",
|
265137
|
-
"@settlemint/sdk-hasura": "2.5.1-
|
265138
|
-
"@settlemint/sdk-js": "2.5.1-
|
265139
|
-
"@settlemint/sdk-utils": "2.5.1-
|
265140
|
-
"@settlemint/sdk-viem": "2.5.1-
|
265141
|
-
"@types/node": "24.0.
|
265137
|
+
"@settlemint/sdk-hasura": "2.5.1-pr0d35cbcb",
|
265138
|
+
"@settlemint/sdk-js": "2.5.1-pr0d35cbcb",
|
265139
|
+
"@settlemint/sdk-utils": "2.5.1-pr0d35cbcb",
|
265140
|
+
"@settlemint/sdk-viem": "2.5.1-pr0d35cbcb",
|
265141
|
+
"@types/node": "24.0.15",
|
265142
265142
|
"@types/semver": "7.7.0",
|
265143
265143
|
"@types/which": "3.0.4",
|
265144
265144
|
"get-tsconfig": "4.10.1",
|
@@ -265146,13 +265146,13 @@ var package_default = {
|
|
265146
265146
|
"is-in-ci": "1.0.0",
|
265147
265147
|
semver: "7.7.2",
|
265148
265148
|
slugify: "1.6.6",
|
265149
|
-
viem: "2.
|
265149
|
+
viem: "2.33.0",
|
265150
265150
|
which: "5.0.0",
|
265151
265151
|
yaml: "2.8.0",
|
265152
265152
|
yoctocolors: "2.1.1"
|
265153
265153
|
},
|
265154
265154
|
peerDependencies: {
|
265155
|
-
hardhat: "2.
|
265155
|
+
hardhat: "2.26.0"
|
265156
265156
|
},
|
265157
265157
|
peerDependenciesMeta: {
|
265158
265158
|
hardhat: {
|
@@ -304346,8 +304346,7 @@ function formatBlock(block) {
|
|
304346
304346
|
}
|
304347
304347
|
|
304348
304348
|
// ../../node_modules/viem/_esm/actions/public/getBlock.js
|
304349
|
-
async function getBlock(client, { blockHash, blockNumber, blockTag
|
304350
|
-
const blockTag = blockTag_ ?? "latest";
|
304349
|
+
async function getBlock(client, { blockHash, blockNumber, blockTag = client.experimental_blockTag ?? "latest", includeTransactions: includeTransactions_ } = {}) {
|
304351
304350
|
const includeTransactions = includeTransactions_ ?? false;
|
304352
304351
|
const blockNumberHex = blockNumber !== undefined ? numberToHex(blockNumber) : undefined;
|
304353
304352
|
let block = null;
|
@@ -304794,7 +304793,7 @@ async function prepareTransactionRequest(client, args) {
|
|
304794
304793
|
|
304795
304794
|
// ../../node_modules/viem/_esm/actions/public/getBalance.js
|
304796
304795
|
init_toHex();
|
304797
|
-
async function getBalance(client, { address, blockNumber, blockTag = "latest" }) {
|
304796
|
+
async function getBalance(client, { address, blockNumber, blockTag = client.experimental_blockTag ?? "latest" }) {
|
304798
304797
|
const blockNumberHex = typeof blockNumber === "bigint" ? numberToHex(blockNumber) : undefined;
|
304799
304798
|
const balance = await client.request({
|
304800
304799
|
method: "eth_getBalance",
|
@@ -304812,7 +304811,11 @@ async function estimateGas(client, args) {
|
|
304812
304811
|
const { block: block2, request: request3, rpcStateOverride: rpcStateOverride2 } = parameters;
|
304813
304812
|
return client.request({
|
304814
304813
|
method: "eth_estimateGas",
|
304815
|
-
params: rpcStateOverride2 ? [
|
304814
|
+
params: rpcStateOverride2 ? [
|
304815
|
+
request3,
|
304816
|
+
block2 ?? client.experimental_blockTag ?? "latest",
|
304817
|
+
rpcStateOverride2
|
304818
|
+
] : block2 ? [request3, block2] : [request3]
|
304816
304819
|
});
|
304817
304820
|
};
|
304818
304821
|
const { accessList, authorizationList, blobs, blobVersionedHashes, blockNumber, blockTag, data, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, value: value4, stateOverride, ...rest } = await prepareTransactionRequest(client, {
|
@@ -305626,6 +305629,7 @@ function uid(length = 11) {
|
|
305626
305629
|
// ../../node_modules/viem/_esm/clients/createClient.js
|
305627
305630
|
function createClient(parameters) {
|
305628
305631
|
const { batch, chain, ccipRead, key: key2 = "base", name: name3 = "Base Client", type: type4 = "base" } = parameters;
|
305632
|
+
const experimental_blockTag = parameters.experimental_blockTag ?? (typeof chain?.experimental_preconfirmationTime === "number" ? "pending" : undefined);
|
305629
305633
|
const blockTime = chain?.blockTime ?? 12000;
|
305630
305634
|
const defaultPollingInterval = Math.min(Math.max(Math.floor(blockTime / 2), 500), 4000);
|
305631
305635
|
const pollingInterval = parameters.pollingInterval ?? defaultPollingInterval;
|
@@ -305648,7 +305652,8 @@ function createClient(parameters) {
|
|
305648
305652
|
request: request2,
|
305649
305653
|
transport,
|
305650
305654
|
type: type4,
|
305651
|
-
uid: uid()
|
305655
|
+
uid: uid(),
|
305656
|
+
...experimental_blockTag ? { experimental_blockTag } : {}
|
305652
305657
|
};
|
305653
305658
|
function extend4(base2) {
|
305654
305659
|
return (extendFn) => {
|
@@ -307391,7 +307396,7 @@ init_transactionRequest();
|
|
307391
307396
|
init_stateOverride2();
|
307392
307397
|
init_assertRequest();
|
307393
307398
|
async function simulateBlocks(client, parameters) {
|
307394
|
-
const { blockNumber, blockTag = "latest", blocks, returnFullTransactions, traceTransfers, validation } = parameters;
|
307399
|
+
const { blockNumber, blockTag = client.experimental_blockTag ?? "latest", blocks, returnFullTransactions, traceTransfers, validation } = parameters;
|
307395
307400
|
try {
|
307396
307401
|
const blockStateCalls = [];
|
307397
307402
|
for (const block2 of blocks) {
|
@@ -308760,16 +308765,24 @@ function watchBlockNumber(client, { emitOnBegin = false, emitMissed = false, onB
|
|
308760
308765
|
}
|
308761
308766
|
|
308762
308767
|
// ../../node_modules/viem/_esm/actions/public/waitForTransactionReceipt.js
|
308763
|
-
async function waitForTransactionReceipt(client, {
|
308764
|
-
|
308765
|
-
|
308766
|
-
|
308767
|
-
|
308768
|
-
|
308769
|
-
|
308770
|
-
|
308771
|
-
|
308768
|
+
async function waitForTransactionReceipt(client, parameters) {
|
308769
|
+
const {
|
308770
|
+
checkReplacement = true,
|
308771
|
+
confirmations = 1,
|
308772
|
+
hash: hash2,
|
308773
|
+
onReplaced,
|
308774
|
+
retryCount = 6,
|
308775
|
+
retryDelay = ({ count }) => ~~(1 << count) * 200,
|
308776
|
+
timeout = 180000
|
308777
|
+
} = parameters;
|
308772
308778
|
const observerId = stringify3(["waitForTransactionReceipt", client.uid, hash2]);
|
308779
|
+
const pollingInterval = (() => {
|
308780
|
+
if (parameters.pollingInterval)
|
308781
|
+
return parameters.pollingInterval;
|
308782
|
+
if (client.chain?.experimental_preconfirmationTime)
|
308783
|
+
return client.chain.experimental_preconfirmationTime;
|
308784
|
+
return client.pollingInterval;
|
308785
|
+
})();
|
308773
308786
|
let transaction;
|
308774
308787
|
let replacedTransaction;
|
308775
308788
|
let receipt;
|
@@ -308782,7 +308795,16 @@ async function waitForTransactionReceipt(client, {
|
|
308782
308795
|
_unobserve();
|
308783
308796
|
reject(new WaitForTransactionReceiptTimeoutError({ hash: hash2 }));
|
308784
308797
|
}, timeout) : undefined;
|
308785
|
-
_unobserve = observe(observerId, { onReplaced, resolve: resolve6, reject }, (emit) => {
|
308798
|
+
_unobserve = observe(observerId, { onReplaced, resolve: resolve6, reject }, async (emit) => {
|
308799
|
+
receipt = await getAction(client, getTransactionReceipt, "getTransactionReceipt")({ hash: hash2 }).catch(() => {
|
308800
|
+
return;
|
308801
|
+
});
|
308802
|
+
if (receipt && confirmations <= 1) {
|
308803
|
+
clearTimeout(timer);
|
308804
|
+
emit.resolve(receipt);
|
308805
|
+
_unobserve();
|
308806
|
+
return;
|
308807
|
+
}
|
308786
308808
|
_unwatch = getAction(client, watchBlockNumber, "watchBlockNumber")({
|
308787
308809
|
emitMissed: true,
|
308788
308810
|
emitOnBegin: true,
|
@@ -308805,7 +308827,7 @@ async function waitForTransactionReceipt(client, {
|
|
308805
308827
|
done(() => emit.resolve(receipt));
|
308806
308828
|
return;
|
308807
308829
|
}
|
308808
|
-
if (!transaction) {
|
308830
|
+
if (checkReplacement && !transaction) {
|
308809
308831
|
retrying = true;
|
308810
308832
|
await withRetry(async () => {
|
308811
308833
|
transaction = await getAction(client, getTransaction, "getTransaction")({ hash: hash2 });
|
@@ -308875,7 +308897,7 @@ async function waitForTransactionReceipt(client, {
|
|
308875
308897
|
return promise4;
|
308876
308898
|
}
|
308877
308899
|
// ../../node_modules/viem/_esm/actions/public/watchBlocks.js
|
308878
|
-
function watchBlocks(client, { blockTag = "latest", emitMissed = false, emitOnBegin = false, onBlock, onError, includeTransactions: includeTransactions_, poll: poll_, pollingInterval = client.pollingInterval }) {
|
308900
|
+
function watchBlocks(client, { blockTag = client.experimental_blockTag ?? "latest", emitMissed = false, emitOnBegin = false, onBlock, onError, includeTransactions: includeTransactions_, poll: poll_, pollingInterval = client.pollingInterval }) {
|
308879
308901
|
const enablePolling = (() => {
|
308880
308902
|
if (typeof poll_ !== "undefined")
|
308881
308903
|
return poll_;
|
@@ -330929,4 +330951,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
330929
330951
|
// src/cli.ts
|
330930
330952
|
sdkCliCommand();
|
330931
330953
|
|
330932
|
-
//# debugId=
|
330954
|
+
//# debugId=3E54F1B287B0297064756E2164756E21
|