@settlemint/sdk-cli 2.3.4 → 2.3.5-main83640001
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/cli.js +27 -26
- package/dist/cli.js.map +17 -17
- package/package.json +6 -6
package/README.md
CHANGED
@@ -249,7 +249,7 @@ settlemint scs subgraph deploy --accept-defaults <subgraph-name>
|
|
249
249
|
|
250
250
|
## API Reference
|
251
251
|
|
252
|
-
See the [documentation](https://github.com/settlemint/sdk/tree/v2.3.
|
252
|
+
See the [documentation](https://github.com/settlemint/sdk/tree/v2.3.5/sdk/cli/docs/settlemint.md) for available commands.
|
253
253
|
|
254
254
|
## Contributing
|
255
255
|
|
package/dist/cli.js
CHANGED
@@ -231606,7 +231606,7 @@ function size(value4) {
|
|
231606
231606
|
var init_size = () => {};
|
231607
231607
|
|
231608
231608
|
// ../../node_modules/viem/_esm/errors/version.js
|
231609
|
-
var version5 = "2.30.
|
231609
|
+
var version5 = "2.30.5";
|
231610
231610
|
|
231611
231611
|
// ../../node_modules/viem/_esm/errors/base.js
|
231612
231612
|
function walk(err, fn) {
|
@@ -238927,7 +238927,7 @@ var init_ccip2 = __esm(() => {
|
|
238927
238927
|
|
238928
238928
|
// ../../node_modules/viem/_esm/actions/public/call.js
|
238929
238929
|
async function call(client, args) {
|
238930
|
-
const { account: account_ = client.account, batch = Boolean(client.batch?.multicall), blockNumber, blockTag = "
|
238930
|
+
const { account: account_ = client.account, authorizationList, batch = Boolean(client.batch?.multicall), blockNumber, blockTag = "pending", accessList, blobs, blockOverrides, code: code2, data: data_, factory, factoryData, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value: value4, stateOverride, ...rest } = args;
|
238931
238931
|
const account = account_ ? parseAccount(account_) : undefined;
|
238932
238932
|
if (code2 && (factory || factoryData))
|
238933
238933
|
throw new BaseError2("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
|
@@ -238963,6 +238963,7 @@ async function call(client, args) {
|
|
238963
238963
|
...extract2(rest, { format: chainFormat }),
|
238964
238964
|
from: account?.address,
|
238965
238965
|
accessList,
|
238966
|
+
authorizationList,
|
238966
238967
|
blobs,
|
238967
238968
|
data,
|
238968
238969
|
gas,
|
@@ -239034,7 +239035,7 @@ function shouldPerformMulticall({ request: request2 }) {
|
|
239034
239035
|
}
|
239035
239036
|
async function scheduleMulticall(client, args) {
|
239036
239037
|
const { batchSize = 1024, wait = 0 } = typeof client.batch?.multicall === "object" ? client.batch.multicall : {};
|
239037
|
-
const { blockNumber, blockTag = "
|
239038
|
+
const { blockNumber, blockTag = "pending", data, multicallAddress: multicallAddress_, to } = args;
|
239038
239039
|
let multicallAddress = multicallAddress_;
|
239039
239040
|
if (!multicallAddress) {
|
239040
239041
|
if (!client.chain)
|
@@ -263120,7 +263121,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
263120
263121
|
var package_default = {
|
263121
263122
|
name: "@settlemint/sdk-cli",
|
263122
263123
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
263123
|
-
version: "2.3.
|
263124
|
+
version: "2.3.5-main83640001",
|
263124
263125
|
type: "module",
|
263125
263126
|
private: false,
|
263126
263127
|
license: "FSL-1.1-MIT",
|
@@ -263169,9 +263170,9 @@ var package_default = {
|
|
263169
263170
|
"@inquirer/input": "4.1.12",
|
263170
263171
|
"@inquirer/password": "4.0.15",
|
263171
263172
|
"@inquirer/select": "4.2.3",
|
263172
|
-
"@settlemint/sdk-js": "2.3.
|
263173
|
-
"@settlemint/sdk-utils": "2.3.
|
263174
|
-
"@types/node": "22.15.
|
263173
|
+
"@settlemint/sdk-js": "2.3.5-main83640001",
|
263174
|
+
"@settlemint/sdk-utils": "2.3.5-main83640001",
|
263175
|
+
"@types/node": "22.15.26",
|
263175
263176
|
"@types/semver": "7.7.0",
|
263176
263177
|
"@types/which": "3.0.4",
|
263177
263178
|
"get-tsconfig": "4.10.1",
|
@@ -263179,13 +263180,13 @@ var package_default = {
|
|
263179
263180
|
"is-in-ci": "1.0.0",
|
263180
263181
|
semver: "7.7.2",
|
263181
263182
|
slugify: "1.6.6",
|
263182
|
-
viem: "2.30.
|
263183
|
+
viem: "2.30.5",
|
263183
263184
|
which: "5.0.0",
|
263184
263185
|
yaml: "2.8.0",
|
263185
263186
|
yoctocolors: "2.1.1"
|
263186
263187
|
},
|
263187
263188
|
peerDependencies: {
|
263188
|
-
hardhat: "2.24.
|
263189
|
+
hardhat: "2.24.1"
|
263189
263190
|
},
|
263190
263191
|
peerDependenciesMeta: {
|
263191
263192
|
hardhat: {
|
@@ -299684,7 +299685,7 @@ export const { client: hasuraClient, graphql: hasuraGraphql } = createHasuraClie
|
|
299684
299685
|
};
|
299685
299686
|
}>({
|
299686
299687
|
instance: process.env.SETTLEMINT_HASURA_ENDPOINT!,
|
299687
|
-
accessToken: process.env.SETTLEMINT_ACCESS_TOKEN
|
299688
|
+
accessToken: process.env.SETTLEMINT_ACCESS_TOKEN,
|
299688
299689
|
adminSecret: process.env.SETTLEMINT_HASURA_ADMIN_SECRET!,
|
299689
299690
|
}, {
|
299690
299691
|
fetch: requestLogger(logger, "hasura", fetch) as typeof fetch,
|
@@ -299745,14 +299746,14 @@ export const { client: portalClient, graphql: portalGraphql } = createPortalClie
|
|
299745
299746
|
};
|
299746
299747
|
}>({
|
299747
299748
|
instance: process.env.SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT!,
|
299748
|
-
accessToken: process.env.SETTLEMINT_ACCESS_TOKEN
|
299749
|
+
accessToken: process.env.SETTLEMINT_ACCESS_TOKEN,
|
299749
299750
|
}, {
|
299750
299751
|
fetch: requestLogger(logger, "portal", fetch) as typeof fetch,
|
299751
299752
|
});
|
299752
299753
|
|
299753
299754
|
export const getPortalWebsocketClient = getWebsocketClient({
|
299754
299755
|
portalGraphqlEndpoint: process.env.SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT!,
|
299755
|
-
accessToken: process.env.SETTLEMINT_ACCESS_TOKEN
|
299756
|
+
accessToken: process.env.SETTLEMINT_ACCESS_TOKEN,
|
299756
299757
|
});
|
299757
299758
|
`;
|
299758
299759
|
await writeTemplate(template, "/lib/settlemint", "portal.ts");
|
@@ -299935,7 +299936,7 @@ export const { client: ${graphqlClientVariable}, graphql: ${graphqlVariable} } =
|
|
299935
299936
|
};
|
299936
299937
|
}>({
|
299937
299938
|
instances: JSON.parse(process.env.SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS || '[]'),
|
299938
|
-
accessToken: process.env.SETTLEMINT_ACCESS_TOKEN
|
299939
|
+
accessToken: process.env.SETTLEMINT_ACCESS_TOKEN,
|
299939
299940
|
subgraphName: "${name3}",
|
299940
299941
|
cache: "force-cache",
|
299941
299942
|
}, {
|
@@ -301524,7 +301525,7 @@ export const { client: blockscoutClient, graphql: blockscoutGraphql } = createBl
|
|
301524
301525
|
};
|
301525
301526
|
}>({
|
301526
301527
|
instance: process.env.SETTLEMINT_BLOCKSCOUT_ENDPOINT!,
|
301527
|
-
accessToken: process.env.SETTLEMINT_ACCESS_TOKEN
|
301528
|
+
accessToken: process.env.SETTLEMINT_ACCESS_TOKEN,
|
301528
301529
|
}, {
|
301529
301530
|
fetch: requestLogger(logger, "blockscout", fetch) as typeof fetch,
|
301530
301531
|
});
|
@@ -301551,7 +301552,7 @@ async function codegenIpfs(env2) {
|
|
301551
301552
|
|
301552
301553
|
export const { client } = createServerIpfsClient({
|
301553
301554
|
instance: process.env.SETTLEMINT_IPFS_API_ENDPOINT!,
|
301554
|
-
accessToken: process.env.SETTLEMINT_ACCESS_TOKEN
|
301555
|
+
accessToken: process.env.SETTLEMINT_ACCESS_TOKEN,
|
301555
301556
|
});`;
|
301556
301557
|
await writeTemplate(clientTemplate, "/lib/settlemint", "ipfs.ts");
|
301557
301558
|
const projectDir = await projectRoot3();
|
@@ -302581,7 +302582,7 @@ async function estimateGas(client, args) {
|
|
302581
302582
|
const { block: block2, request: request3, rpcStateOverride: rpcStateOverride2 } = parameters;
|
302582
302583
|
return client.request({
|
302583
302584
|
method: "eth_estimateGas",
|
302584
|
-
params: rpcStateOverride2 ? [request3, block2 ?? "
|
302585
|
+
params: rpcStateOverride2 ? [request3, block2 ?? "pending", rpcStateOverride2] : block2 ? [request3, block2] : [request3]
|
302585
302586
|
});
|
302586
302587
|
};
|
302587
302588
|
const { accessList, authorizationList, blobs, blobVersionedHashes, blockNumber, blockTag, data, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, value: value4, stateOverride, ...rest } = await prepareTransactionRequest(client, {
|
@@ -305156,7 +305157,7 @@ init_transactionRequest();
|
|
305156
305157
|
init_stateOverride2();
|
305157
305158
|
init_assertRequest();
|
305158
305159
|
async function simulateBlocks(client, parameters) {
|
305159
|
-
const { blockNumber, blockTag = "
|
305160
|
+
const { blockNumber, blockTag = "pending", blocks, returnFullTransactions, traceTransfers, validation } = parameters;
|
305160
305161
|
try {
|
305161
305162
|
const blockStateCalls = [];
|
305162
305163
|
for (const block2 of blocks) {
|
@@ -306719,7 +306720,7 @@ function watchBlocks(client, { blockTag = "latest", emitMissed = false, emitOnBe
|
|
306719
306720
|
return;
|
306720
306721
|
onBlock(block, undefined);
|
306721
306722
|
emitFetched = false;
|
306722
|
-
});
|
306723
|
+
}).catch(onError);
|
306723
306724
|
}
|
306724
306725
|
const transport = (() => {
|
306725
306726
|
if (client.transport.type === "fallback") {
|
@@ -323469,7 +323470,7 @@ function loginCommand() {
|
|
323469
323470
|
const timeoutPromise = new Promise((_6, reject) => {
|
323470
323471
|
timeout = setTimeout(() => {
|
323471
323472
|
reject(new Error("Timeout reading from STDIN after 30 seconds"));
|
323472
|
-
},
|
323473
|
+
}, 1000);
|
323473
323474
|
});
|
323474
323475
|
try {
|
323475
323476
|
const readPromise = (async () => {
|
@@ -326708,7 +326709,7 @@ function hardhatScriptLocalCommand() {
|
|
326708
326709
|
return new Command("local").description("Run a Hardhat script on a local development network.").requiredOption("-s, --script <script>", 'The script to run with Hardhat , e.g. "scripts/deploy.ts"').option("--no-compile", "Don't compile before running this task").usage(createExamples([
|
326709
326710
|
{
|
326710
326711
|
description: "Run a Hardhat script on a local network",
|
326711
|
-
command: "hardhat script local --script scripts/deploy.ts"
|
326712
|
+
command: "scs hardhat script local --script scripts/deploy.ts"
|
326712
326713
|
}
|
326713
326714
|
])).action(async ({ script, compile }) => {
|
326714
326715
|
intro("Running Hardhat script on local network");
|
@@ -326732,15 +326733,15 @@ function hardhatScriptRemoteCommand() {
|
|
326732
326733
|
const cmd2 = new Command("remote").description("Run a Hardhat script on a remote network on the platform.").requiredOption("-s, --script <script>", 'The script to run with Hardhat , e.g. "scripts/deploy.ts"').option("--blockchain-node <blockchainNode>", "Blockchain Node unique name (optional, defaults to the blockchain node in the environment)").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values").option("--no-compile", "Don't compile before running this task").usage(createExamples([
|
326733
326734
|
{
|
326734
326735
|
description: "Run a Hardhat script on a remote network",
|
326735
|
-
command: "hardhat script remote --script scripts/deploy.ts"
|
326736
|
+
command: "scs hardhat script remote --script scripts/deploy.ts"
|
326736
326737
|
},
|
326737
326738
|
{
|
326738
326739
|
description: "Run a Hardhat script on a remote network with a specific blockchain node",
|
326739
|
-
command: "hardhat script remote --script scripts/deploy.ts --blockchain-node my-blockchain-node"
|
326740
|
+
command: "scs hardhat script remote --script scripts/deploy.ts --blockchain-node my-blockchain-node"
|
326740
326741
|
},
|
326741
326742
|
{
|
326742
326743
|
description: "Run a Hardhat script on a remote network without compiling",
|
326743
|
-
command: "hardhat script remote --script scripts/deploy.ts --no-compile"
|
326744
|
+
command: "scs hardhat script remote --script scripts/deploy.ts --no-compile"
|
326744
326745
|
}
|
326745
326746
|
]));
|
326746
326747
|
cmd2.action(async ({ script, prod, blockchainNode: blockchainNodeUniqueName, acceptDefaults, compile }) => {
|
@@ -326968,7 +326969,7 @@ function subgraphBuildCommand() {
|
|
326968
326969
|
return new Command("build").description("Build the subgraph").usage(createExamples([
|
326969
326970
|
{
|
326970
326971
|
description: "Build the subgraph",
|
326971
|
-
command: "subgraph build"
|
326972
|
+
command: "scs subgraph build"
|
326972
326973
|
}
|
326973
326974
|
])).action(async () => {
|
326974
326975
|
intro("Building subgraph");
|
@@ -326989,7 +326990,7 @@ function subgraphCodegenCommand() {
|
|
326989
326990
|
return new Command("codegen").description("Codegen the subgraph types").usage(createExamples([
|
326990
326991
|
{
|
326991
326992
|
description: "Generate subgraph types",
|
326992
|
-
command: "subgraph codegen"
|
326993
|
+
command: "scs subgraph codegen"
|
326993
326994
|
}
|
326994
326995
|
])).action(async () => {
|
326995
326996
|
intro("Generating subgraph types");
|
@@ -327374,4 +327375,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
327374
327375
|
// src/cli.ts
|
327375
327376
|
sdkCliCommand();
|
327376
327377
|
|
327377
|
-
//# debugId=
|
327378
|
+
//# debugId=85FD234A41A3984764756E2164756E21
|