@settlemint/sdk-cli 2.5.6-pr47243248 → 2.5.6-pr6ca63ab3
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 +41 -17
- package/dist/cli.js.map +3 -3
- package/package.json +6 -6
package/dist/cli.js
CHANGED
@@ -264863,7 +264863,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
264863
264863
|
var package_default = {
|
264864
264864
|
name: "@settlemint/sdk-cli",
|
264865
264865
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
264866
|
-
version: "2.5.6-
|
264866
|
+
version: "2.5.6-pr6ca63ab3",
|
264867
264867
|
type: "module",
|
264868
264868
|
private: false,
|
264869
264869
|
license: "FSL-1.1-MIT",
|
@@ -264917,10 +264917,10 @@ var package_default = {
|
|
264917
264917
|
"@inquirer/input": "4.2.1",
|
264918
264918
|
"@inquirer/password": "4.0.17",
|
264919
264919
|
"@inquirer/select": "4.3.1",
|
264920
|
-
"@settlemint/sdk-hasura": "2.5.6-
|
264921
|
-
"@settlemint/sdk-js": "2.5.6-
|
264922
|
-
"@settlemint/sdk-utils": "2.5.6-
|
264923
|
-
"@settlemint/sdk-viem": "2.5.6-
|
264920
|
+
"@settlemint/sdk-hasura": "2.5.6-pr6ca63ab3",
|
264921
|
+
"@settlemint/sdk-js": "2.5.6-pr6ca63ab3",
|
264922
|
+
"@settlemint/sdk-utils": "2.5.6-pr6ca63ab3",
|
264923
|
+
"@settlemint/sdk-viem": "2.5.6-pr6ca63ab3",
|
264924
264924
|
"@types/node": "24.2.1",
|
264925
264925
|
"@types/semver": "7.7.0",
|
264926
264926
|
"@types/which": "3.0.4",
|
@@ -264937,7 +264937,7 @@ var package_default = {
|
|
264937
264937
|
},
|
264938
264938
|
peerDependencies: {
|
264939
264939
|
hardhat: "2.26.2",
|
264940
|
-
"@settlemint/sdk-js": "2.5.6-
|
264940
|
+
"@settlemint/sdk-js": "2.5.6-pr6ca63ab3"
|
264941
264941
|
},
|
264942
264942
|
peerDependenciesMeta: {
|
264943
264943
|
hardhat: {
|
@@ -293909,15 +293909,39 @@ var zoraTestnet = /* @__PURE__ */ defineChain({
|
|
293909
293909
|
testnet: true
|
293910
293910
|
});
|
293911
293911
|
// ../viem/dist/viem.js
|
293912
|
-
var
|
293913
|
-
|
293914
|
-
|
293915
|
-
|
293916
|
-
|
293917
|
-
|
293918
|
-
|
293912
|
+
var LRUCache3 = class {
|
293913
|
+
cache = new Map;
|
293914
|
+
maxSize;
|
293915
|
+
constructor(maxSize) {
|
293916
|
+
this.maxSize = maxSize;
|
293917
|
+
}
|
293918
|
+
get(key2) {
|
293919
|
+
const value5 = this.cache.get(key2);
|
293920
|
+
if (value5 !== undefined) {
|
293921
|
+
this.cache.delete(key2);
|
293922
|
+
this.cache.set(key2, value5);
|
293923
|
+
}
|
293924
|
+
return value5;
|
293925
|
+
}
|
293926
|
+
set(key2, value5) {
|
293927
|
+
this.cache.delete(key2);
|
293928
|
+
if (this.cache.size >= this.maxSize) {
|
293929
|
+
const firstKey = this.cache.keys().next().value;
|
293930
|
+
if (firstKey !== undefined) {
|
293931
|
+
this.cache.delete(firstKey);
|
293932
|
+
}
|
293933
|
+
}
|
293934
|
+
this.cache.set(key2, value5);
|
293919
293935
|
}
|
293920
|
-
|
293936
|
+
clear() {
|
293937
|
+
this.cache.clear();
|
293938
|
+
}
|
293939
|
+
};
|
293940
|
+
var chainCache = new LRUCache3(100);
|
293941
|
+
var publicClientCache = new LRUCache3(50);
|
293942
|
+
var walletClientFactoryCache = new LRUCache3(50);
|
293943
|
+
function buildHeaders(baseHeaders, authHeaders) {
|
293944
|
+
return appendHeaders(baseHeaders, authHeaders);
|
293921
293945
|
}
|
293922
293946
|
var ClientOptionsSchema2 = exports_external.object({
|
293923
293947
|
accessToken: ApplicationAccessTokenSchema2.optional(),
|
@@ -293933,8 +293957,8 @@ var GetChainIdOptionsSchema = exports_external.object({
|
|
293933
293957
|
});
|
293934
293958
|
async function getChainId2(options) {
|
293935
293959
|
ensureServer();
|
293936
|
-
const validatedOptions =
|
293937
|
-
const headers =
|
293960
|
+
const validatedOptions = validate2(GetChainIdOptionsSchema, options);
|
293961
|
+
const headers = buildHeaders(validatedOptions?.httpTransportConfig?.fetchOptions?.headers, { "x-auth-token": validatedOptions.accessToken || "" });
|
293938
293962
|
const client = createPublicClient({ transport: http(validatedOptions.rpcUrl, {
|
293939
293963
|
...validatedOptions.httpTransportConfig,
|
293940
293964
|
fetchOptions: {
|
@@ -303849,4 +303873,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
303849
303873
|
// src/cli.ts
|
303850
303874
|
sdkCliCommand();
|
303851
303875
|
|
303852
|
-
//# debugId=
|
303876
|
+
//# debugId=8D567329D6E2F8DC64756E2164756E21
|