@sentio/cli 3.9.0-rc.3 → 3.9.0-rc.5
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/lib/index.js +66 -67
- package/package.json +1 -1
- package/src/commands/alert.ts +5 -5
- package/src/commands/dashboard.ts +4 -4
- package/src/commands/data.ts +6 -6
- package/src/commands/endpoint.ts +4 -4
- package/src/commands/price.ts +4 -4
- package/src/commands/processor.ts +4 -4
- package/src/commands/project.ts +4 -4
- package/src/commands/simulation.ts +6 -6
package/lib/index.js
CHANGED
|
@@ -58016,10 +58016,10 @@ var init_jsonRpc = __esm({
|
|
|
58016
58016
|
}
|
|
58017
58017
|
});
|
|
58018
58018
|
|
|
58019
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
58019
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/client/errors.js
|
|
58020
58020
|
var CODE_TO_ERROR_TYPE2, IotaHTTPTransportError, JsonRpcError2, IotaHTTPStatusError;
|
|
58021
58021
|
var init_errors3 = __esm({
|
|
58022
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
58022
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/client/errors.js"() {
|
|
58023
58023
|
init_cjs_shim();
|
|
58024
58024
|
CODE_TO_ERROR_TYPE2 = {
|
|
58025
58025
|
"-32700": "ParseError",
|
|
@@ -58058,7 +58058,7 @@ var init_errors3 = __esm({
|
|
|
58058
58058
|
}
|
|
58059
58059
|
});
|
|
58060
58060
|
|
|
58061
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
58061
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/client/rpc-websocket-client.js
|
|
58062
58062
|
function getWebsocketUrl(httpUrl) {
|
|
58063
58063
|
const url5 = new URL(httpUrl);
|
|
58064
58064
|
url5.protocol = url5.protocol.replace("http", "ws");
|
|
@@ -58066,7 +58066,7 @@ function getWebsocketUrl(httpUrl) {
|
|
|
58066
58066
|
}
|
|
58067
58067
|
var __typeError, __accessCheck, __privateGet, __privateAdd, __privateSet, __privateMethod, __privateWrapper, _requestId, _disconnects, _webSocket, _connectionPromise, _subscriptions, _pendingRequests, _WebsocketClient_instances, setupWebSocket_fn, reconnect_fn, DEFAULT_CLIENT_OPTIONS, WebsocketClient, RpcSubscription;
|
|
58068
58068
|
var init_rpc_websocket_client = __esm({
|
|
58069
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
58069
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/client/rpc-websocket-client.js"() {
|
|
58070
58070
|
init_cjs_shim();
|
|
58071
58071
|
init_errors3();
|
|
58072
58072
|
__typeError = (msg) => {
|
|
@@ -58237,10 +58237,10 @@ var init_rpc_websocket_client = __esm({
|
|
|
58237
58237
|
}
|
|
58238
58238
|
});
|
|
58239
58239
|
|
|
58240
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
58240
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/client/http-transport.js
|
|
58241
58241
|
var __typeError2, __accessCheck2, __privateGet2, __privateAdd2, __privateSet2, __privateMethod2, _requestId2, _options, _websocketClient, _IotaHTTPTransport_instances, getWebsocketClient_fn, IotaHTTPTransport;
|
|
58242
58242
|
var init_http_transport2 = __esm({
|
|
58243
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
58243
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/client/http-transport.js"() {
|
|
58244
58244
|
init_cjs_shim();
|
|
58245
58245
|
init_errors3();
|
|
58246
58246
|
init_rpc_websocket_client();
|
|
@@ -58338,7 +58338,7 @@ var init_http_transport2 = __esm({
|
|
|
58338
58338
|
}
|
|
58339
58339
|
});
|
|
58340
58340
|
|
|
58341
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
58341
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/client/network.js
|
|
58342
58342
|
function getAllNetworks() {
|
|
58343
58343
|
const networksStringified = '{\n "mainnet": {\n "id": "mainnet",\n "name": "Mainnet",\n "url": "https://api.mainnet.iota.cafe",\n "graphql": "https://graphql.mainnet.iota.cafe",\n "explorer": "https://explorer.rebased.iota.org",\n "chain": "iota:mainnet"\n },\n "testnet": {\n "id": "testnet",\n "name": "Testnet",\n "url": "https://indexer.testnet.iota.cafe",\n "graphql": "https://graphql.testnet.iota.cafe",\n "explorer": "https://explorer.rebased.iota.org",\n "chain": "iota:testnet",\n "faucet": "https://faucet.testnet.iota.cafe",\n "kiosk": {\n "royaltyRulePackageId": "0x975f749f57701209454e4b9b9e33825ccb6a9abf57de2ce86979e5fa86c343f2",\n "kioskLockRulePackageId": "0x975f749f57701209454e4b9b9e33825ccb6a9abf57de2ce86979e5fa86c343f2",\n "floorPriceRulePackageId": "0x975f749f57701209454e4b9b9e33825ccb6a9abf57de2ce86979e5fa86c343f2",\n "personalKioskRulePackageId": "0x975f749f57701209454e4b9b9e33825ccb6a9abf57de2ce86979e5fa86c343f2"\n }\n },\n "devnet": {\n "id": "devnet",\n "name": "Devnet",\n "url": "https://indexer.devnet.iota.cafe",\n "graphql": "https://graphql.devnet.iota.cafe",\n "explorer": "https://explorer.rebased.iota.org",\n "chain": "iota:devnet",\n "faucet": "https://faucet.devnet.iota.cafe"\n },\n "localnet": {\n "id": "localnet",\n "name": "Localnet",\n "url": "http://localhost:9000",\n "graphql": "http://localhost:9125",\n "explorer": "http://localhost:3000",\n "chain": "iota:local",\n "faucet": "http://localhost:9123"\n }\n}';
|
|
58344
58344
|
if (!networksStringified) {
|
|
@@ -58368,7 +58368,7 @@ function getGraphQLUrl(network) {
|
|
|
58368
58368
|
}
|
|
58369
58369
|
var Network;
|
|
58370
58370
|
var init_network2 = __esm({
|
|
58371
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
58371
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/client/network.js"() {
|
|
58372
58372
|
init_cjs_shim();
|
|
58373
58373
|
Network = /* @__PURE__ */ ((Network22) => {
|
|
58374
58374
|
Network22["Mainnet"] = "mainnet";
|
|
@@ -59749,7 +59749,7 @@ var init_esm2 = __esm({
|
|
|
59749
59749
|
}
|
|
59750
59750
|
});
|
|
59751
59751
|
|
|
59752
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
59752
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/utils/iota-types.js
|
|
59753
59753
|
function isValidTransactionDigest2(value) {
|
|
59754
59754
|
try {
|
|
59755
59755
|
const buffer = fromBase582(value);
|
|
@@ -59787,7 +59787,7 @@ function getHexByteLength2(value) {
|
|
|
59787
59787
|
}
|
|
59788
59788
|
var TX_DIGEST_LENGTH2, IOTA_ADDRESS_LENGTH;
|
|
59789
59789
|
var init_iota_types = __esm({
|
|
59790
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
59790
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/utils/iota-types.js"() {
|
|
59791
59791
|
init_cjs_shim();
|
|
59792
59792
|
init_esm2();
|
|
59793
59793
|
TX_DIGEST_LENGTH2 = 32;
|
|
@@ -59795,10 +59795,10 @@ var init_iota_types = __esm({
|
|
|
59795
59795
|
}
|
|
59796
59796
|
});
|
|
59797
59797
|
|
|
59798
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
59798
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/bcs/type-tag-serializer.js
|
|
59799
59799
|
var VECTOR_REGEX2, STRUCT_REGEX2, TypeTagSerializer3;
|
|
59800
59800
|
var init_type_tag_serializer2 = __esm({
|
|
59801
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
59801
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/bcs/type-tag-serializer.js"() {
|
|
59802
59802
|
init_cjs_shim();
|
|
59803
59803
|
init_esm2();
|
|
59804
59804
|
init_iota_types();
|
|
@@ -59895,7 +59895,7 @@ var init_type_tag_serializer2 = __esm({
|
|
|
59895
59895
|
}
|
|
59896
59896
|
});
|
|
59897
59897
|
|
|
59898
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
59898
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/bcs/bcs.js
|
|
59899
59899
|
function unsafe_u642(options) {
|
|
59900
59900
|
return bcs2.u64({
|
|
59901
59901
|
name: "unsafe_u64",
|
|
@@ -59919,7 +59919,7 @@ function IntentMessage2(T) {
|
|
|
59919
59919
|
}
|
|
59920
59920
|
var Address2, ObjectDigest2, IotaObjectRef, SharedObjectRef2, ObjectArg3, Owner2, CallArg3, InnerTypeTag2, TypeTag3, Argument4, ProgrammableMoveCall3, Command5, ProgrammableTransaction2, TransactionKind2, TransactionExpiration5, StructTag3, GasData3, TransactionDataV12, TransactionData2, IntentScope2, IntentVersion2, AppId2, Intent2, CompressedSignature2, PublicKey2, MultiSigPkMap2, MultiSigPublicKey2, MultiSig2, base64String2, SenderSignedTransaction2, SenderSignedData2, PasskeyAuthenticator2, MoveAuthenticatorV1, MoveAuthenticator;
|
|
59921
59921
|
var init_bcs5 = __esm({
|
|
59922
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
59922
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/bcs/bcs.js"() {
|
|
59923
59923
|
init_cjs_shim();
|
|
59924
59924
|
init_esm2();
|
|
59925
59925
|
init_iota_types();
|
|
@@ -60176,10 +60176,10 @@ var init_bcs5 = __esm({
|
|
|
60176
60176
|
}
|
|
60177
60177
|
});
|
|
60178
60178
|
|
|
60179
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
60179
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/bcs/effects.js
|
|
60180
60180
|
var PackageUpgradeError2, ModuleId2, MoveLocation2, CommandArgumentError2, TypeArgumentError2, ExecutionFailureStatus2, ExecutionStatus2, GasCostSummary2, VersionDigest2, ObjectIn2, ObjectOut2, IDOperation2, EffectsObjectChange2, UnchangedSharedKind, TransactionEffectsV12, TransactionEffects2;
|
|
60181
60181
|
var init_effects2 = __esm({
|
|
60182
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
60182
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/bcs/effects.js"() {
|
|
60183
60183
|
init_cjs_shim();
|
|
60184
60184
|
init_esm2();
|
|
60185
60185
|
init_bcs5();
|
|
@@ -60352,7 +60352,7 @@ var init_effects2 = __esm({
|
|
|
60352
60352
|
}
|
|
60353
60353
|
});
|
|
60354
60354
|
|
|
60355
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
60355
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/bcs/pure.js
|
|
60356
60356
|
function pureBcsSchemaFromTypeName2(name) {
|
|
60357
60357
|
switch (name) {
|
|
60358
60358
|
case "u8":
|
|
@@ -60387,17 +60387,17 @@ function pureBcsSchemaFromTypeName2(name) {
|
|
|
60387
60387
|
throw new Error(`Invalid Pure type name: ${name}`);
|
|
60388
60388
|
}
|
|
60389
60389
|
var init_pure3 = __esm({
|
|
60390
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
60390
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/bcs/pure.js"() {
|
|
60391
60391
|
init_cjs_shim();
|
|
60392
60392
|
init_esm2();
|
|
60393
60393
|
init_bcs5();
|
|
60394
60394
|
}
|
|
60395
60395
|
});
|
|
60396
60396
|
|
|
60397
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
60397
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/bcs/index.js
|
|
60398
60398
|
var iotaBcs;
|
|
60399
60399
|
var init_bcs6 = __esm({
|
|
60400
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
60400
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/bcs/index.js"() {
|
|
60401
60401
|
init_cjs_shim();
|
|
60402
60402
|
init_esm2();
|
|
60403
60403
|
init_bcs5();
|
|
@@ -60451,10 +60451,10 @@ var init_bcs6 = __esm({
|
|
|
60451
60451
|
}
|
|
60452
60452
|
});
|
|
60453
60453
|
|
|
60454
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
60454
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/utils/constants.js
|
|
60455
60455
|
var NANOS_PER_IOTA, MOVE_STDLIB_ADDRESS2, IOTA_FRAMEWORK_ADDRESS, IOTA_CLOCK_OBJECT_ID, IOTA_TYPE_ARG, IOTA_SYSTEM_STATE_OBJECT_ID, IOTA_RANDOM_OBJECT_ID;
|
|
60456
60456
|
var init_constants2 = __esm({
|
|
60457
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
60457
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/utils/constants.js"() {
|
|
60458
60458
|
init_cjs_shim();
|
|
60459
60459
|
init_iota_types();
|
|
60460
60460
|
NANOS_PER_IOTA = BigInt(1e9);
|
|
@@ -61138,16 +61138,16 @@ var init_blake2b = __esm({
|
|
|
61138
61138
|
}
|
|
61139
61139
|
});
|
|
61140
61140
|
|
|
61141
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61141
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/utils/index.js
|
|
61142
61142
|
var init_utils7 = __esm({
|
|
61143
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61143
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/utils/index.js"() {
|
|
61144
61144
|
init_cjs_shim();
|
|
61145
61145
|
init_iota_types();
|
|
61146
61146
|
init_constants2();
|
|
61147
61147
|
}
|
|
61148
61148
|
});
|
|
61149
61149
|
|
|
61150
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61150
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/serializer.js
|
|
61151
61151
|
function isTxContext2(param) {
|
|
61152
61152
|
const struct = typeof param.body === "object" && "datatype" in param.body ? param.body.datatype : null;
|
|
61153
61153
|
return !!struct && normalizeIotaAddress(struct.package) === normalizeIotaAddress("0x2") && struct.module === "tx_context" && struct.type === "TxContext";
|
|
@@ -61268,7 +61268,7 @@ function normalizedTypeToMoveTypeSignatureBody(type) {
|
|
|
61268
61268
|
}
|
|
61269
61269
|
var OBJECT_MODULE_NAME, ID_STRUCT_NAME, STD_ASCII_MODULE_NAME, STD_ASCII_STRUCT_NAME, STD_UTF8_MODULE_NAME, STD_UTF8_STRUCT_NAME, STD_OPTION_MODULE_NAME, STD_OPTION_STRUCT_NAME;
|
|
61270
61270
|
var init_serializer2 = __esm({
|
|
61271
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61271
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/serializer.js"() {
|
|
61272
61272
|
init_cjs_shim();
|
|
61273
61273
|
init_bcs6();
|
|
61274
61274
|
init_utils7();
|
|
@@ -61284,7 +61284,7 @@ var init_serializer2 = __esm({
|
|
|
61284
61284
|
}
|
|
61285
61285
|
});
|
|
61286
61286
|
|
|
61287
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61287
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/Inputs.js
|
|
61288
61288
|
function Pure2(data4) {
|
|
61289
61289
|
return {
|
|
61290
61290
|
$kind: "Pure",
|
|
@@ -61295,7 +61295,7 @@ function Pure2(data4) {
|
|
|
61295
61295
|
}
|
|
61296
61296
|
var Inputs2;
|
|
61297
61297
|
var init_Inputs2 = __esm({
|
|
61298
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61298
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/Inputs.js"() {
|
|
61299
61299
|
init_cjs_shim();
|
|
61300
61300
|
init_esm2();
|
|
61301
61301
|
init_iota_types();
|
|
@@ -61348,7 +61348,7 @@ var init_Inputs2 = __esm({
|
|
|
61348
61348
|
}
|
|
61349
61349
|
});
|
|
61350
61350
|
|
|
61351
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61351
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/data/internal.js
|
|
61352
61352
|
function safeEnum2(options) {
|
|
61353
61353
|
const unionOptions = Object.entries(options).map(([key, value]) => object({ [key]: value }));
|
|
61354
61354
|
return pipe(
|
|
@@ -61363,7 +61363,7 @@ function safeEnum2(options) {
|
|
|
61363
61363
|
}
|
|
61364
61364
|
var IotaAddress, ObjectID2, BCSBytes2, JsonU642, ObjectRef2, Argument5, GasData4, StructTag4, OpenMoveTypeSignatureBody, OpenMoveTypeSignature, ProgrammableMoveCall4, $Intent3, Command6, ObjectArg4, CallArg4, NormalizedCallArg3, TransactionExpiration6, TransactionData3;
|
|
61365
61365
|
var init_internal2 = __esm({
|
|
61366
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61366
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/data/internal.js"() {
|
|
61367
61367
|
init_cjs_shim();
|
|
61368
61368
|
init_dist3();
|
|
61369
61369
|
init_iota_types();
|
|
@@ -61532,10 +61532,10 @@ var init_internal2 = __esm({
|
|
|
61532
61532
|
}
|
|
61533
61533
|
});
|
|
61534
61534
|
|
|
61535
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61535
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/Commands.js
|
|
61536
61536
|
var Commands;
|
|
61537
61537
|
var init_Commands2 = __esm({
|
|
61538
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61538
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/Commands.js"() {
|
|
61539
61539
|
init_cjs_shim();
|
|
61540
61540
|
init_esm2();
|
|
61541
61541
|
init_dist3();
|
|
@@ -61649,10 +61649,10 @@ var init_Commands2 = __esm({
|
|
|
61649
61649
|
}
|
|
61650
61650
|
});
|
|
61651
61651
|
|
|
61652
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61652
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/cryptography/signature-scheme.js
|
|
61653
61653
|
var SIGNATURE_SCHEME_TO_FLAG;
|
|
61654
61654
|
var init_signature_scheme = __esm({
|
|
61655
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61655
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/cryptography/signature-scheme.js"() {
|
|
61656
61656
|
init_cjs_shim();
|
|
61657
61657
|
SIGNATURE_SCHEME_TO_FLAG = {
|
|
61658
61658
|
ED25519: 0,
|
|
@@ -61660,13 +61660,12 @@ var init_signature_scheme = __esm({
|
|
|
61660
61660
|
Secp256r1: 2,
|
|
61661
61661
|
MultiSig: 3,
|
|
61662
61662
|
Passkey: 6,
|
|
61663
|
-
/** @experimental */
|
|
61664
61663
|
MoveAuthenticator: 7
|
|
61665
61664
|
};
|
|
61666
61665
|
}
|
|
61667
61666
|
});
|
|
61668
61667
|
|
|
61669
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61668
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/cryptography/intent.js
|
|
61670
61669
|
function messageWithIntent(scope, message) {
|
|
61671
61670
|
return iotaBcs.IntentMessage(iotaBcs.bytes(message.length)).serialize({
|
|
61672
61671
|
intent: {
|
|
@@ -61678,13 +61677,13 @@ function messageWithIntent(scope, message) {
|
|
|
61678
61677
|
}).toBytes();
|
|
61679
61678
|
}
|
|
61680
61679
|
var init_intent = __esm({
|
|
61681
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61680
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/cryptography/intent.js"() {
|
|
61682
61681
|
init_cjs_shim();
|
|
61683
61682
|
init_bcs6();
|
|
61684
61683
|
}
|
|
61685
61684
|
});
|
|
61686
61685
|
|
|
61687
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61686
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/cryptography/signature.js
|
|
61688
61687
|
function toSerializedSignature({
|
|
61689
61688
|
signature,
|
|
61690
61689
|
signatureScheme,
|
|
@@ -61701,17 +61700,17 @@ function toSerializedSignature({
|
|
|
61701
61700
|
return toBase642(serializedSignature);
|
|
61702
61701
|
}
|
|
61703
61702
|
var init_signature = __esm({
|
|
61704
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61703
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/cryptography/signature.js"() {
|
|
61705
61704
|
init_cjs_shim();
|
|
61706
61705
|
init_esm2();
|
|
61707
61706
|
init_signature_scheme();
|
|
61708
61707
|
}
|
|
61709
61708
|
});
|
|
61710
61709
|
|
|
61711
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61710
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/cryptography/keypair.js
|
|
61712
61711
|
var Signer;
|
|
61713
61712
|
var init_keypair = __esm({
|
|
61714
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61713
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/cryptography/keypair.js"() {
|
|
61715
61714
|
init_cjs_shim();
|
|
61716
61715
|
init_esm2();
|
|
61717
61716
|
init_blake2b();
|
|
@@ -61769,15 +61768,15 @@ var init_keypair = __esm({
|
|
|
61769
61768
|
}
|
|
61770
61769
|
});
|
|
61771
61770
|
|
|
61772
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61771
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/cryptography/index.js
|
|
61773
61772
|
var init_cryptography = __esm({
|
|
61774
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61773
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/cryptography/index.js"() {
|
|
61775
61774
|
init_cjs_shim();
|
|
61776
61775
|
init_keypair();
|
|
61777
61776
|
}
|
|
61778
61777
|
});
|
|
61779
61778
|
|
|
61780
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61779
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/data/v2.js
|
|
61781
61780
|
function enumUnion2(options) {
|
|
61782
61781
|
return union(
|
|
61783
61782
|
Object.entries(options).map(([key, value]) => object({ [key]: value }))
|
|
@@ -61785,7 +61784,7 @@ function enumUnion2(options) {
|
|
|
61785
61784
|
}
|
|
61786
61785
|
var Argument6, GasData5, ProgrammableMoveCall5, $Intent4, Command7, ObjectArg5, CallArg5, TransactionExpiration7, SerializedTransactionDataV2;
|
|
61787
61786
|
var init_v22 = __esm({
|
|
61788
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61787
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/data/v2.js"() {
|
|
61789
61788
|
init_cjs_shim();
|
|
61790
61789
|
init_dist3();
|
|
61791
61790
|
init_internal2();
|
|
@@ -61885,7 +61884,7 @@ var init_v22 = __esm({
|
|
|
61885
61884
|
}
|
|
61886
61885
|
});
|
|
61887
61886
|
|
|
61888
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
61887
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/json-rpc-resolver.js
|
|
61889
61888
|
async function resolveTransactionData(transactionData, options, next) {
|
|
61890
61889
|
await normalizeInputs2(transactionData, options);
|
|
61891
61890
|
await resolveObjectReferences2(transactionData, options);
|
|
@@ -62207,7 +62206,7 @@ function chunk2(arr, size) {
|
|
|
62207
62206
|
}
|
|
62208
62207
|
var MAX_OBJECTS_PER_FETCH2, GAS_SAFE_OVERHEAD2, MAX_GAS3;
|
|
62209
62208
|
var init_json_rpc_resolver = __esm({
|
|
62210
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
62209
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/json-rpc-resolver.js"() {
|
|
62211
62210
|
init_cjs_shim();
|
|
62212
62211
|
init_dist3();
|
|
62213
62212
|
init_bcs6();
|
|
@@ -62221,7 +62220,7 @@ var init_json_rpc_resolver = __esm({
|
|
|
62221
62220
|
}
|
|
62222
62221
|
});
|
|
62223
62222
|
|
|
62224
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
62223
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/object.js
|
|
62225
62224
|
function createObjectMethods2(makeObject) {
|
|
62226
62225
|
function object3(value) {
|
|
62227
62226
|
return makeObject(value);
|
|
@@ -62276,13 +62275,13 @@ function createObjectMethods2(makeObject) {
|
|
|
62276
62275
|
return object3;
|
|
62277
62276
|
}
|
|
62278
62277
|
var init_object2 = __esm({
|
|
62279
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
62278
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/object.js"() {
|
|
62280
62279
|
init_cjs_shim();
|
|
62281
62280
|
init_Inputs2();
|
|
62282
62281
|
}
|
|
62283
62282
|
});
|
|
62284
62283
|
|
|
62285
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
62284
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/pure.js
|
|
62286
62285
|
function createPure2(makePure) {
|
|
62287
62286
|
function pure(typeOrSerializedValue, value) {
|
|
62288
62287
|
if (typeof typeOrSerializedValue === "string") {
|
|
@@ -62316,7 +62315,7 @@ function createPure2(makePure) {
|
|
|
62316
62315
|
return pure;
|
|
62317
62316
|
}
|
|
62318
62317
|
var init_pure4 = __esm({
|
|
62319
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
62318
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/pure.js"() {
|
|
62320
62319
|
init_cjs_shim();
|
|
62321
62320
|
init_esm2();
|
|
62322
62321
|
init_bcs6();
|
|
@@ -62324,7 +62323,7 @@ var init_pure4 = __esm({
|
|
|
62324
62323
|
}
|
|
62325
62324
|
});
|
|
62326
62325
|
|
|
62327
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
62326
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/data/v1.js
|
|
62328
62327
|
function transactionDataFromV12(data4) {
|
|
62329
62328
|
return parse2(TransactionData3, {
|
|
62330
62329
|
version: 2,
|
|
@@ -62500,7 +62499,7 @@ function parseV1TransactionArgument2(arg) {
|
|
|
62500
62499
|
}
|
|
62501
62500
|
var ObjectRef3, ObjectArg6, NormalizedCallArg4, TransactionInput2, TransactionExpiration8, StringEncodedBigint2, TypeTag4, StructTag5, GasConfig2, TransactionArgumentTypes2, TransactionArgument2, MoveCallTransaction2, TransferObjectsTransaction2, SplitCoinsTransaction2, MergeCoinsTransaction2, MakeMoveVecTransaction2, PublishTransaction, UpgradeTransaction, TransactionTypes, TransactionType2, SerializedTransactionDataV12;
|
|
62502
62501
|
var init_v12 = __esm({
|
|
62503
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
62502
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/data/v1.js"() {
|
|
62504
62503
|
init_cjs_shim();
|
|
62505
62504
|
init_esm2();
|
|
62506
62505
|
init_dist3();
|
|
@@ -62652,7 +62651,7 @@ var init_v12 = __esm({
|
|
|
62652
62651
|
}
|
|
62653
62652
|
});
|
|
62654
62653
|
|
|
62655
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
62654
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/hash.js
|
|
62656
62655
|
function hashTypedData2(typeTag, data4) {
|
|
62657
62656
|
const typeTagBytes = Array.from(`${typeTag}::`).map((e3) => e3.charCodeAt(0));
|
|
62658
62657
|
const dataWithTag = new Uint8Array(typeTagBytes.length + data4.length);
|
|
@@ -62661,13 +62660,13 @@ function hashTypedData2(typeTag, data4) {
|
|
|
62661
62660
|
return blake2b3(dataWithTag, { dkLen: 32 });
|
|
62662
62661
|
}
|
|
62663
62662
|
var init_hash2 = __esm({
|
|
62664
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
62663
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/hash.js"() {
|
|
62665
62664
|
init_cjs_shim();
|
|
62666
62665
|
init_blake2b();
|
|
62667
62666
|
}
|
|
62668
62667
|
});
|
|
62669
62668
|
|
|
62670
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
62669
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/utils.js
|
|
62671
62670
|
function remapCommandArguments2(command, inputMapping, commandMapping) {
|
|
62672
62671
|
const remapArg = (arg) => {
|
|
62673
62672
|
switch (arg.$kind) {
|
|
@@ -62749,19 +62748,19 @@ function getIdFromCallArg2(arg) {
|
|
|
62749
62748
|
return void 0;
|
|
62750
62749
|
}
|
|
62751
62750
|
var init_utils8 = __esm({
|
|
62752
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
62751
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/utils.js"() {
|
|
62753
62752
|
init_cjs_shim();
|
|
62754
62753
|
init_iota_types();
|
|
62755
62754
|
}
|
|
62756
62755
|
});
|
|
62757
62756
|
|
|
62758
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
62757
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/TransactionData.js
|
|
62759
62758
|
function prepareIotaAddress(address) {
|
|
62760
62759
|
return normalizeIotaAddress(address).replace("0x", "");
|
|
62761
62760
|
}
|
|
62762
62761
|
var TransactionDataBuilder3;
|
|
62763
62762
|
var init_TransactionData2 = __esm({
|
|
62764
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
62763
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/TransactionData.js"() {
|
|
62765
62764
|
init_cjs_shim();
|
|
62766
62765
|
init_esm2();
|
|
62767
62766
|
init_dist3();
|
|
@@ -63087,7 +63086,7 @@ var init_TransactionData2 = __esm({
|
|
|
63087
63086
|
}
|
|
63088
63087
|
});
|
|
63089
63088
|
|
|
63090
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
63089
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/Transaction.js
|
|
63091
63090
|
function createTransactionResult2(index, length = Infinity) {
|
|
63092
63091
|
const baseResult = { $kind: "Result", Result: index };
|
|
63093
63092
|
const nestedResults = [];
|
|
@@ -63140,7 +63139,7 @@ function getGlobalPluginRegistry() {
|
|
|
63140
63139
|
}
|
|
63141
63140
|
var __typeError4, __accessCheck4, __privateGet4, __privateAdd4, __privateSet4, __privateMethod3, _serializationPlugins, _buildPlugins, _intentResolvers, _data, _Transaction_instances, normalizeTransactionArgument_fn, resolveArgument_fn, prepareBuild_fn, runPlugins_fn, TRANSACTION_BRAND2, modulePluginRegistry, TRANSACTION_REGISTRY_KEY, _Transaction;
|
|
63142
63141
|
var init_Transaction2 = __esm({
|
|
63143
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
63142
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/Transaction.js"() {
|
|
63144
63143
|
init_cjs_shim();
|
|
63145
63144
|
init_esm2();
|
|
63146
63145
|
init_dist3();
|
|
@@ -63543,15 +63542,15 @@ var init_Transaction2 = __esm({
|
|
|
63543
63542
|
}
|
|
63544
63543
|
});
|
|
63545
63544
|
|
|
63546
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
63545
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/index.js
|
|
63547
63546
|
var init_transactions = __esm({
|
|
63548
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
63547
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/transactions/index.js"() {
|
|
63549
63548
|
init_cjs_shim();
|
|
63550
63549
|
init_Transaction2();
|
|
63551
63550
|
}
|
|
63552
63551
|
});
|
|
63553
63552
|
|
|
63554
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
63553
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/client/client.js
|
|
63555
63554
|
function mapValidatorsWithEffectiveCommission(validators, protocolVersion) {
|
|
63556
63555
|
const isIIP8Active = protocolVersion >= PROTOCOL_VERSION_IIP8;
|
|
63557
63556
|
return validators.map((v) => ({
|
|
@@ -63564,7 +63563,7 @@ function isIotaClient(client2) {
|
|
|
63564
63563
|
}
|
|
63565
63564
|
var IOTA_CLIENT_BRAND, PROTOCOL_VERSION_V2_SYSTEM_STATE, PROTOCOL_VERSION_IIP8, IotaClient;
|
|
63566
63565
|
var init_client3 = __esm({
|
|
63567
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
63566
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/client/client.js"() {
|
|
63568
63567
|
init_cjs_shim();
|
|
63569
63568
|
init_esm2();
|
|
63570
63569
|
init_transactions();
|
|
@@ -64422,7 +64421,7 @@ var init_client3 = __esm({
|
|
|
64422
64421
|
}
|
|
64423
64422
|
});
|
|
64424
64423
|
|
|
64425
|
-
// ../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
64424
|
+
// ../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/client/index.js
|
|
64426
64425
|
var client_exports = {};
|
|
64427
64426
|
__export(client_exports, {
|
|
64428
64427
|
IotaClient: () => IotaClient,
|
|
@@ -64439,7 +64438,7 @@ __export(client_exports, {
|
|
|
64439
64438
|
isIotaClient: () => isIotaClient
|
|
64440
64439
|
});
|
|
64441
64440
|
var init_client4 = __esm({
|
|
64442
|
-
"../../node_modules/.pnpm/@iota+iota-sdk@1.
|
|
64441
|
+
"../../node_modules/.pnpm/@iota+iota-sdk@1.14.0_typescript@6.0.3/node_modules/@iota/iota-sdk/dist/esm/client/index.js"() {
|
|
64443
64442
|
init_cjs_shim();
|
|
64444
64443
|
init_http_transport2();
|
|
64445
64444
|
init_network2();
|
package/package.json
CHANGED
package/src/commands/alert.ts
CHANGED
|
@@ -360,14 +360,14 @@ async function injectProjectId(
|
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
-
function withAuthOptions<
|
|
363
|
+
function withAuthOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
364
364
|
return command
|
|
365
365
|
.option('--host <host>', 'Override Sentio host')
|
|
366
366
|
.option('--api-key <key>', 'Use an explicit API key instead of saved credentials')
|
|
367
367
|
.option('--token <token>', 'Use an explicit bearer token instead of saved credentials')
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
-
function withSharedProjectOptions<
|
|
370
|
+
function withSharedProjectOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
371
371
|
return command
|
|
372
372
|
.option('--project <project>', 'Sentio project as <owner>/<slug> or <slug>')
|
|
373
373
|
.option('--owner <owner>', 'Sentio project owner')
|
|
@@ -375,17 +375,17 @@ function withSharedProjectOptions<T extends Command<any, any, any>>(command: T)
|
|
|
375
375
|
.option('--project-id <id>', 'Sentio project id')
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
-
function withJsonInputOptions<
|
|
378
|
+
function withJsonInputOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
379
379
|
return command
|
|
380
380
|
.option('--file <path>', 'Read request JSON or YAML from file')
|
|
381
381
|
.option('--stdin', 'Read request JSON or YAML from stdin')
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
function withOutputOptions<
|
|
384
|
+
function withOutputOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
385
385
|
return command.option('--json', 'Print raw JSON response').option('--yaml', 'Print raw YAML response')
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
-
function handleAlertCommandError(error: unknown, command?: Command) {
|
|
388
|
+
function handleAlertCommandError(error: unknown, command?: Command<any[], any, any>) {
|
|
389
389
|
if (
|
|
390
390
|
error instanceof CliError &&
|
|
391
391
|
(error.message.startsWith('Project is required.') ||
|
|
@@ -521,14 +521,14 @@ function isRecord(value: unknown): value is Record<string, unknown> {
|
|
|
521
521
|
return Boolean(value) && typeof value === 'object' && !Array.isArray(value)
|
|
522
522
|
}
|
|
523
523
|
|
|
524
|
-
function withAuthOptions<
|
|
524
|
+
function withAuthOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
525
525
|
return command
|
|
526
526
|
.option('--host <host>', 'Override Sentio host')
|
|
527
527
|
.option('--api-key <key>', 'Use an explicit API key instead of saved credentials')
|
|
528
528
|
.option('--token <token>', 'Use an explicit bearer token instead of saved credentials')
|
|
529
529
|
}
|
|
530
530
|
|
|
531
|
-
function withSharedProjectOptions<
|
|
531
|
+
function withSharedProjectOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
532
532
|
return command
|
|
533
533
|
.option('--project <project>', 'Sentio project as <owner>/<slug> or <slug>')
|
|
534
534
|
.option('--owner <owner>', 'Sentio project owner')
|
|
@@ -536,11 +536,11 @@ function withSharedProjectOptions<T extends Command<any, any, any>>(command: T)
|
|
|
536
536
|
.option('--project-id <id>', 'Sentio project id')
|
|
537
537
|
}
|
|
538
538
|
|
|
539
|
-
function withOutputOptions<
|
|
539
|
+
function withOutputOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
540
540
|
return command.option('--json', 'Print raw JSON response').option('--yaml', 'Print raw YAML response')
|
|
541
541
|
}
|
|
542
542
|
|
|
543
|
-
function handleDashboardCommandError(error: unknown, command?: Command) {
|
|
543
|
+
function handleDashboardCommandError(error: unknown, command?: Command<any[], any, any>) {
|
|
544
544
|
if (
|
|
545
545
|
error instanceof CliError &&
|
|
546
546
|
(error.message.startsWith('Project is required.') ||
|
package/src/commands/data.ts
CHANGED
|
@@ -566,14 +566,14 @@ async function runSqlExecutionRead(
|
|
|
566
566
|
printOutput(options, data)
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
-
function withAuthOptions<
|
|
569
|
+
function withAuthOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
570
570
|
return command
|
|
571
571
|
.option('--host <host>', 'Override Sentio host')
|
|
572
572
|
.option('--api-key <key>', 'Use an explicit API key instead of saved credentials')
|
|
573
573
|
.option('--token <token>', 'Use an explicit bearer token instead of saved credentials')
|
|
574
574
|
}
|
|
575
575
|
|
|
576
|
-
function withSharedProjectOptions<
|
|
576
|
+
function withSharedProjectOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
577
577
|
return command
|
|
578
578
|
.option('--project <project>', 'Sentio project as <owner>/<slug> or <slug>')
|
|
579
579
|
.option('--owner <owner>', 'Sentio project owner')
|
|
@@ -581,19 +581,19 @@ function withSharedProjectOptions<T extends Command<any, any, any>>(command: T)
|
|
|
581
581
|
.option('--project-id <id>', 'Sentio project id')
|
|
582
582
|
}
|
|
583
583
|
|
|
584
|
-
function withJsonInputOptions<
|
|
584
|
+
function withJsonInputOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
585
585
|
return command
|
|
586
586
|
.option('--file <path>', 'Read request JSON or YAML from file')
|
|
587
587
|
.option('--stdin', 'Read request JSON or YAML from stdin')
|
|
588
588
|
}
|
|
589
589
|
|
|
590
|
-
function withQueryInputOptions<
|
|
590
|
+
function withQueryInputOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
591
591
|
return command
|
|
592
592
|
.option('--file <path>', 'Read request JSON or YAML from file. Use --doc to show the full insight query format')
|
|
593
593
|
.option('--stdin', 'Read request JSON or YAML from stdin. Use --doc to show the full insight query format')
|
|
594
594
|
}
|
|
595
595
|
|
|
596
|
-
function withOutputOptions<
|
|
596
|
+
function withOutputOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
597
597
|
return command
|
|
598
598
|
.showHelpAfterError()
|
|
599
599
|
.option('--json', 'Print raw JSON response')
|
|
@@ -617,7 +617,7 @@ function printJson(data: unknown) {
|
|
|
617
617
|
console.log(JSON.stringify(data, null, 2))
|
|
618
618
|
}
|
|
619
619
|
|
|
620
|
-
function handleDataCommandError(error: unknown, command?: Command) {
|
|
620
|
+
function handleDataCommandError(error: unknown, command?: Command<any[], any, any>) {
|
|
621
621
|
if (error instanceof CliError && shouldShowHelpForDataCommandError(error)) {
|
|
622
622
|
console.error(chalk.red(error.message))
|
|
623
623
|
if (command) {
|
package/src/commands/endpoint.ts
CHANGED
|
@@ -366,14 +366,14 @@ async function runEndpointTest(options: EndpointTestOptions) {
|
|
|
366
366
|
})
|
|
367
367
|
}
|
|
368
368
|
|
|
369
|
-
function withAuthOptions<
|
|
369
|
+
function withAuthOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
370
370
|
return command
|
|
371
371
|
.option('--host <host>', 'Override Sentio host')
|
|
372
372
|
.option('--api-key <key>', 'Use an explicit API key instead of saved credentials')
|
|
373
373
|
.option('--token <token>', 'Use an explicit bearer token instead of saved credentials')
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
-
function withSharedProjectOptions<
|
|
376
|
+
function withSharedProjectOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
377
377
|
return command
|
|
378
378
|
.option('--project <project>', 'Sentio project as <owner>/<slug> or <slug>')
|
|
379
379
|
.option('--owner <owner>', 'Sentio project owner')
|
|
@@ -381,11 +381,11 @@ function withSharedProjectOptions<T extends Command<any, any, any>>(command: T)
|
|
|
381
381
|
.option('--project-id <id>', 'Sentio project id')
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
function withOutputOptions<
|
|
384
|
+
function withOutputOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
385
385
|
return command.option('--json', 'Print raw JSON response').option('--yaml', 'Print raw YAML response')
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
-
function handleEndpointCommandError(error: unknown, command?: Command) {
|
|
388
|
+
function handleEndpointCommandError(error: unknown, command?: Command<any[], any, any>) {
|
|
389
389
|
if (
|
|
390
390
|
error instanceof CliError &&
|
|
391
391
|
(error.message.startsWith('Project is required.') ||
|
package/src/commands/price.ts
CHANGED
|
@@ -185,24 +185,24 @@ async function runPriceCheckLatest(options: PriceOptions) {
|
|
|
185
185
|
printOutput(options, unwrapApiResult(response))
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
function withAuthOptions<
|
|
188
|
+
function withAuthOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
189
189
|
return command
|
|
190
190
|
.option('--host <host>', 'Override Sentio host')
|
|
191
191
|
.option('--api-key <key>', 'Use an explicit API key instead of saved credentials')
|
|
192
192
|
.option('--token <token>', 'Use an explicit bearer token instead of saved credentials')
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
function withJsonInputOptions<
|
|
195
|
+
function withJsonInputOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
196
196
|
return command
|
|
197
197
|
.option('--file <path>', 'Read request JSON or YAML from file')
|
|
198
198
|
.option('--stdin', 'Read request JSON or YAML from stdin')
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
function withOutputOptions<
|
|
201
|
+
function withOutputOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
202
202
|
return command.option('--json', 'Print raw JSON response').option('--yaml', 'Print raw YAML response')
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
function handlePriceCommandError(error: unknown, command?: Command) {
|
|
205
|
+
function handlePriceCommandError(error: unknown, command?: Command<any[], any, any>) {
|
|
206
206
|
if (
|
|
207
207
|
error instanceof CliError &&
|
|
208
208
|
(error.message.startsWith('Provide exactly one coin identifier.') ||
|
|
@@ -478,14 +478,14 @@ function colorSeverity(severity: string): string {
|
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
|
|
481
|
-
function withAuthOptions<
|
|
481
|
+
function withAuthOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
482
482
|
return command
|
|
483
483
|
.option('--host <host>', 'Override Sentio host')
|
|
484
484
|
.option('--api-key <key>', 'Use an explicit API key instead of saved credentials')
|
|
485
485
|
.option('--token <token>', 'Use an explicit bearer token instead of saved credentials')
|
|
486
486
|
}
|
|
487
487
|
|
|
488
|
-
function withSharedProjectOptions<
|
|
488
|
+
function withSharedProjectOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
489
489
|
return command
|
|
490
490
|
.option('--project <owner/slug>', 'Sentio project in <owner>/<slug> format')
|
|
491
491
|
.option('--owner <owner>', 'Sentio project owner')
|
|
@@ -493,11 +493,11 @@ function withSharedProjectOptions<T extends Command<any, any, any>>(command: T)
|
|
|
493
493
|
.option('--project-id <id>', 'Sentio project id')
|
|
494
494
|
}
|
|
495
495
|
|
|
496
|
-
function withOutputOptions<
|
|
496
|
+
function withOutputOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
497
497
|
return command.option('--json', 'Print raw JSON response').option('--yaml', 'Print raw YAML response')
|
|
498
498
|
}
|
|
499
499
|
|
|
500
|
-
function handleProcessorCommandError(error: unknown, command?: Command) {
|
|
500
|
+
function handleProcessorCommandError(error: unknown, command?: Command<any[], any, any>) {
|
|
501
501
|
if (
|
|
502
502
|
error instanceof CliError &&
|
|
503
503
|
(error.message.startsWith('Project is required.') ||
|
package/src/commands/project.ts
CHANGED
|
@@ -267,14 +267,14 @@ async function fetchProjectBySlug(options: ProjectLookupOptions, context: Return
|
|
|
267
267
|
return fetchApiJson<{ project?: ProjectSummary }>(`/api/v1/project/${project.owner}/${project.slug}`, context)
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
function withAuthOptions<
|
|
270
|
+
function withAuthOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
271
271
|
return command
|
|
272
272
|
.option('--host <host>', 'Override Sentio host')
|
|
273
273
|
.option('--api-key <key>', 'Use an explicit API key instead of saved credentials')
|
|
274
274
|
.option('--token <token>', 'Use an explicit bearer token instead of saved credentials')
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
-
function withSharedProjectOptions<
|
|
277
|
+
function withSharedProjectOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
278
278
|
return command
|
|
279
279
|
.option('--project <owner/slug>', 'Sentio project in <owner>/<slug> format')
|
|
280
280
|
.option('--owner <owner>', 'Sentio project owner')
|
|
@@ -282,11 +282,11 @@ function withSharedProjectOptions<T extends Command<any, any, any>>(command: T)
|
|
|
282
282
|
.option('--project-id <id>', 'Sentio project id')
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
function withOutputOptions<
|
|
285
|
+
function withOutputOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
286
286
|
return command.option('--json', 'Print raw JSON response').option('--yaml', 'Print raw YAML response')
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
function handleProjectCommandError(error: unknown, command?: Command) {
|
|
289
|
+
function handleProjectCommandError(error: unknown, command?: Command<any[], any, any>) {
|
|
290
290
|
if (
|
|
291
291
|
error instanceof CliError &&
|
|
292
292
|
(error.message.startsWith('Project is required.') ||
|
|
@@ -369,14 +369,14 @@ function buildTraceQuery(options: SimulationTraceOptions) {
|
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
-
function withAuthOptions<
|
|
372
|
+
function withAuthOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
373
373
|
return command
|
|
374
374
|
.option('--host <host>', 'Override Sentio host')
|
|
375
375
|
.option('--api-key <key>', 'Use an explicit API key instead of saved credentials')
|
|
376
376
|
.option('--token <token>', 'Use an explicit bearer token instead of saved credentials')
|
|
377
377
|
}
|
|
378
378
|
|
|
379
|
-
function withSharedProjectOptions<
|
|
379
|
+
function withSharedProjectOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
380
380
|
return command
|
|
381
381
|
.option('--project <owner/slug>', 'Sentio project in <owner>/<slug> format')
|
|
382
382
|
.option('--owner <owner>', 'Sentio project owner')
|
|
@@ -384,17 +384,17 @@ function withSharedProjectOptions<T extends Command<any, any, any>>(command: T)
|
|
|
384
384
|
.option('--project-id <id>', 'Sentio project id')
|
|
385
385
|
}
|
|
386
386
|
|
|
387
|
-
function withJsonInputOptions<
|
|
387
|
+
function withJsonInputOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
388
388
|
return command
|
|
389
389
|
.option('--file <path>', 'Read request JSON or YAML from file')
|
|
390
390
|
.option('--stdin', 'Read request JSON or YAML from stdin')
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
function withOutputOptions<
|
|
393
|
+
function withOutputOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
394
394
|
return command.option('--json', 'Print raw JSON response').option('--yaml', 'Print raw YAML response')
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
-
function withTraceOptions<
|
|
397
|
+
function withTraceOptions<Args extends any[]>(command: Command<Args, any, any>) {
|
|
398
398
|
return command
|
|
399
399
|
.option('--chain-id <id>', 'Chain id')
|
|
400
400
|
.option('--with-internal-calls', 'Fetch decoded trace with internal calls')
|
|
@@ -402,7 +402,7 @@ function withTraceOptions<T extends Command<any, any, any>>(command: T) {
|
|
|
402
402
|
.option('--ignore-gas-cost', 'Ignore gas cost when optimizer is disabled')
|
|
403
403
|
}
|
|
404
404
|
|
|
405
|
-
function handleSimulationCommandError(error: unknown, command?: Command) {
|
|
405
|
+
function handleSimulationCommandError(error: unknown, command?: Command<any[], any, any>) {
|
|
406
406
|
if (
|
|
407
407
|
error instanceof CliError &&
|
|
408
408
|
(error.message.startsWith('Project is required.') ||
|