@wowok/wowok 3.0.5 → 3.0.6
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/esm/Transaction-CrzrFqPW.mjs +1 -0
- package/dist/esm/arb-CNTnpKU4.mjs +1 -0
- package/dist/esm/call-Zj4BGD5O.mjs +1 -0
- package/dist/esm/client/index.d.mts +2 -2
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client-HlvevC--.mjs +1 -0
- package/dist/esm/common-DhtZTgkX.mjs +1 -0
- package/dist/esm/{config-BQzrNhZ8.d.mts → config-AuT9_n2K.d.mts} +6 -6
- package/dist/esm/constants-BGKNJZYa.mjs +1 -0
- package/dist/esm/cryptography/index.d.mts +1 -1
- package/dist/esm/cryptography/index.mjs +1 -1
- package/dist/esm/ed25519-Cjw5WOqY.mjs +1 -1
- package/dist/esm/falcon512-CnEZ-g-L.mjs +1 -1
- package/dist/esm/faucet/index.mjs +1 -1
- package/dist/esm/fund-approval-B0Y1YRF5.mjs +1 -0
- package/dist/esm/graphql/index.d.mts +1 -1
- package/dist/esm/graphql/index.mjs +1 -1
- package/dist/esm/graphql-Dm6C2KN9.mjs +1 -0
- package/dist/esm/grpc/index.d.mts +1 -1
- package/dist/esm/grpc/index.mjs +1 -1
- package/dist/esm/grpc-AmhWNnDx.mjs +1 -0
- package/dist/esm/{index-rkqH73U5.d.mts → index-5DmaIrpk.d.mts} +2095 -2015
- package/dist/esm/{index-B7GX5gzh.d.mts → index-Bs4A3nTL.d.mts} +2 -1
- package/dist/esm/index.d.mts +4 -4
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/jsonRpc/index.d.mts +1 -1
- package/dist/esm/jsonRpc/index.mjs +1 -1
- package/dist/esm/keypair-IIyGelNr.mjs +1 -1
- package/dist/esm/keypairs/ed25519/index.d.mts +1 -1
- package/dist/esm/keypairs/ed25519/index.mjs +1 -1
- package/dist/esm/keypairs/falcon512/index.d.mts +1 -1
- package/dist/esm/keypairs/falcon512/index.mjs +1 -1
- package/dist/esm/keypairs/passkey/index.d.mts +1 -1
- package/dist/esm/keypairs/passkey/index.mjs +1 -1
- package/dist/esm/keypairs/secp256k1/index.d.mts +1 -1
- package/dist/esm/keypairs/secp256k1/index.mjs +1 -1
- package/dist/esm/keypairs/secp256r1/index.d.mts +1 -1
- package/dist/esm/keypairs/secp256r1/index.mjs +1 -1
- package/dist/esm/messenger-Cq0kGhTg.mjs +1 -0
- package/dist/esm/messenger-api-DdKAABD8.mjs +1 -0
- package/dist/esm/multisig/index.d.mts +1 -1
- package/dist/esm/multisig/index.mjs +1 -1
- package/dist/esm/{network-CBo-AsLD.mjs → network-UpRYD8EM.mjs} +1 -1
- package/dist/esm/proof-BgXYvVg_.mjs +1 -0
- package/dist/esm/received-BumlehnN.mjs +1 -0
- package/dist/esm/service-Bf6Sljmf.mjs +1 -0
- package/dist/esm/transactions/index.d.mts +1 -1
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/{transactions-B0rmtDin.mjs → transactions-HEsbZ5tl.mjs} +1 -1
- package/dist/esm/util-DttciwF8.mjs +1 -0
- package/dist/esm/util-kGpbSSrV.mjs +1 -0
- package/dist/esm/utils/index.d.mts +2 -2
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils-CFfdvJ-L.mjs +1 -0
- package/dist/esm/verify/index.d.mts +1 -1
- package/dist/esm/verify/index.mjs +1 -1
- package/dist/esm/w/call/allocation.d.mts +1 -1
- package/dist/esm/w/call/allocation.mjs +1 -1
- package/dist/esm/w/call/arbitration.d.mts +1 -1
- package/dist/esm/w/call/arbitration.mjs +1 -1
- package/dist/esm/w/call/base.d.mts +1 -1
- package/dist/esm/w/call/base.mjs +1 -1
- package/dist/esm/w/call/demand.d.mts +1 -1
- package/dist/esm/w/call/demand.mjs +1 -1
- package/dist/esm/w/call/guard.d.mts +1 -1
- package/dist/esm/w/call/guard.mjs +1 -1
- package/dist/esm/w/call/index.d.mts +1 -1
- package/dist/esm/w/call/index.mjs +1 -1
- package/dist/esm/w/call/machine.d.mts +1 -1
- package/dist/esm/w/call/machine.mjs +1 -1
- package/dist/esm/w/call/passport.d.mts +1 -1
- package/dist/esm/w/call/passport.mjs +1 -1
- package/dist/esm/w/call/payment.d.mts +1 -1
- package/dist/esm/w/call/payment.mjs +1 -1
- package/dist/esm/w/call/permission.d.mts +1 -1
- package/dist/esm/w/call/permission.mjs +1 -1
- package/dist/esm/w/call/progress.d.mts +1 -1
- package/dist/esm/w/call/progress.mjs +1 -1
- package/dist/esm/w/call/repository.d.mts +1 -1
- package/dist/esm/w/call/repository.mjs +1 -1
- package/dist/esm/w/call/reward.d.mts +1 -1
- package/dist/esm/w/call/reward.mjs +1 -1
- package/dist/esm/w/call/service.d.mts +1 -1
- package/dist/esm/w/call/service.mjs +1 -1
- package/dist/esm/w/call/treasury.d.mts +1 -1
- package/dist/esm/w/call/treasury.mjs +1 -1
- package/dist/esm/w/common.d.mts +2 -2
- package/dist/esm/w/common.mjs +1 -1
- package/dist/esm/w/index.d.mts +3 -3
- package/dist/esm/w/index.mjs +1 -1
- package/dist/esm/w/local/account.d.mts +1 -1
- package/dist/esm/w/local/account.mjs +1 -1
- package/dist/esm/w/local/cache.mjs +1 -1
- package/dist/esm/w/local/config.d.mts +1 -1
- package/dist/esm/w/local/config.mjs +1 -1
- package/dist/esm/w/local/evm/networks.mjs +1 -1
- package/dist/esm/w/local/evm-account.mjs +1 -1
- package/dist/esm/w/local/fund-approval.mjs +1 -1
- package/dist/esm/w/local/index.d.mts +2 -2
- package/dist/esm/w/local/index.mjs +1 -1
- package/dist/esm/w/local/local.mjs +1 -1
- package/dist/esm/w/local/secure-storage.mjs +1 -1
- package/dist/esm/w/local/storage.mjs +1 -1
- package/dist/esm/w/local/token.d.mts +1 -1
- package/dist/esm/w/local/token.mjs +1 -1
- package/dist/esm/w/local/util.mjs +1 -1
- package/dist/esm/w/local/wip.mjs +1 -1
- package/dist/esm/w/messenger/index.d.mts +2 -2
- package/dist/esm/w/messenger/index.mjs +1 -1
- package/dist/esm/w/messenger/messenger-api.d.mts +2 -2
- package/dist/esm/w/messenger/messenger-api.mjs +1 -1
- package/dist/esm/w/messenger/messenger.d.mts +1 -1
- package/dist/esm/w/messenger/messenger.mjs +1 -1
- package/dist/esm/w/messenger/pq/crypto.mjs +1 -1
- package/dist/esm/w/messenger/reply.d.mts +1 -1
- package/dist/esm/w/messenger/storage.d.mts +14 -1
- package/dist/esm/w/messenger/storage.mjs +1 -1
- package/dist/esm/w/messenger/types.d.mts +1 -1
- package/dist/esm/w/messenger/types.mjs +1 -1
- package/dist/esm/w/query/index.d.mts +2 -2
- package/dist/esm/w/query/index.mjs +1 -1
- package/dist/esm/w/query/object.d.mts +2 -2
- package/dist/esm/w/query/object.mjs +1 -1
- package/dist/esm/{w-Dy0Ppp83.mjs → w-DcAJ-L_L.mjs} +1 -1
- package/package.json +4 -1
- package/dist/esm/Transaction-DY5xZw9i.mjs +0 -1
- package/dist/esm/arb-BqAtS7Pe.mjs +0 -1
- package/dist/esm/call-DxE2SCFZ.mjs +0 -1
- package/dist/esm/client-DQVGu_Cf.mjs +0 -1
- package/dist/esm/common-vAC0KZQY.mjs +0 -1
- package/dist/esm/fund-approval-Cp3ON1v1.mjs +0 -1
- package/dist/esm/graphql-CIIj4T15.mjs +0 -1
- package/dist/esm/grpc-DaxgGfSP.mjs +0 -1
- package/dist/esm/messenger-BUHGIRHr.mjs +0 -1
- package/dist/esm/messenger-api-BEQ8fXaK.mjs +0 -1
- package/dist/esm/object-CC_ukGim.mjs +0 -1
- package/dist/esm/proof-CuRa15Mj.mjs +0 -1
- package/dist/esm/received-CABySB6M.mjs +0 -1
- package/dist/esm/service-Dp5U4zH1.mjs +0 -1
- package/dist/esm/util-C1S-xatf.mjs +0 -1
- package/dist/esm/utils-DL1Wk3E9.mjs +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { a as TypeTag } from "./type-tag-serializer-BOCNO96r.mjs";
|
|
2
2
|
import { c as PureTypeName, l as ShapeFromPureTypeName, s as wowBcs, u as ValidPureTypeName } from "./index-B-cxGU73.mjs";
|
|
3
3
|
import { r as MoveTypeLayout } from "./types-C7yfY8U4.mjs";
|
|
4
|
-
import { i as ENTRYPOINT } from "./config-
|
|
4
|
+
import { i as ENTRYPOINT } from "./config-AuT9_n2K.mjs";
|
|
5
5
|
import { t as IAccountStorage } from "./storage-C_8llI0r.mjs";
|
|
6
6
|
import { n as EncryptionMode } from "./secure-storage-WrSCAIOu.mjs";
|
|
7
|
-
import { a as HistoryVisit, b as MarkData, f as LocalInfoFilter, g as LocalMarkFilter, n as HistoryEntry, o as InfoData, x as MarkParam } from "./local-Cizo_1J5.mjs";
|
|
8
7
|
import { n as CacheExpireType } from "./cache-sUKNe0-P.mjs";
|
|
8
|
+
import { a as HistoryVisit, b as MarkData, f as LocalInfoFilter, g as LocalMarkFilter, n as HistoryEntry, o as InfoData, x as MarkParam } from "./local-Cizo_1J5.mjs";
|
|
9
9
|
import { BcsType, EnumInputShape, EnumOutputShape, SerializedBcs } from "@mysten/bcs";
|
|
10
|
-
import { Simplify, UnionToIntersection } from "@mysten/utils";
|
|
11
10
|
import { GenericSchema, InferInput, InferOutput, ObjectSchema } from "valibot";
|
|
11
|
+
import { Simplify, UnionToIntersection } from "@mysten/utils";
|
|
12
12
|
import { DocumentNode } from "graphql";
|
|
13
13
|
import { BinaryReadOptions, BinaryWriteOptions, IBinaryReader, IBinaryWriter, IMessageType, JsonReadOptions, JsonValue, JsonWriteOptions, MessageType, PartialMessage } from "@protobuf-ts/runtime";
|
|
14
14
|
import { GrpcWebFetchTransport as GrpcWebFetchTransport$1, GrpcWebOptions, GrpcWebOptions as GrpcWebOptions$1 } from "@protobuf-ts/grpcweb-transport";
|
|
@@ -15247,1048 +15247,225 @@ declare class Account {
|
|
|
15247
15247
|
count_messenger_accounts(): Promise<number>;
|
|
15248
15248
|
}
|
|
15249
15249
|
//#endregion
|
|
15250
|
-
//#region src/w/
|
|
15251
|
-
|
|
15252
|
-
|
|
15253
|
-
|
|
15254
|
-
|
|
15250
|
+
//#region src/w/exception.d.ts
|
|
15251
|
+
declare enum WErrors {
|
|
15252
|
+
AccountNotFound = "account not found",
|
|
15253
|
+
AddressNotFound = "address not found",
|
|
15254
|
+
IsValidDescription = "invalid description",
|
|
15255
|
+
IsValidName = "invalid name",
|
|
15256
|
+
IsValidName_AllowEmpty = "invalid name",
|
|
15257
|
+
IsValidEndpoint = "invalid endpoint",
|
|
15258
|
+
IsValidAddress = "invalid address",
|
|
15259
|
+
IsValidArgType = "invalid argument type",
|
|
15260
|
+
IsValidTokenType = "invalid token type",
|
|
15261
|
+
IsValidUint = "invalid uint",
|
|
15262
|
+
IsValidInt = "invalid int",
|
|
15263
|
+
IsValidU8 = "invalid u8",
|
|
15264
|
+
IsValidU16 = "invalid u16",
|
|
15265
|
+
IsValidU32 = "invalid u32",
|
|
15266
|
+
IsValidU64 = "invalid u64",
|
|
15267
|
+
IsValidU128 = "invalid u128",
|
|
15268
|
+
IsValidU256 = "invalid u256",
|
|
15269
|
+
IsValidRate = "invalid rate[0-10000]",
|
|
15270
|
+
IsValidArray = "invalid array",
|
|
15271
|
+
IsValidObjects = "invalid objects",
|
|
15272
|
+
AllInvalid = "one valid at least",
|
|
15273
|
+
InvalidParam = "invalid parameter",
|
|
15274
|
+
IsValidPermissionIndex = "invalid permission index",
|
|
15275
|
+
IsValidKey = "invalid key",
|
|
15276
|
+
Fail = "fail",
|
|
15277
|
+
IsValidIdentifier = "identifier invalid",
|
|
15278
|
+
IsValidHttpUrl = "invalid url",
|
|
15279
|
+
IsValidBizPermissionIndex = "invalid biz-permission id[1000 - 65535]",
|
|
15280
|
+
BcsTypeInvalid = "invalid bcs type",
|
|
15281
|
+
IsValidServiceItemName = "invalid service item name",
|
|
15282
|
+
IsValidCoinType = "not the coin type",
|
|
15283
|
+
IsValidGuardIdentifier = "guard identifier invalid",
|
|
15284
|
+
NoPermission = "no permission",
|
|
15285
|
+
IsValidValue = "invalid value",
|
|
15286
|
+
IsValidValueType = "invalid value type",
|
|
15287
|
+
IsValidLocation = "invalid location",
|
|
15288
|
+
NetworkInvalid = "protocol network not specified",
|
|
15289
|
+
WitnessTypeInvalid = "witness type invalid",
|
|
15290
|
+
AddressCountExceeded = "address count exceeded",
|
|
15291
|
+
NumberCountExceeded = "number count exceeded",
|
|
15292
|
+
NewGuardCheckFailed = "new guard check failed",
|
|
15293
|
+
GuardTableItemLengthExceeded = "guard table item length exceeded",
|
|
15294
|
+
AccountPersistentStorageNotSet = "account persistent storage not set",
|
|
15295
|
+
AccountPersistentStorageNotFound = "account persistent storage not found",
|
|
15296
|
+
AccountNameExist = "account name exist",
|
|
15297
|
+
ConfigPersistentStorageNotSet = "config persistent storage not set",
|
|
15298
|
+
TokenNotFoundLocally = "token not found",
|
|
15299
|
+
LocalMarkNameExist = "local mark name exist",
|
|
15300
|
+
MaxObjectsPerQuery = "max objects per query",
|
|
15301
|
+
ResourceTagCountExceeded = "resource tag count exceeded",
|
|
15302
|
+
ParseObjectContentFailed = "parse object content failed"
|
|
15255
15303
|
}
|
|
15256
|
-
|
|
15257
|
-
|
|
15258
|
-
|
|
15259
|
-
|
|
15304
|
+
declare class WException extends Error {
|
|
15305
|
+
readonly code: WErrors;
|
|
15306
|
+
readonly details?: unknown;
|
|
15307
|
+
readonly path?: string;
|
|
15308
|
+
constructor(error: WErrors, details?: unknown, path?: string);
|
|
15309
|
+
getErrorMessage(): string;
|
|
15310
|
+
getErrorCode(): WErrors;
|
|
15311
|
+
getDetails(): unknown;
|
|
15260
15312
|
}
|
|
15261
|
-
|
|
15262
|
-
|
|
15263
|
-
|
|
15313
|
+
/**
|
|
15314
|
+
* 类型守卫函数,用于判断一个值是否为 WException 类型
|
|
15315
|
+
* @param error - 待判断的值
|
|
15316
|
+
* @returns 如果是 WException 类型则返回 true,同时 TypeScript 会收窄类型
|
|
15317
|
+
*/
|
|
15318
|
+
declare function isWException(error: unknown): error is WException;
|
|
15319
|
+
declare const W_ERROR: (error: WErrors, details?: unknown, path?: string) => never;
|
|
15320
|
+
type WResult<T> = {
|
|
15321
|
+
success: true;
|
|
15322
|
+
data: T;
|
|
15323
|
+
} | {
|
|
15324
|
+
success: false;
|
|
15325
|
+
error: WException;
|
|
15326
|
+
};
|
|
15327
|
+
declare const W_SUCCESS: <T>(data: T) => WResult<T>;
|
|
15328
|
+
declare const W_FAILURE: (error: WErrors, details?: unknown) => WResult<never>;
|
|
15329
|
+
/**
|
|
15330
|
+
* 异常处理装饰器
|
|
15331
|
+
* 捕获函数执行过程中的非 WException 异常,将其包装为 WException 后重新抛出
|
|
15332
|
+
* @param fn - 需要装饰的函数,参数和返回值类型保持不变
|
|
15333
|
+
* @returns 装饰后的函数,类型与原函数一致
|
|
15334
|
+
*/
|
|
15335
|
+
declare function WValidate<T extends (...args: any[]) => any>(fn: T): T;
|
|
15336
|
+
declare const W_SAFE: <T>(fn: () => T, error?: WErrors, details?: unknown) => WResult<T>;
|
|
15337
|
+
declare const W_ENSURE: (condition: boolean, error: WErrors, details?: unknown) => void;
|
|
15338
|
+
declare const W_VALIDATE_PARAM: (param: unknown, validator: (value: unknown) => boolean, error: WErrors, details?: unknown) => void;
|
|
15339
|
+
interface MoveModuleError {
|
|
15340
|
+
module: string;
|
|
15341
|
+
code: number;
|
|
15342
|
+
description: string;
|
|
15343
|
+
}
|
|
15344
|
+
declare const MoveErrors: MoveModuleError[];
|
|
15345
|
+
declare function getMoveErrorDescription(module: string, code: number): string | null;
|
|
15346
|
+
/**
|
|
15347
|
+
* Check whether a parsed ModuleId address belongs to a Wowok system package:
|
|
15348
|
+
* the Wowok framework (0x2) or move-stdlib (0x1).
|
|
15349
|
+
*
|
|
15350
|
+
* Address shapes seen across the two wire formats:
|
|
15351
|
+
* - dry-run Debug text: 64 hex chars WITHOUT the 0x prefix
|
|
15352
|
+
* ("address: 0000…0002") — the raw Debug of AccountAddress;
|
|
15353
|
+
* - formatted effects text: 0x-prefixed, full or shortened ("0x0000…0002", "0x2").
|
|
15354
|
+
*
|
|
15355
|
+
* Normalizes to the minimal hex form (0x and leading zeros stripped) instead
|
|
15356
|
+
* of exact-matching a fixed 0x-prefixed set — the exact match never hit the
|
|
15357
|
+
* dry-run shape, so enrichMoveError never enriched dry-run errors (the very
|
|
15358
|
+
* format shown in its own doc comment). Mirrors the MCP's
|
|
15359
|
+
* extractMoveAbortInfo normalization — keep the two in sync.
|
|
15360
|
+
*/
|
|
15361
|
+
declare function isWowokSystemAddress(address: string): boolean;
|
|
15362
|
+
/**
|
|
15363
|
+
* Parse MoveAbort error and enrich with human-readable description
|
|
15364
|
+
* Matches error against MoveErrors table using module name and error code
|
|
15365
|
+
* Only matches errors from Wowok framework (address 0x2)
|
|
15366
|
+
* @param errorMessage Original error message containing MoveAbort
|
|
15367
|
+
* @returns Enriched error message with description if match found
|
|
15368
|
+
*/
|
|
15369
|
+
declare function enrichMoveError(errorMessage: string): string;
|
|
15370
|
+
//#endregion
|
|
15371
|
+
//#region src/w/call/onchain-constants.d.ts
|
|
15372
|
+
/**
|
|
15373
|
+
* On-chain constants — single source of truth for all numeric limits that
|
|
15374
|
+
* originate from the Move smart contracts in
|
|
15375
|
+
* `d:\wowok\wow\crates\wow-framework\packages\wow-framework\sources\w\*.move`.
|
|
15376
|
+
*
|
|
15377
|
+
* ## Why this file exists
|
|
15378
|
+
*
|
|
15379
|
+
* Before this module, each `*.ts` call file (machine.ts, permission.ts,
|
|
15380
|
+
* order.ts, ...) defined its own `export const MAX_* = N;` next to the call
|
|
15381
|
+
* site. This caused three problems:
|
|
15382
|
+
*
|
|
15383
|
+
* 1. **Drift risk** — when a Move constant changes, the SDK value must be
|
|
15384
|
+
* hunted down across many files. Several SDK files even redefined the
|
|
15385
|
+
* same name (e.g. `MAX_GUARD_COUNT` exists in demand.ts=20, reward.ts=200,
|
|
15386
|
+
* passport.move=20) with different values per object scope.
|
|
15387
|
+
* 2. **Magic numbers in MCP** — the MCP layer (d:\wowok\agent\mcp\src) had
|
|
15388
|
+
* to hardcode numbers like `1000` for `USER_DEFINED_PERM_INDEX_START`
|
|
15389
|
+
* without any import link, so risk rules and analyzers could silently
|
|
15390
|
+
* diverge from the SDK.
|
|
15391
|
+
* 3. **SDK aligned with chain** — the chain caps MAX_NODE_COUNT=100, and
|
|
15392
|
+
* the SDK/MCP enforces 100 to keep generated Machines reviewable. That
|
|
15393
|
+
* distinction was implicit; now it is explicit via the
|
|
15394
|
+
* `MAX_NODE_COUNT_SDK` field.
|
|
15395
|
+
*
|
|
15396
|
+
* ## How to use
|
|
15397
|
+
*
|
|
15398
|
+
* - **Inside the SDK** (`packages/wowok/src/w/call/*.ts`):
|
|
15399
|
+
* ```ts
|
|
15400
|
+
* // Before:
|
|
15401
|
+
* // export const MAX_NODE_COUNT = 100;
|
|
15402
|
+
* // if (nodes.length > MAX_NODE_COUNT) { ... }
|
|
15403
|
+
* // After:
|
|
15404
|
+
* import { MAX_NODE_COUNT } from "./onchain-constants.js";
|
|
15405
|
+
* if (nodes.length > MAX_NODE_COUNT) { ... }
|
|
15406
|
+
* ```
|
|
15407
|
+
* Re-export the named constant from the file where it was previously
|
|
15408
|
+
* defined, OR update internal references to import directly from here.
|
|
15409
|
+
*
|
|
15410
|
+
* - **Inside the MCP** (`agent/mcp/src/knowledge/*.ts`):
|
|
15411
|
+
* ```ts
|
|
15412
|
+
* import { ONCHAIN_CONSTANTS, USER_DEFINED_PERM_INDEX_START } from "@wowok/wowok";
|
|
15413
|
+
* ```
|
|
15414
|
+
* The MCP layer must NEVER redefine these numbers — it imports them.
|
|
15415
|
+
*
|
|
15416
|
+
* - **Inside smart contracts** (`wow-framework/.../w/*.move`):
|
|
15417
|
+
* Unchanged. The Move `const` declarations remain the chain-level source
|
|
15418
|
+
* of truth. This file mirrors them via the `Move source:` JSDoc tags.
|
|
15419
|
+
*
|
|
15420
|
+
* ## Synchronization guarantee
|
|
15421
|
+
*
|
|
15422
|
+
* A unit test in
|
|
15423
|
+
* `agent/mcp/src/knowledge/__tests__/onchain-constants.spec.ts` asserts:
|
|
15424
|
+
* 1. Every value exported here equals the corresponding Move constant
|
|
15425
|
+
* (parsed from `*.move` source).
|
|
15426
|
+
* 2. The MCP import of each constant equals the SDK export (no drift).
|
|
15427
|
+
*
|
|
15428
|
+
* If you change a value here, also update the corresponding `*.move` const
|
|
15429
|
+
* (or vice versa) and run the sync test.
|
|
15430
|
+
*
|
|
15431
|
+
* ## Naming conventions
|
|
15432
|
+
*
|
|
15433
|
+
* - Constants keep their Move name verbatim (e.g. `MAX_FORWARD_ORDER_COUNT`,
|
|
15434
|
+
* not a re-spelled variant).
|
|
15435
|
+
* - When the SDK intentionally enforces a stricter value than the chain, the
|
|
15436
|
+
* chain value is kept as `*_ONCHAIN` and the SDK value as `*_SDK`, with a
|
|
15437
|
+
* bare `MAX_NODE_COUNT` alias pointing to the SDK value for ergonomics.
|
|
15438
|
+
* - `USER_DEFINED_PERM_INDEX_START` is defined in Move as
|
|
15439
|
+
* `permission.move:17 const USER_DEFINED_PERM_INDEX_START: u16 = 1000;`
|
|
15440
|
+
* and enforced by `permission::USER_DEFINED_PERM_INDEX()` (package-only
|
|
15441
|
+
* assert). The constant is mirrored here so MCP risk rules (R-M3-08) can
|
|
15442
|
+
* import a single canonical value.
|
|
15443
|
+
*/
|
|
15444
|
+
/**
|
|
15445
|
+
* All on-chain numeric constants, grouped by source object.
|
|
15446
|
+
*
|
|
15447
|
+
* Frozen via `as const` so literal-type inference works in consumers
|
|
15448
|
+
* (e.g. `type PermIndex = number & { __brand: ... }` patterns).
|
|
15449
|
+
*/
|
|
15450
|
+
declare const ONCHAIN_CONSTANTS: {
|
|
15264
15451
|
/**
|
|
15265
|
-
*
|
|
15266
|
-
*
|
|
15452
|
+
* Chain-level maximum number of nodes a single Machine may contain.
|
|
15453
|
+
*
|
|
15454
|
+
* Move source: machine.move:23 `const MAX_NODE_COUNT: u64 = 100;`
|
|
15455
|
+
*
|
|
15456
|
+
* The chain caps at 100 (aligned with MAX_NODE_COUNT_SDK) so any Machine
|
|
15457
|
+
* that passes chain validation is also human-reviewable. Use
|
|
15458
|
+
* `MAX_NODE_COUNT` (the alias) for SDK-side validation; use this field
|
|
15459
|
+
* only when you need to compare against the chain hard limit (e.g. for
|
|
15460
|
+
* diagnostic messages).
|
|
15267
15461
|
*/
|
|
15268
|
-
|
|
15269
|
-
private cacheKey;
|
|
15462
|
+
readonly MAX_NODE_COUNT_ONCHAIN: 100;
|
|
15270
15463
|
/**
|
|
15271
|
-
*
|
|
15272
|
-
*
|
|
15273
|
-
*
|
|
15274
|
-
*
|
|
15275
|
-
*
|
|
15276
|
-
*/
|
|
15277
|
-
private static isValidMetadata;
|
|
15278
|
-
private fetch_imp;
|
|
15279
|
-
fetch(tokenType: string | null | undefined, alias?: string, network?: ENTRYPOINT): Promise<TokenTypeInfo | undefined>;
|
|
15280
|
-
list(filter?: TokenDataFilter, network?: ENTRYPOINT): Promise<TokenTypeInfo[]>;
|
|
15281
|
-
}
|
|
15282
|
-
//#endregion
|
|
15283
|
-
//#region src/w/local/index.d.ts
|
|
15284
|
-
interface AccountOrMark_Address {
|
|
15285
|
-
name_or_address?: string;
|
|
15286
|
-
local_mark_first?: boolean;
|
|
15287
|
-
}
|
|
15288
|
-
interface ManyAccountOrMark_Address {
|
|
15289
|
-
entities: AccountOrMark_Address[];
|
|
15290
|
-
check_all_founded?: boolean;
|
|
15291
|
-
}
|
|
15292
|
-
declare const GetAccountOrMark_Address: (entity?: AccountOrMark_Address | string) => Promise<string | undefined>;
|
|
15293
|
-
interface LocalNameByAddress {
|
|
15294
|
-
account?: string;
|
|
15295
|
-
local_mark?: string;
|
|
15296
|
-
address: string;
|
|
15297
|
-
}
|
|
15298
|
-
declare const GetLocalNamesByAddresses: (addresses: string[]) => Promise<LocalNameByAddress[]>;
|
|
15299
|
-
declare const GetManyAccountOrMark_Address: (entities: ManyAccountOrMark_Address) => Promise<string[]>;
|
|
15300
|
-
declare const query_local_mark_list: (filter: LocalMarkFilter | undefined | null) => Promise<MarkData[]>;
|
|
15301
|
-
declare const query_account_list: (filter?: AccountFilter) => Promise<AccountData[]>;
|
|
15302
|
-
declare const query_local_info_list: (filter?: LocalInfoFilter) => Promise<InfoData[]>;
|
|
15303
|
-
declare const query_local_token_list: (filter?: TokenDataFilter, network?: ENTRYPOINT) => Promise<TokenTypeInfo[]>;
|
|
15304
|
-
declare const query_local_mark: <T extends string | string[]>(name_or_address: T) => Promise<T extends string ? MarkData | undefined : (MarkData | undefined)[]>;
|
|
15305
|
-
declare const query_local_info: <T extends string | string[]>(name?: T) => Promise<T extends string ? InfoData | undefined : (InfoData | undefined)[]>;
|
|
15306
|
-
declare const query_local_info_default: <T extends string | string[]>(name?: T) => Promise<T extends string ? string | undefined : (string | undefined)[]>;
|
|
15307
|
-
interface QueryAccount {
|
|
15308
|
-
name_or_address?: string;
|
|
15309
|
-
balance?: boolean;
|
|
15310
|
-
coin?: {
|
|
15311
|
-
cursor?: string | null | undefined;
|
|
15312
|
-
limit?: number | null | undefined;
|
|
15313
|
-
};
|
|
15314
|
-
token_type?: string;
|
|
15315
|
-
network?: ENTRYPOINT;
|
|
15316
|
-
}
|
|
15317
|
-
interface QueryAccountResult {
|
|
15318
|
-
name_or_address?: string;
|
|
15319
|
-
address?: string;
|
|
15320
|
-
balance?: CoinBalance;
|
|
15321
|
-
coin?: PaginatedCoins;
|
|
15322
|
-
}
|
|
15323
|
-
declare const query_account: (query: QueryAccount) => Promise<QueryAccountResult>;
|
|
15324
|
-
type FaucetNetwork = ENTRYPOINT.Localnet | ENTRYPOINT.Testnet;
|
|
15325
|
-
interface AccountOperation {
|
|
15326
|
-
gen?: {
|
|
15327
|
-
name?: string;
|
|
15328
|
-
replaceExistName?: boolean;
|
|
15329
|
-
messenger?: boolean;
|
|
15330
|
-
};
|
|
15331
|
-
faucet?: {
|
|
15332
|
-
name_or_address?: string;
|
|
15333
|
-
network: FaucetNetwork;
|
|
15334
|
-
};
|
|
15335
|
-
suspend?: {
|
|
15336
|
-
name_or_address?: string;
|
|
15337
|
-
};
|
|
15338
|
-
resume?: {
|
|
15339
|
-
address: string;
|
|
15340
|
-
name?: string;
|
|
15341
|
-
};
|
|
15342
|
-
rename?: {
|
|
15343
|
-
name_or_address?: string;
|
|
15344
|
-
new_name: string;
|
|
15345
|
-
};
|
|
15346
|
-
swap_name?: {
|
|
15347
|
-
name_or_address1?: string;
|
|
15348
|
-
name_or_address2?: string;
|
|
15349
|
-
};
|
|
15350
|
-
transfer?: {
|
|
15351
|
-
name_or_address_from?: string;
|
|
15352
|
-
name_or_address_to?: string;
|
|
15353
|
-
amount: number | string | bigint;
|
|
15354
|
-
token_type?: string;
|
|
15355
|
-
network?: ENTRYPOINT;
|
|
15356
|
-
};
|
|
15357
|
-
get?: {
|
|
15358
|
-
name_or_address?: string;
|
|
15359
|
-
balance_required: string | bigint | number;
|
|
15360
|
-
token_type?: string;
|
|
15361
|
-
network?: ENTRYPOINT;
|
|
15362
|
-
};
|
|
15363
|
-
signData?: {
|
|
15364
|
-
name_or_address?: string;
|
|
15365
|
-
data: string | Uint8Array;
|
|
15366
|
-
data_encoding?: "utf8" | "base64" | "hex";
|
|
15367
|
-
};
|
|
15368
|
-
messenger?: {
|
|
15369
|
-
name_or_account?: string;
|
|
15370
|
-
enabled: boolean;
|
|
15371
|
-
};
|
|
15372
|
-
}
|
|
15373
|
-
interface AccountOperationResult {
|
|
15374
|
-
gen?: {
|
|
15375
|
-
address: string;
|
|
15376
|
-
name?: string;
|
|
15377
|
-
messenger?: boolean;
|
|
15378
|
-
};
|
|
15379
|
-
faucet?: {
|
|
15380
|
-
name_or_address?: string;
|
|
15381
|
-
result: FaucetCoinInfo[];
|
|
15382
|
-
network: FaucetNetwork;
|
|
15383
|
-
};
|
|
15384
|
-
suspend?: {
|
|
15385
|
-
name_or_address?: string;
|
|
15386
|
-
success: boolean;
|
|
15387
|
-
};
|
|
15388
|
-
resume?: {
|
|
15389
|
-
address: string;
|
|
15390
|
-
name?: string;
|
|
15391
|
-
success: boolean;
|
|
15392
|
-
};
|
|
15393
|
-
rename?: {
|
|
15394
|
-
name_or_address?: string;
|
|
15395
|
-
new_name: string;
|
|
15396
|
-
success: boolean;
|
|
15397
|
-
};
|
|
15398
|
-
swap_name?: {
|
|
15399
|
-
name_or_address1?: string;
|
|
15400
|
-
name_or_address2?: string;
|
|
15401
|
-
success: boolean;
|
|
15402
|
-
};
|
|
15403
|
-
transfer?: WowTransactionBlockResponse;
|
|
15404
|
-
get?: {
|
|
15405
|
-
coin_address?: string;
|
|
15406
|
-
name_or_address?: string;
|
|
15407
|
-
balance_required: string | bigint | number;
|
|
15408
|
-
token_type?: string;
|
|
15409
|
-
network?: ENTRYPOINT;
|
|
15410
|
-
};
|
|
15411
|
-
signData?: {
|
|
15412
|
-
name_or_address?: string;
|
|
15413
|
-
signature: string;
|
|
15414
|
-
publicKey: string;
|
|
15415
|
-
address: string;
|
|
15416
|
-
};
|
|
15417
|
-
messenger?: {
|
|
15418
|
-
name_or_account?: string;
|
|
15419
|
-
enabled: boolean;
|
|
15420
|
-
registered?: boolean;
|
|
15421
|
-
registerError?: string;
|
|
15422
|
-
};
|
|
15423
|
-
}
|
|
15424
|
-
declare const account_operation: (op: AccountOperation) => Promise<AccountOperationResult>;
|
|
15425
|
-
interface LocalMarkOperation {
|
|
15426
|
-
clear?: {
|
|
15427
|
-
op: "clear";
|
|
15428
|
-
};
|
|
15429
|
-
add?: {
|
|
15430
|
-
op: "add";
|
|
15431
|
-
data: MarkParam[];
|
|
15432
|
-
};
|
|
15433
|
-
remove?: {
|
|
15434
|
-
op: "remove";
|
|
15435
|
-
names: string[];
|
|
15436
|
-
};
|
|
15437
|
-
}
|
|
15438
|
-
interface LocalMarkOperationResult {
|
|
15439
|
-
clear?: boolean;
|
|
15440
|
-
add?: MarkData[];
|
|
15441
|
-
remove?: MarkData[];
|
|
15442
|
-
}
|
|
15443
|
-
declare const local_mark_operation: (op: LocalMarkOperation) => Promise<LocalMarkOperationResult>;
|
|
15444
|
-
interface LocalInfoOperation {
|
|
15445
|
-
clear?: {
|
|
15446
|
-
op: "clear";
|
|
15447
|
-
};
|
|
15448
|
-
add?: {
|
|
15449
|
-
op: "add";
|
|
15450
|
-
data: InfoData[];
|
|
15451
|
-
};
|
|
15452
|
-
remove?: {
|
|
15453
|
-
op: "remove";
|
|
15454
|
-
data: string[];
|
|
15455
|
-
};
|
|
15456
|
-
reset?: {
|
|
15457
|
-
op: "reset";
|
|
15458
|
-
name: string;
|
|
15459
|
-
contents: string[];
|
|
15460
|
-
};
|
|
15461
|
-
}
|
|
15462
|
-
interface LocalInfoOperationResult {
|
|
15463
|
-
success: boolean;
|
|
15464
|
-
}
|
|
15465
|
-
declare const local_info_operation: (op: LocalInfoOperation) => Promise<LocalInfoOperationResult>;
|
|
15466
|
-
interface LocalHistoryOperation {
|
|
15467
|
-
clear?: {
|
|
15468
|
-
op: "clear";
|
|
15469
|
-
};
|
|
15470
|
-
add?: {
|
|
15471
|
-
op: "add";
|
|
15472
|
-
data: HistoryVisit[];
|
|
15473
|
-
};
|
|
15474
|
-
remove?: {
|
|
15475
|
-
op: "remove";
|
|
15476
|
-
keys: string[];
|
|
15477
|
-
};
|
|
15478
|
-
}
|
|
15479
|
-
interface LocalHistoryOperationResult {
|
|
15480
|
-
list?: HistoryEntry[];
|
|
15481
|
-
add?: HistoryEntry[];
|
|
15482
|
-
remove?: HistoryEntry[];
|
|
15483
|
-
clear?: boolean;
|
|
15484
|
-
}
|
|
15485
|
-
declare const local_history_operation: (op: LocalHistoryOperation) => Promise<LocalHistoryOperationResult>;
|
|
15486
|
-
interface FetchTokenInfoOperation {
|
|
15487
|
-
tokenType?: string | null | undefined;
|
|
15488
|
-
alias?: string;
|
|
15489
|
-
network?: ENTRYPOINT;
|
|
15490
|
-
}
|
|
15491
|
-
declare const fetch_token_info_operation: (op: FetchTokenInfoOperation) => Promise<TokenTypeInfo | undefined>;
|
|
15492
|
-
//#endregion
|
|
15493
|
-
//#region src/w/common.d.ts
|
|
15494
|
-
type AddressResult = TransactionResult$1 | TransactionObjectArgument;
|
|
15495
|
-
type ObjectResult = TransactionResult$1 | string | TransactionObjectArgument;
|
|
15496
|
-
type PermissionAddress = AddressResult;
|
|
15497
|
-
type PermissionObject = ObjectResult;
|
|
15498
|
-
type RepositoryAddress = AddressResult;
|
|
15499
|
-
type RepositoryObject = ObjectResult;
|
|
15500
|
-
type GuardAddress = AddressResult;
|
|
15501
|
-
type GuardObject = ObjectResult;
|
|
15502
|
-
type MachineAddress = AddressResult;
|
|
15503
|
-
type MachineObject = ObjectResult;
|
|
15504
|
-
type ContactAddress = AddressResult;
|
|
15505
|
-
type ContactObject = ObjectResult;
|
|
15506
|
-
type PassportObject = TransactionResult$1;
|
|
15507
|
-
type DemandAddress = AddressResult;
|
|
15508
|
-
type DemandObject = ObjectResult;
|
|
15509
|
-
type ServiceObject = ObjectResult;
|
|
15510
|
-
type ServiceAddress = AddressResult;
|
|
15511
|
-
type ArbitrationObject = ObjectResult;
|
|
15512
|
-
type ArbitrationAddress = AddressResult;
|
|
15513
|
-
type ArbObject = ObjectResult;
|
|
15514
|
-
type ArbAddress = AddressResult;
|
|
15515
|
-
type ProgressObject = ObjectResult;
|
|
15516
|
-
type ProgressAddress = AddressResult;
|
|
15517
|
-
type TreasuryObject = ObjectResult;
|
|
15518
|
-
type TreasuryAddress = AddressResult;
|
|
15519
|
-
type OrderObject = ObjectResult;
|
|
15520
|
-
type OrderAddress = AddressResult;
|
|
15521
|
-
type DiscountObject = ObjectResult;
|
|
15522
|
-
type CoinObject = TransactionObjectArgument;
|
|
15523
|
-
type ResourceObject = ObjectResult;
|
|
15524
|
-
type ResourceAddress = AddressResult;
|
|
15525
|
-
type PaymentObject = ObjectResult;
|
|
15526
|
-
type PaymentAddress = AddressResult;
|
|
15527
|
-
type AllocationObject = TransactionObjectArgument;
|
|
15528
|
-
type AllocationAddress = AddressResult;
|
|
15529
|
-
type RewardObject = ObjectResult;
|
|
15530
|
-
type RewardAddress = AddressResult;
|
|
15531
|
-
type ReceivedObject = ObjectResult;
|
|
15532
|
-
type ProofAddress = AddressResult;
|
|
15533
|
-
type CoinWrapperObject = TransactionResult$1;
|
|
15534
|
-
type PaymentInfoObject = TransactionObjectArgument;
|
|
15535
|
-
type TxObject = ObjectResult | PassportObject | CoinWrapperObject;
|
|
15536
|
-
type TxAddress = string | TransactionResult$1 | TransactionObjectArgument;
|
|
15537
|
-
type TxString = string | TransactionArgument;
|
|
15538
|
-
type TxNumber = number | TransactionArgument | bigint | string;
|
|
15539
|
-
type TxAddressVec = Array<string> | TransactionResult$1;
|
|
15540
|
-
type TxNumberVec = Array<number | bigint | string> | TransactionResult$1;
|
|
15541
|
-
declare enum ValueType {
|
|
15542
|
-
Bool = 0,
|
|
15543
|
-
Address = 1,
|
|
15544
|
-
String = 2,
|
|
15545
|
-
U8 = 3,
|
|
15546
|
-
U16 = 4,
|
|
15547
|
-
U32 = 5,
|
|
15548
|
-
U64 = 6,
|
|
15549
|
-
U128 = 7,
|
|
15550
|
-
U256 = 8,
|
|
15551
|
-
VecBool = 9,
|
|
15552
|
-
VecAddress = 10,
|
|
15553
|
-
VecString = 11,
|
|
15554
|
-
VecU8 = 12,
|
|
15555
|
-
VecU16 = 13,
|
|
15556
|
-
VecU32 = 14,
|
|
15557
|
-
VecU64 = 15,
|
|
15558
|
-
VecU128 = 16,
|
|
15559
|
-
VecU256 = 17,
|
|
15560
|
-
VecVecU8 = 18,
|
|
15561
|
-
Value = 19
|
|
15562
|
-
}
|
|
15563
|
-
interface ValueContainer<T extends ValueType = ValueType> {
|
|
15564
|
-
valueType: T;
|
|
15565
|
-
value: ValueTypeToType[T];
|
|
15566
|
-
}
|
|
15567
|
-
type ValueTypeToType = {
|
|
15568
|
-
[ValueType.Bool]: boolean;
|
|
15569
|
-
[ValueType.Address]: AccountOrMark_Address | string;
|
|
15570
|
-
[ValueType.String]: string;
|
|
15571
|
-
[ValueType.U8]: number;
|
|
15572
|
-
[ValueType.U16]: number;
|
|
15573
|
-
[ValueType.U32]: number;
|
|
15574
|
-
[ValueType.U64]: bigint | number;
|
|
15575
|
-
[ValueType.U128]: bigint;
|
|
15576
|
-
[ValueType.U256]: bigint;
|
|
15577
|
-
[ValueType.VecBool]: boolean[];
|
|
15578
|
-
[ValueType.VecAddress]: ManyAccountOrMark_Address | string[];
|
|
15579
|
-
[ValueType.VecString]: string[];
|
|
15580
|
-
[ValueType.VecU8]: number[] | Uint8Array;
|
|
15581
|
-
[ValueType.VecU16]: number[];
|
|
15582
|
-
[ValueType.VecU32]: number[];
|
|
15583
|
-
[ValueType.VecU64]: (bigint | number)[];
|
|
15584
|
-
[ValueType.VecU128]: bigint[];
|
|
15585
|
-
[ValueType.VecU256]: bigint[];
|
|
15586
|
-
[ValueType.VecVecU8]: (number[] | Uint8Array)[];
|
|
15587
|
-
[ValueType.Value]: ValueContainer;
|
|
15588
|
-
};
|
|
15589
|
-
type SupportedValue = ValueTypeToType[keyof ValueTypeToType];
|
|
15590
|
-
/**
|
|
15591
|
-
* ValueType 输入类型 - 支持数字枚举或字符串名称
|
|
15592
|
-
* 字符串不区分大小写,如 "U64", "u64", "U64" 都有效
|
|
15593
|
-
*/
|
|
15594
|
-
type ValueTypeInput = ValueType | string;
|
|
15595
|
-
/**
|
|
15596
|
-
* 将 ValueTypeInput 转换为 ValueType 枚举
|
|
15597
|
-
* @param input - 数字枚举值或字符串名称
|
|
15598
|
-
* @returns ValueType 枚举值
|
|
15599
|
-
* @throws 如果输入无效
|
|
15600
|
-
*/
|
|
15601
|
-
declare const parseValueType: (input: ValueTypeInput) => ValueType;
|
|
15602
|
-
/**
|
|
15603
|
-
* 将 ValueType 枚举转换为字符串名称
|
|
15604
|
-
* @param type - ValueType 枚举值
|
|
15605
|
-
* @returns 字符串名称,如 "U64"
|
|
15606
|
-
*/
|
|
15607
|
-
declare const valueTypeToString: (type: ValueType) => string;
|
|
15608
|
-
/**
|
|
15609
|
-
* 检查输入是否为有效的 ValueTypeInput
|
|
15610
|
-
* @param input - 任意输入
|
|
15611
|
-
* @returns 是否有效
|
|
15612
|
-
*/
|
|
15613
|
-
declare const isValidValueTypeInput: (input: unknown) => input is ValueTypeInput;
|
|
15614
|
-
declare enum OperatorType {
|
|
15615
|
-
TypeQuery = 40,
|
|
15616
|
-
// 查询类型
|
|
15617
|
-
TypeNumberAdd = 200,
|
|
15618
|
-
// 数值加法
|
|
15619
|
-
TypeNumberSubtract = 201,
|
|
15620
|
-
// 数值减法
|
|
15621
|
-
TypeNumberMultiply = 202,
|
|
15622
|
-
// 数值乘法
|
|
15623
|
-
TypeNumberDivide = 203,
|
|
15624
|
-
// 数值除法
|
|
15625
|
-
TypeNumberMod = 204,
|
|
15626
|
-
// 数值取模
|
|
15627
|
-
TypeNumberAddress = 205,
|
|
15628
|
-
// 数值转地址
|
|
15629
|
-
TypeNumberString = 206,
|
|
15630
|
-
// 数值转字符串
|
|
15631
|
-
TypeAddressNumber = 207,
|
|
15632
|
-
// 地址转数值
|
|
15633
|
-
TypeStringNumber = 208,
|
|
15634
|
-
// 字符串转数值
|
|
15635
|
-
TypeSafeU8 = 220,
|
|
15636
|
-
// 转换为安全U8类型
|
|
15637
|
-
TypeSafeU16 = 221,
|
|
15638
|
-
// 转换为安全U16类型
|
|
15639
|
-
TypeSafeU32 = 222,
|
|
15640
|
-
// 转换为安全U32类型
|
|
15641
|
-
TypeSafeU64 = 223,
|
|
15642
|
-
// 转换为安全U64类型
|
|
15643
|
-
TypeSafeU128 = 224,
|
|
15644
|
-
// 转换为安全U128类型
|
|
15645
|
-
TypeSafeU256 = 225,
|
|
15646
|
-
// 转换为安全U256类型
|
|
15647
|
-
TypeStringLength = 61,
|
|
15648
|
-
// 获取字符串长度
|
|
15649
|
-
TypeStringIndexof = 62,
|
|
15650
|
-
// 字符串查找
|
|
15651
|
-
TypeStringNocaseIndexof = 63,
|
|
15652
|
-
// 字符串查找(不区分大小写)
|
|
15653
|
-
TypeStringContains = 64,
|
|
15654
|
-
// 字符串包含检查
|
|
15655
|
-
TypeStringNocaseContains = 65,
|
|
15656
|
-
// 字符串包含检查(不区分大小写)
|
|
15657
|
-
TypeStringNocaseEqual = 66,
|
|
15658
|
-
// 字符串相等检查(不区分大小写)
|
|
15659
|
-
TypedValueType = 70,
|
|
15660
|
-
// 获取TypedValue类型
|
|
15661
|
-
TypedValueVecLength = 71,
|
|
15662
|
-
// 获取TypedValue向量长度
|
|
15663
|
-
TypedValueVecContains_Bool = 72,
|
|
15664
|
-
// 检查TypedValue向量是否包含布尔值
|
|
15665
|
-
TypedValueVecContains_Address = 73,
|
|
15666
|
-
// 检查TypedValue向量是否包含地址
|
|
15667
|
-
TypedValueVecContains_String = 74,
|
|
15668
|
-
// 检查TypedValue向量是否包含字符串
|
|
15669
|
-
TypedValueVecContains_StringNoCase = 75,
|
|
15670
|
-
// 检查TypedValue向量是否包含字符串(不区分大小写)
|
|
15671
|
-
TypedValueVecContains_Number = 76,
|
|
15672
|
-
// 检查TypedValue向量是否包含数值
|
|
15673
|
-
TypedValueVecIndexOf_Bool = 77,
|
|
15674
|
-
// 查找TypedValue向量中布尔值的索引
|
|
15675
|
-
TypedValueVecIndexOf_Address = 78,
|
|
15676
|
-
// 查找TypedValue向量中地址的索引
|
|
15677
|
-
TypedValueVecIndexOf_String = 79,
|
|
15678
|
-
// 查找TypedValue向量中字符串的索引
|
|
15679
|
-
TypedValueVecIndexOf_StringNoCase = 80,
|
|
15680
|
-
// 查找TypedValue向量中字符串的索引(不区分大小写)
|
|
15681
|
-
TypedValueVecIndexOf_Number = 81,
|
|
15682
|
-
// 查找TypedValue向量中数值的索引
|
|
15683
|
-
TypeLogicEqual = 90,
|
|
15684
|
-
// 逻辑相等
|
|
15685
|
-
TypeLogicAsU256Greater = 91,
|
|
15686
|
-
// 逻辑U256大于
|
|
15687
|
-
TypeLogicAsU256GreaterEqual = 92,
|
|
15688
|
-
// 逻辑U256大于等于
|
|
15689
|
-
TypeLogicAsU256Lesser = 93,
|
|
15690
|
-
// 逻辑U256小于
|
|
15691
|
-
TypeLogicAsU256LesserEqual = 94,
|
|
15692
|
-
// 逻辑U256小于等于
|
|
15693
|
-
TypeLogicAsU256Equal = 95,
|
|
15694
|
-
// 逻辑U256相等
|
|
15695
|
-
TypeLogicAnd = 96,
|
|
15696
|
-
// 逻辑与
|
|
15697
|
-
TypeLogicOr = 97,
|
|
15698
|
-
// 逻辑或
|
|
15699
|
-
TypeLogicNot = 98
|
|
15700
|
-
}
|
|
15701
|
-
declare enum WitnessType {
|
|
15702
|
-
TypeOrderProgress = 100,
|
|
15703
|
-
TypeOrderMachine = 101,
|
|
15704
|
-
TypeOrderService = 102,
|
|
15705
|
-
TypeProgressMachine = 103,
|
|
15706
|
-
TypeArbOrder = 104,
|
|
15707
|
-
TypeArbArbitration = 105,
|
|
15708
|
-
TypeArbProgress = 106,
|
|
15709
|
-
TypeArbMachine = 107,
|
|
15710
|
-
TypeArbService = 108
|
|
15711
|
-
}
|
|
15712
|
-
declare const isWitnessType: (type: number | WitnessType | undefined | null) => type is WitnessType;
|
|
15713
|
-
/**
|
|
15714
|
-
* WitnessType 输入类型 - 支持数字枚举或字符串名称
|
|
15715
|
-
* 字符串不区分大小写,如 "TypeOrderProgress", "typeorderprogress", "ORDERPROGRESS" 都有效
|
|
15716
|
-
* 也支持去掉 "Type" 前缀的简写形式,如 "OrderProgress", "orderprogress"
|
|
15717
|
-
*/
|
|
15718
|
-
type WitnessTypeInput = WitnessType | string;
|
|
15719
|
-
/**
|
|
15720
|
-
* 将 WitnessTypeInput 转换为 WitnessType 枚举
|
|
15721
|
-
* @param input - 数字枚举值或字符串名称
|
|
15722
|
-
* @returns WitnessType 枚举值
|
|
15723
|
-
* @throws 如果输入无效
|
|
15724
|
-
*/
|
|
15725
|
-
declare const parseWitnessType: (input: WitnessTypeInput) => WitnessType;
|
|
15726
|
-
/**
|
|
15727
|
-
* 将 WitnessType 枚举转换为用户友好的字符串名称
|
|
15728
|
-
* 返回去掉 "Type" 前缀的名称,如 "OrderProgress" (而非 "TypeOrderProgress")
|
|
15729
|
-
* @param type - WitnessType 枚举值
|
|
15730
|
-
* @returns 字符串名称
|
|
15731
|
-
*/
|
|
15732
|
-
declare const witnessTypeToString: (type: WitnessType) => string;
|
|
15733
|
-
/**
|
|
15734
|
-
* 检查输入是否为有效的 WitnessTypeInput
|
|
15735
|
-
* @param input - 任意输入
|
|
15736
|
-
* @returns 是否有效
|
|
15737
|
-
*/
|
|
15738
|
-
declare const isValidWitnessTypeInput: (input: unknown) => input is WitnessTypeInput;
|
|
15739
|
-
declare enum ContextType {
|
|
15740
|
-
TypeSigner = 45,
|
|
15741
|
-
TypeClock = 46,
|
|
15742
|
-
TypeGuard = 47,
|
|
15743
|
-
TypeConstant = 48
|
|
15744
|
-
}
|
|
15745
|
-
declare enum Modules {
|
|
15746
|
-
Machine = "machine",
|
|
15747
|
-
Progress = "progress",
|
|
15748
|
-
Repository = "repository",
|
|
15749
|
-
Permission = "permission",
|
|
15750
|
-
Passport = "passport",
|
|
15751
|
-
Guard = "guard",
|
|
15752
|
-
Demand = "demand",
|
|
15753
|
-
Order = "order",
|
|
15754
|
-
Service = "service",
|
|
15755
|
-
Resource = "resource",
|
|
15756
|
-
Entity = "entity",
|
|
15757
|
-
Wowok = "wowok",
|
|
15758
|
-
Treasury = "treasury",
|
|
15759
|
-
Payment = "payment",
|
|
15760
|
-
Arbitration = "arbitration",
|
|
15761
|
-
Arb = "arb",
|
|
15762
|
-
Allocation = "allocation"
|
|
15763
|
-
}
|
|
15764
|
-
declare const PackageAddress = "0x2";
|
|
15765
|
-
declare const GasTokenType = "0x2::wow::WOW";
|
|
15766
|
-
declare const GasCoinType = "0x2::coin::Coin<0x2::wow::WOW>";
|
|
15767
|
-
declare const RegistrarAddress = "0xaaa";
|
|
15768
|
-
declare const EntityAddress = "0xaab";
|
|
15769
|
-
declare const MAX_ENV_PERMISSION_GUARD_COUNT = 4;
|
|
15770
|
-
declare const isGasTokenType: (token_type: string) => boolean;
|
|
15771
|
-
declare const isValidValueType: (valueType: number) => boolean;
|
|
15772
|
-
declare const isThisPackage: (type: string) => boolean;
|
|
15773
|
-
declare const isValidArray: <T>(arr: T[], validator: (item: T) => boolean) => boolean;
|
|
15774
|
-
/** u8::MAX (2^8 - 1). */
|
|
15775
|
-
declare const U8_MAX = 255;
|
|
15776
|
-
/** u16::MAX (2^16 - 1). */
|
|
15777
|
-
declare const U16_MAX = 65535;
|
|
15778
|
-
/** u32::MAX (2^32 - 1). */
|
|
15779
|
-
declare const U32_MAX = 4294967295;
|
|
15780
|
-
/** u64::MAX (2^64 - 1). */
|
|
15781
|
-
declare const U64_MAX = 18446744073709551615n;
|
|
15782
|
-
/** u128::MAX (2^128 - 1). */
|
|
15783
|
-
declare const U128_MAX = 340282366920938463463374607431768211455n;
|
|
15784
|
-
/** u256::MAX (2^256 - 1). */
|
|
15785
|
-
declare const U256_MAX = 115792089237316195423570985008687907853269984665640564039457584007913129639935n;
|
|
15786
|
-
declare const isValidU8: (value: number | bigint | string) => boolean;
|
|
15787
|
-
declare const isValidU16: (value: number | bigint | string) => boolean;
|
|
15788
|
-
declare const isValidU64: (value: number | bigint | string) => boolean;
|
|
15789
|
-
declare const isValidU128: (value: number | bigint | string) => boolean;
|
|
15790
|
-
declare const isValidU256: (value: number | bigint | string) => boolean;
|
|
15791
|
-
declare const isValidU32: (value: number | bigint | string) => boolean;
|
|
15792
|
-
declare const IsBcsStringLength: (str: string, max_len: number) => boolean;
|
|
15793
|
-
declare const MAX_DESCRIPTION_LENGTH = 4000;
|
|
15794
|
-
declare const MAX_NAME_LENGTH = 64;
|
|
15795
|
-
declare const MAX_LONG_NAME_LENGTH = 256;
|
|
15796
|
-
declare const MAX_GUARD_TABLE_ITEM_LENGTH = 256;
|
|
15797
|
-
declare const MAX_INPUT_SIZE = 1024;
|
|
15798
|
-
declare const MAX_DEPENDED_COUNT = 4;
|
|
15799
|
-
/** Number ops (calc_number_*): 2..=8. · wtype.rs:55 */
|
|
15800
|
-
declare const MAX_NUMBER_OPERANDS = 8;
|
|
15801
|
-
/** Logic ops (logic_*): 2..=8. · wtype.rs:58 */
|
|
15802
|
-
declare const MAX_LOGIC_OPERANDS = 8;
|
|
15803
|
-
/** String ops (string contains/equal): 2..=6. · wtype.rs:61 */
|
|
15804
|
-
declare const MAX_STRING_OPERANDS = 6;
|
|
15805
|
-
/**
|
|
15806
|
-
* Generic cap used where the SDK validates a non-string multi-operand op
|
|
15807
|
-
* without distinguishing number from logic (both caps above are 8).
|
|
15808
|
-
*/
|
|
15809
|
-
declare const MAX_MULTI_OPERANDS = 8;
|
|
15810
|
-
declare const MAX_GUARD_NODE_DEPTH = 128;
|
|
15811
|
-
declare const isValidDescription: (description: string) => boolean;
|
|
15812
|
-
declare const isValidName: (name: string) => boolean;
|
|
15813
|
-
declare const isValidLongName: (name: string) => boolean;
|
|
15814
|
-
declare const isValidHttpUrl: (url: string) => boolean;
|
|
15815
|
-
declare const isValueTypeNumber: (valueType: ValueType | number) => boolean;
|
|
15816
|
-
declare const toTxObject: (tx: Transaction$1, arg: TxObject) => TransactionObjectArgument;
|
|
15817
|
-
declare const toTxReceivingObject: (tx: Transaction$1, objectId: string, version: string | number | undefined, digest: string | undefined) => TransactionObjectArgument;
|
|
15818
|
-
declare const toTxString: (tx: Transaction$1, arg: TxString) => TransactionArgument;
|
|
15819
|
-
declare const toTxU8: (tx: Transaction$1, arg: TxNumber) => TransactionArgument;
|
|
15820
|
-
declare const toTxU16: (tx: Transaction$1, arg: TxNumber) => TransactionArgument;
|
|
15821
|
-
declare const toTxU32: (tx: Transaction$1, arg: TxNumber) => TransactionArgument;
|
|
15822
|
-
declare const toTxU128: (tx: Transaction$1, arg: TxNumber) => TransactionArgument;
|
|
15823
|
-
declare const toTxU256: (tx: Transaction$1, arg: TxNumber) => TransactionArgument;
|
|
15824
|
-
declare const toTxU64: (tx: Transaction$1, arg: TxNumber) => TransactionArgument;
|
|
15825
|
-
declare const toTxAddress: (tx: Transaction$1, arg: TxAddress) => TransactionArgument;
|
|
15826
|
-
declare const toTxAddressVec: (tx: Transaction$1, arg: TxAddressVec, max_len: number) => TransactionArgument;
|
|
15827
|
-
declare const toTxU16Vec: (tx: Transaction$1, arg: TxNumberVec, max_len: number) => TransactionArgument;
|
|
15828
|
-
declare const object_name_from_type: (type_repr: string | null | undefined) => string | undefined;
|
|
15829
|
-
interface ObjectModuleAndName {
|
|
15830
|
-
module: string;
|
|
15831
|
-
name: string;
|
|
15832
|
-
}
|
|
15833
|
-
declare const object_module_and_name_from_type: (type_repr: string | null | undefined) => ObjectModuleAndName | undefined;
|
|
15834
|
-
interface NamedObject {
|
|
15835
|
-
name?: string;
|
|
15836
|
-
tags?: string[];
|
|
15837
|
-
replaceExistName?: boolean;
|
|
15838
|
-
onChain?: boolean;
|
|
15839
|
-
}
|
|
15840
|
-
interface NamedObjectWithDescription extends NamedObject {
|
|
15841
|
-
description?: string;
|
|
15842
|
-
}
|
|
15843
|
-
interface NamedObjectWithPermission extends NamedObject {
|
|
15844
|
-
permission?: DescriptionObject;
|
|
15845
|
-
}
|
|
15846
|
-
interface TypeNamedObjectWithPermission extends NamedObjectWithPermission {
|
|
15847
|
-
type_parameter: string;
|
|
15848
|
-
}
|
|
15849
|
-
interface TypeNamedObject extends NamedObject {
|
|
15850
|
-
type_parameter: string;
|
|
15851
|
-
}
|
|
15852
|
-
type TypedPermissionObject = string | TypeNamedObjectWithPermission;
|
|
15853
|
-
type TypedDescriptionObject = string | TypeNamedObject;
|
|
15854
|
-
type WithPermissionObject = string | NamedObjectWithPermission;
|
|
15855
|
-
type NormalObject = string | NamedObject;
|
|
15856
|
-
type DescriptionObject = string | NamedObjectWithDescription;
|
|
15857
|
-
type WObject = TypedPermissionObject | TypedDescriptionObject | PermissionObject | NormalObject | DescriptionObject;
|
|
15858
|
-
declare const GetObjectExisted: (object?: WObject) => Promise<string | undefined>;
|
|
15859
|
-
declare const GetObjectDescription: (object?: WObject) => string | undefined;
|
|
15860
|
-
declare const GetObject: (object?: WObject) => NamedObjectWithPermission | TypeNamedObjectWithPermission | NamedObjectWithDescription | TypeNamedObject | undefined;
|
|
15861
|
-
declare const MAX_PERMISSION_GUARD_COUNT = 4;
|
|
15862
|
-
interface CallEnv {
|
|
15863
|
-
network?: ENTRYPOINT;
|
|
15864
|
-
account?: string | null;
|
|
15865
|
-
permission_guard?: string[];
|
|
15866
|
-
no_cache?: boolean;
|
|
15867
|
-
referrer?: string | null;
|
|
15868
|
-
/**
|
|
15869
|
-
* Opt-out of SDK-level Entity auto-registration. By default the SDK
|
|
15870
|
-
* appends registrar::entity_register to a business transaction when the
|
|
15871
|
-
* sender has no entry in the global Entity table (one-time per account).
|
|
15872
|
-
* Set true to keep transactions untouched — e.g. after an explicit
|
|
15873
|
-
* entity_cancel, or for callers that must not mutate the Entity table.
|
|
15874
|
-
*/
|
|
15875
|
-
no_auto_register?: boolean;
|
|
15876
|
-
/** When true, simulate the transaction without signing or submitting (dry_run / Plan verification). */
|
|
15877
|
-
dry_run?: boolean;
|
|
15878
|
-
}
|
|
15879
|
-
declare const CoinWrapPrefix = "0x2::payment::CoinWrapper";
|
|
15880
|
-
type BalanceType = number | bigint | string;
|
|
15881
|
-
declare const IsValidBalance: (balance: BalanceType) => boolean;
|
|
15882
|
-
declare const IsValidEndpoint: (endpoint?: string | null | undefined) => boolean;
|
|
15883
|
-
declare const IsValidArgType: (arg_type: string | null | undefined) => boolean;
|
|
15884
|
-
type CoinParam = {
|
|
15885
|
-
coin: CoinObject | string;
|
|
15886
|
-
} | {
|
|
15887
|
-
balance: BalanceType;
|
|
15888
|
-
};
|
|
15889
|
-
declare enum RecipientType {
|
|
15890
|
-
GuardIdentifier = 0,
|
|
15891
|
-
Entity = 1,
|
|
15892
|
-
Signer = 2
|
|
15893
|
-
}
|
|
15894
|
-
type Recipient = {
|
|
15895
|
-
GuardIdentifier: number;
|
|
15896
|
-
} | {
|
|
15897
|
-
Entity: AccountOrMark_Address;
|
|
15898
|
-
} | {
|
|
15899
|
-
Signer: "signer";
|
|
15900
|
-
};
|
|
15901
|
-
type ObjectWithType = {
|
|
15902
|
-
object: string;
|
|
15903
|
-
type: string;
|
|
15904
|
-
};
|
|
15905
|
-
declare function serviceFn(name: string): string;
|
|
15906
|
-
declare function demandFn(name: string): string;
|
|
15907
|
-
declare function machineFn(name: string): string;
|
|
15908
|
-
declare function contactFn(name: string): string;
|
|
15909
|
-
declare function treasuryFn(name: string): string;
|
|
15910
|
-
declare function arbitrationFn(name: string): string;
|
|
15911
|
-
declare function repositoryFn(name: string): string;
|
|
15912
|
-
declare function rewardFn(name: string): string;
|
|
15913
|
-
declare enum ObjectType {
|
|
15914
|
-
Permission = "Permission",
|
|
15915
|
-
Repository = "Repository",
|
|
15916
|
-
Arb = "Arb",
|
|
15917
|
-
Arbitration = "Arbitration",
|
|
15918
|
-
Service = "Service",
|
|
15919
|
-
Machine = "Machine",
|
|
15920
|
-
Order = "Order",
|
|
15921
|
-
Progress = "Progress",
|
|
15922
|
-
Payment = "Payment",
|
|
15923
|
-
Treasury = "Treasury",
|
|
15924
|
-
Guard = "Guard",
|
|
15925
|
-
Demand = "Demand",
|
|
15926
|
-
Passport = "Passport",
|
|
15927
|
-
Allocation = "Allocation",
|
|
15928
|
-
Resource = "Resource",
|
|
15929
|
-
Reward = "Reward",
|
|
15930
|
-
Discount = "Discount",
|
|
15931
|
-
EntityRegistrar = "EntityRegistrar",
|
|
15932
|
-
EntityLinker = "EntityLinker",
|
|
15933
|
-
Proof = "Proof",
|
|
15934
|
-
Contact = "Contact",
|
|
15935
|
-
EntityPermission = "EntityPermission",
|
|
15936
|
-
EntityContact = "EntityContact",
|
|
15937
|
-
ObjectLinkerCore = "ObjectLinkerCore",
|
|
15938
|
-
ObjectLinkerTx = "ObjectLinkerTx",
|
|
15939
|
-
EntityOrder = "EntityOrder",
|
|
15940
|
-
WReceivedObject = "WReceivedObject",
|
|
15941
|
-
TableItem_ProgressHistory = "TableItem_ProgressHistory",
|
|
15942
|
-
TableItem_PermissionPerm = "TableItem_PermissionPerm",
|
|
15943
|
-
TableItem_DemandPresenter = "TableItem_DemandPresenter",
|
|
15944
|
-
TableItem_MachineNode = "TableItem_MachineNode",
|
|
15945
|
-
TableItem_TreasuryHistory = "TableItem_TreasuryHistory",
|
|
15946
|
-
TableItem_RepositoryData = "TableItem_RepositoryData",
|
|
15947
|
-
TableItem_RewardRecord = "TableItem_RewardRecord",
|
|
15948
|
-
TableItem_EntityLinker = "TableItem_EntityLinker",
|
|
15949
|
-
TableItem_AddressMark = "TableItem_AddressMark",
|
|
15950
|
-
TableItem_EntityRegistrar = "TableItem_EntityRegistrar",
|
|
15951
|
-
TableItem_EntityPermission = "TableItem_EntityPermission",
|
|
15952
|
-
TableItem_EntityContact = "TableItem_EntityContact",
|
|
15953
|
-
TableItem_ObjectLinkerCore = "TableItem_ObjectLinkerCore",
|
|
15954
|
-
TableItem_ObjectLinkerTx = "TableItem_ObjectLinkerTx",
|
|
15955
|
-
TableItem_EntityOrder = "TableItem_EntityOrder"
|
|
15956
|
-
}
|
|
15957
|
-
declare const ENTITY_LINKER_ADDRESS = "0x0000000000000000000000000000000000000000000000000000000000000aaa";
|
|
15958
|
-
declare const ENTITY_REGISTRAR_ADDRESS = "0x0000000000000000000000000000000000000000000000000000000000000aab";
|
|
15959
|
-
declare const ENTITY_PERMISSION_ADDRESS = "0x0000000000000000000000000000000000000000000000000000000000000aad";
|
|
15960
|
-
declare const ENTITY_ORDER_ADDRESS = "0x0000000000000000000000000000000000000000000000000000000000000aa8";
|
|
15961
|
-
declare const ENTITY_CONTACT_ADDRESS = "0x0000000000000000000000000000000000000000000000000000000000000aa9";
|
|
15962
|
-
declare const OBJECT_LINKER_CORE_ADDRESS = "0x0000000000000000000000000000000000000000000000000000000000000aae";
|
|
15963
|
-
declare const OBJECT_LINKER_TX_ADDRESS = "0x0000000000000000000000000000000000000000000000000000000000000aaf";
|
|
15964
|
-
//#endregion
|
|
15965
|
-
//#region src/w/exception.d.ts
|
|
15966
|
-
declare enum WErrors {
|
|
15967
|
-
AccountNotFound = "account not found",
|
|
15968
|
-
AddressNotFound = "address not found",
|
|
15969
|
-
IsValidDescription = "invalid description",
|
|
15970
|
-
IsValidName = "invalid name",
|
|
15971
|
-
IsValidName_AllowEmpty = "invalid name",
|
|
15972
|
-
IsValidEndpoint = "invalid endpoint",
|
|
15973
|
-
IsValidAddress = "invalid address",
|
|
15974
|
-
IsValidArgType = "invalid argument type",
|
|
15975
|
-
IsValidTokenType = "invalid token type",
|
|
15976
|
-
IsValidUint = "invalid uint",
|
|
15977
|
-
IsValidInt = "invalid int",
|
|
15978
|
-
IsValidU8 = "invalid u8",
|
|
15979
|
-
IsValidU16 = "invalid u16",
|
|
15980
|
-
IsValidU32 = "invalid u32",
|
|
15981
|
-
IsValidU64 = "invalid u64",
|
|
15982
|
-
IsValidU128 = "invalid u128",
|
|
15983
|
-
IsValidU256 = "invalid u256",
|
|
15984
|
-
IsValidRate = "invalid rate[0-10000]",
|
|
15985
|
-
IsValidArray = "invalid array",
|
|
15986
|
-
IsValidObjects = "invalid objects",
|
|
15987
|
-
AllInvalid = "one valid at least",
|
|
15988
|
-
InvalidParam = "invalid parameter",
|
|
15989
|
-
IsValidPermissionIndex = "invalid permission index",
|
|
15990
|
-
IsValidKey = "invalid key",
|
|
15991
|
-
Fail = "fail",
|
|
15992
|
-
IsValidIdentifier = "identifier invalid",
|
|
15993
|
-
IsValidHttpUrl = "invalid url",
|
|
15994
|
-
IsValidBizPermissionIndex = "invalid biz-permission id[1000 - 65535]",
|
|
15995
|
-
BcsTypeInvalid = "invalid bcs type",
|
|
15996
|
-
IsValidServiceItemName = "invalid service item name",
|
|
15997
|
-
IsValidCoinType = "not the coin type",
|
|
15998
|
-
IsValidGuardIdentifier = "guard identifier invalid",
|
|
15999
|
-
NoPermission = "no permission",
|
|
16000
|
-
IsValidValue = "invalid value",
|
|
16001
|
-
IsValidValueType = "invalid value type",
|
|
16002
|
-
IsValidLocation = "invalid location",
|
|
16003
|
-
NetworkInvalid = "protocol network not specified",
|
|
16004
|
-
WitnessTypeInvalid = "witness type invalid",
|
|
16005
|
-
AddressCountExceeded = "address count exceeded",
|
|
16006
|
-
NumberCountExceeded = "number count exceeded",
|
|
16007
|
-
NewGuardCheckFailed = "new guard check failed",
|
|
16008
|
-
GuardTableItemLengthExceeded = "guard table item length exceeded",
|
|
16009
|
-
AccountPersistentStorageNotSet = "account persistent storage not set",
|
|
16010
|
-
AccountPersistentStorageNotFound = "account persistent storage not found",
|
|
16011
|
-
AccountNameExist = "account name exist",
|
|
16012
|
-
ConfigPersistentStorageNotSet = "config persistent storage not set",
|
|
16013
|
-
TokenNotFoundLocally = "token not found",
|
|
16014
|
-
LocalMarkNameExist = "local mark name exist",
|
|
16015
|
-
MaxObjectsPerQuery = "max objects per query",
|
|
16016
|
-
ResourceTagCountExceeded = "resource tag count exceeded",
|
|
16017
|
-
ParseObjectContentFailed = "parse object content failed"
|
|
16018
|
-
}
|
|
16019
|
-
declare class WException extends Error {
|
|
16020
|
-
readonly code: WErrors;
|
|
16021
|
-
readonly details?: unknown;
|
|
16022
|
-
readonly path?: string;
|
|
16023
|
-
constructor(error: WErrors, details?: unknown, path?: string);
|
|
16024
|
-
getErrorMessage(): string;
|
|
16025
|
-
getErrorCode(): WErrors;
|
|
16026
|
-
getDetails(): unknown;
|
|
16027
|
-
}
|
|
16028
|
-
/**
|
|
16029
|
-
* 类型守卫函数,用于判断一个值是否为 WException 类型
|
|
16030
|
-
* @param error - 待判断的值
|
|
16031
|
-
* @returns 如果是 WException 类型则返回 true,同时 TypeScript 会收窄类型
|
|
16032
|
-
*/
|
|
16033
|
-
declare function isWException(error: unknown): error is WException;
|
|
16034
|
-
declare const W_ERROR: (error: WErrors, details?: unknown, path?: string) => never;
|
|
16035
|
-
type WResult<T> = {
|
|
16036
|
-
success: true;
|
|
16037
|
-
data: T;
|
|
16038
|
-
} | {
|
|
16039
|
-
success: false;
|
|
16040
|
-
error: WException;
|
|
16041
|
-
};
|
|
16042
|
-
declare const W_SUCCESS: <T>(data: T) => WResult<T>;
|
|
16043
|
-
declare const W_FAILURE: (error: WErrors, details?: unknown) => WResult<never>;
|
|
16044
|
-
/**
|
|
16045
|
-
* 异常处理装饰器
|
|
16046
|
-
* 捕获函数执行过程中的非 WException 异常,将其包装为 WException 后重新抛出
|
|
16047
|
-
* @param fn - 需要装饰的函数,参数和返回值类型保持不变
|
|
16048
|
-
* @returns 装饰后的函数,类型与原函数一致
|
|
16049
|
-
*/
|
|
16050
|
-
declare function WValidate<T extends (...args: any[]) => any>(fn: T): T;
|
|
16051
|
-
declare const W_SAFE: <T>(fn: () => T, error?: WErrors, details?: unknown) => WResult<T>;
|
|
16052
|
-
declare const W_ENSURE: (condition: boolean, error: WErrors, details?: unknown) => void;
|
|
16053
|
-
declare const W_VALIDATE_PARAM: (param: unknown, validator: (value: unknown) => boolean, error: WErrors, details?: unknown) => void;
|
|
16054
|
-
interface MoveModuleError {
|
|
16055
|
-
module: string;
|
|
16056
|
-
code: number;
|
|
16057
|
-
description: string;
|
|
16058
|
-
}
|
|
16059
|
-
declare const MoveErrors: MoveModuleError[];
|
|
16060
|
-
declare function getMoveErrorDescription(module: string, code: number): string | null;
|
|
16061
|
-
/**
|
|
16062
|
-
* Check whether a parsed ModuleId address belongs to a Wowok system package:
|
|
16063
|
-
* the Wowok framework (0x2) or move-stdlib (0x1).
|
|
16064
|
-
*
|
|
16065
|
-
* Address shapes seen across the two wire formats:
|
|
16066
|
-
* - dry-run Debug text: 64 hex chars WITHOUT the 0x prefix
|
|
16067
|
-
* ("address: 0000…0002") — the raw Debug of AccountAddress;
|
|
16068
|
-
* - formatted effects text: 0x-prefixed, full or shortened ("0x0000…0002", "0x2").
|
|
16069
|
-
*
|
|
16070
|
-
* Normalizes to the minimal hex form (0x and leading zeros stripped) instead
|
|
16071
|
-
* of exact-matching a fixed 0x-prefixed set — the exact match never hit the
|
|
16072
|
-
* dry-run shape, so enrichMoveError never enriched dry-run errors (the very
|
|
16073
|
-
* format shown in its own doc comment). Mirrors the MCP's
|
|
16074
|
-
* extractMoveAbortInfo normalization — keep the two in sync.
|
|
16075
|
-
*/
|
|
16076
|
-
declare function isWowokSystemAddress(address: string): boolean;
|
|
16077
|
-
/**
|
|
16078
|
-
* Parse MoveAbort error and enrich with human-readable description
|
|
16079
|
-
* Matches error against MoveErrors table using module name and error code
|
|
16080
|
-
* Only matches errors from Wowok framework (address 0x2)
|
|
16081
|
-
* @param errorMessage Original error message containing MoveAbort
|
|
16082
|
-
* @returns Enriched error message with description if match found
|
|
16083
|
-
*/
|
|
16084
|
-
declare function enrichMoveError(errorMessage: string): string;
|
|
16085
|
-
//#endregion
|
|
16086
|
-
//#region src/w/logger.d.ts
|
|
16087
|
-
declare enum LogLevel {
|
|
16088
|
-
Error = 0,
|
|
16089
|
-
Warn = 1,
|
|
16090
|
-
Info = 2,
|
|
16091
|
-
Debug = 3,
|
|
16092
|
-
Trace = 4
|
|
16093
|
-
}
|
|
16094
|
-
declare function setLogLevel(level: LogLevel | string): void;
|
|
16095
|
-
declare function getLogLevel(): LogLevel;
|
|
16096
|
-
declare class Logger {
|
|
16097
|
-
private prefix;
|
|
16098
|
-
private minLevel;
|
|
16099
|
-
constructor(prefix?: string, minLevel?: LogLevel | null);
|
|
16100
|
-
private getEffectiveLevel;
|
|
16101
|
-
private shouldLog;
|
|
16102
|
-
private log;
|
|
16103
|
-
error(...args: unknown[]): void;
|
|
16104
|
-
warn(...args: unknown[]): void;
|
|
16105
|
-
info(...args: unknown[]): void;
|
|
16106
|
-
debug(...args: unknown[]): void;
|
|
16107
|
-
trace(...args: unknown[]): void;
|
|
16108
|
-
child(prefix: string): Logger;
|
|
16109
|
-
}
|
|
16110
|
-
declare function createSensitiveLogger(prefix: string): Logger;
|
|
16111
|
-
declare const logger: Logger;
|
|
16112
|
-
//#endregion
|
|
16113
|
-
//#region src/w/query/received.d.ts
|
|
16114
|
-
interface QueryReceived {
|
|
16115
|
-
name_or_address: AccountOrMark_Address;
|
|
16116
|
-
/**
|
|
16117
|
-
* Type filter for querying received objects.
|
|
16118
|
-
* - If undefined or null: query all types (equivalent to the old all_type=true)
|
|
16119
|
-
* - If "CoinWrapper": query CoinWrapper type for the object's token (equivalent to the old all_type=false)
|
|
16120
|
-
* - If string: query specific StructType
|
|
16121
|
-
*/
|
|
16122
|
-
type?: string | "CoinWrapper" | null;
|
|
16123
|
-
/**
|
|
16124
|
-
* An optional paging cursor. If provided, the query will start from the next item after the specified
|
|
16125
|
-
* cursor. Default to start from the first item if not specified.
|
|
16126
|
-
*/
|
|
16127
|
-
cursor?: string | null | undefined;
|
|
16128
|
-
/** Max number of items returned per page, default to [QUERY_MAX_RESULT_LIMIT] if not specified. */
|
|
16129
|
-
limit?: number | null | undefined;
|
|
16130
|
-
no_cache?: boolean;
|
|
16131
|
-
network?: ENTRYPOINT;
|
|
16132
|
-
}
|
|
16133
|
-
interface ReceivedBalanceObject {
|
|
16134
|
-
id: string;
|
|
16135
|
-
balance: BalanceType;
|
|
16136
|
-
payment: string;
|
|
16137
|
-
/**
|
|
16138
|
-
* Type of the received object (or the inner coin type). Used for
|
|
16139
|
-
* token_type fallback detection in CoinWrapper queries for accounts.
|
|
16140
|
-
*/
|
|
16141
|
-
type?: string;
|
|
16142
|
-
/** Object version, required to build a Receiving<T> argument for owner_receive. */
|
|
16143
|
-
version?: string;
|
|
16144
|
-
/** Object digest, required to build a Receiving<T> argument for owner_receive. */
|
|
16145
|
-
digest?: string;
|
|
16146
|
-
}
|
|
16147
|
-
interface ReceivedBalance {
|
|
16148
|
-
balance: BalanceType;
|
|
16149
|
-
token_type: string;
|
|
16150
|
-
received: ReceivedBalanceObject[];
|
|
16151
|
-
}
|
|
16152
|
-
type ReceivedBalanceOrRecently = ReceivedBalance | "recently";
|
|
16153
|
-
type ReceivedObjectsOrRecently = ReceivedObjects | "recently";
|
|
16154
|
-
interface ReceivedNormal {
|
|
16155
|
-
id: string;
|
|
16156
|
-
type: string;
|
|
16157
|
-
content_raw?: any;
|
|
16158
|
-
/** Object version, required to build a Receiving<T> argument for owner_receive. */
|
|
16159
|
-
version?: string;
|
|
16160
|
-
/** Object digest, required to build a Receiving<T> argument for owner_receive. */
|
|
16161
|
-
digest?: string;
|
|
16162
|
-
}
|
|
16163
|
-
type ReceivedObjects = ReceivedNormal[] | ReceivedBalance;
|
|
16164
|
-
declare const query_received: (query: QueryReceived) => Promise<ReceivedObjects>;
|
|
16165
|
-
//#endregion
|
|
16166
|
-
//#region src/w/util.d.ts
|
|
16167
|
-
/**
|
|
16168
|
-
* Pre-resolve an Address/VecAddress-typed SupportedValue to canonical address
|
|
16169
|
-
* strings (write-back) so valueToBcsBytes performs no local lookups during
|
|
16170
|
-
* tx building (operate() stays I/O-free).
|
|
16171
|
-
*
|
|
16172
|
-
* Returns the resolved value, or undefined to KEEP the original:
|
|
16173
|
-
* - already-valid address / non-address value shape (fast-path in operate)
|
|
16174
|
-
* - VecAddress with any unresolved item (all-or-nothing write-back keeps the
|
|
16175
|
-
* original error semantics — no silent address drops)
|
|
16176
|
-
* - non-Address/VecAddress value types (no resolution needed)
|
|
16177
|
-
*/
|
|
16178
|
-
declare const resolveSupportedValue: (valueType: ValueType, value: SupportedValue) => Promise<SupportedValue | undefined>;
|
|
16179
|
-
declare const isValidValueContainer: <T extends ValueType>(container: ValueContainer<T>) => boolean;
|
|
16180
|
-
declare const valueToBcsBytes: <T extends ValueType>(valueType: T, value: ValueTypeToType[T]) => Promise<Uint8Array>;
|
|
16181
|
-
declare const bcsBytesToValue: <T extends ValueType>(bytes: Uint8Array, valueType?: T) => T extends undefined ? SupportedValue : ValueTypeToType[T];
|
|
16182
|
-
declare const parseObjectType: (chain_type: string | null | undefined, header?: string) => string | undefined;
|
|
16183
|
-
declare const parseTypeParameter: (type: string | null | undefined) => string | undefined;
|
|
16184
|
-
declare const extractCoinType: (type: string | null | undefined) => string | undefined;
|
|
16185
|
-
declare function owner_receive$1(tx: Transaction$1, object: TxObject, // MachineObject | DemandObject | ServiceObject ...
|
|
16186
|
-
permission: PermissionObject, param: ReceivedObjects, caller_type: string | undefined, fnBuilder: (name: string) => string, // machineFn | demandFn
|
|
16187
|
-
passport?: PassportObject): Promise<void>;
|
|
16188
|
-
declare function permission_set(tx: Transaction$1, object: TxObject, // MachineObject | DemandObject
|
|
16189
|
-
old_permission: PermissionObject, new_permission: PermissionObject, caller_type: string | undefined, fnBuilder: (name: string) => string): void;
|
|
16190
|
-
declare const validObjects: (objects: (TxObject | undefined | null)[], allowNull?: boolean) => void;
|
|
16191
|
-
declare const uint2address: (value: number | bigint | string) => string;
|
|
16192
|
-
declare const parseRecipient: (whoData: any) => any;
|
|
16193
|
-
//#endregion
|
|
16194
|
-
//#region src/w/call/onchain-constants.d.ts
|
|
16195
|
-
/**
|
|
16196
|
-
* On-chain constants — single source of truth for all numeric limits that
|
|
16197
|
-
* originate from the Move smart contracts in
|
|
16198
|
-
* `d:\wowok\wow\crates\wow-framework\packages\wow-framework\sources\w\*.move`.
|
|
16199
|
-
*
|
|
16200
|
-
* ## Why this file exists
|
|
16201
|
-
*
|
|
16202
|
-
* Before this module, each `*.ts` call file (machine.ts, permission.ts,
|
|
16203
|
-
* order.ts, ...) defined its own `export const MAX_* = N;` next to the call
|
|
16204
|
-
* site. This caused three problems:
|
|
16205
|
-
*
|
|
16206
|
-
* 1. **Drift risk** — when a Move constant changes, the SDK value must be
|
|
16207
|
-
* hunted down across many files. Several SDK files even redefined the
|
|
16208
|
-
* same name (e.g. `MAX_GUARD_COUNT` exists in demand.ts=20, reward.ts=200,
|
|
16209
|
-
* passport.move=20) with different values per object scope.
|
|
16210
|
-
* 2. **Magic numbers in MCP** — the MCP layer (d:\wowok\agent\mcp\src) had
|
|
16211
|
-
* to hardcode numbers like `1000` for `USER_DEFINED_PERM_INDEX_START`
|
|
16212
|
-
* without any import link, so risk rules and analyzers could silently
|
|
16213
|
-
* diverge from the SDK.
|
|
16214
|
-
* 3. **SDK aligned with chain** — the chain caps MAX_NODE_COUNT=100, and
|
|
16215
|
-
* the SDK/MCP enforces 100 to keep generated Machines reviewable. That
|
|
16216
|
-
* distinction was implicit; now it is explicit via the
|
|
16217
|
-
* `MAX_NODE_COUNT_SDK` field.
|
|
16218
|
-
*
|
|
16219
|
-
* ## How to use
|
|
16220
|
-
*
|
|
16221
|
-
* - **Inside the SDK** (`packages/wowok/src/w/call/*.ts`):
|
|
16222
|
-
* ```ts
|
|
16223
|
-
* // Before:
|
|
16224
|
-
* // export const MAX_NODE_COUNT = 100;
|
|
16225
|
-
* // if (nodes.length > MAX_NODE_COUNT) { ... }
|
|
16226
|
-
* // After:
|
|
16227
|
-
* import { MAX_NODE_COUNT } from "./onchain-constants.js";
|
|
16228
|
-
* if (nodes.length > MAX_NODE_COUNT) { ... }
|
|
16229
|
-
* ```
|
|
16230
|
-
* Re-export the named constant from the file where it was previously
|
|
16231
|
-
* defined, OR update internal references to import directly from here.
|
|
16232
|
-
*
|
|
16233
|
-
* - **Inside the MCP** (`agent/mcp/src/knowledge/*.ts`):
|
|
16234
|
-
* ```ts
|
|
16235
|
-
* import { ONCHAIN_CONSTANTS, USER_DEFINED_PERM_INDEX_START } from "@wowok/wowok";
|
|
16236
|
-
* ```
|
|
16237
|
-
* The MCP layer must NEVER redefine these numbers — it imports them.
|
|
16238
|
-
*
|
|
16239
|
-
* - **Inside smart contracts** (`wow-framework/.../w/*.move`):
|
|
16240
|
-
* Unchanged. The Move `const` declarations remain the chain-level source
|
|
16241
|
-
* of truth. This file mirrors them via the `Move source:` JSDoc tags.
|
|
16242
|
-
*
|
|
16243
|
-
* ## Synchronization guarantee
|
|
16244
|
-
*
|
|
16245
|
-
* A unit test in
|
|
16246
|
-
* `agent/mcp/src/knowledge/__tests__/onchain-constants.spec.ts` asserts:
|
|
16247
|
-
* 1. Every value exported here equals the corresponding Move constant
|
|
16248
|
-
* (parsed from `*.move` source).
|
|
16249
|
-
* 2. The MCP import of each constant equals the SDK export (no drift).
|
|
16250
|
-
*
|
|
16251
|
-
* If you change a value here, also update the corresponding `*.move` const
|
|
16252
|
-
* (or vice versa) and run the sync test.
|
|
16253
|
-
*
|
|
16254
|
-
* ## Naming conventions
|
|
16255
|
-
*
|
|
16256
|
-
* - Constants keep their Move name verbatim (e.g. `MAX_FORWARD_ORDER_COUNT`,
|
|
16257
|
-
* not a re-spelled variant).
|
|
16258
|
-
* - When the SDK intentionally enforces a stricter value than the chain, the
|
|
16259
|
-
* chain value is kept as `*_ONCHAIN` and the SDK value as `*_SDK`, with a
|
|
16260
|
-
* bare `MAX_NODE_COUNT` alias pointing to the SDK value for ergonomics.
|
|
16261
|
-
* - `USER_DEFINED_PERM_INDEX_START` is defined in Move as
|
|
16262
|
-
* `permission.move:17 const USER_DEFINED_PERM_INDEX_START: u16 = 1000;`
|
|
16263
|
-
* and enforced by `permission::USER_DEFINED_PERM_INDEX()` (package-only
|
|
16264
|
-
* assert). The constant is mirrored here so MCP risk rules (R-M3-08) can
|
|
16265
|
-
* import a single canonical value.
|
|
16266
|
-
*/
|
|
16267
|
-
/**
|
|
16268
|
-
* All on-chain numeric constants, grouped by source object.
|
|
16269
|
-
*
|
|
16270
|
-
* Frozen via `as const` so literal-type inference works in consumers
|
|
16271
|
-
* (e.g. `type PermIndex = number & { __brand: ... }` patterns).
|
|
16272
|
-
*/
|
|
16273
|
-
declare const ONCHAIN_CONSTANTS: {
|
|
16274
|
-
/**
|
|
16275
|
-
* Chain-level maximum number of nodes a single Machine may contain.
|
|
16276
|
-
*
|
|
16277
|
-
* Move source: machine.move:23 `const MAX_NODE_COUNT: u64 = 100;`
|
|
16278
|
-
*
|
|
16279
|
-
* The chain caps at 100 (aligned with MAX_NODE_COUNT_SDK) so any Machine
|
|
16280
|
-
* that passes chain validation is also human-reviewable. Use
|
|
16281
|
-
* `MAX_NODE_COUNT` (the alias) for SDK-side validation; use this field
|
|
16282
|
-
* only when you need to compare against the chain hard limit (e.g. for
|
|
16283
|
-
* diagnostic messages).
|
|
16284
|
-
*/
|
|
16285
|
-
readonly MAX_NODE_COUNT_ONCHAIN: 100;
|
|
16286
|
-
/**
|
|
16287
|
-
* SDK/MCP-enforced maximum node count (matches chain hard limit).
|
|
16288
|
-
*
|
|
16289
|
-
* Rationale: 100-node Machines are the chain ceiling — a larger Machine
|
|
16290
|
-
* is impossible on-chain and any smaller one must stay reviewable by a
|
|
16291
|
-
* human or an AI auditor. MCP risk rule R-M3-XX fires above this.
|
|
15464
|
+
* SDK/MCP-enforced maximum node count (matches chain hard limit).
|
|
15465
|
+
*
|
|
15466
|
+
* Rationale: 100-node Machines are the chain ceiling — a larger Machine
|
|
15467
|
+
* is impossible on-chain and any smaller one must stay reviewable by a
|
|
15468
|
+
* human or an AI auditor. MCP risk rule R-M3-XX fires above this.
|
|
16292
15469
|
*/
|
|
16293
15470
|
readonly MAX_NODE_COUNT_SDK: 100;
|
|
16294
15471
|
/**
|
|
@@ -16754,6 +15931,59 @@ declare const guardAdd: (tx: Transaction$1, passport: PassportObject, guard: Gua
|
|
|
16754
15931
|
declare function guardClear(tx: Transaction$1, passport: PassportObject): void;
|
|
16755
15932
|
declare function verify(tx: Transaction$1, passport: PassportObject): TransactionResult$1;
|
|
16756
15933
|
//#endregion
|
|
15934
|
+
//#region src/w/query/received.d.ts
|
|
15935
|
+
interface QueryReceived {
|
|
15936
|
+
name_or_address: AccountOrMark_Address;
|
|
15937
|
+
/**
|
|
15938
|
+
* Type filter for querying received objects.
|
|
15939
|
+
* - If undefined or null: query all types (equivalent to the old all_type=true)
|
|
15940
|
+
* - If "CoinWrapper": query CoinWrapper type for the object's token (equivalent to the old all_type=false)
|
|
15941
|
+
* - If string: query specific StructType
|
|
15942
|
+
*/
|
|
15943
|
+
type?: string | "CoinWrapper" | null;
|
|
15944
|
+
/**
|
|
15945
|
+
* An optional paging cursor. If provided, the query will start from the next item after the specified
|
|
15946
|
+
* cursor. Default to start from the first item if not specified.
|
|
15947
|
+
*/
|
|
15948
|
+
cursor?: string | null | undefined;
|
|
15949
|
+
/** Max number of items returned per page, default to [QUERY_MAX_RESULT_LIMIT] if not specified. */
|
|
15950
|
+
limit?: number | null | undefined;
|
|
15951
|
+
no_cache?: boolean;
|
|
15952
|
+
network?: ENTRYPOINT;
|
|
15953
|
+
}
|
|
15954
|
+
interface ReceivedBalanceObject {
|
|
15955
|
+
id: string;
|
|
15956
|
+
balance: BalanceType;
|
|
15957
|
+
payment: string;
|
|
15958
|
+
/**
|
|
15959
|
+
* Type of the received object (or the inner coin type). Used for
|
|
15960
|
+
* token_type fallback detection in CoinWrapper queries for accounts.
|
|
15961
|
+
*/
|
|
15962
|
+
type?: string;
|
|
15963
|
+
/** Object version, required to build a Receiving<T> argument for owner_receive. */
|
|
15964
|
+
version?: string;
|
|
15965
|
+
/** Object digest, required to build a Receiving<T> argument for owner_receive. */
|
|
15966
|
+
digest?: string;
|
|
15967
|
+
}
|
|
15968
|
+
interface ReceivedBalance {
|
|
15969
|
+
balance: BalanceType;
|
|
15970
|
+
token_type: string;
|
|
15971
|
+
received: ReceivedBalanceObject[];
|
|
15972
|
+
}
|
|
15973
|
+
type ReceivedBalanceOrRecently = ReceivedBalance | "recently";
|
|
15974
|
+
type ReceivedObjectsOrRecently = ReceivedObjects | "recently";
|
|
15975
|
+
interface ReceivedNormal {
|
|
15976
|
+
id: string;
|
|
15977
|
+
type: string;
|
|
15978
|
+
content_raw?: any;
|
|
15979
|
+
/** Object version, required to build a Receiving<T> argument for owner_receive. */
|
|
15980
|
+
version?: string;
|
|
15981
|
+
/** Object digest, required to build a Receiving<T> argument for owner_receive. */
|
|
15982
|
+
digest?: string;
|
|
15983
|
+
}
|
|
15984
|
+
type ReceivedObjects = ReceivedNormal[] | ReceivedBalance;
|
|
15985
|
+
declare const query_received: (query: QueryReceived) => Promise<ReceivedObjects>;
|
|
15986
|
+
//#endregion
|
|
16757
15987
|
//#region src/w/call/permission.d.ts
|
|
16758
15988
|
declare enum BuiltinPermissionIndex {
|
|
16759
15989
|
REPOSITORY_NEW = 100,
|
|
@@ -17530,1109 +16760,1897 @@ interface GuardValidationIssue {
|
|
|
17530
16760
|
* @param data - Guard 数据 { description?, table, root, rely? }
|
|
17531
16761
|
* @returns 诊断数组(空数组 = 校验通过)
|
|
17532
16762
|
*/
|
|
17533
|
-
declare function validateGuardData(data: {
|
|
17534
|
-
description?: string;
|
|
17535
|
-
table: GuardTableItemBase[];
|
|
17536
|
-
root: GuardNode;
|
|
17537
|
-
rely?: {
|
|
17538
|
-
guards: string[];
|
|
17539
|
-
logic_or?: boolean;
|
|
17540
|
-
};
|
|
17541
|
-
}): Promise<GuardValidationIssue[]>;
|
|
16763
|
+
declare function validateGuardData(data: {
|
|
16764
|
+
description?: string;
|
|
16765
|
+
table: GuardTableItemBase[];
|
|
16766
|
+
root: GuardNode;
|
|
16767
|
+
rely?: {
|
|
16768
|
+
guards: string[];
|
|
16769
|
+
logic_or?: boolean;
|
|
16770
|
+
};
|
|
16771
|
+
}): Promise<GuardValidationIssue[]>;
|
|
16772
|
+
/**
|
|
16773
|
+
* Query Guard object data and export to JSON or Markdown file
|
|
16774
|
+
* @param guard - Guard object ID or name
|
|
16775
|
+
* @param file_path - Output file path (optional, defaults to workspace/<kind>_<name>.<ext>)
|
|
16776
|
+
* @param format - Output format: "json" or "markdown"
|
|
16777
|
+
* @param network - Network entrypoint
|
|
16778
|
+
* @returns The resolved output file path
|
|
16779
|
+
* @throws Error if query fails or file write fails
|
|
16780
|
+
*/
|
|
16781
|
+
declare const guard2file: (guard: string, file_path?: string, format?: "json" | "markdown", network?: ENTRYPOINT) => Promise<string>;
|
|
16782
|
+
/**
|
|
16783
|
+
* Generate comments for Guard nodes
|
|
16784
|
+
*/
|
|
16785
|
+
declare const generateNodeComments: (node: GuardNode, comments?: Array<{
|
|
16786
|
+
type: string;
|
|
16787
|
+
description: string;
|
|
16788
|
+
}>) => Array<{
|
|
16789
|
+
type: string;
|
|
16790
|
+
description: string;
|
|
16791
|
+
}>;
|
|
16792
|
+
declare const gen_passport: (env: CallEnv, guard: string | string[], info?: SubmissionCall) => Promise<CallResult>;
|
|
16793
|
+
interface GuardParseError {
|
|
16794
|
+
message: string;
|
|
16795
|
+
path: string;
|
|
16796
|
+
line?: number;
|
|
16797
|
+
column?: number;
|
|
16798
|
+
}
|
|
16799
|
+
interface GuardParseResult {
|
|
16800
|
+
success: boolean;
|
|
16801
|
+
data?: Partial<CallGuard_Data> & {
|
|
16802
|
+
root: GuardNode;
|
|
16803
|
+
};
|
|
16804
|
+
errors: GuardParseError[];
|
|
16805
|
+
}
|
|
16806
|
+
/**
|
|
16807
|
+
* Parse Guard definition from markdown content
|
|
16808
|
+
* Unified parsing logic shared between SDK and MCP
|
|
16809
|
+
*/
|
|
16810
|
+
declare function parseGuardFromMarkdown(content: string): GuardParseResult;
|
|
16811
|
+
/**
|
|
16812
|
+
* Parse Guard definition from file content
|
|
16813
|
+
* Supports both JSON and Markdown formats
|
|
16814
|
+
* Unified parsing logic shared between SDK and MCP
|
|
16815
|
+
*/
|
|
16816
|
+
declare function parseGuardFile(content: string, format?: "json" | "markdown"): GuardParseResult;
|
|
16817
|
+
/**
|
|
16818
|
+
* Validate GuardNode structure
|
|
16819
|
+
* Basic validation without Zod dependency
|
|
16820
|
+
*/
|
|
16821
|
+
declare function validateGuardNode(node: unknown): {
|
|
16822
|
+
success: boolean;
|
|
16823
|
+
errors: GuardParseError[];
|
|
16824
|
+
};
|
|
16825
|
+
/**
|
|
16826
|
+
* Format parse errors for display
|
|
16827
|
+
*/
|
|
16828
|
+
declare function formatGuardParseErrors(errors: GuardParseError[]): string;
|
|
16829
|
+
//#endregion
|
|
16830
|
+
//#region src/w/call/entity.d.ts
|
|
16831
|
+
interface RecordsInEntity {
|
|
16832
|
+
name: string;
|
|
16833
|
+
value_type: ValueTypeInput;
|
|
16834
|
+
value: SupportedValue;
|
|
16835
|
+
}
|
|
16836
|
+
interface VoteInRegistrar {
|
|
16837
|
+
who: string;
|
|
16838
|
+
like?: boolean;
|
|
16839
|
+
dislike?: boolean;
|
|
16840
|
+
favor?: boolean;
|
|
16841
|
+
time: number;
|
|
16842
|
+
}
|
|
16843
|
+
//#endregion
|
|
16844
|
+
//#region src/w/query/object.d.ts
|
|
16845
|
+
declare const MAX_OBJECTS_PER_QUERY = 50;
|
|
16846
|
+
declare const WitnessSourceType: (type: WitnessType) => ObjectType;
|
|
16847
|
+
declare const WitnessTargetType: (type: WitnessType) => ObjectType;
|
|
16848
|
+
interface ObjectTypeDefinition {
|
|
16849
|
+
name: ObjectType;
|
|
16850
|
+
moveValue: number;
|
|
16851
|
+
moveName: string;
|
|
16852
|
+
}
|
|
16853
|
+
declare const OBJECT_TYPE_DEFINITIONS: Record<ObjectType, ObjectTypeDefinition>;
|
|
16854
|
+
declare const objectTypeToNumber: Record<ObjectType, number>;
|
|
16855
|
+
declare const numberToObjectType: Record<number, ObjectType>;
|
|
16856
|
+
/**
|
|
16857
|
+
* Reverse-look up the object type from an address's first byte.
|
|
16858
|
+
* Typed WOWOK business objects use first byte 0x10..0x24 (= ObjectType + 0x10).
|
|
16859
|
+
* Returns null for user addresses (0x00), regular/untyped objects (0xf1),
|
|
16860
|
+
* child objects (0xf1), system objects, and the reserved 0x21/0x22 gaps.
|
|
16861
|
+
*/
|
|
16862
|
+
declare function objectTypeFromAddress(address: string): ObjectType | null;
|
|
16863
|
+
type WowAddressKind = "user" | "object" | "unknown";
|
|
16864
|
+
/**
|
|
16865
|
+
* Classify a wow address by its first byte (mirror of wow-framework
|
|
16866
|
+
* w/common/util.move): 0x00 → user; 0x10..=0x24 / 0xf1 → object; any other
|
|
16867
|
+
* first byte cannot exist on-chain → unknown. Short builtin forms ("0x5",
|
|
16868
|
+
* "0xaaa") are canonicalized to 32-byte before classification (their big-endian
|
|
16869
|
+
* first byte is 0x00 → user).
|
|
16870
|
+
*/
|
|
16871
|
+
declare function wowAddressKind(address: string): WowAddressKind;
|
|
16872
|
+
/**
|
|
16873
|
+
* Human type name for a typed business-object address (0x19 → "Treasury").
|
|
16874
|
+
* Reuses objectTypeFromAddress as the SINGLE first-byte→type mapping source.
|
|
16875
|
+
* Returns undefined for user / 0xf1 / unknown / reserved 0x21-0x22 addresses.
|
|
16876
|
+
*/
|
|
16877
|
+
declare function wowObjectTypeNameForAddress(address: string): string | undefined;
|
|
16878
|
+
/**
|
|
16879
|
+
* Converts a numeric value to ObjectType enum
|
|
16880
|
+
* @param value Numeric value to convert
|
|
16881
|
+
* @returns Corresponding ObjectType enum value
|
|
16882
|
+
*/
|
|
16883
|
+
declare function getObjectTypeFromNumber(value: number): ObjectType | undefined;
|
|
16884
|
+
/**
|
|
16885
|
+
* Converts an ObjectType enum value to its numeric representation
|
|
16886
|
+
* @param objectType ObjectType enum value to convert
|
|
16887
|
+
* @returns Corresponding numeric value
|
|
16888
|
+
*/
|
|
16889
|
+
declare function getNumberFromObjectType(objectType: ObjectType): number | undefined;
|
|
16890
|
+
/**
|
|
16891
|
+
* Gets the complete definition for an ObjectType
|
|
16892
|
+
* @param objectType ObjectType enum value
|
|
16893
|
+
* @returns Object containing name, moveValue, and moveName
|
|
16894
|
+
*/
|
|
16895
|
+
declare function getObjectTypeDefinition(objectType: ObjectType): ObjectTypeDefinition | undefined;
|
|
16896
|
+
/**
|
|
16897
|
+
* Gets the complete definition from a numeric value
|
|
16898
|
+
* @param value Numeric value to look up
|
|
16899
|
+
* @returns Object containing name, moveValue, and moveName
|
|
16900
|
+
*/
|
|
16901
|
+
declare function getObjectTypeDefinitionFromNumber(value: number): ObjectTypeDefinition | undefined;
|
|
17542
16902
|
/**
|
|
17543
|
-
*
|
|
17544
|
-
* @param
|
|
17545
|
-
* @
|
|
17546
|
-
* @param format - Output format: "json" or "markdown"
|
|
17547
|
-
* @param network - Network entrypoint
|
|
17548
|
-
* @returns The resolved output file path
|
|
17549
|
-
* @throws Error if query fails or file write fails
|
|
16903
|
+
* Converts a Move enum name string to ObjectType
|
|
16904
|
+
* @param moveName Move enum name (e.g., "Permission")
|
|
16905
|
+
* @returns Corresponding ObjectType enum value
|
|
17550
16906
|
*/
|
|
17551
|
-
declare
|
|
16907
|
+
declare function getObjectTypeFromMoveName(moveName: string): ObjectType | undefined;
|
|
17552
16908
|
/**
|
|
17553
|
-
*
|
|
16909
|
+
* Gets the Move enum name from an ObjectType
|
|
16910
|
+
* @param objectType ObjectType enum value
|
|
16911
|
+
* @returns Corresponding Move enum name
|
|
17554
16912
|
*/
|
|
17555
|
-
declare
|
|
17556
|
-
type: string;
|
|
17557
|
-
description: string;
|
|
17558
|
-
}>) => Array<{
|
|
17559
|
-
type: string;
|
|
17560
|
-
description: string;
|
|
17561
|
-
}>;
|
|
17562
|
-
declare const gen_passport: (env: CallEnv, guard: string | string[], info?: SubmissionCall) => Promise<CallResult>;
|
|
17563
|
-
interface GuardParseError {
|
|
17564
|
-
message: string;
|
|
17565
|
-
path: string;
|
|
17566
|
-
line?: number;
|
|
17567
|
-
column?: number;
|
|
17568
|
-
}
|
|
17569
|
-
interface GuardParseResult {
|
|
17570
|
-
success: boolean;
|
|
17571
|
-
data?: Partial<CallGuard_Data> & {
|
|
17572
|
-
root: GuardNode;
|
|
17573
|
-
};
|
|
17574
|
-
errors: GuardParseError[];
|
|
17575
|
-
}
|
|
16913
|
+
declare function getMoveNameFromObjectType(objectType: ObjectType): string | undefined;
|
|
17576
16914
|
/**
|
|
17577
|
-
*
|
|
17578
|
-
*
|
|
16915
|
+
* Gets the Move enum name from a numeric value
|
|
16916
|
+
* @param value Numeric value to look up
|
|
16917
|
+
* @returns Corresponding Move enum name
|
|
17579
16918
|
*/
|
|
17580
|
-
declare function
|
|
16919
|
+
declare function getMoveNameFromNumber(value: number): string | undefined;
|
|
17581
16920
|
/**
|
|
17582
|
-
*
|
|
17583
|
-
*
|
|
17584
|
-
*
|
|
16921
|
+
* Converts a Move enum name to its numeric representation
|
|
16922
|
+
* @param moveName Move enum name (e.g., "Permission")
|
|
16923
|
+
* @returns Corresponding numeric value
|
|
17585
16924
|
*/
|
|
17586
|
-
declare function
|
|
16925
|
+
declare function getNumberFromMoveName(moveName: string): number | undefined;
|
|
17587
16926
|
/**
|
|
17588
|
-
*
|
|
17589
|
-
*
|
|
16927
|
+
* Converts an array of numeric values to ObjectType enum values
|
|
16928
|
+
* @param values Array of numeric values to convert
|
|
16929
|
+
* @returns Array of corresponding ObjectType enum values
|
|
17590
16930
|
*/
|
|
17591
|
-
declare function
|
|
17592
|
-
success: boolean;
|
|
17593
|
-
errors: GuardParseError[];
|
|
17594
|
-
};
|
|
16931
|
+
declare function getObjectTypesFromNumbers(values: number[]): (ObjectType | undefined)[];
|
|
17595
16932
|
/**
|
|
17596
|
-
*
|
|
16933
|
+
* Converts an array of ObjectType enum values to their numeric representations
|
|
16934
|
+
* @param objectTypes Array of ObjectType enum values to convert
|
|
16935
|
+
* @returns Array of corresponding numeric values
|
|
17597
16936
|
*/
|
|
17598
|
-
declare function
|
|
17599
|
-
|
|
17600
|
-
|
|
17601
|
-
|
|
16937
|
+
declare function getNumbersFromObjectTypes(objectTypes: ObjectType[]): (number | undefined)[];
|
|
16938
|
+
interface ObjectBase {
|
|
16939
|
+
object: string;
|
|
16940
|
+
type?: ObjectType;
|
|
16941
|
+
type_raw?: string;
|
|
16942
|
+
owner?: ObjectOwner$1 | null;
|
|
16943
|
+
version?: string;
|
|
16944
|
+
previousTransaction?: string;
|
|
16945
|
+
cache_expire?: CacheExpireType;
|
|
16946
|
+
query_name?: string;
|
|
16947
|
+
content_raw?: any;
|
|
16948
|
+
}
|
|
16949
|
+
interface Im {
|
|
16950
|
+
at: string;
|
|
16951
|
+
status: string;
|
|
16952
|
+
join_time: number;
|
|
16953
|
+
description: string;
|
|
16954
|
+
}
|
|
16955
|
+
interface ObjectContact extends ObjectBase {
|
|
16956
|
+
description: string;
|
|
16957
|
+
permission: string;
|
|
16958
|
+
location: string;
|
|
16959
|
+
ims: Im[];
|
|
16960
|
+
}
|
|
16961
|
+
interface ObjectEntityRegistrar extends ObjectBase {
|
|
16962
|
+
entity_count: number;
|
|
16963
|
+
}
|
|
16964
|
+
interface ObjectEntityLinker extends ObjectBase {
|
|
16965
|
+
entity_count: number;
|
|
16966
|
+
}
|
|
16967
|
+
interface ObjectResource extends ObjectBase {
|
|
16968
|
+
entity_count: number;
|
|
16969
|
+
}
|
|
16970
|
+
interface ObjectEntity extends ObjectBase {
|
|
16971
|
+
entity_count: number;
|
|
16972
|
+
}
|
|
16973
|
+
interface TableItem_EntityLinker extends ObjectBase {
|
|
16974
|
+
address: string;
|
|
16975
|
+
pos: number;
|
|
16976
|
+
count: number;
|
|
16977
|
+
votes: VoteInRegistrar[];
|
|
16978
|
+
}
|
|
16979
|
+
interface TableItem_EntityRegistrar extends ObjectBase {
|
|
16980
|
+
address: string;
|
|
16981
|
+
description: string;
|
|
16982
|
+
time: number;
|
|
16983
|
+
referrer: string | null;
|
|
16984
|
+
mark_object: string | null;
|
|
16985
|
+
records: RecordsInEntity[];
|
|
16986
|
+
}
|
|
16987
|
+
interface TableItem_AddressMark extends ObjectBase {
|
|
16988
|
+
entity: string;
|
|
16989
|
+
name: string;
|
|
16990
|
+
tags: string[];
|
|
16991
|
+
}
|
|
16992
|
+
interface ServiceGuard {
|
|
16993
|
+
guard: string;
|
|
16994
|
+
service_identifier?: number | null;
|
|
16995
|
+
}
|
|
16996
|
+
interface ObjectDemand extends ObjectBase {
|
|
16997
|
+
description: string;
|
|
16998
|
+
location: string;
|
|
16999
|
+
rewards: string[];
|
|
17000
|
+
guards: ServiceGuard[];
|
|
17001
|
+
presenters_count: number;
|
|
17002
|
+
um: string | null;
|
|
17003
|
+
permission: string;
|
|
17004
|
+
}
|
|
17005
|
+
interface ObjectMachine extends ObjectBase {
|
|
17006
|
+
description: string;
|
|
17007
|
+
node_count: number;
|
|
17008
|
+
consensus_repositories: string[];
|
|
17009
|
+
bPaused: boolean;
|
|
17010
|
+
bPublished: boolean;
|
|
17011
|
+
um: string | null;
|
|
17012
|
+
permission: string;
|
|
17013
|
+
}
|
|
17014
|
+
interface ServiceSale$1 {
|
|
17015
|
+
name: string;
|
|
17016
|
+
price: BalanceType;
|
|
17017
|
+
stock: BalanceType;
|
|
17018
|
+
suspension: boolean;
|
|
17019
|
+
wip: string;
|
|
17020
|
+
wip_hash: string;
|
|
17021
|
+
}
|
|
17022
|
+
interface PurchasedItem {
|
|
17023
|
+
name: string;
|
|
17024
|
+
price: BalanceType;
|
|
17025
|
+
quantity: BalanceType;
|
|
17026
|
+
wip_hash: string;
|
|
17027
|
+
}
|
|
17028
|
+
interface ObjectOrder extends ObjectBase {
|
|
17029
|
+
items: PurchasedItem[];
|
|
17030
|
+
discount: string | null;
|
|
17031
|
+
progress: string | null;
|
|
17032
|
+
machine: string | null;
|
|
17033
|
+
amount: BalanceType;
|
|
17034
|
+
builder: string;
|
|
17035
|
+
service: string;
|
|
17036
|
+
dispute: string[];
|
|
17037
|
+
agent: string[];
|
|
17038
|
+
allocation: string | null;
|
|
17039
|
+
claimed_by: string | null;
|
|
17040
|
+
required_info: string | null;
|
|
17041
|
+
time: string | number;
|
|
17042
|
+
}
|
|
17043
|
+
interface NamedOperator$1 {
|
|
17044
|
+
name: string;
|
|
17045
|
+
operators: string[];
|
|
17046
|
+
}
|
|
17047
|
+
interface ProgressSession {
|
|
17048
|
+
next_node: string;
|
|
17049
|
+
forwards: ProgressSessionHolder[];
|
|
17050
|
+
weights: number;
|
|
17051
|
+
threshold: number;
|
|
17052
|
+
}
|
|
17053
|
+
interface ProgressSessionHolder {
|
|
17054
|
+
forward: string;
|
|
17055
|
+
who: string | null;
|
|
17056
|
+
retained_submission: GuardSubmission[];
|
|
17057
|
+
msg: string;
|
|
17058
|
+
accomplished: boolean;
|
|
17059
|
+
time: number;
|
|
17060
|
+
}
|
|
17061
|
+
interface ObjectProgress extends ObjectBase {
|
|
17062
|
+
machine: string;
|
|
17063
|
+
context_repositories: string[];
|
|
17064
|
+
current: string;
|
|
17065
|
+
task: string | null;
|
|
17066
|
+
namedOperator: NamedOperator$1[];
|
|
17067
|
+
session: ProgressSession[];
|
|
17068
|
+
history_count: number;
|
|
17069
|
+
current_time: number;
|
|
17070
|
+
}
|
|
17071
|
+
declare enum AmountType {
|
|
17072
|
+
GuardU64Identifier = 0,
|
|
17073
|
+
Fixed = 1
|
|
17074
|
+
}
|
|
17075
|
+
type Amount = {
|
|
17076
|
+
type: AmountType.GuardU64Identifier;
|
|
17077
|
+
value: number;
|
|
17078
|
+
} | {
|
|
17079
|
+
type: AmountType.Fixed;
|
|
17080
|
+
value: BalanceType;
|
|
17081
|
+
};
|
|
17082
|
+
interface RewardGuard {
|
|
17083
|
+
guard: string;
|
|
17084
|
+
recipient: Recipient;
|
|
17085
|
+
amount: Amount;
|
|
17086
|
+
expiration_time?: number;
|
|
17087
|
+
store_from_id?: number | null;
|
|
17088
|
+
}
|
|
17089
|
+
interface ObjectReward extends ObjectBase {
|
|
17090
|
+
description: string;
|
|
17091
|
+
guards: RewardGuard[];
|
|
17092
|
+
balance: BalanceType;
|
|
17093
|
+
guard_not_added_expiration_time: string | number | null;
|
|
17094
|
+
record_count: number;
|
|
17095
|
+
um: string | null;
|
|
17096
|
+
permission: string;
|
|
17097
|
+
}
|
|
17098
|
+
interface ObjectService extends ObjectBase {
|
|
17099
|
+
description: string;
|
|
17100
|
+
location: string;
|
|
17101
|
+
sales: ServiceSale$1[];
|
|
17102
|
+
repositories: string[];
|
|
17103
|
+
buy_guard: string | null;
|
|
17104
|
+
machine: string | null;
|
|
17105
|
+
bPublished: boolean;
|
|
17106
|
+
bPaused: boolean;
|
|
17107
|
+
customer_required: string[];
|
|
17108
|
+
arbitrations: string[];
|
|
17109
|
+
compensation_fund: BalanceType;
|
|
17110
|
+
paused_time: number | null;
|
|
17111
|
+
setting_lock_duration: string | number | bigint;
|
|
17112
|
+
order_allocators: Allocators | null;
|
|
17113
|
+
rewards: string[];
|
|
17114
|
+
um: string | null;
|
|
17115
|
+
permission: string;
|
|
17116
|
+
}
|
|
17117
|
+
interface ArbVoted {
|
|
17118
|
+
voter: string;
|
|
17119
|
+
agrees: number[];
|
|
17120
|
+
weight: number;
|
|
17121
|
+
time: number;
|
|
17122
|
+
}
|
|
17123
|
+
interface ArbProposition {
|
|
17602
17124
|
name: string;
|
|
17603
|
-
|
|
17604
|
-
value: SupportedValue;
|
|
17125
|
+
votes: number;
|
|
17605
17126
|
}
|
|
17606
|
-
interface
|
|
17607
|
-
|
|
17608
|
-
like?: boolean;
|
|
17609
|
-
dislike?: boolean;
|
|
17610
|
-
favor?: boolean;
|
|
17127
|
+
interface ArbIndemnity {
|
|
17128
|
+
amount: BalanceType;
|
|
17611
17129
|
time: number;
|
|
17612
17130
|
}
|
|
17613
|
-
|
|
17614
|
-
|
|
17615
|
-
|
|
17616
|
-
|
|
17617
|
-
|
|
17618
|
-
|
|
17619
|
-
|
|
17620
|
-
|
|
17621
|
-
moveName: string;
|
|
17131
|
+
declare enum ArbStatus {
|
|
17132
|
+
Principal_confirming = 0,
|
|
17133
|
+
Arbitrator_confirming = 1,
|
|
17134
|
+
Voting = 2,
|
|
17135
|
+
Arbitrated = 3,
|
|
17136
|
+
Objectionable = 4,
|
|
17137
|
+
Finished = 5,
|
|
17138
|
+
Withdrawn = 6
|
|
17622
17139
|
}
|
|
17623
|
-
|
|
17624
|
-
|
|
17625
|
-
|
|
17626
|
-
|
|
17627
|
-
|
|
17628
|
-
|
|
17629
|
-
|
|
17630
|
-
|
|
17631
|
-
|
|
17632
|
-
|
|
17633
|
-
|
|
17634
|
-
|
|
17635
|
-
|
|
17636
|
-
|
|
17637
|
-
*/
|
|
17638
|
-
declare function getObjectTypeFromNumber(value: number): ObjectType | undefined;
|
|
17639
|
-
/**
|
|
17640
|
-
* Converts an ObjectType enum value to its numeric representation
|
|
17641
|
-
* @param objectType ObjectType enum value to convert
|
|
17642
|
-
* @returns Corresponding numeric value
|
|
17643
|
-
*/
|
|
17644
|
-
declare function getNumberFromObjectType(objectType: ObjectType): number | undefined;
|
|
17645
|
-
/**
|
|
17646
|
-
* Gets the complete definition for an ObjectType
|
|
17647
|
-
* @param objectType ObjectType enum value
|
|
17648
|
-
* @returns Object containing name, moveValue, and moveName
|
|
17649
|
-
*/
|
|
17650
|
-
declare function getObjectTypeDefinition(objectType: ObjectType): ObjectTypeDefinition | undefined;
|
|
17651
|
-
/**
|
|
17652
|
-
* Gets the complete definition from a numeric value
|
|
17653
|
-
* @param value Numeric value to look up
|
|
17654
|
-
* @returns Object containing name, moveValue, and moveName
|
|
17655
|
-
*/
|
|
17656
|
-
declare function getObjectTypeDefinitionFromNumber(value: number): ObjectTypeDefinition | undefined;
|
|
17657
|
-
/**
|
|
17658
|
-
* Converts a Move enum name string to ObjectType
|
|
17659
|
-
* @param moveName Move enum name (e.g., "Permission")
|
|
17660
|
-
* @returns Corresponding ObjectType enum value
|
|
17661
|
-
*/
|
|
17662
|
-
declare function getObjectTypeFromMoveName(moveName: string): ObjectType | undefined;
|
|
17663
|
-
/**
|
|
17664
|
-
* Gets the Move enum name from an ObjectType
|
|
17665
|
-
* @param objectType ObjectType enum value
|
|
17666
|
-
* @returns Corresponding Move enum name
|
|
17667
|
-
*/
|
|
17668
|
-
declare function getMoveNameFromObjectType(objectType: ObjectType): string | undefined;
|
|
17669
|
-
/**
|
|
17670
|
-
* Gets the Move enum name from a numeric value
|
|
17671
|
-
* @param value Numeric value to look up
|
|
17672
|
-
* @returns Corresponding Move enum name
|
|
17673
|
-
*/
|
|
17674
|
-
declare function getMoveNameFromNumber(value: number): string | undefined;
|
|
17675
|
-
/**
|
|
17676
|
-
* Converts a Move enum name to its numeric representation
|
|
17677
|
-
* @param moveName Move enum name (e.g., "Permission")
|
|
17678
|
-
* @returns Corresponding numeric value
|
|
17679
|
-
*/
|
|
17680
|
-
declare function getNumberFromMoveName(moveName: string): number | undefined;
|
|
17681
|
-
/**
|
|
17682
|
-
* Converts an array of numeric values to ObjectType enum values
|
|
17683
|
-
* @param values Array of numeric values to convert
|
|
17684
|
-
* @returns Array of corresponding ObjectType enum values
|
|
17685
|
-
*/
|
|
17686
|
-
declare function getObjectTypesFromNumbers(values: number[]): (ObjectType | undefined)[];
|
|
17687
|
-
/**
|
|
17688
|
-
* Converts an array of ObjectType enum values to their numeric representations
|
|
17689
|
-
* @param objectTypes Array of ObjectType enum values to convert
|
|
17690
|
-
* @returns Array of corresponding numeric values
|
|
17691
|
-
*/
|
|
17692
|
-
declare function getNumbersFromObjectTypes(objectTypes: ObjectType[]): (number | undefined)[];
|
|
17693
|
-
interface ObjectBase {
|
|
17694
|
-
object: string;
|
|
17695
|
-
type?: ObjectType;
|
|
17696
|
-
type_raw?: string;
|
|
17697
|
-
owner?: ObjectOwner$1 | null;
|
|
17698
|
-
version?: string;
|
|
17699
|
-
previousTransaction?: string;
|
|
17700
|
-
cache_expire?: CacheExpireType;
|
|
17701
|
-
query_name?: string;
|
|
17702
|
-
content_raw?: any;
|
|
17140
|
+
interface ObjectArb extends ObjectBase {
|
|
17141
|
+
description: string;
|
|
17142
|
+
arbitration: string;
|
|
17143
|
+
order: string;
|
|
17144
|
+
voted: ArbVoted[];
|
|
17145
|
+
proposition: ArbProposition[];
|
|
17146
|
+
fee: BalanceType;
|
|
17147
|
+
feedback: string;
|
|
17148
|
+
indemnity?: ArbIndemnity | null;
|
|
17149
|
+
voting_deadline?: number | string | bigint;
|
|
17150
|
+
objection: string;
|
|
17151
|
+
status: ArbStatus;
|
|
17152
|
+
compensation_time: number | null;
|
|
17153
|
+
time: number;
|
|
17703
17154
|
}
|
|
17704
|
-
|
|
17705
|
-
|
|
17706
|
-
|
|
17707
|
-
|
|
17155
|
+
declare enum DiscountType {
|
|
17156
|
+
RATES = 0,
|
|
17157
|
+
// off%
|
|
17158
|
+
FIXED = 1
|
|
17159
|
+
}
|
|
17160
|
+
interface ObjectDiscount extends ObjectBase {
|
|
17161
|
+
name: string;
|
|
17162
|
+
discount_type: DiscountType;
|
|
17163
|
+
benchmark: BalanceType | null;
|
|
17164
|
+
off: BalanceType;
|
|
17165
|
+
time_start: string | number;
|
|
17166
|
+
time_end: string | number;
|
|
17167
|
+
service: string;
|
|
17168
|
+
transferable: boolean;
|
|
17169
|
+
}
|
|
17170
|
+
interface AmountFromDepositGuard {
|
|
17171
|
+
guard: string;
|
|
17172
|
+
identifier?: number | null;
|
|
17173
|
+
store_from_id?: number | null;
|
|
17174
|
+
}
|
|
17175
|
+
interface AmountFromWithdrawGuard {
|
|
17176
|
+
guard: string;
|
|
17177
|
+
identifier: number;
|
|
17178
|
+
store_from_id?: number | null;
|
|
17179
|
+
}
|
|
17180
|
+
interface ObjectProof extends ObjectBase {
|
|
17708
17181
|
description: string;
|
|
17182
|
+
proof: string;
|
|
17183
|
+
server_pubkey: string;
|
|
17184
|
+
server_signature: string;
|
|
17185
|
+
proof_type: number;
|
|
17186
|
+
item_count: number | null;
|
|
17187
|
+
about_address: string | null;
|
|
17188
|
+
signer: string;
|
|
17189
|
+
time: number;
|
|
17709
17190
|
}
|
|
17710
|
-
interface
|
|
17191
|
+
interface ObjectTreasury extends ObjectBase {
|
|
17711
17192
|
description: string;
|
|
17193
|
+
balance: BalanceType;
|
|
17194
|
+
history_count: number;
|
|
17195
|
+
external_deposit_guard: AmountFromDepositGuard[];
|
|
17196
|
+
external_withdraw_guard: AmountFromWithdrawGuard[];
|
|
17197
|
+
inflow: BalanceType;
|
|
17198
|
+
outflow: BalanceType;
|
|
17199
|
+
um: string | null;
|
|
17712
17200
|
permission: string;
|
|
17713
|
-
location: string;
|
|
17714
|
-
ims: Im[];
|
|
17715
17201
|
}
|
|
17716
|
-
|
|
17717
|
-
|
|
17202
|
+
declare enum TreasuryOp {
|
|
17203
|
+
Withdraw = 0,
|
|
17204
|
+
Deposit = 1,
|
|
17205
|
+
Receive = 2
|
|
17718
17206
|
}
|
|
17719
|
-
interface
|
|
17720
|
-
|
|
17207
|
+
interface TreasuryRecord {
|
|
17208
|
+
op: TreasuryOp;
|
|
17209
|
+
signer: string;
|
|
17210
|
+
external_guard: string | null;
|
|
17211
|
+
amount: BalanceType;
|
|
17212
|
+
time: number | string | bigint;
|
|
17213
|
+
store_from_id?: string | null;
|
|
17721
17214
|
}
|
|
17722
|
-
interface
|
|
17723
|
-
|
|
17215
|
+
interface WReceivedObject extends ObjectBase {
|
|
17216
|
+
balance: BalanceType;
|
|
17217
|
+
payment: string;
|
|
17724
17218
|
}
|
|
17725
|
-
interface
|
|
17726
|
-
|
|
17219
|
+
interface PolicyWriteGuard {
|
|
17220
|
+
guard: string;
|
|
17221
|
+
id_from_submission?: number;
|
|
17222
|
+
data_from_submission?: number;
|
|
17727
17223
|
}
|
|
17728
|
-
|
|
17729
|
-
|
|
17730
|
-
|
|
17731
|
-
|
|
17732
|
-
votes: VoteInRegistrar[];
|
|
17224
|
+
declare enum IdFrom {
|
|
17225
|
+
None = 0,
|
|
17226
|
+
Clock = 1,
|
|
17227
|
+
Signer = 2
|
|
17733
17228
|
}
|
|
17734
|
-
|
|
17735
|
-
|
|
17229
|
+
type IdFromInput = IdFrom | string;
|
|
17230
|
+
declare const parseIdFrom: (input: IdFromInput) => IdFrom;
|
|
17231
|
+
declare const idFromToString: (type: IdFrom) => string;
|
|
17232
|
+
declare const isValidIdFromInput: (input: unknown) => input is IdFromInput;
|
|
17233
|
+
interface PolicyRule {
|
|
17234
|
+
name: string;
|
|
17736
17235
|
description: string;
|
|
17737
|
-
|
|
17738
|
-
|
|
17739
|
-
|
|
17740
|
-
|
|
17236
|
+
write_guard: PolicyWriteGuard[];
|
|
17237
|
+
quote_guard?: string | null;
|
|
17238
|
+
id_from: IdFromInput;
|
|
17239
|
+
value_type: ValueTypeInput;
|
|
17741
17240
|
}
|
|
17742
|
-
interface
|
|
17241
|
+
interface TableItem_RepositoryData extends ObjectBase {
|
|
17743
17242
|
entity: string;
|
|
17744
17243
|
name: string;
|
|
17745
|
-
|
|
17244
|
+
value: Uint8Array;
|
|
17245
|
+
data: {
|
|
17246
|
+
value_type: ValueTypeInput;
|
|
17247
|
+
value: SupportedValue;
|
|
17248
|
+
};
|
|
17746
17249
|
}
|
|
17747
|
-
interface
|
|
17748
|
-
|
|
17749
|
-
|
|
17250
|
+
interface TableItem_RewardRecord extends ObjectBase {
|
|
17251
|
+
recipient: string;
|
|
17252
|
+
/** RecipientRecord has NO guard (reward.move L102-105 = {total, amount}).
|
|
17253
|
+
* Kept optional for backwards compat — the parser never sets it. */
|
|
17254
|
+
guard?: string | null;
|
|
17255
|
+
total: BalanceType;
|
|
17256
|
+
record: {
|
|
17257
|
+
/** Guard that verified the claim (reward.move Record.guard, L95-100). */guard?: string | null;
|
|
17258
|
+
amount: BalanceType;
|
|
17259
|
+
time: number;
|
|
17260
|
+
store_from_id?: string | null;
|
|
17261
|
+
}[];
|
|
17750
17262
|
}
|
|
17751
|
-
interface
|
|
17263
|
+
interface ObjectRepository extends ObjectBase {
|
|
17752
17264
|
description: string;
|
|
17753
|
-
|
|
17265
|
+
policies: PolicyRule[];
|
|
17266
|
+
data_count: number;
|
|
17754
17267
|
rewards: string[];
|
|
17755
|
-
guards: ServiceGuard[];
|
|
17756
|
-
presenters_count: number;
|
|
17757
17268
|
um: string | null;
|
|
17758
17269
|
permission: string;
|
|
17759
17270
|
}
|
|
17760
|
-
interface
|
|
17271
|
+
interface ObjectPersonal extends ObjectBase {
|
|
17272
|
+
address: string;
|
|
17273
|
+
like: number;
|
|
17274
|
+
dislike: number;
|
|
17275
|
+
favor: number;
|
|
17276
|
+
info: RecordsInEntity[];
|
|
17761
17277
|
description: string;
|
|
17762
|
-
|
|
17763
|
-
|
|
17764
|
-
|
|
17765
|
-
|
|
17278
|
+
referrer: string | null;
|
|
17279
|
+
mark_object: string | null;
|
|
17280
|
+
details: VoteInRegistrar[];
|
|
17281
|
+
active_tx: string | null;
|
|
17282
|
+
passive_tx: string | null;
|
|
17283
|
+
time: number;
|
|
17284
|
+
}
|
|
17285
|
+
interface ObjectPermission extends ObjectBase {
|
|
17286
|
+
builder: string;
|
|
17287
|
+
admin: string[];
|
|
17288
|
+
description: string;
|
|
17289
|
+
entity_count: number;
|
|
17290
|
+
perm_remark: {
|
|
17291
|
+
index: PermissionIndexType;
|
|
17292
|
+
remark: string;
|
|
17293
|
+
}[];
|
|
17766
17294
|
um: string | null;
|
|
17767
|
-
permission: string;
|
|
17768
17295
|
}
|
|
17769
|
-
interface
|
|
17770
|
-
|
|
17771
|
-
|
|
17772
|
-
|
|
17773
|
-
|
|
17774
|
-
|
|
17775
|
-
|
|
17296
|
+
interface ObjectGuard extends ObjectBase {
|
|
17297
|
+
description: string;
|
|
17298
|
+
table: GuardTableItem[];
|
|
17299
|
+
input: Uint8Array;
|
|
17300
|
+
root: GuardNode;
|
|
17301
|
+
rep_quote: Map<string, string[]>;
|
|
17302
|
+
relies: string[];
|
|
17303
|
+
relies_logic_and: boolean;
|
|
17304
|
+
rep: boolean;
|
|
17305
|
+
immutable: boolean;
|
|
17776
17306
|
}
|
|
17777
|
-
|
|
17778
|
-
|
|
17779
|
-
|
|
17780
|
-
|
|
17781
|
-
wip_hash: string;
|
|
17307
|
+
declare enum AllocationMode {
|
|
17308
|
+
Amount = 0,
|
|
17309
|
+
Rate = 1,
|
|
17310
|
+
Surplus = 2
|
|
17782
17311
|
}
|
|
17783
|
-
interface
|
|
17784
|
-
|
|
17785
|
-
|
|
17786
|
-
|
|
17787
|
-
machine: string | null;
|
|
17788
|
-
amount: BalanceType;
|
|
17789
|
-
builder: string;
|
|
17790
|
-
service: string;
|
|
17791
|
-
dispute: string[];
|
|
17792
|
-
agent: string[];
|
|
17793
|
-
allocation: string | null;
|
|
17794
|
-
claimed_by: string | null;
|
|
17795
|
-
required_info: string | null;
|
|
17796
|
-
time: string | number;
|
|
17312
|
+
interface AllocationSharing {
|
|
17313
|
+
who: Recipient;
|
|
17314
|
+
sharing: BalanceType;
|
|
17315
|
+
mode: AllocationMode;
|
|
17797
17316
|
}
|
|
17798
|
-
interface
|
|
17799
|
-
|
|
17800
|
-
|
|
17317
|
+
interface Allocator {
|
|
17318
|
+
guard: string;
|
|
17319
|
+
sharing: AllocationSharing[];
|
|
17320
|
+
fix?: BalanceType;
|
|
17321
|
+
max?: BalanceType | null;
|
|
17801
17322
|
}
|
|
17802
|
-
interface
|
|
17803
|
-
|
|
17804
|
-
|
|
17805
|
-
|
|
17806
|
-
threshold: number;
|
|
17323
|
+
interface Allocators {
|
|
17324
|
+
description: string;
|
|
17325
|
+
threshold: BalanceType;
|
|
17326
|
+
allocators: Allocator[];
|
|
17807
17327
|
}
|
|
17808
|
-
interface
|
|
17809
|
-
|
|
17810
|
-
|
|
17811
|
-
|
|
17812
|
-
|
|
17813
|
-
accomplished: boolean;
|
|
17814
|
-
time: number;
|
|
17328
|
+
interface PaymentInfo {
|
|
17329
|
+
for_object?: string | null;
|
|
17330
|
+
for_guard?: string | null;
|
|
17331
|
+
remark: string;
|
|
17332
|
+
index: number | bigint | string;
|
|
17815
17333
|
}
|
|
17816
|
-
interface
|
|
17817
|
-
|
|
17818
|
-
|
|
17819
|
-
|
|
17820
|
-
|
|
17821
|
-
|
|
17822
|
-
|
|
17823
|
-
|
|
17824
|
-
|
|
17334
|
+
interface ObjectPayment extends ObjectBase {
|
|
17335
|
+
record: {
|
|
17336
|
+
recipient: Recipient;
|
|
17337
|
+
amount: BalanceType;
|
|
17338
|
+
}[];
|
|
17339
|
+
amount: BalanceType;
|
|
17340
|
+
time: string;
|
|
17341
|
+
from_object?: string | null;
|
|
17342
|
+
signer: string;
|
|
17343
|
+
info: PaymentInfo;
|
|
17825
17344
|
}
|
|
17826
|
-
|
|
17827
|
-
|
|
17828
|
-
|
|
17345
|
+
interface ObjectAllocation extends ObjectBase {
|
|
17346
|
+
description: string;
|
|
17347
|
+
allocators: Allocator[];
|
|
17348
|
+
balance: BalanceType;
|
|
17349
|
+
payment_info?: PaymentInfo;
|
|
17350
|
+
payment: string[];
|
|
17829
17351
|
}
|
|
17830
|
-
type
|
|
17831
|
-
|
|
17832
|
-
value: number;
|
|
17352
|
+
type VoteWeight = {
|
|
17353
|
+
GuardIdentifier: number;
|
|
17833
17354
|
} | {
|
|
17834
|
-
|
|
17835
|
-
value: BalanceType;
|
|
17355
|
+
FixedValue: number;
|
|
17836
17356
|
};
|
|
17837
|
-
interface
|
|
17357
|
+
interface VotingGuard {
|
|
17838
17358
|
guard: string;
|
|
17839
|
-
|
|
17840
|
-
amount: Amount;
|
|
17841
|
-
expiration_time?: number;
|
|
17842
|
-
store_from_id?: number | null;
|
|
17359
|
+
vote_weight: VoteWeight;
|
|
17843
17360
|
}
|
|
17844
|
-
interface
|
|
17361
|
+
interface ObjectArbitration extends ObjectBase {
|
|
17845
17362
|
description: string;
|
|
17846
|
-
|
|
17363
|
+
location: string;
|
|
17364
|
+
voting_guard: VotingGuard[];
|
|
17365
|
+
usage_guard?: string | null;
|
|
17366
|
+
fee: BalanceType;
|
|
17847
17367
|
balance: BalanceType;
|
|
17848
|
-
|
|
17849
|
-
record_count: number;
|
|
17368
|
+
bPaused: boolean;
|
|
17850
17369
|
um: string | null;
|
|
17851
17370
|
permission: string;
|
|
17852
17371
|
}
|
|
17853
|
-
interface
|
|
17854
|
-
|
|
17855
|
-
|
|
17856
|
-
|
|
17857
|
-
|
|
17858
|
-
|
|
17859
|
-
|
|
17860
|
-
|
|
17861
|
-
|
|
17862
|
-
|
|
17863
|
-
|
|
17864
|
-
|
|
17865
|
-
|
|
17866
|
-
|
|
17867
|
-
|
|
17868
|
-
|
|
17869
|
-
|
|
17372
|
+
interface GuardSubmission {
|
|
17373
|
+
identifier: number;
|
|
17374
|
+
value_type: ValueTypeInput;
|
|
17375
|
+
value: SupportedValue;
|
|
17376
|
+
}
|
|
17377
|
+
interface GuardInPassport {
|
|
17378
|
+
guard: string;
|
|
17379
|
+
result: boolean;
|
|
17380
|
+
impack: boolean;
|
|
17381
|
+
relies: string[];
|
|
17382
|
+
relies_logic_and: boolean;
|
|
17383
|
+
submission: GuardSubmission;
|
|
17384
|
+
}
|
|
17385
|
+
interface ObjectPassport extends ObjectBase {
|
|
17386
|
+
info: GuardInPassport[];
|
|
17387
|
+
result: boolean;
|
|
17388
|
+
tx_hash: string;
|
|
17389
|
+
impack_guard: string[];
|
|
17390
|
+
time: number;
|
|
17391
|
+
signer: string;
|
|
17392
|
+
has_verified: boolean;
|
|
17393
|
+
}
|
|
17394
|
+
interface TableItem_PermissionPerm extends ObjectBase {
|
|
17395
|
+
address: string;
|
|
17396
|
+
perm: number[];
|
|
17397
|
+
}
|
|
17398
|
+
/** A single PermissionItem of the global entity-permission reverse index. */
|
|
17399
|
+
interface EntityPermissionItemView {
|
|
17400
|
+
role: number;
|
|
17870
17401
|
permission: string;
|
|
17402
|
+
time: number;
|
|
17871
17403
|
}
|
|
17872
|
-
|
|
17873
|
-
|
|
17874
|
-
|
|
17875
|
-
|
|
17404
|
+
/** Dynamic-field item of EntityPermission (0xaad): entity address → items. */
|
|
17405
|
+
interface TableItem_EntityPermission extends ObjectBase {
|
|
17406
|
+
address: string;
|
|
17407
|
+
items: EntityPermissionItemView[];
|
|
17408
|
+
}
|
|
17409
|
+
/** Contact membership item of EntityContact (0xaa9). */
|
|
17410
|
+
interface EntityContactItemView {
|
|
17411
|
+
contact: string;
|
|
17876
17412
|
time: number;
|
|
17877
17413
|
}
|
|
17878
|
-
|
|
17879
|
-
|
|
17880
|
-
|
|
17414
|
+
/** Dynamic-field item of EntityContact (0xaa9): entity address → items. */
|
|
17415
|
+
interface TableItem_EntityContact extends ObjectBase {
|
|
17416
|
+
address: string;
|
|
17417
|
+
items: EntityContactItemView[];
|
|
17881
17418
|
}
|
|
17882
|
-
|
|
17883
|
-
|
|
17419
|
+
/** Core reverse link of ObjectLinkerCore (0xaae). */
|
|
17420
|
+
interface CoreLinkView {
|
|
17421
|
+
who: string;
|
|
17884
17422
|
time: number;
|
|
17885
17423
|
}
|
|
17886
|
-
|
|
17887
|
-
|
|
17888
|
-
|
|
17889
|
-
|
|
17890
|
-
|
|
17891
|
-
|
|
17892
|
-
|
|
17893
|
-
|
|
17424
|
+
/** Dynamic-field item of ObjectLinkerCore (0xaae): target → core links. */
|
|
17425
|
+
interface TableItem_ObjectLinkerCore extends ObjectBase {
|
|
17426
|
+
address: string;
|
|
17427
|
+
items: CoreLinkView[];
|
|
17428
|
+
}
|
|
17429
|
+
/** Tx reverse link of ObjectLinkerTx (0xaaf). */
|
|
17430
|
+
interface TxLinkView {
|
|
17431
|
+
who: string;
|
|
17432
|
+
time: number;
|
|
17433
|
+
}
|
|
17434
|
+
/** Dynamic-field item of ObjectLinkerTx (0xaaf): target → tx buffer links. */
|
|
17435
|
+
interface TableItem_ObjectLinkerTx extends ObjectBase {
|
|
17436
|
+
address: string;
|
|
17437
|
+
items: TxLinkView[];
|
|
17894
17438
|
}
|
|
17895
|
-
|
|
17896
|
-
|
|
17897
|
-
|
|
17439
|
+
/** A single OrderRoleItem of the global entity-order reverse index. */
|
|
17440
|
+
interface EntityOrderItemView {
|
|
17441
|
+
role: number;
|
|
17898
17442
|
order: string;
|
|
17899
|
-
voted: ArbVoted[];
|
|
17900
|
-
proposition: ArbProposition[];
|
|
17901
|
-
fee: BalanceType;
|
|
17902
|
-
feedback: string;
|
|
17903
|
-
indemnity?: ArbIndemnity | null;
|
|
17904
|
-
voting_deadline?: number | string | bigint;
|
|
17905
|
-
objection: string;
|
|
17906
|
-
status: ArbStatus;
|
|
17907
|
-
compensation_time: number | null;
|
|
17908
17443
|
time: number;
|
|
17909
17444
|
}
|
|
17910
|
-
|
|
17911
|
-
|
|
17912
|
-
|
|
17913
|
-
|
|
17445
|
+
/** Dynamic-field item of EntityOrder (0xaa8): entity address → items. */
|
|
17446
|
+
interface TableItem_EntityOrder extends ObjectBase {
|
|
17447
|
+
address: string;
|
|
17448
|
+
items: EntityOrderItemView[];
|
|
17914
17449
|
}
|
|
17915
|
-
interface
|
|
17916
|
-
|
|
17917
|
-
|
|
17918
|
-
|
|
17919
|
-
|
|
17920
|
-
|
|
17921
|
-
|
|
17922
|
-
|
|
17923
|
-
transferable: boolean;
|
|
17450
|
+
interface TableItem_DemandPresenter extends ObjectBase {
|
|
17451
|
+
address: string;
|
|
17452
|
+
recommend: string;
|
|
17453
|
+
service: string | null;
|
|
17454
|
+
update_time: number;
|
|
17455
|
+
acceptance_score: number | null;
|
|
17456
|
+
feedback: string;
|
|
17457
|
+
feedback_time: number;
|
|
17924
17458
|
}
|
|
17925
|
-
interface
|
|
17459
|
+
interface MachineForwardGuard {
|
|
17926
17460
|
guard: string;
|
|
17927
|
-
|
|
17928
|
-
store_from_id?: number | null;
|
|
17461
|
+
retained_submission?: number[];
|
|
17929
17462
|
}
|
|
17930
|
-
interface
|
|
17931
|
-
|
|
17932
|
-
|
|
17933
|
-
|
|
17463
|
+
interface MachineForward {
|
|
17464
|
+
name: string;
|
|
17465
|
+
namedOperator?: string;
|
|
17466
|
+
permissionIndex?: number;
|
|
17467
|
+
weight: number;
|
|
17468
|
+
guard?: MachineForwardGuard;
|
|
17934
17469
|
}
|
|
17935
|
-
interface
|
|
17936
|
-
|
|
17937
|
-
|
|
17938
|
-
|
|
17939
|
-
server_signature: string;
|
|
17940
|
-
proof_type: number;
|
|
17941
|
-
item_count: number | null;
|
|
17942
|
-
about_address: string | null;
|
|
17943
|
-
signer: string;
|
|
17944
|
-
time: number;
|
|
17470
|
+
interface MachineNodePair {
|
|
17471
|
+
prev_node: string;
|
|
17472
|
+
threshold: number;
|
|
17473
|
+
forwards: MachineForward[];
|
|
17945
17474
|
}
|
|
17946
|
-
interface
|
|
17947
|
-
|
|
17948
|
-
|
|
17949
|
-
history_count: number;
|
|
17950
|
-
external_deposit_guard: AmountFromDepositGuard[];
|
|
17951
|
-
external_withdraw_guard: AmountFromWithdrawGuard[];
|
|
17952
|
-
inflow: BalanceType;
|
|
17953
|
-
outflow: BalanceType;
|
|
17954
|
-
um: string | null;
|
|
17955
|
-
permission: string;
|
|
17475
|
+
interface MachineNode {
|
|
17476
|
+
name: string;
|
|
17477
|
+
pairs: MachineNodePair[];
|
|
17956
17478
|
}
|
|
17957
|
-
|
|
17958
|
-
|
|
17959
|
-
|
|
17960
|
-
Receive = 2
|
|
17479
|
+
interface TableItem_MachineNode extends ObjectBase {
|
|
17480
|
+
name: string;
|
|
17481
|
+
value: MachineNodePair[];
|
|
17961
17482
|
}
|
|
17962
|
-
interface
|
|
17483
|
+
interface TableItem_ProgressHistory extends ObjectBase {
|
|
17484
|
+
index: number;
|
|
17485
|
+
node: string;
|
|
17486
|
+
next_node: string;
|
|
17487
|
+
session: ProgressSession[];
|
|
17488
|
+
time: number;
|
|
17489
|
+
}
|
|
17490
|
+
interface TableItem_TreasuryHistory extends ObjectBase {
|
|
17491
|
+
payment: string;
|
|
17963
17492
|
op: TreasuryOp;
|
|
17964
17493
|
signer: string;
|
|
17965
17494
|
external_guard: string | null;
|
|
17966
17495
|
amount: BalanceType;
|
|
17967
|
-
time: number
|
|
17496
|
+
time: number;
|
|
17968
17497
|
store_from_id?: string | null;
|
|
17969
17498
|
}
|
|
17970
|
-
interface
|
|
17971
|
-
|
|
17972
|
-
|
|
17973
|
-
|
|
17974
|
-
interface PolicyWriteGuard {
|
|
17975
|
-
guard: string;
|
|
17976
|
-
id_from_submission?: number;
|
|
17977
|
-
data_from_submission?: number;
|
|
17499
|
+
interface ObjectsQuery {
|
|
17500
|
+
objects: string[];
|
|
17501
|
+
no_cache?: boolean;
|
|
17502
|
+
network?: ENTRYPOINT;
|
|
17978
17503
|
}
|
|
17979
|
-
|
|
17980
|
-
|
|
17981
|
-
Clock = 1,
|
|
17982
|
-
Signer = 2
|
|
17504
|
+
interface ObjectsAnswer {
|
|
17505
|
+
objects?: ObjectBase[];
|
|
17983
17506
|
}
|
|
17984
|
-
|
|
17985
|
-
|
|
17986
|
-
|
|
17987
|
-
|
|
17988
|
-
interface PolicyRule {
|
|
17989
|
-
name: string;
|
|
17990
|
-
description: string;
|
|
17991
|
-
write_guard: PolicyWriteGuard[];
|
|
17992
|
-
quote_guard?: string | null;
|
|
17993
|
-
id_from: IdFromInput;
|
|
17994
|
-
value_type: ValueTypeInput;
|
|
17507
|
+
interface PersonalQuery {
|
|
17508
|
+
account?: string;
|
|
17509
|
+
no_cache?: boolean;
|
|
17510
|
+
network?: ENTRYPOINT;
|
|
17995
17511
|
}
|
|
17996
|
-
interface
|
|
17997
|
-
|
|
17998
|
-
|
|
17999
|
-
|
|
18000
|
-
|
|
18001
|
-
|
|
18002
|
-
value: SupportedValue;
|
|
18003
|
-
};
|
|
17512
|
+
interface TableQuery {
|
|
17513
|
+
parent: string;
|
|
17514
|
+
cursor?: string | null | undefined;
|
|
17515
|
+
limit?: number | null | undefined;
|
|
17516
|
+
no_cache?: boolean;
|
|
17517
|
+
network?: ENTRYPOINT;
|
|
18004
17518
|
}
|
|
18005
|
-
interface
|
|
18006
|
-
|
|
18007
|
-
|
|
18008
|
-
|
|
18009
|
-
|
|
18010
|
-
total: BalanceType;
|
|
18011
|
-
record: {
|
|
18012
|
-
/** Guard that verified the claim (reward.move Record.guard, L95-100). */guard?: string | null;
|
|
18013
|
-
amount: BalanceType;
|
|
18014
|
-
time: number;
|
|
18015
|
-
store_from_id?: string | null;
|
|
18016
|
-
}[];
|
|
17519
|
+
interface TableAnswer {
|
|
17520
|
+
items: TableAnswerItem[];
|
|
17521
|
+
nextCursor: string | null;
|
|
17522
|
+
hasNextPage: boolean;
|
|
17523
|
+
cache_expire?: CacheExpireType;
|
|
18017
17524
|
}
|
|
18018
|
-
interface
|
|
18019
|
-
|
|
18020
|
-
|
|
18021
|
-
|
|
18022
|
-
|
|
18023
|
-
|
|
18024
|
-
|
|
17525
|
+
interface TableItemQuery {
|
|
17526
|
+
parent: string;
|
|
17527
|
+
key: {
|
|
17528
|
+
type: string;
|
|
17529
|
+
value: unknown;
|
|
17530
|
+
};
|
|
17531
|
+
no_cache?: boolean;
|
|
17532
|
+
network?: ENTRYPOINT;
|
|
18025
17533
|
}
|
|
18026
|
-
interface
|
|
18027
|
-
|
|
18028
|
-
|
|
18029
|
-
|
|
18030
|
-
|
|
18031
|
-
|
|
18032
|
-
|
|
18033
|
-
|
|
18034
|
-
mark_object: string | null;
|
|
18035
|
-
details: VoteInRegistrar[];
|
|
18036
|
-
active_tx: string | null;
|
|
18037
|
-
passive_tx: string | null;
|
|
18038
|
-
time: number;
|
|
17534
|
+
interface TableAnswerItem {
|
|
17535
|
+
key: {
|
|
17536
|
+
type: string;
|
|
17537
|
+
value: unknown;
|
|
17538
|
+
};
|
|
17539
|
+
type: string;
|
|
17540
|
+
object: string;
|
|
17541
|
+
version: string;
|
|
18039
17542
|
}
|
|
18040
|
-
|
|
18041
|
-
|
|
18042
|
-
|
|
18043
|
-
|
|
18044
|
-
|
|
18045
|
-
|
|
18046
|
-
|
|
18047
|
-
|
|
18048
|
-
|
|
18049
|
-
|
|
17543
|
+
declare const query_objects_json: (json: string) => Promise<string>;
|
|
17544
|
+
declare const query_shared_objects_json: (json: string) => Promise<string>;
|
|
17545
|
+
declare const query_table_json: (json: string) => Promise<string>;
|
|
17546
|
+
declare const query_objects: (query: ObjectsQuery) => Promise<ObjectsAnswer>;
|
|
17547
|
+
/**
|
|
17548
|
+
* Enumerate ALL shared objects of a type on the network (global discovery).
|
|
17549
|
+
*
|
|
17550
|
+
* GraphQL-only: uses the top-level `objects` connection with
|
|
17551
|
+
* {ownerKind: SHARED, type}. The JSON-RPC API has no equivalent — when the
|
|
17552
|
+
* GraphQL transport is not enabled for the target network this fails fast
|
|
17553
|
+
* with an explicit error (no silent fallback to a wrong partial result).
|
|
17554
|
+
*
|
|
17555
|
+
* The `type` accepts a package / module / fully-qualified name / full type
|
|
17556
|
+
* instantiation; a module-level type (e.g. `<pkg>::service`) enumerates ALL
|
|
17557
|
+
* generic instantiations (Service<WOW>, Service<SUI>, ...).
|
|
17558
|
+
*/
|
|
17559
|
+
interface SharedObjectsQuery {
|
|
17560
|
+
/** Type filter — e.g. `<pkg>::service` (module, all generics) or `<pkg>::service::Service<0x2::wow::WOW>` (exact instantiation). */
|
|
17561
|
+
type: string;
|
|
17562
|
+
/** Pagination cursor from a previous page. */
|
|
17563
|
+
cursor?: string | null;
|
|
17564
|
+
/** Page size (server-capped). */
|
|
17565
|
+
limit?: number;
|
|
17566
|
+
network?: ENTRYPOINT;
|
|
17567
|
+
no_cache?: boolean;
|
|
18050
17568
|
}
|
|
18051
|
-
interface
|
|
18052
|
-
|
|
18053
|
-
|
|
18054
|
-
|
|
18055
|
-
|
|
18056
|
-
|
|
18057
|
-
|
|
18058
|
-
|
|
18059
|
-
|
|
18060
|
-
immutable: boolean;
|
|
17569
|
+
interface SharedObjectsAnswerItem {
|
|
17570
|
+
/** Object address. */
|
|
17571
|
+
object: string;
|
|
17572
|
+
/** Raw full type string. */
|
|
17573
|
+
type_raw: string;
|
|
17574
|
+
version: string;
|
|
17575
|
+
digest?: string;
|
|
17576
|
+
/** Struct fields rendered as JSON (RpcVisitor shape) when requested. */
|
|
17577
|
+
json?: Record<string, unknown> | null;
|
|
18061
17578
|
}
|
|
18062
|
-
|
|
18063
|
-
|
|
18064
|
-
|
|
18065
|
-
|
|
17579
|
+
interface SharedObjectsAnswer {
|
|
17580
|
+
objects: SharedObjectsAnswerItem[];
|
|
17581
|
+
has_next_page: boolean;
|
|
17582
|
+
next_cursor: string | null;
|
|
18066
17583
|
}
|
|
18067
|
-
|
|
18068
|
-
|
|
18069
|
-
|
|
18070
|
-
|
|
17584
|
+
declare const query_shared_objects: (query: SharedObjectsQuery) => Promise<SharedObjectsAnswer>;
|
|
17585
|
+
/**
|
|
17586
|
+
* Purpose-driven Service discovery: enumerate every published (shared)
|
|
17587
|
+
* Service on the network and filter by business conditions.
|
|
17588
|
+
*
|
|
17589
|
+
* Filtering split (honest about where each filter executes):
|
|
17590
|
+
* - coin_type → SERVER-SIDE via the GraphQL type filter
|
|
17591
|
+
* (`0x2::service::Service<T>` exact instantiation; omit →
|
|
17592
|
+
* module-level `0x2::service` = ALL generic instantiations).
|
|
17593
|
+
* - name_contains / location_any → CLIENT-SIDE substring filters applied
|
|
17594
|
+
* after enumeration (the indexer has no struct-field filters).
|
|
17595
|
+
*
|
|
17596
|
+
* The raw enumeration is cached locally (memory + SQLite, 120s TTL) — filters
|
|
17597
|
+
* re-run on every call against the cached universe; `no_cache` forces a
|
|
17598
|
+
* fresh enumeration. When `has_more` is true the universe was truncated at
|
|
17599
|
+
* `max_objects` and client-side filters saw only a partial list.
|
|
17600
|
+
*/
|
|
17601
|
+
interface ServicesQuery {
|
|
17602
|
+
/** Exact coin instantiation, e.g. `0x2::wow::WOW<0x...>`; omit = ALL Service<T>. */
|
|
17603
|
+
coin_type?: string;
|
|
17604
|
+
/** Case-insensitive substring filter on service name. */
|
|
17605
|
+
name_contains?: string;
|
|
17606
|
+
/** Case-insensitive any-of substring filters on service location. */
|
|
17607
|
+
location_any?: string[];
|
|
17608
|
+
/** Enumeration cap before filtering (default 200). */
|
|
17609
|
+
max_objects?: number;
|
|
17610
|
+
network?: ENTRYPOINT;
|
|
17611
|
+
no_cache?: boolean;
|
|
18071
17612
|
}
|
|
18072
|
-
interface
|
|
18073
|
-
|
|
18074
|
-
|
|
18075
|
-
|
|
18076
|
-
|
|
17613
|
+
interface ServiceSummary {
|
|
17614
|
+
object: string;
|
|
17615
|
+
type_raw: string;
|
|
17616
|
+
version: string;
|
|
17617
|
+
digest?: string;
|
|
17618
|
+
name?: string;
|
|
17619
|
+
location?: string;
|
|
17620
|
+
/** Smallest-unit string, when present in contents. */
|
|
17621
|
+
price?: string;
|
|
17622
|
+
tags?: string[];
|
|
17623
|
+
json: Record<string, unknown> | null;
|
|
18077
17624
|
}
|
|
18078
|
-
interface
|
|
18079
|
-
|
|
18080
|
-
|
|
18081
|
-
|
|
17625
|
+
interface ServicesAnswer {
|
|
17626
|
+
services: ServiceSummary[];
|
|
17627
|
+
/** Objects enumerated before client-side filtering. */
|
|
17628
|
+
total_enumerated: number;
|
|
17629
|
+
/** True when enumeration was truncated at max_objects (partial universe). */
|
|
17630
|
+
has_more: boolean;
|
|
18082
17631
|
}
|
|
18083
|
-
|
|
18084
|
-
|
|
18085
|
-
|
|
18086
|
-
|
|
18087
|
-
|
|
17632
|
+
declare const query_services: (query: ServicesQuery) => Promise<ServicesAnswer>;
|
|
17633
|
+
/**
|
|
17634
|
+
* Reverse-enumeration query: enumerate every shared Demand on the network.
|
|
17635
|
+
*
|
|
17636
|
+
* Demand is a shared object (`transfer::share_object` in demand.move) and
|
|
17637
|
+
* therefore globally enumerable by type via GraphQL — no `NewDemandEvent` is
|
|
17638
|
+
* required for discovery. "New demand" detection is a caller concern (seen-set
|
|
17639
|
+
* diff or `query_object_last_updated`), this returns the full typed universe.
|
|
17640
|
+
*/
|
|
17641
|
+
interface DemandsQuery {
|
|
17642
|
+
/** Enumeration cap (default 200). */
|
|
17643
|
+
max_objects?: number;
|
|
17644
|
+
network?: ENTRYPOINT;
|
|
17645
|
+
no_cache?: boolean;
|
|
18088
17646
|
}
|
|
18089
|
-
interface
|
|
18090
|
-
|
|
18091
|
-
|
|
18092
|
-
|
|
18093
|
-
|
|
18094
|
-
|
|
18095
|
-
time: string;
|
|
18096
|
-
from_object?: string | null;
|
|
18097
|
-
signer: string;
|
|
18098
|
-
info: PaymentInfo;
|
|
17647
|
+
interface DemandsAnswer {
|
|
17648
|
+
demands: ObjectDemand[];
|
|
17649
|
+
/** Objects enumerated before parsing. */
|
|
17650
|
+
total_enumerated: number;
|
|
17651
|
+
/** True when enumeration was truncated at max_objects (partial universe). */
|
|
17652
|
+
has_more: boolean;
|
|
18099
17653
|
}
|
|
18100
|
-
|
|
18101
|
-
|
|
18102
|
-
|
|
18103
|
-
|
|
18104
|
-
|
|
18105
|
-
|
|
17654
|
+
declare const query_demands: (query: DemandsQuery) => Promise<DemandsAnswer>;
|
|
17655
|
+
/**
|
|
17656
|
+
* Reverse-enumeration query: enumerate every shared Arb and filter by business
|
|
17657
|
+
* fields (arbitration / order / status). This is the pull-model replacement
|
|
17658
|
+
* for an on-chain "arbitration → Arb cases" reverse index (13 §3.2): the index
|
|
17659
|
+
* is rebuilt client-side from each Arb's final state, no indexer table needed
|
|
17660
|
+
* for the historical-scoring path.
|
|
17661
|
+
*/
|
|
17662
|
+
interface ArbsQuery {
|
|
17663
|
+
/** Only Arb cases belonging to this Arbitration object. */
|
|
17664
|
+
arbitration?: string;
|
|
17665
|
+
/** Only Arb cases for this Order object. */
|
|
17666
|
+
order?: string;
|
|
17667
|
+
/** Only Arb cases in these statuses. */
|
|
17668
|
+
status?: ArbStatus | ArbStatus[];
|
|
17669
|
+
/** Enumeration cap (default 200). */
|
|
17670
|
+
max_objects?: number;
|
|
17671
|
+
network?: ENTRYPOINT;
|
|
17672
|
+
no_cache?: boolean;
|
|
18106
17673
|
}
|
|
18107
|
-
|
|
18108
|
-
|
|
18109
|
-
|
|
18110
|
-
|
|
18111
|
-
|
|
18112
|
-
|
|
18113
|
-
guard: string;
|
|
18114
|
-
vote_weight: VoteWeight;
|
|
17674
|
+
interface ArbsAnswer {
|
|
17675
|
+
arbs: ObjectArb[];
|
|
17676
|
+
/** Objects enumerated before filtering. */
|
|
17677
|
+
total_enumerated: number;
|
|
17678
|
+
/** True when enumeration was truncated at max_objects (partial universe). */
|
|
17679
|
+
has_more: boolean;
|
|
18115
17680
|
}
|
|
18116
|
-
|
|
18117
|
-
|
|
18118
|
-
|
|
18119
|
-
|
|
18120
|
-
|
|
18121
|
-
|
|
18122
|
-
|
|
18123
|
-
|
|
18124
|
-
|
|
18125
|
-
permission: string;
|
|
17681
|
+
declare const query_arbs: (query: ArbsQuery) => Promise<ArbsAnswer>;
|
|
17682
|
+
declare const query_personal: (query: PersonalQuery) => Promise<ObjectPersonal | undefined>;
|
|
17683
|
+
declare const query_table: (query: TableQuery) => Promise<TableAnswer | undefined>;
|
|
17684
|
+
declare const query_tableItem: (query: TableItemQuery) => Promise<ObjectBase | undefined>;
|
|
17685
|
+
interface QueryTableItem_byAddress {
|
|
17686
|
+
parent: string | ObjectPermission | ObjectDemand | ObjectEntityRegistrar | ObjectResource | ObjectReward | ObjectTreasury | ObjectEntityLinker;
|
|
17687
|
+
address: AccountOrMark_Address | string;
|
|
17688
|
+
no_cache?: boolean;
|
|
17689
|
+
network?: ENTRYPOINT;
|
|
18126
17690
|
}
|
|
18127
|
-
interface
|
|
18128
|
-
|
|
18129
|
-
|
|
18130
|
-
|
|
17691
|
+
interface QueryTableItem_byU64 {
|
|
17692
|
+
parent: string | ObjectProgress;
|
|
17693
|
+
u64: number | string | bigint;
|
|
17694
|
+
no_cache?: boolean;
|
|
17695
|
+
network?: ENTRYPOINT;
|
|
18131
17696
|
}
|
|
18132
|
-
interface
|
|
18133
|
-
|
|
18134
|
-
|
|
18135
|
-
|
|
18136
|
-
|
|
18137
|
-
relies_logic_and: boolean;
|
|
18138
|
-
submission: GuardSubmission;
|
|
17697
|
+
interface QueryTableItem_byString {
|
|
17698
|
+
parent: string | ObjectMachine;
|
|
17699
|
+
key: string;
|
|
17700
|
+
no_cache?: boolean;
|
|
17701
|
+
network?: ENTRYPOINT;
|
|
18139
17702
|
}
|
|
18140
|
-
interface
|
|
18141
|
-
|
|
18142
|
-
|
|
18143
|
-
|
|
18144
|
-
|
|
18145
|
-
|
|
18146
|
-
signer: string;
|
|
18147
|
-
has_verified: boolean;
|
|
17703
|
+
interface QueryTableItem_byNameAddress {
|
|
17704
|
+
parent: string | ObjectMachine;
|
|
17705
|
+
name: string;
|
|
17706
|
+
entity: AccountOrMark_Address | bigint | number;
|
|
17707
|
+
no_cache?: boolean;
|
|
17708
|
+
network?: ENTRYPOINT;
|
|
18148
17709
|
}
|
|
18149
|
-
interface
|
|
18150
|
-
address: string;
|
|
18151
|
-
|
|
17710
|
+
interface QueryTableItem_Entity {
|
|
17711
|
+
address: AccountOrMark_Address | string;
|
|
17712
|
+
no_cache?: boolean;
|
|
17713
|
+
network?: ENTRYPOINT;
|
|
18152
17714
|
}
|
|
18153
|
-
|
|
18154
|
-
|
|
17715
|
+
declare const queryTableItem_RepositoryData: (query: QueryTableItem_byNameAddress) => Promise<TableItem_RepositoryData | undefined>;
|
|
17716
|
+
declare const queryTableItem_PermissionPerm: (query: QueryTableItem_byAddress) => Promise<TableItem_PermissionPerm | undefined>;
|
|
17717
|
+
declare const queryTableItem_EntityRegistrar: (query: QueryTableItem_Entity) => Promise<TableItem_EntityRegistrar | undefined>;
|
|
17718
|
+
declare const queryTableItem_EntityLinker: (query: QueryTableItem_Entity) => Promise<TableItem_EntityLinker | undefined>;
|
|
17719
|
+
declare const queryTableItem_EntityContact: (query: QueryTableItem_Entity) => Promise<TableItem_EntityContact | undefined>;
|
|
17720
|
+
declare const queryTableItem_ObjectLinkerCore: (query: QueryTableItem_Entity) => Promise<TableItem_ObjectLinkerCore | undefined>;
|
|
17721
|
+
declare const queryTableItem_ObjectLinkerTx: (query: QueryTableItem_Entity) => Promise<TableItem_ObjectLinkerTx | undefined>;
|
|
17722
|
+
/**
|
|
17723
|
+
* Orders registered under one target address in the GLOBAL ORDER TABLE
|
|
17724
|
+
* (ObjectLinkerTx 0xaaf — order.move:110 writes every order to its Service
|
|
17725
|
+
* key). This is the single source of truth for "which orders a service has".
|
|
17726
|
+
*
|
|
17727
|
+
* The raw table is a generic tx-touches buffer: it ALSO records entries for
|
|
17728
|
+
* guards whose rule tables reference the address (guard.move:246), progress,
|
|
17729
|
+
* allocations and payments. Those non-order touches are filtered out here by
|
|
17730
|
+
* decoding the typed first address byte (objectTypeFromAddress — local, zero
|
|
17731
|
+
* extra round-trips), so every returned `who` is a REAL Order object.
|
|
17732
|
+
*/
|
|
17733
|
+
declare const queryTableItem_ServiceOrders: (query: QueryTableItem_Entity) => Promise<TableItem_ObjectLinkerTx | undefined>;
|
|
17734
|
+
declare const queryTableItem_EntityOrder: (query: QueryTableItem_Entity) => Promise<TableItem_EntityOrder | undefined>;
|
|
17735
|
+
declare const queryTableItem_EntityPermission: (query: QueryTableItem_Entity) => Promise<TableItem_EntityPermission | undefined>;
|
|
17736
|
+
/** Role bit flags of the entity_order reverse index (order.move / entity_order.move). */
|
|
17737
|
+
declare const ENTITY_ORDER_ROLE_OWNER = 1;
|
|
17738
|
+
declare const ENTITY_ORDER_ROLE_AGENT = 2;
|
|
17739
|
+
/** One order membership of a user, resolved with the full on-chain order. */
|
|
17740
|
+
interface UserOrderView {
|
|
18155
17741
|
role: number;
|
|
18156
|
-
|
|
17742
|
+
is_owner: boolean;
|
|
17743
|
+
is_agent: boolean;
|
|
18157
17744
|
time: number;
|
|
17745
|
+
order: ObjectOrder;
|
|
18158
17746
|
}
|
|
18159
|
-
|
|
18160
|
-
|
|
18161
|
-
|
|
18162
|
-
|
|
17747
|
+
interface QueryOrdersByUser {
|
|
17748
|
+
address: AccountOrMark_Address | string;
|
|
17749
|
+
no_cache?: boolean;
|
|
17750
|
+
network?: ENTRYPOINT;
|
|
17751
|
+
}
|
|
17752
|
+
/**
|
|
17753
|
+
* Query every order a user participates in (as owner and/or agent) via the
|
|
17754
|
+
* global EntityOrder reverse index (0xaa8), then resolve the full Order
|
|
17755
|
+
* objects. Returns an empty array when the user has no orders.
|
|
17756
|
+
*/
|
|
17757
|
+
declare const queryOrdersByUser: (query: QueryOrdersByUser) => Promise<UserOrderView[]>;
|
|
17758
|
+
/** Unified address profile — the on-chain "who/what is this address" view (K3 22). */
|
|
17759
|
+
interface AddressActivity {
|
|
17760
|
+
/** Latest on-chain activity timestamp (ms) across all queried dimensions. */
|
|
17761
|
+
last_active_ms: number;
|
|
17762
|
+
/** Count of activity signals (order memberships + reputation votes + reverse tx bindings). */
|
|
17763
|
+
signal_count: number;
|
|
17764
|
+
/** Whether the address has any on-chain activity (false = likely dormant). */
|
|
17765
|
+
active: boolean;
|
|
18163
17766
|
}
|
|
18164
|
-
/**
|
|
18165
|
-
interface
|
|
18166
|
-
|
|
18167
|
-
|
|
17767
|
+
/** Role evidence derived from the address's on-chain facts (K3 22 §13 P1-7). */
|
|
17768
|
+
interface RoleEvidence {
|
|
17769
|
+
/** Orders the address participates in as owner (customer signal). */
|
|
17770
|
+
customer_orders: number;
|
|
17771
|
+
/** Orders the address participates in as agent (collaborator signal). */
|
|
17772
|
+
agent_orders: number;
|
|
17773
|
+
/** Whether bounded core objects bind to this address (merchant/supplier signal). */
|
|
17774
|
+
merchant_signal: boolean;
|
|
17775
|
+
/** Dominant role hint (prospect when no signal). */
|
|
17776
|
+
role_hint: string;
|
|
18168
17777
|
}
|
|
18169
|
-
|
|
18170
|
-
interface TableItem_EntityContact extends ObjectBase {
|
|
17778
|
+
interface AddressProfile {
|
|
18171
17779
|
address: string;
|
|
18172
|
-
|
|
17780
|
+
/** Classification: 'user' | a business object type (service/order/...) | a system singleton kind. */
|
|
17781
|
+
kind: string;
|
|
17782
|
+
is_system_singleton: boolean;
|
|
17783
|
+
identity?: TableItem_EntityRegistrar;
|
|
17784
|
+
reputation?: TableItem_EntityLinker;
|
|
17785
|
+
order_membership?: TableItem_EntityOrder;
|
|
17786
|
+
contact_membership?: TableItem_EntityContact;
|
|
17787
|
+
/** Permissions the address holds a role in (EntityPermission 0xaad reverse index). */
|
|
17788
|
+
permission_membership?: TableItem_EntityPermission;
|
|
17789
|
+
reverse_core?: TableItem_ObjectLinkerCore;
|
|
17790
|
+
reverse_tx?: TableItem_ObjectLinkerTx;
|
|
17791
|
+
object?: ObjectBase;
|
|
17792
|
+
/** Aggregated activity summary (K3 22 §13 P1-6). */
|
|
17793
|
+
activity: AddressActivity;
|
|
17794
|
+
/** Role evidence derived from the address's on-chain facts (K3 22 §13 P1-7). */
|
|
17795
|
+
role_evidence: RoleEvidence;
|
|
18173
17796
|
}
|
|
18174
|
-
|
|
18175
|
-
|
|
18176
|
-
|
|
18177
|
-
|
|
17797
|
+
interface QueryAddressProfile {
|
|
17798
|
+
address: AccountOrMark_Address | string;
|
|
17799
|
+
no_cache?: boolean;
|
|
17800
|
+
network?: ENTRYPOINT;
|
|
18178
17801
|
}
|
|
18179
|
-
/**
|
|
18180
|
-
|
|
18181
|
-
|
|
18182
|
-
|
|
17802
|
+
/**
|
|
17803
|
+
* Query a unified address profile (K3 22 §P0-1).
|
|
17804
|
+
*
|
|
17805
|
+
* One entry point that classifies the address (first-byte business-object
|
|
17806
|
+
* type, system singleton, or user), then batches the identity / reputation /
|
|
17807
|
+
* membership / reverse-binding / object lookups in a single Promise.all
|
|
17808
|
+
* (leveraging the SDK's per-object cache). Degrades honestly: any missing
|
|
17809
|
+
* dimension is simply left undefined.
|
|
17810
|
+
*/
|
|
17811
|
+
declare const query_address_profile: (query: QueryAddressProfile) => Promise<AddressProfile>;
|
|
17812
|
+
interface QueryAddressProfiles {
|
|
17813
|
+
/** Addresses (or LocalMark names) to profile — result order matches. */
|
|
17814
|
+
addresses: (AccountOrMark_Address | string)[];
|
|
17815
|
+
no_cache?: boolean;
|
|
17816
|
+
network?: ENTRYPOINT;
|
|
18183
17817
|
}
|
|
18184
|
-
/**
|
|
18185
|
-
|
|
18186
|
-
|
|
18187
|
-
|
|
17818
|
+
/**
|
|
17819
|
+
* Batch address profiles — one call for N addresses instead of N
|
|
17820
|
+
* single-address calls (list views were paying N MCP round-trips + N
|
|
17821
|
+
* sequential fan-outs). The per-address 8-dimension fan-out runs in PARALLEL
|
|
17822
|
+
* and every underlying read is per-key cached, so repeat refreshes hit the
|
|
17823
|
+
* cache layer only.
|
|
17824
|
+
*
|
|
17825
|
+
* Degrades per-address: an address that fails to resolve yields a null slot
|
|
17826
|
+
* (never rejects the whole batch).
|
|
17827
|
+
*/
|
|
17828
|
+
declare const query_address_profiles: (query: QueryAddressProfiles) => Promise<(AddressProfile | null)[]>;
|
|
17829
|
+
/** Token type bound to an on-chain object (its first generic type argument). */
|
|
17830
|
+
interface ObjectTokenTypeInfo {
|
|
17831
|
+
/** Object address actually queried (LocalMark names are resolved first). */
|
|
17832
|
+
object: string;
|
|
17833
|
+
/** Short semantic object type (e.g. "Treasury", "Service"), when known. */
|
|
17834
|
+
object_type?: ObjectType;
|
|
17835
|
+
/** Full raw Move type string, e.g. "0x2::treasury::Treasury<0x2::wow::WOW>". */
|
|
17836
|
+
type_raw?: string;
|
|
17837
|
+
/**
|
|
17838
|
+
* First generic type argument — the token/coin type T for token-generic
|
|
17839
|
+
* objects (Treasury<T>, Service<T>, Coin<T>, Allocation<T>, …). T is
|
|
17840
|
+
* fixed at creation and can NEVER change. Unset when the object type has
|
|
17841
|
+
* no generic parameter (e.g. Order, Guard).
|
|
17842
|
+
*/
|
|
17843
|
+
coin_type?: string;
|
|
18188
17844
|
}
|
|
18189
|
-
|
|
18190
|
-
|
|
18191
|
-
|
|
18192
|
-
|
|
17845
|
+
interface ObjectTokenTypeQuery {
|
|
17846
|
+
/** Object ids or LocalMark names. */
|
|
17847
|
+
objects: string[];
|
|
17848
|
+
/** Skip the cache and force a chain re-read. */
|
|
17849
|
+
no_cache?: boolean;
|
|
17850
|
+
/** Target network; defaults to the configured network. */
|
|
17851
|
+
network?: ENTRYPOINT;
|
|
18193
17852
|
}
|
|
18194
|
-
/**
|
|
18195
|
-
|
|
18196
|
-
|
|
18197
|
-
|
|
18198
|
-
|
|
17853
|
+
/**
|
|
17854
|
+
* Query objects and extract their bound token/coin type (the first generic
|
|
17855
|
+
* argument of their Move type — e.g. `Treasury<0x2::wow::WOW>` →
|
|
17856
|
+
* `0x2::wow::WOW`). Goes through the standard object cache (cache-warmed,
|
|
17857
|
+
* write-invalidated), so repeated lookups are free.
|
|
17858
|
+
*
|
|
17859
|
+
* Pure read + type parsing — callers decide which object types are
|
|
17860
|
+
* token-generic (this reports a generic argument for ANY generic object,
|
|
17861
|
+
* including `Table<K, V>` where the first arg is the key type).
|
|
17862
|
+
*/
|
|
17863
|
+
declare const query_object_token_type: (query: ObjectTokenTypeQuery) => Promise<ObjectTokenTypeInfo[]>;
|
|
17864
|
+
declare const queryTableItem_RewardRecord: (query: QueryTableItem_byAddress) => Promise<TableItem_RewardRecord | undefined>;
|
|
17865
|
+
declare const queryTableItem_DemandPresenter: (query: QueryTableItem_byAddress) => Promise<TableItem_DemandPresenter | undefined>;
|
|
17866
|
+
declare const queryTableItem_TreasuryHistory: (query: QueryTableItem_byAddress) => Promise<TableItem_TreasuryHistory | undefined>;
|
|
17867
|
+
declare const queryTableItem_MachineNode: (query: QueryTableItem_byString) => Promise<TableItem_MachineNode | undefined>;
|
|
17868
|
+
declare const queryTableItem_AddressMark: (query: QueryTableItem_byAddress) => Promise<TableItem_AddressMark | undefined>;
|
|
17869
|
+
declare const queryTableItem_ProgressHistory: (query: QueryTableItem_byU64) => Promise<TableItem_ProgressHistory | undefined>;
|
|
17870
|
+
declare function raw2type(type_raw: string | undefined): ObjectType | undefined;
|
|
17871
|
+
/**
|
|
17872
|
+
* Parse a raw on-chain object payload into its typed JS representation.
|
|
17873
|
+
*
|
|
17874
|
+
* SINGLE POINT for description normalization: trailing/leading whitespace
|
|
17875
|
+
* (e.g. an accidental "\n" written at creation time) would otherwise leak
|
|
17876
|
+
* into every UI card and render phantom blank lines. Trimmed here so ALL
|
|
17877
|
+
* consumers — MCP payloads, panorama builders, client list items — receive
|
|
17878
|
+
* clean display text.
|
|
17879
|
+
*/
|
|
17880
|
+
declare function data2object(data?: any): ObjectBase;
|
|
17881
|
+
//#endregion
|
|
17882
|
+
//#region src/w/local/token.d.ts
|
|
17883
|
+
interface TokenTypeInfo extends WowCoinMetadata {
|
|
17884
|
+
alias?: string;
|
|
17885
|
+
type: string;
|
|
17886
|
+
/** type name for the token (e.g., 0x168da5bf1f48dafc111b0a488fa454aca95e0b5e::usdc::USDC) */
|
|
18199
17887
|
}
|
|
18200
|
-
|
|
18201
|
-
|
|
18202
|
-
|
|
18203
|
-
|
|
17888
|
+
interface TokenDataFilter {
|
|
17889
|
+
alias_or_name?: string;
|
|
17890
|
+
symbol?: string;
|
|
17891
|
+
type?: string;
|
|
18204
17892
|
}
|
|
18205
|
-
|
|
18206
|
-
|
|
18207
|
-
|
|
18208
|
-
|
|
18209
|
-
|
|
18210
|
-
|
|
18211
|
-
|
|
18212
|
-
|
|
17893
|
+
declare class TokenInfo {
|
|
17894
|
+
static _instance: TokenInfo | undefined;
|
|
17895
|
+
private static _instanceLock;
|
|
17896
|
+
/**
|
|
17897
|
+
* Get the TokenInfo singleton instance.
|
|
17898
|
+
* Concurrency-safe: double-checked locking ensures only one instance.
|
|
17899
|
+
*/
|
|
17900
|
+
static Instance(): TokenInfo;
|
|
17901
|
+
private cacheKey;
|
|
17902
|
+
/**
|
|
17903
|
+
* Validate coin metadata before it enters the (INFINITE) cache.
|
|
17904
|
+
* decimals is a Move u8 on-chain, so a missing / non-integer /
|
|
17905
|
+
* out-of-range value means the RPC response was malformed — treat it
|
|
17906
|
+
* as "not found" rather than caching a decimals=0 false positive that
|
|
17907
|
+
* would convert amounts 10^N times off.
|
|
17908
|
+
*/
|
|
17909
|
+
private static isValidMetadata;
|
|
17910
|
+
private fetch_imp;
|
|
17911
|
+
fetch(tokenType: string | null | undefined, alias?: string, network?: ENTRYPOINT): Promise<TokenTypeInfo | undefined>;
|
|
17912
|
+
list(filter?: TokenDataFilter, network?: ENTRYPOINT): Promise<TokenTypeInfo[]>;
|
|
18213
17913
|
}
|
|
18214
|
-
|
|
18215
|
-
|
|
18216
|
-
|
|
17914
|
+
//#endregion
|
|
17915
|
+
//#region src/w/local/index.d.ts
|
|
17916
|
+
interface AccountOrMark_Address {
|
|
17917
|
+
name_or_address?: string;
|
|
17918
|
+
local_mark_first?: boolean;
|
|
18217
17919
|
}
|
|
18218
|
-
interface
|
|
18219
|
-
|
|
18220
|
-
|
|
18221
|
-
permissionIndex?: number;
|
|
18222
|
-
weight: number;
|
|
18223
|
-
guard?: MachineForwardGuard;
|
|
17920
|
+
interface ManyAccountOrMark_Address {
|
|
17921
|
+
entities: AccountOrMark_Address[];
|
|
17922
|
+
check_all_founded?: boolean;
|
|
18224
17923
|
}
|
|
18225
|
-
|
|
18226
|
-
|
|
18227
|
-
|
|
18228
|
-
|
|
17924
|
+
declare const GetAccountOrMark_Address: (entity?: AccountOrMark_Address | string) => Promise<string | undefined>;
|
|
17925
|
+
interface LocalNameByAddress {
|
|
17926
|
+
account?: string;
|
|
17927
|
+
local_mark?: string;
|
|
17928
|
+
address: string;
|
|
18229
17929
|
}
|
|
18230
|
-
|
|
18231
|
-
|
|
18232
|
-
|
|
17930
|
+
declare const GetLocalNamesByAddresses: (addresses: string[]) => Promise<LocalNameByAddress[]>;
|
|
17931
|
+
declare const GetManyAccountOrMark_Address: (entities: ManyAccountOrMark_Address | (string | AccountOrMark_Address)[]) => Promise<string[]>;
|
|
17932
|
+
declare const query_local_mark_list: (filter: LocalMarkFilter | undefined | null) => Promise<MarkData[]>;
|
|
17933
|
+
declare const query_account_list: (filter?: AccountFilter) => Promise<AccountData[]>;
|
|
17934
|
+
declare const query_local_info_list: (filter?: LocalInfoFilter) => Promise<InfoData[]>;
|
|
17935
|
+
declare const query_local_token_list: (filter?: TokenDataFilter, network?: ENTRYPOINT) => Promise<TokenTypeInfo[]>;
|
|
17936
|
+
declare const query_local_mark: <T extends string | string[]>(name_or_address: T) => Promise<T extends string ? MarkData | undefined : (MarkData | undefined)[]>;
|
|
17937
|
+
declare const query_local_info: <T extends string | string[]>(name?: T) => Promise<T extends string ? InfoData | undefined : (InfoData | undefined)[]>;
|
|
17938
|
+
declare const query_local_info_default: <T extends string | string[]>(name?: T) => Promise<T extends string ? string | undefined : (string | undefined)[]>;
|
|
17939
|
+
interface QueryAccount {
|
|
17940
|
+
name_or_address?: string;
|
|
17941
|
+
balance?: boolean;
|
|
17942
|
+
coin?: {
|
|
17943
|
+
cursor?: string | null | undefined;
|
|
17944
|
+
limit?: number | null | undefined;
|
|
17945
|
+
};
|
|
17946
|
+
token_type?: string;
|
|
17947
|
+
network?: ENTRYPOINT;
|
|
18233
17948
|
}
|
|
18234
|
-
interface
|
|
18235
|
-
|
|
18236
|
-
|
|
17949
|
+
interface QueryAccountResult {
|
|
17950
|
+
name_or_address?: string;
|
|
17951
|
+
address?: string;
|
|
17952
|
+
balance?: CoinBalance;
|
|
17953
|
+
coin?: PaginatedCoins;
|
|
17954
|
+
object?: ObjectBase;
|
|
17955
|
+
hint?: string;
|
|
17956
|
+
}
|
|
17957
|
+
declare const query_account: (query: QueryAccount) => Promise<QueryAccountResult>;
|
|
17958
|
+
type FaucetNetwork = ENTRYPOINT.Localnet | ENTRYPOINT.Testnet;
|
|
17959
|
+
interface AccountOperation {
|
|
17960
|
+
gen?: {
|
|
17961
|
+
name?: string;
|
|
17962
|
+
replaceExistName?: boolean;
|
|
17963
|
+
messenger?: boolean;
|
|
17964
|
+
};
|
|
17965
|
+
faucet?: {
|
|
17966
|
+
name_or_address?: string;
|
|
17967
|
+
network: FaucetNetwork;
|
|
17968
|
+
};
|
|
17969
|
+
suspend?: {
|
|
17970
|
+
name_or_address?: string;
|
|
17971
|
+
};
|
|
17972
|
+
resume?: {
|
|
17973
|
+
address: string;
|
|
17974
|
+
name?: string;
|
|
17975
|
+
};
|
|
17976
|
+
rename?: {
|
|
17977
|
+
name_or_address?: string;
|
|
17978
|
+
new_name: string;
|
|
17979
|
+
};
|
|
17980
|
+
swap_name?: {
|
|
17981
|
+
name_or_address1?: string;
|
|
17982
|
+
name_or_address2?: string;
|
|
17983
|
+
};
|
|
17984
|
+
transfer?: {
|
|
17985
|
+
name_or_address_from?: string;
|
|
17986
|
+
name_or_address_to?: string;
|
|
17987
|
+
amount: number | string | bigint;
|
|
17988
|
+
token_type?: string;
|
|
17989
|
+
network?: ENTRYPOINT;
|
|
17990
|
+
};
|
|
17991
|
+
get?: {
|
|
17992
|
+
name_or_address?: string;
|
|
17993
|
+
balance_required: string | bigint | number;
|
|
17994
|
+
token_type?: string;
|
|
17995
|
+
network?: ENTRYPOINT;
|
|
17996
|
+
};
|
|
17997
|
+
signData?: {
|
|
17998
|
+
name_or_address?: string;
|
|
17999
|
+
data: string | Uint8Array;
|
|
18000
|
+
data_encoding?: "utf8" | "base64" | "hex";
|
|
18001
|
+
};
|
|
18002
|
+
messenger?: {
|
|
18003
|
+
name_or_account?: string;
|
|
18004
|
+
enabled: boolean;
|
|
18005
|
+
};
|
|
18237
18006
|
}
|
|
18238
|
-
interface
|
|
18239
|
-
|
|
18240
|
-
|
|
18241
|
-
|
|
18242
|
-
|
|
18243
|
-
|
|
18007
|
+
interface AccountOperationResult {
|
|
18008
|
+
gen?: {
|
|
18009
|
+
address: string;
|
|
18010
|
+
name?: string;
|
|
18011
|
+
messenger?: boolean;
|
|
18012
|
+
};
|
|
18013
|
+
faucet?: {
|
|
18014
|
+
name_or_address?: string;
|
|
18015
|
+
result: FaucetCoinInfo[];
|
|
18016
|
+
network: FaucetNetwork;
|
|
18017
|
+
};
|
|
18018
|
+
suspend?: {
|
|
18019
|
+
name_or_address?: string;
|
|
18020
|
+
success: boolean;
|
|
18021
|
+
};
|
|
18022
|
+
resume?: {
|
|
18023
|
+
address: string;
|
|
18024
|
+
name?: string;
|
|
18025
|
+
success: boolean;
|
|
18026
|
+
};
|
|
18027
|
+
rename?: {
|
|
18028
|
+
name_or_address?: string;
|
|
18029
|
+
new_name: string;
|
|
18030
|
+
success: boolean;
|
|
18031
|
+
};
|
|
18032
|
+
swap_name?: {
|
|
18033
|
+
name_or_address1?: string;
|
|
18034
|
+
name_or_address2?: string;
|
|
18035
|
+
success: boolean;
|
|
18036
|
+
};
|
|
18037
|
+
transfer?: WowTransactionBlockResponse;
|
|
18038
|
+
get?: {
|
|
18039
|
+
coin_address?: string;
|
|
18040
|
+
name_or_address?: string;
|
|
18041
|
+
balance_required: string | bigint | number;
|
|
18042
|
+
token_type?: string;
|
|
18043
|
+
network?: ENTRYPOINT;
|
|
18044
|
+
};
|
|
18045
|
+
signData?: {
|
|
18046
|
+
name_or_address?: string;
|
|
18047
|
+
signature: string;
|
|
18048
|
+
publicKey: string;
|
|
18049
|
+
address: string;
|
|
18050
|
+
};
|
|
18051
|
+
messenger?: {
|
|
18052
|
+
name_or_account?: string;
|
|
18053
|
+
enabled: boolean;
|
|
18054
|
+
registered?: boolean;
|
|
18055
|
+
registerError?: string;
|
|
18056
|
+
};
|
|
18244
18057
|
}
|
|
18245
|
-
|
|
18246
|
-
|
|
18247
|
-
|
|
18248
|
-
|
|
18249
|
-
|
|
18250
|
-
|
|
18251
|
-
|
|
18252
|
-
|
|
18058
|
+
declare const account_operation: (op: AccountOperation) => Promise<AccountOperationResult>;
|
|
18059
|
+
interface LocalMarkOperation {
|
|
18060
|
+
clear?: {
|
|
18061
|
+
op: "clear";
|
|
18062
|
+
};
|
|
18063
|
+
add?: {
|
|
18064
|
+
op: "add";
|
|
18065
|
+
data: MarkParam[];
|
|
18066
|
+
};
|
|
18067
|
+
remove?: {
|
|
18068
|
+
op: "remove";
|
|
18069
|
+
names: string[];
|
|
18070
|
+
};
|
|
18253
18071
|
}
|
|
18254
|
-
interface
|
|
18255
|
-
|
|
18256
|
-
|
|
18257
|
-
|
|
18072
|
+
interface LocalMarkOperationResult {
|
|
18073
|
+
clear?: boolean;
|
|
18074
|
+
add?: MarkData[];
|
|
18075
|
+
remove?: MarkData[];
|
|
18258
18076
|
}
|
|
18259
|
-
|
|
18260
|
-
|
|
18077
|
+
declare const local_mark_operation: (op: LocalMarkOperation) => Promise<LocalMarkOperationResult>;
|
|
18078
|
+
interface LocalInfoOperation {
|
|
18079
|
+
clear?: {
|
|
18080
|
+
op: "clear";
|
|
18081
|
+
};
|
|
18082
|
+
add?: {
|
|
18083
|
+
op: "add";
|
|
18084
|
+
data: InfoData[];
|
|
18085
|
+
};
|
|
18086
|
+
remove?: {
|
|
18087
|
+
op: "remove";
|
|
18088
|
+
data: string[];
|
|
18089
|
+
};
|
|
18090
|
+
reset?: {
|
|
18091
|
+
op: "reset";
|
|
18092
|
+
name: string;
|
|
18093
|
+
contents: string[];
|
|
18094
|
+
};
|
|
18261
18095
|
}
|
|
18262
|
-
interface
|
|
18263
|
-
|
|
18264
|
-
no_cache?: boolean;
|
|
18265
|
-
network?: ENTRYPOINT;
|
|
18096
|
+
interface LocalInfoOperationResult {
|
|
18097
|
+
success: boolean;
|
|
18266
18098
|
}
|
|
18267
|
-
|
|
18268
|
-
|
|
18269
|
-
|
|
18270
|
-
|
|
18271
|
-
|
|
18272
|
-
|
|
18099
|
+
declare const local_info_operation: (op: LocalInfoOperation) => Promise<LocalInfoOperationResult>;
|
|
18100
|
+
interface LocalHistoryOperation {
|
|
18101
|
+
clear?: {
|
|
18102
|
+
op: "clear";
|
|
18103
|
+
};
|
|
18104
|
+
add?: {
|
|
18105
|
+
op: "add";
|
|
18106
|
+
data: HistoryVisit[];
|
|
18107
|
+
};
|
|
18108
|
+
remove?: {
|
|
18109
|
+
op: "remove";
|
|
18110
|
+
keys: string[];
|
|
18111
|
+
};
|
|
18273
18112
|
}
|
|
18274
|
-
interface
|
|
18275
|
-
|
|
18276
|
-
|
|
18277
|
-
|
|
18278
|
-
|
|
18113
|
+
interface LocalHistoryOperationResult {
|
|
18114
|
+
list?: HistoryEntry[];
|
|
18115
|
+
add?: HistoryEntry[];
|
|
18116
|
+
remove?: HistoryEntry[];
|
|
18117
|
+
clear?: boolean;
|
|
18279
18118
|
}
|
|
18280
|
-
|
|
18281
|
-
|
|
18282
|
-
|
|
18283
|
-
|
|
18284
|
-
value: unknown;
|
|
18285
|
-
};
|
|
18286
|
-
no_cache?: boolean;
|
|
18119
|
+
declare const local_history_operation: (op: LocalHistoryOperation) => Promise<LocalHistoryOperationResult>;
|
|
18120
|
+
interface FetchTokenInfoOperation {
|
|
18121
|
+
tokenType?: string | null | undefined;
|
|
18122
|
+
alias?: string;
|
|
18287
18123
|
network?: ENTRYPOINT;
|
|
18288
18124
|
}
|
|
18289
|
-
|
|
18290
|
-
|
|
18291
|
-
|
|
18292
|
-
|
|
18293
|
-
|
|
18294
|
-
|
|
18295
|
-
|
|
18296
|
-
|
|
18125
|
+
declare const fetch_token_info_operation: (op: FetchTokenInfoOperation) => Promise<TokenTypeInfo | undefined>;
|
|
18126
|
+
//#endregion
|
|
18127
|
+
//#region src/w/common.d.ts
|
|
18128
|
+
type AddressResult = TransactionResult$1 | TransactionObjectArgument;
|
|
18129
|
+
type ObjectResult = TransactionResult$1 | string | TransactionObjectArgument;
|
|
18130
|
+
type PermissionAddress = AddressResult;
|
|
18131
|
+
type PermissionObject = ObjectResult;
|
|
18132
|
+
type RepositoryAddress = AddressResult;
|
|
18133
|
+
type RepositoryObject = ObjectResult;
|
|
18134
|
+
type GuardAddress = AddressResult;
|
|
18135
|
+
type GuardObject = ObjectResult;
|
|
18136
|
+
type MachineAddress = AddressResult;
|
|
18137
|
+
type MachineObject = ObjectResult;
|
|
18138
|
+
type ContactAddress = AddressResult;
|
|
18139
|
+
type ContactObject = ObjectResult;
|
|
18140
|
+
type PassportObject = TransactionResult$1;
|
|
18141
|
+
type DemandAddress = AddressResult;
|
|
18142
|
+
type DemandObject = ObjectResult;
|
|
18143
|
+
type ServiceObject = ObjectResult;
|
|
18144
|
+
type ServiceAddress = AddressResult;
|
|
18145
|
+
type ArbitrationObject = ObjectResult;
|
|
18146
|
+
type ArbitrationAddress = AddressResult;
|
|
18147
|
+
type ArbObject = ObjectResult;
|
|
18148
|
+
type ArbAddress = AddressResult;
|
|
18149
|
+
type ProgressObject = ObjectResult;
|
|
18150
|
+
type ProgressAddress = AddressResult;
|
|
18151
|
+
type TreasuryObject = ObjectResult;
|
|
18152
|
+
type TreasuryAddress = AddressResult;
|
|
18153
|
+
type OrderObject = ObjectResult;
|
|
18154
|
+
type OrderAddress = AddressResult;
|
|
18155
|
+
type DiscountObject = ObjectResult;
|
|
18156
|
+
type CoinObject = TransactionObjectArgument;
|
|
18157
|
+
type ResourceObject = ObjectResult;
|
|
18158
|
+
type ResourceAddress = AddressResult;
|
|
18159
|
+
type PaymentObject = ObjectResult;
|
|
18160
|
+
type PaymentAddress = AddressResult;
|
|
18161
|
+
type AllocationObject = TransactionObjectArgument;
|
|
18162
|
+
type AllocationAddress = AddressResult;
|
|
18163
|
+
type RewardObject = ObjectResult;
|
|
18164
|
+
type RewardAddress = AddressResult;
|
|
18165
|
+
type ReceivedObject = ObjectResult;
|
|
18166
|
+
type ProofAddress = AddressResult;
|
|
18167
|
+
type CoinWrapperObject = TransactionResult$1;
|
|
18168
|
+
type PaymentInfoObject = TransactionObjectArgument;
|
|
18169
|
+
type TxObject = ObjectResult | PassportObject | CoinWrapperObject;
|
|
18170
|
+
type TxAddress = string | TransactionResult$1 | TransactionObjectArgument;
|
|
18171
|
+
type TxString = string | TransactionArgument;
|
|
18172
|
+
type TxNumber = number | TransactionArgument | bigint | string;
|
|
18173
|
+
type TxAddressVec = Array<string> | TransactionResult$1;
|
|
18174
|
+
type TxNumberVec = Array<number | bigint | string> | TransactionResult$1;
|
|
18175
|
+
declare enum ValueType {
|
|
18176
|
+
Bool = 0,
|
|
18177
|
+
Address = 1,
|
|
18178
|
+
String = 2,
|
|
18179
|
+
U8 = 3,
|
|
18180
|
+
U16 = 4,
|
|
18181
|
+
U32 = 5,
|
|
18182
|
+
U64 = 6,
|
|
18183
|
+
U128 = 7,
|
|
18184
|
+
U256 = 8,
|
|
18185
|
+
VecBool = 9,
|
|
18186
|
+
VecAddress = 10,
|
|
18187
|
+
VecString = 11,
|
|
18188
|
+
VecU8 = 12,
|
|
18189
|
+
VecU16 = 13,
|
|
18190
|
+
VecU32 = 14,
|
|
18191
|
+
VecU64 = 15,
|
|
18192
|
+
VecU128 = 16,
|
|
18193
|
+
VecU256 = 17,
|
|
18194
|
+
VecVecU8 = 18,
|
|
18195
|
+
Value = 19
|
|
18297
18196
|
}
|
|
18298
|
-
|
|
18299
|
-
|
|
18300
|
-
|
|
18301
|
-
|
|
18197
|
+
interface ValueContainer<T extends ValueType = ValueType> {
|
|
18198
|
+
valueType: T;
|
|
18199
|
+
value: ValueTypeToType[T];
|
|
18200
|
+
}
|
|
18201
|
+
type ValueTypeToType = {
|
|
18202
|
+
[ValueType.Bool]: boolean;
|
|
18203
|
+
[ValueType.Address]: AccountOrMark_Address | string;
|
|
18204
|
+
[ValueType.String]: string;
|
|
18205
|
+
[ValueType.U8]: number;
|
|
18206
|
+
[ValueType.U16]: number;
|
|
18207
|
+
[ValueType.U32]: number;
|
|
18208
|
+
[ValueType.U64]: bigint | number;
|
|
18209
|
+
[ValueType.U128]: bigint;
|
|
18210
|
+
[ValueType.U256]: bigint;
|
|
18211
|
+
[ValueType.VecBool]: boolean[];
|
|
18212
|
+
[ValueType.VecAddress]: ManyAccountOrMark_Address | string[];
|
|
18213
|
+
[ValueType.VecString]: string[];
|
|
18214
|
+
[ValueType.VecU8]: number[] | Uint8Array;
|
|
18215
|
+
[ValueType.VecU16]: number[];
|
|
18216
|
+
[ValueType.VecU32]: number[];
|
|
18217
|
+
[ValueType.VecU64]: (bigint | number)[];
|
|
18218
|
+
[ValueType.VecU128]: bigint[];
|
|
18219
|
+
[ValueType.VecU256]: bigint[];
|
|
18220
|
+
[ValueType.VecVecU8]: (number[] | Uint8Array)[];
|
|
18221
|
+
[ValueType.Value]: ValueContainer;
|
|
18222
|
+
};
|
|
18223
|
+
type SupportedValue = ValueTypeToType[keyof ValueTypeToType];
|
|
18302
18224
|
/**
|
|
18303
|
-
*
|
|
18304
|
-
*
|
|
18305
|
-
* GraphQL-only: uses the top-level `objects` connection with
|
|
18306
|
-
* {ownerKind: SHARED, type}. The JSON-RPC API has no equivalent — when the
|
|
18307
|
-
* GraphQL transport is not enabled for the target network this fails fast
|
|
18308
|
-
* with an explicit error (no silent fallback to a wrong partial result).
|
|
18309
|
-
*
|
|
18310
|
-
* The `type` accepts a package / module / fully-qualified name / full type
|
|
18311
|
-
* instantiation; a module-level type (e.g. `<pkg>::service`) enumerates ALL
|
|
18312
|
-
* generic instantiations (Service<WOW>, Service<SUI>, ...).
|
|
18225
|
+
* ValueType 输入类型 - 支持数字枚举或字符串名称
|
|
18226
|
+
* 字符串不区分大小写,如 "U64", "u64", "U64" 都有效
|
|
18313
18227
|
*/
|
|
18314
|
-
|
|
18315
|
-
/** Type filter — e.g. `<pkg>::service` (module, all generics) or `<pkg>::service::Service<0x2::wow::WOW>` (exact instantiation). */
|
|
18316
|
-
type: string;
|
|
18317
|
-
/** Pagination cursor from a previous page. */
|
|
18318
|
-
cursor?: string | null;
|
|
18319
|
-
/** Page size (server-capped). */
|
|
18320
|
-
limit?: number;
|
|
18321
|
-
network?: ENTRYPOINT;
|
|
18322
|
-
no_cache?: boolean;
|
|
18323
|
-
}
|
|
18324
|
-
interface SharedObjectsAnswerItem {
|
|
18325
|
-
/** Object address. */
|
|
18326
|
-
object: string;
|
|
18327
|
-
/** Raw full type string. */
|
|
18328
|
-
type_raw: string;
|
|
18329
|
-
version: string;
|
|
18330
|
-
digest?: string;
|
|
18331
|
-
/** Struct fields rendered as JSON (RpcVisitor shape) when requested. */
|
|
18332
|
-
json?: Record<string, unknown> | null;
|
|
18333
|
-
}
|
|
18334
|
-
interface SharedObjectsAnswer {
|
|
18335
|
-
objects: SharedObjectsAnswerItem[];
|
|
18336
|
-
has_next_page: boolean;
|
|
18337
|
-
next_cursor: string | null;
|
|
18338
|
-
}
|
|
18339
|
-
declare const query_shared_objects: (query: SharedObjectsQuery) => Promise<SharedObjectsAnswer>;
|
|
18228
|
+
type ValueTypeInput = ValueType | string;
|
|
18340
18229
|
/**
|
|
18341
|
-
*
|
|
18342
|
-
*
|
|
18343
|
-
*
|
|
18344
|
-
*
|
|
18345
|
-
* - coin_type → SERVER-SIDE via the GraphQL type filter
|
|
18346
|
-
* (`0x2::service::Service<T>` exact instantiation; omit →
|
|
18347
|
-
* module-level `0x2::service` = ALL generic instantiations).
|
|
18348
|
-
* - name_contains / location_any → CLIENT-SIDE substring filters applied
|
|
18349
|
-
* after enumeration (the indexer has no struct-field filters).
|
|
18350
|
-
*
|
|
18351
|
-
* The raw enumeration is cached locally (memory + SQLite, 120s TTL) — filters
|
|
18352
|
-
* re-run on every call against the cached universe; `no_cache` forces a
|
|
18353
|
-
* fresh enumeration. When `has_more` is true the universe was truncated at
|
|
18354
|
-
* `max_objects` and client-side filters saw only a partial list.
|
|
18230
|
+
* 将 ValueTypeInput 转换为 ValueType 枚举
|
|
18231
|
+
* @param input - 数字枚举值或字符串名称
|
|
18232
|
+
* @returns ValueType 枚举值
|
|
18233
|
+
* @throws 如果输入无效
|
|
18355
18234
|
*/
|
|
18356
|
-
|
|
18357
|
-
|
|
18358
|
-
|
|
18359
|
-
|
|
18360
|
-
|
|
18361
|
-
|
|
18362
|
-
|
|
18363
|
-
|
|
18364
|
-
|
|
18365
|
-
|
|
18366
|
-
|
|
18367
|
-
|
|
18368
|
-
|
|
18369
|
-
|
|
18370
|
-
|
|
18371
|
-
|
|
18372
|
-
|
|
18373
|
-
|
|
18374
|
-
|
|
18375
|
-
|
|
18376
|
-
|
|
18377
|
-
|
|
18378
|
-
|
|
18235
|
+
declare const parseValueType: (input: ValueTypeInput) => ValueType;
|
|
18236
|
+
/**
|
|
18237
|
+
* 将 ValueType 枚举转换为字符串名称
|
|
18238
|
+
* @param type - ValueType 枚举值
|
|
18239
|
+
* @returns 字符串名称,如 "U64"
|
|
18240
|
+
*/
|
|
18241
|
+
declare const valueTypeToString: (type: ValueType) => string;
|
|
18242
|
+
/**
|
|
18243
|
+
* 检查输入是否为有效的 ValueTypeInput
|
|
18244
|
+
* @param input - 任意输入
|
|
18245
|
+
* @returns 是否有效
|
|
18246
|
+
*/
|
|
18247
|
+
declare const isValidValueTypeInput: (input: unknown) => input is ValueTypeInput;
|
|
18248
|
+
declare enum OperatorType {
|
|
18249
|
+
TypeQuery = 40,
|
|
18250
|
+
// 查询类型
|
|
18251
|
+
TypeNumberAdd = 200,
|
|
18252
|
+
// 数值加法
|
|
18253
|
+
TypeNumberSubtract = 201,
|
|
18254
|
+
// 数值减法
|
|
18255
|
+
TypeNumberMultiply = 202,
|
|
18256
|
+
// 数值乘法
|
|
18257
|
+
TypeNumberDivide = 203,
|
|
18258
|
+
// 数值除法
|
|
18259
|
+
TypeNumberMod = 204,
|
|
18260
|
+
// 数值取模
|
|
18261
|
+
TypeNumberAddress = 205,
|
|
18262
|
+
// 数值转地址
|
|
18263
|
+
TypeNumberString = 206,
|
|
18264
|
+
// 数值转字符串
|
|
18265
|
+
TypeAddressNumber = 207,
|
|
18266
|
+
// 地址转数值
|
|
18267
|
+
TypeStringNumber = 208,
|
|
18268
|
+
// 字符串转数值
|
|
18269
|
+
TypeSafeU8 = 220,
|
|
18270
|
+
// 转换为安全U8类型
|
|
18271
|
+
TypeSafeU16 = 221,
|
|
18272
|
+
// 转换为安全U16类型
|
|
18273
|
+
TypeSafeU32 = 222,
|
|
18274
|
+
// 转换为安全U32类型
|
|
18275
|
+
TypeSafeU64 = 223,
|
|
18276
|
+
// 转换为安全U64类型
|
|
18277
|
+
TypeSafeU128 = 224,
|
|
18278
|
+
// 转换为安全U128类型
|
|
18279
|
+
TypeSafeU256 = 225,
|
|
18280
|
+
// 转换为安全U256类型
|
|
18281
|
+
TypeStringLength = 61,
|
|
18282
|
+
// 获取字符串长度
|
|
18283
|
+
TypeStringIndexof = 62,
|
|
18284
|
+
// 字符串查找
|
|
18285
|
+
TypeStringNocaseIndexof = 63,
|
|
18286
|
+
// 字符串查找(不区分大小写)
|
|
18287
|
+
TypeStringContains = 64,
|
|
18288
|
+
// 字符串包含检查
|
|
18289
|
+
TypeStringNocaseContains = 65,
|
|
18290
|
+
// 字符串包含检查(不区分大小写)
|
|
18291
|
+
TypeStringNocaseEqual = 66,
|
|
18292
|
+
// 字符串相等检查(不区分大小写)
|
|
18293
|
+
TypedValueType = 70,
|
|
18294
|
+
// 获取TypedValue类型
|
|
18295
|
+
TypedValueVecLength = 71,
|
|
18296
|
+
// 获取TypedValue向量长度
|
|
18297
|
+
TypedValueVecContains_Bool = 72,
|
|
18298
|
+
// 检查TypedValue向量是否包含布尔值
|
|
18299
|
+
TypedValueVecContains_Address = 73,
|
|
18300
|
+
// 检查TypedValue向量是否包含地址
|
|
18301
|
+
TypedValueVecContains_String = 74,
|
|
18302
|
+
// 检查TypedValue向量是否包含字符串
|
|
18303
|
+
TypedValueVecContains_StringNoCase = 75,
|
|
18304
|
+
// 检查TypedValue向量是否包含字符串(不区分大小写)
|
|
18305
|
+
TypedValueVecContains_Number = 76,
|
|
18306
|
+
// 检查TypedValue向量是否包含数值
|
|
18307
|
+
TypedValueVecIndexOf_Bool = 77,
|
|
18308
|
+
// 查找TypedValue向量中布尔值的索引
|
|
18309
|
+
TypedValueVecIndexOf_Address = 78,
|
|
18310
|
+
// 查找TypedValue向量中地址的索引
|
|
18311
|
+
TypedValueVecIndexOf_String = 79,
|
|
18312
|
+
// 查找TypedValue向量中字符串的索引
|
|
18313
|
+
TypedValueVecIndexOf_StringNoCase = 80,
|
|
18314
|
+
// 查找TypedValue向量中字符串的索引(不区分大小写)
|
|
18315
|
+
TypedValueVecIndexOf_Number = 81,
|
|
18316
|
+
// 查找TypedValue向量中数值的索引
|
|
18317
|
+
TypeLogicEqual = 90,
|
|
18318
|
+
// 逻辑相等
|
|
18319
|
+
TypeLogicAsU256Greater = 91,
|
|
18320
|
+
// 逻辑U256大于
|
|
18321
|
+
TypeLogicAsU256GreaterEqual = 92,
|
|
18322
|
+
// 逻辑U256大于等于
|
|
18323
|
+
TypeLogicAsU256Lesser = 93,
|
|
18324
|
+
// 逻辑U256小于
|
|
18325
|
+
TypeLogicAsU256LesserEqual = 94,
|
|
18326
|
+
// 逻辑U256小于等于
|
|
18327
|
+
TypeLogicAsU256Equal = 95,
|
|
18328
|
+
// 逻辑U256相等
|
|
18329
|
+
TypeLogicAnd = 96,
|
|
18330
|
+
// 逻辑与
|
|
18331
|
+
TypeLogicOr = 97,
|
|
18332
|
+
// 逻辑或
|
|
18333
|
+
TypeLogicNot = 98
|
|
18379
18334
|
}
|
|
18380
|
-
|
|
18381
|
-
|
|
18382
|
-
|
|
18383
|
-
|
|
18384
|
-
|
|
18385
|
-
|
|
18335
|
+
declare enum WitnessType {
|
|
18336
|
+
TypeOrderProgress = 100,
|
|
18337
|
+
TypeOrderMachine = 101,
|
|
18338
|
+
TypeOrderService = 102,
|
|
18339
|
+
TypeProgressMachine = 103,
|
|
18340
|
+
TypeArbOrder = 104,
|
|
18341
|
+
TypeArbArbitration = 105,
|
|
18342
|
+
TypeArbProgress = 106,
|
|
18343
|
+
TypeArbMachine = 107,
|
|
18344
|
+
TypeArbService = 108
|
|
18386
18345
|
}
|
|
18387
|
-
declare const
|
|
18346
|
+
declare const isWitnessType: (type: number | WitnessType | undefined | null) => type is WitnessType;
|
|
18388
18347
|
/**
|
|
18389
|
-
*
|
|
18390
|
-
*
|
|
18391
|
-
*
|
|
18392
|
-
|
|
18393
|
-
|
|
18394
|
-
|
|
18348
|
+
* WitnessType 输入类型 - 支持数字枚举或字符串名称
|
|
18349
|
+
* 字符串不区分大小写,如 "TypeOrderProgress", "typeorderprogress", "ORDERPROGRESS" 都有效
|
|
18350
|
+
* 也支持去掉 "Type" 前缀的简写形式,如 "OrderProgress", "orderprogress"
|
|
18351
|
+
*/
|
|
18352
|
+
type WitnessTypeInput = WitnessType | string;
|
|
18353
|
+
/**
|
|
18354
|
+
* 将 WitnessTypeInput 转换为 WitnessType 枚举
|
|
18355
|
+
* @param input - 数字枚举值或字符串名称
|
|
18356
|
+
* @returns WitnessType 枚举值
|
|
18357
|
+
* @throws 如果输入无效
|
|
18358
|
+
*/
|
|
18359
|
+
declare const parseWitnessType: (input: WitnessTypeInput) => WitnessType;
|
|
18360
|
+
/**
|
|
18361
|
+
* 将 WitnessType 枚举转换为用户友好的字符串名称
|
|
18362
|
+
* 返回去掉 "Type" 前缀的名称,如 "OrderProgress" (而非 "TypeOrderProgress")
|
|
18363
|
+
* @param type - WitnessType 枚举值
|
|
18364
|
+
* @returns 字符串名称
|
|
18365
|
+
*/
|
|
18366
|
+
declare const witnessTypeToString: (type: WitnessType) => string;
|
|
18367
|
+
/**
|
|
18368
|
+
* 检查输入是否为有效的 WitnessTypeInput
|
|
18369
|
+
* @param input - 任意输入
|
|
18370
|
+
* @returns 是否有效
|
|
18395
18371
|
*/
|
|
18396
|
-
|
|
18397
|
-
|
|
18398
|
-
|
|
18399
|
-
|
|
18400
|
-
|
|
18372
|
+
declare const isValidWitnessTypeInput: (input: unknown) => input is WitnessTypeInput;
|
|
18373
|
+
declare enum ContextType {
|
|
18374
|
+
TypeSigner = 45,
|
|
18375
|
+
TypeClock = 46,
|
|
18376
|
+
TypeGuard = 47,
|
|
18377
|
+
TypeConstant = 48
|
|
18401
18378
|
}
|
|
18402
|
-
|
|
18403
|
-
|
|
18404
|
-
|
|
18405
|
-
|
|
18406
|
-
|
|
18407
|
-
|
|
18379
|
+
declare enum Modules {
|
|
18380
|
+
Machine = "machine",
|
|
18381
|
+
Progress = "progress",
|
|
18382
|
+
Repository = "repository",
|
|
18383
|
+
Permission = "permission",
|
|
18384
|
+
Passport = "passport",
|
|
18385
|
+
Guard = "guard",
|
|
18386
|
+
Demand = "demand",
|
|
18387
|
+
Order = "order",
|
|
18388
|
+
Service = "service",
|
|
18389
|
+
Resource = "resource",
|
|
18390
|
+
Entity = "entity",
|
|
18391
|
+
Wowok = "wowok",
|
|
18392
|
+
Treasury = "treasury",
|
|
18393
|
+
Payment = "payment",
|
|
18394
|
+
Arbitration = "arbitration",
|
|
18395
|
+
Arb = "arb",
|
|
18396
|
+
Allocation = "allocation"
|
|
18408
18397
|
}
|
|
18409
|
-
declare const
|
|
18398
|
+
declare const PackageAddress = "0x2";
|
|
18399
|
+
declare const GasTokenType = "0x2::wow::WOW";
|
|
18400
|
+
declare const GasCoinType = "0x2::coin::Coin<0x2::wow::WOW>";
|
|
18401
|
+
declare const RegistrarAddress = "0xaaa";
|
|
18402
|
+
declare const EntityAddress = "0xaab";
|
|
18403
|
+
declare const MAX_ENV_PERMISSION_GUARD_COUNT = 4;
|
|
18404
|
+
declare const isGasTokenType: (token_type: string) => boolean;
|
|
18405
|
+
declare const isValidValueType: (valueType: number) => boolean;
|
|
18406
|
+
declare const isThisPackage: (type: string) => boolean;
|
|
18407
|
+
declare const isValidArray: <T>(arr: T[], validator: (item: T) => boolean) => boolean;
|
|
18408
|
+
/** u8::MAX (2^8 - 1). */
|
|
18409
|
+
declare const U8_MAX = 255;
|
|
18410
|
+
/** u16::MAX (2^16 - 1). */
|
|
18411
|
+
declare const U16_MAX = 65535;
|
|
18412
|
+
/** u32::MAX (2^32 - 1). */
|
|
18413
|
+
declare const U32_MAX = 4294967295;
|
|
18414
|
+
/** u64::MAX (2^64 - 1). */
|
|
18415
|
+
declare const U64_MAX = 18446744073709551615n;
|
|
18416
|
+
/** u128::MAX (2^128 - 1). */
|
|
18417
|
+
declare const U128_MAX = 340282366920938463463374607431768211455n;
|
|
18418
|
+
/** u256::MAX (2^256 - 1). */
|
|
18419
|
+
declare const U256_MAX = 115792089237316195423570985008687907853269984665640564039457584007913129639935n;
|
|
18420
|
+
declare const isValidU8: (value: number | bigint | string) => boolean;
|
|
18421
|
+
declare const isValidU16: (value: number | bigint | string) => boolean;
|
|
18422
|
+
declare const isValidU64: (value: number | bigint | string) => boolean;
|
|
18423
|
+
declare const isValidU128: (value: number | bigint | string) => boolean;
|
|
18424
|
+
declare const isValidU256: (value: number | bigint | string) => boolean;
|
|
18425
|
+
declare const isValidU32: (value: number | bigint | string) => boolean;
|
|
18426
|
+
declare const IsBcsStringLength: (str: string, max_len: number) => boolean;
|
|
18427
|
+
declare const MAX_DESCRIPTION_LENGTH = 4000;
|
|
18428
|
+
declare const MAX_NAME_LENGTH = 64;
|
|
18429
|
+
declare const MAX_LONG_NAME_LENGTH = 256;
|
|
18430
|
+
declare const MAX_GUARD_TABLE_ITEM_LENGTH = 256;
|
|
18431
|
+
declare const MAX_INPUT_SIZE = 1024;
|
|
18432
|
+
declare const MAX_DEPENDED_COUNT = 4;
|
|
18433
|
+
/** Number ops (calc_number_*): 2..=8. · wtype.rs:55 */
|
|
18434
|
+
declare const MAX_NUMBER_OPERANDS = 8;
|
|
18435
|
+
/** Logic ops (logic_*): 2..=8. · wtype.rs:58 */
|
|
18436
|
+
declare const MAX_LOGIC_OPERANDS = 8;
|
|
18437
|
+
/** String ops (string contains/equal): 2..=6. · wtype.rs:61 */
|
|
18438
|
+
declare const MAX_STRING_OPERANDS = 6;
|
|
18410
18439
|
/**
|
|
18411
|
-
*
|
|
18412
|
-
*
|
|
18413
|
-
* for an on-chain "arbitration → Arb cases" reverse index (13 §3.2): the index
|
|
18414
|
-
* is rebuilt client-side from each Arb's final state, no indexer table needed
|
|
18415
|
-
* for the historical-scoring path.
|
|
18440
|
+
* Generic cap used where the SDK validates a non-string multi-operand op
|
|
18441
|
+
* without distinguishing number from logic (both caps above are 8).
|
|
18416
18442
|
*/
|
|
18417
|
-
|
|
18418
|
-
|
|
18419
|
-
|
|
18420
|
-
|
|
18421
|
-
|
|
18422
|
-
|
|
18423
|
-
|
|
18424
|
-
|
|
18425
|
-
|
|
18426
|
-
|
|
18427
|
-
|
|
18428
|
-
|
|
18429
|
-
|
|
18430
|
-
|
|
18431
|
-
|
|
18432
|
-
|
|
18433
|
-
|
|
18434
|
-
|
|
18435
|
-
|
|
18436
|
-
declare const
|
|
18437
|
-
|
|
18438
|
-
|
|
18439
|
-
declare const query_tableItem: (query: TableItemQuery) => Promise<ObjectBase | undefined>;
|
|
18440
|
-
interface QueryTableItem_byAddress {
|
|
18441
|
-
parent: string | ObjectPermission | ObjectDemand | ObjectEntityRegistrar | ObjectResource | ObjectReward | ObjectTreasury | ObjectEntityLinker;
|
|
18442
|
-
address: AccountOrMark_Address | string;
|
|
18443
|
-
no_cache?: boolean;
|
|
18444
|
-
network?: ENTRYPOINT;
|
|
18445
|
-
}
|
|
18446
|
-
interface QueryTableItem_byU64 {
|
|
18447
|
-
parent: string | ObjectProgress;
|
|
18448
|
-
u64: number | string | bigint;
|
|
18449
|
-
no_cache?: boolean;
|
|
18450
|
-
network?: ENTRYPOINT;
|
|
18451
|
-
}
|
|
18452
|
-
interface QueryTableItem_byString {
|
|
18453
|
-
parent: string | ObjectMachine;
|
|
18454
|
-
key: string;
|
|
18455
|
-
no_cache?: boolean;
|
|
18456
|
-
network?: ENTRYPOINT;
|
|
18457
|
-
}
|
|
18458
|
-
interface QueryTableItem_byNameAddress {
|
|
18459
|
-
parent: string | ObjectMachine;
|
|
18443
|
+
declare const MAX_MULTI_OPERANDS = 8;
|
|
18444
|
+
declare const MAX_GUARD_NODE_DEPTH = 128;
|
|
18445
|
+
declare const isValidDescription: (description: string) => boolean;
|
|
18446
|
+
declare const isValidName: (name: string) => boolean;
|
|
18447
|
+
declare const isValidLongName: (name: string) => boolean;
|
|
18448
|
+
declare const isValidHttpUrl: (url: string) => boolean;
|
|
18449
|
+
declare const isValueTypeNumber: (valueType: ValueType | number) => boolean;
|
|
18450
|
+
declare const toTxObject: (tx: Transaction$1, arg: TxObject) => TransactionObjectArgument;
|
|
18451
|
+
declare const toTxReceivingObject: (tx: Transaction$1, objectId: string, version: string | number | undefined, digest: string | undefined) => TransactionObjectArgument;
|
|
18452
|
+
declare const toTxString: (tx: Transaction$1, arg: TxString) => TransactionArgument;
|
|
18453
|
+
declare const toTxU8: (tx: Transaction$1, arg: TxNumber) => TransactionArgument;
|
|
18454
|
+
declare const toTxU16: (tx: Transaction$1, arg: TxNumber) => TransactionArgument;
|
|
18455
|
+
declare const toTxU32: (tx: Transaction$1, arg: TxNumber) => TransactionArgument;
|
|
18456
|
+
declare const toTxU128: (tx: Transaction$1, arg: TxNumber) => TransactionArgument;
|
|
18457
|
+
declare const toTxU256: (tx: Transaction$1, arg: TxNumber) => TransactionArgument;
|
|
18458
|
+
declare const toTxU64: (tx: Transaction$1, arg: TxNumber) => TransactionArgument;
|
|
18459
|
+
declare const toTxAddress: (tx: Transaction$1, arg: TxAddress) => TransactionArgument;
|
|
18460
|
+
declare const toTxAddressVec: (tx: Transaction$1, arg: TxAddressVec, max_len: number) => TransactionArgument;
|
|
18461
|
+
declare const toTxU16Vec: (tx: Transaction$1, arg: TxNumberVec, max_len: number) => TransactionArgument;
|
|
18462
|
+
declare const object_name_from_type: (type_repr: string | null | undefined) => string | undefined;
|
|
18463
|
+
interface ObjectModuleAndName {
|
|
18464
|
+
module: string;
|
|
18460
18465
|
name: string;
|
|
18461
|
-
entity: AccountOrMark_Address | bigint | number;
|
|
18462
|
-
no_cache?: boolean;
|
|
18463
|
-
network?: ENTRYPOINT;
|
|
18464
|
-
}
|
|
18465
|
-
interface QueryTableItem_Entity {
|
|
18466
|
-
address: AccountOrMark_Address | string;
|
|
18467
|
-
no_cache?: boolean;
|
|
18468
|
-
network?: ENTRYPOINT;
|
|
18469
18466
|
}
|
|
18470
|
-
declare const
|
|
18471
|
-
|
|
18472
|
-
|
|
18473
|
-
|
|
18474
|
-
|
|
18475
|
-
|
|
18476
|
-
declare const queryTableItem_ObjectLinkerTx: (query: QueryTableItem_Entity) => Promise<TableItem_ObjectLinkerTx | undefined>;
|
|
18477
|
-
/**
|
|
18478
|
-
* Orders registered under one target address in the GLOBAL ORDER TABLE
|
|
18479
|
-
* (ObjectLinkerTx 0xaaf — order.move:110 writes every order to its Service
|
|
18480
|
-
* key). This is the single source of truth for "which orders a service has".
|
|
18481
|
-
*
|
|
18482
|
-
* The raw table is a generic tx-touches buffer: it ALSO records entries for
|
|
18483
|
-
* guards whose rule tables reference the address (guard.move:246), progress,
|
|
18484
|
-
* allocations and payments. Those non-order touches are filtered out here by
|
|
18485
|
-
* decoding the typed first address byte (objectTypeFromAddress — local, zero
|
|
18486
|
-
* extra round-trips), so every returned `who` is a REAL Order object.
|
|
18487
|
-
*/
|
|
18488
|
-
declare const queryTableItem_ServiceOrders: (query: QueryTableItem_Entity) => Promise<TableItem_ObjectLinkerTx | undefined>;
|
|
18489
|
-
declare const queryTableItem_EntityOrder: (query: QueryTableItem_Entity) => Promise<TableItem_EntityOrder | undefined>;
|
|
18490
|
-
declare const queryTableItem_EntityPermission: (query: QueryTableItem_Entity) => Promise<TableItem_EntityPermission | undefined>;
|
|
18491
|
-
/** Role bit flags of the entity_order reverse index (order.move / entity_order.move). */
|
|
18492
|
-
declare const ENTITY_ORDER_ROLE_OWNER = 1;
|
|
18493
|
-
declare const ENTITY_ORDER_ROLE_AGENT = 2;
|
|
18494
|
-
/** One order membership of a user, resolved with the full on-chain order. */
|
|
18495
|
-
interface UserOrderView {
|
|
18496
|
-
role: number;
|
|
18497
|
-
is_owner: boolean;
|
|
18498
|
-
is_agent: boolean;
|
|
18499
|
-
time: number;
|
|
18500
|
-
order: ObjectOrder;
|
|
18467
|
+
declare const object_module_and_name_from_type: (type_repr: string | null | undefined) => ObjectModuleAndName | undefined;
|
|
18468
|
+
interface NamedObject {
|
|
18469
|
+
name?: string;
|
|
18470
|
+
tags?: string[];
|
|
18471
|
+
replaceExistName?: boolean;
|
|
18472
|
+
onChain?: boolean;
|
|
18501
18473
|
}
|
|
18502
|
-
interface
|
|
18503
|
-
|
|
18504
|
-
no_cache?: boolean;
|
|
18505
|
-
network?: ENTRYPOINT;
|
|
18474
|
+
interface NamedObjectWithDescription extends NamedObject {
|
|
18475
|
+
description?: string;
|
|
18506
18476
|
}
|
|
18507
|
-
|
|
18508
|
-
|
|
18509
|
-
* global EntityOrder reverse index (0xaa8), then resolve the full Order
|
|
18510
|
-
* objects. Returns an empty array when the user has no orders.
|
|
18511
|
-
*/
|
|
18512
|
-
declare const queryOrdersByUser: (query: QueryOrdersByUser) => Promise<UserOrderView[]>;
|
|
18513
|
-
/** Unified address profile — the on-chain "who/what is this address" view (K3 22). */
|
|
18514
|
-
interface AddressActivity {
|
|
18515
|
-
/** Latest on-chain activity timestamp (ms) across all queried dimensions. */
|
|
18516
|
-
last_active_ms: number;
|
|
18517
|
-
/** Count of activity signals (order memberships + reputation votes + reverse tx bindings). */
|
|
18518
|
-
signal_count: number;
|
|
18519
|
-
/** Whether the address has any on-chain activity (false = likely dormant). */
|
|
18520
|
-
active: boolean;
|
|
18477
|
+
interface NamedObjectWithPermission extends NamedObject {
|
|
18478
|
+
permission?: DescriptionObject;
|
|
18521
18479
|
}
|
|
18522
|
-
|
|
18523
|
-
|
|
18524
|
-
/** Orders the address participates in as owner (customer signal). */
|
|
18525
|
-
customer_orders: number;
|
|
18526
|
-
/** Orders the address participates in as agent (collaborator signal). */
|
|
18527
|
-
agent_orders: number;
|
|
18528
|
-
/** Whether bounded core objects bind to this address (merchant/supplier signal). */
|
|
18529
|
-
merchant_signal: boolean;
|
|
18530
|
-
/** Dominant role hint (prospect when no signal). */
|
|
18531
|
-
role_hint: string;
|
|
18480
|
+
interface TypeNamedObjectWithPermission extends NamedObjectWithPermission {
|
|
18481
|
+
type_parameter: string;
|
|
18532
18482
|
}
|
|
18533
|
-
interface
|
|
18534
|
-
|
|
18535
|
-
/** Classification: 'user' | a business object type (service/order/...) | a system singleton kind. */
|
|
18536
|
-
kind: string;
|
|
18537
|
-
is_system_singleton: boolean;
|
|
18538
|
-
identity?: TableItem_EntityRegistrar;
|
|
18539
|
-
reputation?: TableItem_EntityLinker;
|
|
18540
|
-
order_membership?: TableItem_EntityOrder;
|
|
18541
|
-
contact_membership?: TableItem_EntityContact;
|
|
18542
|
-
/** Permissions the address holds a role in (EntityPermission 0xaad reverse index). */
|
|
18543
|
-
permission_membership?: TableItem_EntityPermission;
|
|
18544
|
-
reverse_core?: TableItem_ObjectLinkerCore;
|
|
18545
|
-
reverse_tx?: TableItem_ObjectLinkerTx;
|
|
18546
|
-
object?: ObjectBase;
|
|
18547
|
-
/** Aggregated activity summary (K3 22 §13 P1-6). */
|
|
18548
|
-
activity: AddressActivity;
|
|
18549
|
-
/** Role evidence derived from the address's on-chain facts (K3 22 §13 P1-7). */
|
|
18550
|
-
role_evidence: RoleEvidence;
|
|
18483
|
+
interface TypeNamedObject extends NamedObject {
|
|
18484
|
+
type_parameter: string;
|
|
18551
18485
|
}
|
|
18552
|
-
|
|
18553
|
-
|
|
18554
|
-
|
|
18486
|
+
type TypedPermissionObject = string | TypeNamedObjectWithPermission;
|
|
18487
|
+
type TypedDescriptionObject = string | TypeNamedObject;
|
|
18488
|
+
type WithPermissionObject = string | NamedObjectWithPermission;
|
|
18489
|
+
type NormalObject = string | NamedObject;
|
|
18490
|
+
type DescriptionObject = string | NamedObjectWithDescription;
|
|
18491
|
+
type WObject = TypedPermissionObject | TypedDescriptionObject | PermissionObject | NormalObject | DescriptionObject;
|
|
18492
|
+
declare const GetObjectExisted: (object?: WObject) => Promise<string | undefined>;
|
|
18493
|
+
declare const GetObjectDescription: (object?: WObject) => string | undefined;
|
|
18494
|
+
declare const GetObject: (object?: WObject) => NamedObjectWithPermission | TypeNamedObjectWithPermission | NamedObjectWithDescription | TypeNamedObject | undefined;
|
|
18495
|
+
declare const MAX_PERMISSION_GUARD_COUNT = 4;
|
|
18496
|
+
interface CallEnv {
|
|
18555
18497
|
network?: ENTRYPOINT;
|
|
18556
|
-
|
|
18557
|
-
|
|
18558
|
-
* Query a unified address profile (K3 22 §P0-1).
|
|
18559
|
-
*
|
|
18560
|
-
* One entry point that classifies the address (first-byte business-object
|
|
18561
|
-
* type, system singleton, or user), then batches the identity / reputation /
|
|
18562
|
-
* membership / reverse-binding / object lookups in a single Promise.all
|
|
18563
|
-
* (leveraging the SDK's per-object cache). Degrades honestly: any missing
|
|
18564
|
-
* dimension is simply left undefined.
|
|
18565
|
-
*/
|
|
18566
|
-
declare const query_address_profile: (query: QueryAddressProfile) => Promise<AddressProfile>;
|
|
18567
|
-
interface QueryAddressProfiles {
|
|
18568
|
-
/** Addresses (or LocalMark names) to profile — result order matches. */
|
|
18569
|
-
addresses: (AccountOrMark_Address | string)[];
|
|
18498
|
+
account?: string | null;
|
|
18499
|
+
permission_guard?: string[];
|
|
18570
18500
|
no_cache?: boolean;
|
|
18571
|
-
|
|
18572
|
-
}
|
|
18573
|
-
/**
|
|
18574
|
-
* Batch address profiles — one call for N addresses instead of N
|
|
18575
|
-
* single-address calls (list views were paying N MCP round-trips + N
|
|
18576
|
-
* sequential fan-outs). The per-address 8-dimension fan-out runs in PARALLEL
|
|
18577
|
-
* and every underlying read is per-key cached, so repeat refreshes hit the
|
|
18578
|
-
* cache layer only.
|
|
18579
|
-
*
|
|
18580
|
-
* Degrades per-address: an address that fails to resolve yields a null slot
|
|
18581
|
-
* (never rejects the whole batch).
|
|
18582
|
-
*/
|
|
18583
|
-
declare const query_address_profiles: (query: QueryAddressProfiles) => Promise<(AddressProfile | null)[]>;
|
|
18584
|
-
/** Token type bound to an on-chain object (its first generic type argument). */
|
|
18585
|
-
interface ObjectTokenTypeInfo {
|
|
18586
|
-
/** Object address actually queried (LocalMark names are resolved first). */
|
|
18587
|
-
object: string;
|
|
18588
|
-
/** Short semantic object type (e.g. "Treasury", "Service"), when known. */
|
|
18589
|
-
object_type?: ObjectType;
|
|
18590
|
-
/** Full raw Move type string, e.g. "0x2::treasury::Treasury<0x2::wow::WOW>". */
|
|
18591
|
-
type_raw?: string;
|
|
18501
|
+
referrer?: string | null;
|
|
18592
18502
|
/**
|
|
18593
|
-
*
|
|
18594
|
-
*
|
|
18595
|
-
*
|
|
18596
|
-
*
|
|
18503
|
+
* Opt-out of SDK-level Entity auto-registration. By default the SDK
|
|
18504
|
+
* appends registrar::entity_register to a business transaction when the
|
|
18505
|
+
* sender has no entry in the global Entity table (one-time per account).
|
|
18506
|
+
* Set true to keep transactions untouched — e.g. after an explicit
|
|
18507
|
+
* entity_cancel, or for callers that must not mutate the Entity table.
|
|
18597
18508
|
*/
|
|
18598
|
-
|
|
18509
|
+
no_auto_register?: boolean;
|
|
18510
|
+
/** When true, simulate the transaction without signing or submitting (dry_run / Plan verification). */
|
|
18511
|
+
dry_run?: boolean;
|
|
18599
18512
|
}
|
|
18600
|
-
|
|
18601
|
-
|
|
18602
|
-
|
|
18603
|
-
|
|
18604
|
-
|
|
18605
|
-
|
|
18606
|
-
|
|
18513
|
+
declare const CoinWrapPrefix = "0x2::payment::CoinWrapper";
|
|
18514
|
+
type BalanceType = number | bigint | string;
|
|
18515
|
+
declare const IsValidBalance: (balance: BalanceType) => boolean;
|
|
18516
|
+
declare const IsValidEndpoint: (endpoint?: string | null | undefined) => boolean;
|
|
18517
|
+
declare const IsValidArgType: (arg_type: string | null | undefined) => boolean;
|
|
18518
|
+
type CoinParam = {
|
|
18519
|
+
coin: CoinObject | string;
|
|
18520
|
+
} | {
|
|
18521
|
+
balance: BalanceType;
|
|
18522
|
+
};
|
|
18523
|
+
declare enum RecipientType {
|
|
18524
|
+
GuardIdentifier = 0,
|
|
18525
|
+
Entity = 1,
|
|
18526
|
+
Signer = 2
|
|
18607
18527
|
}
|
|
18528
|
+
type Recipient = {
|
|
18529
|
+
GuardIdentifier: number;
|
|
18530
|
+
} | {
|
|
18531
|
+
Entity: AccountOrMark_Address;
|
|
18532
|
+
} | {
|
|
18533
|
+
Signer: "signer";
|
|
18534
|
+
};
|
|
18535
|
+
type ObjectWithType = {
|
|
18536
|
+
object: string;
|
|
18537
|
+
type: string;
|
|
18538
|
+
};
|
|
18539
|
+
declare function serviceFn(name: string): string;
|
|
18540
|
+
declare function demandFn(name: string): string;
|
|
18541
|
+
declare function machineFn(name: string): string;
|
|
18542
|
+
declare function contactFn(name: string): string;
|
|
18543
|
+
declare function treasuryFn(name: string): string;
|
|
18544
|
+
declare function arbitrationFn(name: string): string;
|
|
18545
|
+
declare function repositoryFn(name: string): string;
|
|
18546
|
+
declare function rewardFn(name: string): string;
|
|
18547
|
+
declare enum ObjectType {
|
|
18548
|
+
Permission = "Permission",
|
|
18549
|
+
Repository = "Repository",
|
|
18550
|
+
Arb = "Arb",
|
|
18551
|
+
Arbitration = "Arbitration",
|
|
18552
|
+
Service = "Service",
|
|
18553
|
+
Machine = "Machine",
|
|
18554
|
+
Order = "Order",
|
|
18555
|
+
Progress = "Progress",
|
|
18556
|
+
Payment = "Payment",
|
|
18557
|
+
Treasury = "Treasury",
|
|
18558
|
+
Guard = "Guard",
|
|
18559
|
+
Demand = "Demand",
|
|
18560
|
+
Passport = "Passport",
|
|
18561
|
+
Allocation = "Allocation",
|
|
18562
|
+
Resource = "Resource",
|
|
18563
|
+
Reward = "Reward",
|
|
18564
|
+
Discount = "Discount",
|
|
18565
|
+
EntityRegistrar = "EntityRegistrar",
|
|
18566
|
+
EntityLinker = "EntityLinker",
|
|
18567
|
+
Proof = "Proof",
|
|
18568
|
+
Contact = "Contact",
|
|
18569
|
+
EntityPermission = "EntityPermission",
|
|
18570
|
+
EntityContact = "EntityContact",
|
|
18571
|
+
ObjectLinkerCore = "ObjectLinkerCore",
|
|
18572
|
+
ObjectLinkerTx = "ObjectLinkerTx",
|
|
18573
|
+
EntityOrder = "EntityOrder",
|
|
18574
|
+
WReceivedObject = "WReceivedObject",
|
|
18575
|
+
TableItem_ProgressHistory = "TableItem_ProgressHistory",
|
|
18576
|
+
TableItem_PermissionPerm = "TableItem_PermissionPerm",
|
|
18577
|
+
TableItem_DemandPresenter = "TableItem_DemandPresenter",
|
|
18578
|
+
TableItem_MachineNode = "TableItem_MachineNode",
|
|
18579
|
+
TableItem_TreasuryHistory = "TableItem_TreasuryHistory",
|
|
18580
|
+
TableItem_RepositoryData = "TableItem_RepositoryData",
|
|
18581
|
+
TableItem_RewardRecord = "TableItem_RewardRecord",
|
|
18582
|
+
TableItem_EntityLinker = "TableItem_EntityLinker",
|
|
18583
|
+
TableItem_AddressMark = "TableItem_AddressMark",
|
|
18584
|
+
TableItem_EntityRegistrar = "TableItem_EntityRegistrar",
|
|
18585
|
+
TableItem_EntityPermission = "TableItem_EntityPermission",
|
|
18586
|
+
TableItem_EntityContact = "TableItem_EntityContact",
|
|
18587
|
+
TableItem_ObjectLinkerCore = "TableItem_ObjectLinkerCore",
|
|
18588
|
+
TableItem_ObjectLinkerTx = "TableItem_ObjectLinkerTx",
|
|
18589
|
+
TableItem_EntityOrder = "TableItem_EntityOrder"
|
|
18590
|
+
}
|
|
18591
|
+
declare const ENTITY_ORDER_ADDRESS: string;
|
|
18592
|
+
declare const ENTITY_CONTACT_ADDRESS: string;
|
|
18593
|
+
declare const ENTITY_LINKER_ADDRESS: string;
|
|
18594
|
+
declare const ENTITY_REGISTRAR_ADDRESS: string;
|
|
18595
|
+
declare const MESSENGER_ADDRESS: string;
|
|
18596
|
+
declare const ENTITY_PERMISSION_ADDRESS: string;
|
|
18597
|
+
declare const OBJECT_LINKER_CORE_ADDRESS: string;
|
|
18598
|
+
declare const OBJECT_LINKER_TX_ADDRESS: string;
|
|
18599
|
+
//#endregion
|
|
18600
|
+
//#region src/w/logger.d.ts
|
|
18601
|
+
declare enum LogLevel {
|
|
18602
|
+
Error = 0,
|
|
18603
|
+
Warn = 1,
|
|
18604
|
+
Info = 2,
|
|
18605
|
+
Debug = 3,
|
|
18606
|
+
Trace = 4
|
|
18607
|
+
}
|
|
18608
|
+
declare function setLogLevel(level: LogLevel | string): void;
|
|
18609
|
+
declare function getLogLevel(): LogLevel;
|
|
18610
|
+
declare class Logger {
|
|
18611
|
+
private prefix;
|
|
18612
|
+
private minLevel;
|
|
18613
|
+
constructor(prefix?: string, minLevel?: LogLevel | null);
|
|
18614
|
+
private getEffectiveLevel;
|
|
18615
|
+
private shouldLog;
|
|
18616
|
+
private log;
|
|
18617
|
+
error(...args: unknown[]): void;
|
|
18618
|
+
warn(...args: unknown[]): void;
|
|
18619
|
+
info(...args: unknown[]): void;
|
|
18620
|
+
debug(...args: unknown[]): void;
|
|
18621
|
+
trace(...args: unknown[]): void;
|
|
18622
|
+
child(prefix: string): Logger;
|
|
18623
|
+
}
|
|
18624
|
+
declare function createSensitiveLogger(prefix: string): Logger;
|
|
18625
|
+
declare const logger: Logger;
|
|
18626
|
+
//#endregion
|
|
18627
|
+
//#region src/w/util.d.ts
|
|
18608
18628
|
/**
|
|
18609
|
-
*
|
|
18610
|
-
*
|
|
18611
|
-
*
|
|
18612
|
-
* write-invalidated), so repeated lookups are free.
|
|
18613
|
-
*
|
|
18614
|
-
* Pure read + type parsing — callers decide which object types are
|
|
18615
|
-
* token-generic (this reports a generic argument for ANY generic object,
|
|
18616
|
-
* including `Table<K, V>` where the first arg is the key type).
|
|
18617
|
-
*/
|
|
18618
|
-
declare const query_object_token_type: (query: ObjectTokenTypeQuery) => Promise<ObjectTokenTypeInfo[]>;
|
|
18619
|
-
declare const queryTableItem_RewardRecord: (query: QueryTableItem_byAddress) => Promise<TableItem_RewardRecord | undefined>;
|
|
18620
|
-
declare const queryTableItem_DemandPresenter: (query: QueryTableItem_byAddress) => Promise<TableItem_DemandPresenter | undefined>;
|
|
18621
|
-
declare const queryTableItem_TreasuryHistory: (query: QueryTableItem_byAddress) => Promise<TableItem_TreasuryHistory | undefined>;
|
|
18622
|
-
declare const queryTableItem_MachineNode: (query: QueryTableItem_byString) => Promise<TableItem_MachineNode | undefined>;
|
|
18623
|
-
declare const queryTableItem_AddressMark: (query: QueryTableItem_byAddress) => Promise<TableItem_AddressMark | undefined>;
|
|
18624
|
-
declare const queryTableItem_ProgressHistory: (query: QueryTableItem_byU64) => Promise<TableItem_ProgressHistory | undefined>;
|
|
18625
|
-
declare function raw2type(type_raw: string | undefined): ObjectType | undefined;
|
|
18626
|
-
/**
|
|
18627
|
-
* Parse a raw on-chain object payload into its typed JS representation.
|
|
18629
|
+
* Pre-resolve an Address/VecAddress-typed SupportedValue to canonical address
|
|
18630
|
+
* strings (write-back) so valueToBcsBytes performs no local lookups during
|
|
18631
|
+
* tx building (operate() stays I/O-free).
|
|
18628
18632
|
*
|
|
18629
|
-
*
|
|
18630
|
-
*
|
|
18631
|
-
*
|
|
18632
|
-
*
|
|
18633
|
-
*
|
|
18633
|
+
* Returns the resolved value, or undefined to KEEP the original:
|
|
18634
|
+
* - already-valid address / non-address value shape (fast-path in operate)
|
|
18635
|
+
* - VecAddress with any unresolved item (all-or-nothing write-back keeps the
|
|
18636
|
+
* original error semantics — no silent address drops)
|
|
18637
|
+
* - non-Address/VecAddress value types (no resolution needed)
|
|
18634
18638
|
*/
|
|
18635
|
-
declare
|
|
18639
|
+
declare const resolveSupportedValue: (valueType: ValueType, value: SupportedValue) => Promise<SupportedValue | undefined>;
|
|
18640
|
+
declare const isValidValueContainer: <T extends ValueType>(container: ValueContainer<T>) => boolean;
|
|
18641
|
+
declare const valueToBcsBytes: <T extends ValueType>(valueType: T, value: ValueTypeToType[T]) => Promise<Uint8Array>;
|
|
18642
|
+
declare const bcsBytesToValue: <T extends ValueType>(bytes: Uint8Array, valueType?: T) => T extends undefined ? SupportedValue : ValueTypeToType[T];
|
|
18643
|
+
declare const parseObjectType: (chain_type: string | null | undefined, header?: string) => string | undefined;
|
|
18644
|
+
declare const parseTypeParameter: (type: string | null | undefined) => string | undefined;
|
|
18645
|
+
declare const extractCoinType: (type: string | null | undefined) => string | undefined;
|
|
18646
|
+
declare function owner_receive$1(tx: Transaction$1, object: TxObject, // MachineObject | DemandObject | ServiceObject ...
|
|
18647
|
+
permission: PermissionObject, param: ReceivedObjects, caller_type: string | undefined, fnBuilder: (name: string) => string, // machineFn | demandFn
|
|
18648
|
+
passport?: PassportObject): Promise<void>;
|
|
18649
|
+
declare function permission_set(tx: Transaction$1, object: TxObject, // MachineObject | DemandObject
|
|
18650
|
+
old_permission: PermissionObject, new_permission: PermissionObject, caller_type: string | undefined, fnBuilder: (name: string) => string): void;
|
|
18651
|
+
declare const validObjects: (objects: (TxObject | undefined | null)[], allowNull?: boolean) => void;
|
|
18652
|
+
declare const uint2address: (value: number | bigint | string) => string;
|
|
18653
|
+
declare const parseRecipient: (whoData: any) => any;
|
|
18636
18654
|
//#endregion
|
|
18637
18655
|
//#region src/w/call/allocation.d.ts
|
|
18638
18656
|
type CallAllocation_Data = {
|
|
@@ -18649,6 +18667,7 @@ declare class CallAllocation extends CallBase {
|
|
|
18649
18667
|
data: CallAllocation_Data;
|
|
18650
18668
|
object_address: string | undefined;
|
|
18651
18669
|
type_parameter: string | undefined;
|
|
18670
|
+
private _auto_claim_alloc;
|
|
18652
18671
|
private _resolved_received_coins;
|
|
18653
18672
|
private _resolved_alloc_pi;
|
|
18654
18673
|
private _resolved_coin_plan;
|
|
@@ -18657,6 +18676,16 @@ declare class CallAllocation extends CallBase {
|
|
|
18657
18676
|
protected prepare(env: CallEnv): Promise<void>;
|
|
18658
18677
|
call(env: CallEnv): Promise<CallResult>;
|
|
18659
18678
|
operate(env: CallEnv, tx: Transaction$1, passport?: PassportObject): Promise<void>;
|
|
18679
|
+
protected sign_and_commit(env: CallEnv, tx: Transaction$1): Promise<WowTransactionBlockResponse>;
|
|
18680
|
+
/**
|
|
18681
|
+
* Claim the CoinWrapper objects THIS alloc_by_guard tx created and that are
|
|
18682
|
+
* owned by the signer (claim-to-self via payment::unwrap_to_myself), so
|
|
18683
|
+
* spendable coins land directly in the caller's wallet in one logical
|
|
18684
|
+
* operation. Wrappers owned by others (Order/Treasury escrow, Entity
|
|
18685
|
+
* recipients ≠ signer) are skipped — those are claimed through their own
|
|
18686
|
+
* receive entries.
|
|
18687
|
+
*/
|
|
18688
|
+
private auto_claim_created_wrappers;
|
|
18660
18689
|
}
|
|
18661
18690
|
declare function allocationFn(name: string): string;
|
|
18662
18691
|
declare const MAX_ALLOCATOR_COUNT: 100;
|
|
@@ -21323,6 +21352,13 @@ interface MessageFilter {
|
|
|
21323
21352
|
contentType?: MessageContentType;
|
|
21324
21353
|
/** 只返回已解密的消息 */
|
|
21325
21354
|
decryptedOnly?: boolean;
|
|
21355
|
+
/**
|
|
21356
|
+
* 同步模式(可选,默认 true)
|
|
21357
|
+
* - true/undefined: 阻塞式——先从服务器拉取最新消息再返回
|
|
21358
|
+
* - false: 非阻塞——立即返回本地 SQLite 数据,同时在后台触发一次
|
|
21359
|
+
* 服务器拉取。适合常驻进程的 UI 线程场景(SDK 背景轮询持续保鲜)。
|
|
21360
|
+
*/
|
|
21361
|
+
sync?: boolean;
|
|
21326
21362
|
/** 只返回已确认的消息(已纳入 Merkle Tree) */
|
|
21327
21363
|
confirmedOnly?: boolean;
|
|
21328
21364
|
/** 关键词搜索(在明文中搜索) */
|
|
@@ -21518,6 +21554,15 @@ interface ConversationsFilter {
|
|
|
21518
21554
|
* 注意:只影响 previewMessages 中的消息
|
|
21519
21555
|
*/
|
|
21520
21556
|
skipAutoMarkViewed?: boolean;
|
|
21557
|
+
/**
|
|
21558
|
+
* 同步模式(可选,默认 true)
|
|
21559
|
+
* - true/undefined: 阻塞式——先从服务器拉取最新消息再返回(数据最新,
|
|
21560
|
+
* 调用方需等待一次网络往返)
|
|
21561
|
+
* - false: 非阻塞——立即返回本地 SQLite 数据,同时在后台触发一次
|
|
21562
|
+
* 服务器拉取(结果写入本地存储,由 SDK 背景轮询与下次调用呈现)。
|
|
21563
|
+
* 适合常驻进程的 UI 列表场景:每个账号的背景轮询会持续保鲜。
|
|
21564
|
+
*/
|
|
21565
|
+
sync?: boolean;
|
|
21521
21566
|
}
|
|
21522
21567
|
/** 范围类型 */
|
|
21523
21568
|
type RangeType = "time" | "messageId" | "seqIndex";
|
|
@@ -21571,6 +21616,8 @@ interface WtsGenerationParams {
|
|
|
21571
21616
|
interface WtsFileResult {
|
|
21572
21617
|
/** 生成的 WTS 文件路径列表 */
|
|
21573
21618
|
files: string[];
|
|
21619
|
+
/** 生成的 HTML 证据报告路径列表(与 .wts 文件一一对应) */
|
|
21620
|
+
htmlFiles: string[];
|
|
21574
21621
|
/** 总消息数量 */
|
|
21575
21622
|
totalMessageCount: number;
|
|
21576
21623
|
/** 时间范围 */
|
|
@@ -21739,6 +21786,15 @@ declare class Messenger {
|
|
|
21739
21786
|
private failedMessages;
|
|
21740
21787
|
private waitingMessageRetries;
|
|
21741
21788
|
private sendPromise;
|
|
21789
|
+
/**
|
|
21790
|
+
* Serialize send flows (sendMessage / sendZipFile) through one queue.
|
|
21791
|
+
* Both advance the SAME Signal ratchet via session.encryptMessage —
|
|
21792
|
+
* interleaved encryptions would push ratchet states in an order different
|
|
21793
|
+
* from the server's receive order, making the recipient fail decryption.
|
|
21794
|
+
*/
|
|
21795
|
+
private withSendLock;
|
|
21796
|
+
private pullInFlight;
|
|
21797
|
+
private lastPullCompletedAt;
|
|
21742
21798
|
constructor(userAddress: string, config?: Partial<MessengerConfig>);
|
|
21743
21799
|
/**
|
|
21744
21800
|
* 获取用户地址
|
|
@@ -21757,11 +21813,6 @@ declare class Messenger {
|
|
|
21757
21813
|
* @returns 是否为有效的Guard消息
|
|
21758
21814
|
*/
|
|
21759
21815
|
isValidGuardMessage(guardAddress: string | null | undefined, passportAddress: string | null | undefined): boolean;
|
|
21760
|
-
/**
|
|
21761
|
-
* 生成签名参数
|
|
21762
|
-
* 用于需要签名验证的 API 调用
|
|
21763
|
-
*/
|
|
21764
|
-
private generateSignatureParams;
|
|
21765
21816
|
/**
|
|
21766
21817
|
* 生成随机 nonce
|
|
21767
21818
|
*/
|
|
@@ -21775,12 +21826,6 @@ declare class Messenger {
|
|
|
21775
21826
|
* 5. 启动合并的polling timer
|
|
21776
21827
|
*/
|
|
21777
21828
|
initialize(): Promise<void>;
|
|
21778
|
-
/**
|
|
21779
|
-
* 检查并补充预密钥
|
|
21780
|
-
*
|
|
21781
|
-
* 逻辑:如果服务器预密钥未满,自动补充到最大容量
|
|
21782
|
-
*/
|
|
21783
|
-
private checkAndRefillPrekeys;
|
|
21784
21829
|
/**
|
|
21785
21830
|
* 查询服务端预密钥库存(带签名鉴权)
|
|
21786
21831
|
*/
|
|
@@ -21827,24 +21872,29 @@ declare class Messenger {
|
|
|
21827
21872
|
replyTo?: ReplyTo;
|
|
21828
21873
|
}): Promise<SendMessageResult>;
|
|
21829
21874
|
/**
|
|
21830
|
-
*
|
|
21875
|
+
* 拉取消息(合并并发调用)
|
|
21831
21876
|
*
|
|
21832
21877
|
* 流程:
|
|
21833
21878
|
* 1. 从服务器拉取消息
|
|
21834
21879
|
* 2. 解密消息(Signal Protocol)
|
|
21835
21880
|
* 3. 验证 Merkle 证明
|
|
21836
21881
|
* 4. 本地存储并确认消息
|
|
21882
|
+
*
|
|
21883
|
+
* 并发/短间隔重复调用合并为一次网络往返:
|
|
21884
|
+
* - 已有 pull 在途 → 复用同一 Promise
|
|
21885
|
+
* - 刚完成一次 pull(PULL_COALESCE_TTL 内)→ 直接返回(数据已落 SQLite,
|
|
21886
|
+
* 调用方随后读取的都是最新本地存储)
|
|
21837
21887
|
*/
|
|
21838
21888
|
pullMessages(limit?: number): Promise<{
|
|
21839
21889
|
messages: DecryptedMessage[];
|
|
21840
21890
|
prekey_status?: PreKeyStatus;
|
|
21891
|
+
/** True when this call was absorbed by the coalescing window (no
|
|
21892
|
+
* network pull ran because a completed pull already covers it).
|
|
21893
|
+
* Callers must NOT treat it as an "empty server" result — poll uses
|
|
21894
|
+
* this to skip its empty-streak bookkeeping. */
|
|
21895
|
+
skipped?: boolean;
|
|
21841
21896
|
}>;
|
|
21842
|
-
|
|
21843
|
-
* 获取最后发送的消息序号
|
|
21844
|
-
* @param peerAddress 对方地址
|
|
21845
|
-
* @returns 最后发送的消息 leafIndex,如果没有发送过返回 -1
|
|
21846
|
-
*/
|
|
21847
|
-
private getLastSentLeafIndex;
|
|
21897
|
+
private doPullMessages;
|
|
21848
21898
|
/**
|
|
21849
21899
|
* 获取会话历史消息
|
|
21850
21900
|
*/
|
|
@@ -22054,6 +22104,7 @@ declare class MessengerManager {
|
|
|
22054
22104
|
private instanceId;
|
|
22055
22105
|
private accountRefreshTimer;
|
|
22056
22106
|
private pollingLockedAccounts;
|
|
22107
|
+
private lastInitCompletedAt;
|
|
22057
22108
|
constructor(options?: MessengerManagerOptions);
|
|
22058
22109
|
private findAccount;
|
|
22059
22110
|
getConfig(): MessengerConfig;
|
|
@@ -22092,13 +22143,23 @@ declare class MessengerManager {
|
|
|
22092
22143
|
private reinitializeAccount;
|
|
22093
22144
|
send_file(from: string, to: string, filePath: string, options?: {
|
|
22094
22145
|
fileName?: string;
|
|
22095
|
-
contentType?:
|
|
22146
|
+
contentType?: 'wts' | 'wip' | 'zip';
|
|
22096
22147
|
guardAddress?: string;
|
|
22097
22148
|
passportAddress?: string;
|
|
22098
22149
|
force?: boolean;
|
|
22099
22150
|
enable_messenger?: boolean;
|
|
22100
22151
|
network?: ENTRYPOINT;
|
|
22101
22152
|
}): Promise<SendMessageResult>;
|
|
22153
|
+
/**
|
|
22154
|
+
* Full filtered query WITHOUT pagination — the single source shared by
|
|
22155
|
+
* watch(), watch_paginated() and get_conversations(). Applies the server
|
|
22156
|
+
* pull (unless sync:false), the SQLite read, the in-memory filter pass,
|
|
22157
|
+
* sorting and reply wire-prefix stripping. offset/limit is applied by the
|
|
22158
|
+
* CALLERS: aggregation-style callers (get_conversations) must see every
|
|
22159
|
+
* row, and slicing inside the shared query made watch_paginated compute
|
|
22160
|
+
* its total from an already-paged result.
|
|
22161
|
+
*/
|
|
22162
|
+
private queryMessages;
|
|
22102
22163
|
watch(filter?: MessageFilter): Promise<Message[]>;
|
|
22103
22164
|
private startPolling;
|
|
22104
22165
|
private stopPolling;
|
|
@@ -22116,7 +22177,7 @@ declare class MessengerManager {
|
|
|
22116
22177
|
account?: string;
|
|
22117
22178
|
}): Promise<MessageListResult>;
|
|
22118
22179
|
get_conversations(account?: string): Promise<ConversationInfo[]>;
|
|
22119
|
-
generate_wts(outputDir: string, myAccount: string, peerAccount: string, range?: WtsRange, excludePlaintext?: boolean): Promise<WtsFileResult
|
|
22180
|
+
generate_wts(outputDir: string, myAccount: string, peerAccount: string, range?: WtsRange, excludePlaintext?: boolean): Promise<Omit<WtsFileResult, 'htmlFiles'>>;
|
|
22120
22181
|
addToBlacklist(account: string, addresses: string[]): Promise<ListOperationResponse>;
|
|
22121
22182
|
removeFromBlacklist(account: string, addresses: string[]): Promise<ListOperationResponse>;
|
|
22122
22183
|
clearBlacklist(account: string): Promise<ListOperationResponse>;
|
|
@@ -22275,6 +22336,23 @@ declare function send_file(from: string | undefined | null, to: AccountOrMark_Ad
|
|
|
22275
22336
|
* const viewed = await watch_messages({ viewed: true });
|
|
22276
22337
|
*/
|
|
22277
22338
|
declare function watch_messages(filter?: MessageFilter): Promise<Message[]>;
|
|
22339
|
+
/**
|
|
22340
|
+
* 关键字搜索本地消息库 — LIKE 谓词下推到 SQLite(每账号 .db),
|
|
22341
|
+
* 无需逐会话拉取全量线程,搜索耗时与命中数相关而非消息总量。
|
|
22342
|
+
*
|
|
22343
|
+
* 匹配明文内容与参与方地址(from/to),因此对方地址也是合法查询词。
|
|
22344
|
+
*
|
|
22345
|
+
* @param params.query 搜索关键字(必填,空串返回空数组)
|
|
22346
|
+
* @param params.account 限定账号(地址或名称);缺省使用默认账号
|
|
22347
|
+
* @param params.peerAddress 可选:限定会话对方(地址或名称,解析失败按原文过滤)
|
|
22348
|
+
* @param params.limit 返回上限(默认 50,最大 200),最新命中在前
|
|
22349
|
+
*/
|
|
22350
|
+
declare function search_messages(params: {
|
|
22351
|
+
query: string;
|
|
22352
|
+
account?: string | undefined | null;
|
|
22353
|
+
peerAddress?: string | undefined | null;
|
|
22354
|
+
limit?: number;
|
|
22355
|
+
}): Promise<Message[]>;
|
|
22278
22356
|
declare function pull_messages(account?: string | undefined | null, limit?: number): Promise<Message[]>;
|
|
22279
22357
|
/**
|
|
22280
22358
|
* 从 base64 编码的 ZIP 明文中提取所有文件内容
|
|
@@ -22344,7 +22422,7 @@ declare function proof_message(account: string | undefined | null, messageId: st
|
|
|
22344
22422
|
type BlacklistRequest = {
|
|
22345
22423
|
op: "add" | "remove";
|
|
22346
22424
|
account: string | undefined | null;
|
|
22347
|
-
users: ManyAccountOrMark_Address;
|
|
22425
|
+
users: ManyAccountOrMark_Address | string[];
|
|
22348
22426
|
} | {
|
|
22349
22427
|
op: "clear";
|
|
22350
22428
|
account: string | undefined | null;
|
|
@@ -22354,7 +22432,7 @@ type BlacklistRequest = {
|
|
|
22354
22432
|
} | {
|
|
22355
22433
|
op: "exist";
|
|
22356
22434
|
account: string | undefined | null;
|
|
22357
|
-
users: ManyAccountOrMark_Address;
|
|
22435
|
+
users: ManyAccountOrMark_Address | string[];
|
|
22358
22436
|
};
|
|
22359
22437
|
type BlacklistResponse = {
|
|
22360
22438
|
op: "add";
|
|
@@ -22381,7 +22459,7 @@ declare function blacklist(request: BlacklistRequest): Promise<BlacklistResponse
|
|
|
22381
22459
|
type FriendslistRequest = {
|
|
22382
22460
|
op: "add" | "remove";
|
|
22383
22461
|
account: string | undefined | null;
|
|
22384
|
-
users: ManyAccountOrMark_Address;
|
|
22462
|
+
users: ManyAccountOrMark_Address | string[];
|
|
22385
22463
|
} | {
|
|
22386
22464
|
op: "clear";
|
|
22387
22465
|
account: string | undefined | null;
|
|
@@ -22391,7 +22469,7 @@ type FriendslistRequest = {
|
|
|
22391
22469
|
} | {
|
|
22392
22470
|
op: "exist";
|
|
22393
22471
|
account: string | undefined | null;
|
|
22394
|
-
users: ManyAccountOrMark_Address;
|
|
22472
|
+
users: ManyAccountOrMark_Address | string[];
|
|
22395
22473
|
};
|
|
22396
22474
|
type FriendslistResponse = {
|
|
22397
22475
|
op: "add";
|
|
@@ -22558,11 +22636,13 @@ declare const MAINNET_COMMITTEE_WEIGHTS: number[];
|
|
|
22558
22636
|
*/
|
|
22559
22637
|
declare const MAINNET_COMMITTEE_MEMBER_ADDRESSES: string[];
|
|
22560
22638
|
/**
|
|
22561
|
-
* 主网 Bridge 默认配置(2026-09-
|
|
22562
|
-
* - EVM 合约地址:ETH 主网已部署合约(2026-09-
|
|
22639
|
+
* 主网 Bridge 默认配置(2026-09-15 re-genesis 后链上核实)
|
|
22640
|
+
* - EVM 合约地址:ETH 主网已部署合约(2026-09-15 re-genesis 复用,committee ECDSA 密钥沿用)
|
|
22563
22641
|
* - Bridge 节点 URL:v1/v2/v3.validator.mainnet.wowok.net:9211
|
|
22564
22642
|
* - Token 映射:链上 bridge treasury 的 supported_tokens / id_token_type_map
|
|
22565
|
-
* (本文件 tokens[].wowTypeTag 已更新为
|
|
22643
|
+
* (本文件 tokens[].wowTypeTag 已更新为 4cd1e4fa 上重新发布的包地址;
|
|
22644
|
+
* TreasuryCap/UpgradeCap 已通过 bridge::register_foreign_token 进入 waiting room,
|
|
22645
|
+
* 待 epoch 2 委员会 add-tokens-on-wow 激活)
|
|
22566
22646
|
*
|
|
22567
22647
|
* 用户仅需自填付费 ETH RPC(rpcUrl)以提升稳定性。
|
|
22568
22648
|
*/
|
|
@@ -24559,6 +24639,12 @@ declare function toSerializedSignature({
|
|
|
24559
24639
|
* Decodes a serialized signature into its constituent components: the signature scheme, the actual signature, and the public key
|
|
24560
24640
|
*/
|
|
24561
24641
|
declare function parseSerializedSignature(serializedSignature: string): {
|
|
24642
|
+
serializedSignature: string;
|
|
24643
|
+
signatureScheme: "ED25519" | "Secp256k1" | "Secp256r1" | "Falcon512";
|
|
24644
|
+
signature: Uint8Array<ArrayBuffer>;
|
|
24645
|
+
publicKey: Uint8Array<ArrayBuffer>;
|
|
24646
|
+
bytes: Uint8Array<ArrayBuffer>;
|
|
24647
|
+
} | {
|
|
24562
24648
|
signatureScheme: "Passkey";
|
|
24563
24649
|
serializedSignature: string;
|
|
24564
24650
|
signature: Uint8Array<ArrayBufferLike>;
|
|
@@ -24566,12 +24652,6 @@ declare function parseSerializedSignature(serializedSignature: string): {
|
|
|
24566
24652
|
clientDataJson: string;
|
|
24567
24653
|
userSignature: Uint8Array<ArrayBuffer>;
|
|
24568
24654
|
publicKey: Uint8Array<ArrayBuffer>;
|
|
24569
|
-
} | {
|
|
24570
|
-
serializedSignature: string;
|
|
24571
|
-
signatureScheme: "ED25519" | "Secp256k1" | "Secp256r1" | "Falcon512";
|
|
24572
|
-
signature: Uint8Array<ArrayBuffer>;
|
|
24573
|
-
publicKey: Uint8Array<ArrayBuffer>;
|
|
24574
|
-
bytes: Uint8Array<ArrayBuffer>;
|
|
24575
24655
|
} | {
|
|
24576
24656
|
serializedSignature: string;
|
|
24577
24657
|
signatureScheme: "MultiSig";
|
|
@@ -24974,7 +25054,7 @@ declare class WowJsonRpcClient extends BaseClient {
|
|
|
24974
25054
|
pollInterval,
|
|
24975
25055
|
...input
|
|
24976
25056
|
}: {
|
|
24977
|
-
/** An optional abort signal that can be used to cancel */signal?: AbortSignal; /** The amount of time to wait for a transaction block. Defaults to
|
|
25057
|
+
/** An optional abort signal that can be used to cancel */signal?: AbortSignal; /** The amount of time to wait for a transaction block. Defaults to 90 seconds. */
|
|
24978
25058
|
timeout?: number; /** The amount of time to wait between checks for the transaction block. Defaults to 2 seconds. */
|
|
24979
25059
|
pollInterval?: number;
|
|
24980
25060
|
} & Parameters<WowJsonRpcClient['getTransactionBlock']>[0]): Promise<WowTransactionBlockResponse>;
|
|
@@ -25323,4 +25403,4 @@ declare class WowClient extends WowJsonRpcClient {
|
|
|
25323
25403
|
constructor(options: WowClientOptions);
|
|
25324
25404
|
}
|
|
25325
25405
|
//#endregion
|
|
25326
|
-
export { TransactionObjectInput as $, TCoinsParams as $C, WowReservation as $E, TransactionData$1 as $S, PaginatedDynamicFieldInfos as $T, setLogLevel as $_, ProgressEvent as $a, toTxAddressVec as $b, reward_add$1 as $c, GuardSubmission as $d, QueryTableItem_byU64 as $f, MAX_PROPOSITION_COUNT as $g, destroy as $h, TxEvent as $i, NodeParam as $l, parseGuardFile as $m, verify_wts as $n, external_deposit as $o, objectTypeToNumber as $p, RangeType as $r, receive$1 as $s, EvmTxReceipt as $t, feedback$1 as $u, MAX_DEPENDED_COUNT as $v, CoinBalance as $w, MAX_MESSENGER_ACCOUNTS as $x, TxAddress as $y, isWowJsonRpcClient as A, GetLatestCheckpointSequenceNumberParams as AC, WowGasData as AE, RpcTransport$1 as AS, ECMHLiveObjectSetDigest as AT, isValidValueContainer as A_, BridgeTokenSymbol as Aa, isValidHttpUrl as Ab, arbitrations_remove as Ac, AllocationSharing as Ad, ObjectResource as Af, MAX_DISPUTE_COUNT as Ag, descriptionSet as Ah, WtsFileResult as Ai, namedOperator_add as Al, query_tableItem as Am, BlacklistResponse as An, checkType as Ao, TreasuryRecord as Ap, GuardListItem as Ar, policy_remove as As, TOKENS_DEPOSITED_V2_TOPIC as At, ServiceInfo$2 as Au, ContactObject as Av, WGetCheckpointsParams as Aw, QueryAccountResult as Ax, PaymentAddress as Ay, parsePartialSignatures as B, GetReferenceGasPriceParams as BC, WowMoveNormalizedStruct as BE, GraphQLResponseErrors as BS, MoveValue as BT, QueryReceived as B_, DemandChangedEvent as Ba, isValidValueTypeInput as Bb, discount_destroy as Bc, ArbVoted as Bd, PersonalQuery as Bf, MAX_IM_COUNT as Bg, ownerReceive as Bh, WtsToHtmlOptions as Bi, CallPayment_Data as Bl, GuardTableItemBase as Bm, extract_zip_messages as Bn, CallPersonal as Bo, getMoveNameFromObjectType as Bp, MessageListResult as Br, MAX_RECORD_COUNT as Bs, DepositEthOptions as Bt, reward_add$2 as Bu, ENTITY_REGISTRAR_ADDRESS as Bv, WGetTotalTransactionBlocksParams as Bw, query_local_info_list as Bx, RecipientType as By, JsonRpcError as C, GetCheckpointParams as CC, WowCallArg as CE, Secp256k1KeypairData as CS, DevInspectArgs as CT, ROLE_ENTITY as C_, BridgeErrorCode as Ca, arbitrationFn as Cb, ServiceBuyItem as Cc, newAllocation as Cd, ObjectPassport as Cf, MAX_ARBITRATION_COUNT$1 as Cg, PermissionInfoType as Ch, UpdateSettingsRequest as Ci, adminUnhold as Cl, query_objects as Cm, MAINNET_COMMITTEE_WEIGHTS as Cn, GuardInstructFilterOptions as Co, TableItem_PermissionPerm as Cp, EventStreamParams as Cr, data_id_from as Cs, claimOnEth as Ct, um_set$4 as Cu, BalanceType as Cv, UnsafeTransferObjectParams as Cw, LocalInfoOperation as Cx, ObjectType as Cy, PaginationArguments as D, GetCommitteeInfoParams as DC, WowEvent as DE, Ed25519PublicKey as DS, DynamicFieldInfo as DT, WOWOK_WTS_PROOF_TYPE as D_, BridgeSummary as Da, isThisPackage as Db, ServiceSaleObject as Dc, AddressActivity as Dd, ObjectProgress as Df, MAX_DISCOUNT_COUNT_ONCE$1 as Dg, adminRemove as Dh, WTS_MAX_MESSAGE_COUNT as Di, create$4 as Dl, query_shared_objects as Dm, findTokenBySymbol as Dn, filterGuardInstruct as Do, TableItem_TreasuryHistory as Dp, GetBundleParams as Dr, policy as Ds, ERC20_TRANSFER_TOPIC as Dt, FeedbackInfo as Du, CoinWrapPrefix as Dv, WExecuteTransactionBlockParams as Dw, LocalNameByAddress as Dx, OrderObject as Dy, OrderArguments as E, GetCoinsParams as EC, WowEndOfEpochTransactionKind as EE, Ed25519KeypairData as ES, DryRunTransactionBlockResponse as ET, WITHDRAW_DURATION_TIME as E_, BridgeResult as Ea, isGasTokenType as Eb, ServiceSale as Ec, sharing as Ed, ObjectPersonal as Ef, MAX_DATA_SIZE as Eg, adminAdd as Eh, WTS_FILE_BYTES_LIMIT as Ei, context_repository_remove as El, query_services as Em, findToken as En, QueryInvariant as Eo, TableItem_RewardRecord as Ep, FetchMessagesRequest as Er, newRepository as Es, AbiMessage as Et, DemandPresent as Eu, CoinParam as Ev, WDryRunTransactionBlockParams as Ew, LocalMarkOperationResult as Ex, OrderAddress as Ey, SerializeSignatureInput as F, GetNormalizedMoveModulesByPackageParams as FC, WowMoveModuleId as FE, GrpcCoreClient as FS, GasCostSummary$2 as FT, permission_set as F_, isEvmChain as Fa, isValidU256 as Fb, compensation_fund_withdraw as Fc, AmountFromWithdrawGuard as Fd, ObjectTreasury as Ff, MAX_FORWARD_ORDER_COUNT as Fg, entityReplace as Fh, WtsRange as Fi, progressFn as Fl, GuardNode as Fm, GuardlistResponse as Fn, CallContact_Data as Fo, WReceivedObject as Fp, Message as Fr, um_set$1 as Fs, encodeBridgeETHV2 as Ft, guard_clear as Fu, DiscountObject as Fv, WGetNormalizedMoveModuleParams as Fw, local_mark_operation as Fx, ProgressAddress as Fy, ParsedKeypair as G, MultiGetObjectsParams as GC, WowObjectData as GE, TransactionDataBuilder as GS, MultiSigPublicKeyLegacy as GT, ReceivedObjects as G_, EventCursor as Ga, object_module_and_name_from_type as Gb, order_allocators_set as Gc, DemandsQuery as Gd, PurchasedItem as Gf, MAX_NODE_COUNT_ONCHAIN as Gg, permissionFn as Gh, ObjectHistoryQuery as Gi, paymentFn as Gl, RecordQueryConditionsBCS as Gm, mark_conversation_as_viewed as Gn, transformPersonalInput as Go, getObjectTypeDefinitionFromNumber as Gp, MessengerError as Gr, claim as Gs, BridgeNodeClient as Gt, CallArbitration_Data as Gu, GetObjectDescription as Gv, WTryMultiGetPastObjectsParams as Gw, TokenInfo as Gx, ResourceObject as Gy, Keypair as H, GetStakesParams as HC, WowMoveStructTypeParameter as HE, WowGraphQLClientOptions as HS, MultiSig as HT, ReceivedBalanceObject as H_, DemandPresentEvent as Ha, isValueTypeNumber as Hb, location_set as Hc, ArbsQuery as Hd, PolicyWriteGuard as Hf, MAX_NAMED_OPERATOR_ADDRESS_COUNT$1 as Hg, permAdd as Hh, ZipContentType as Hi, Revenue as Hl, ProgressForwardFindConditionsBCS as Hm, generate_wts as Hn, CallPersonal_DataInput as Ho, getNumberFromObjectType as Hp, MessageTimeField as Hr, RewardGuardInput as Hs, depositErc20 as Ht, reward_remove$2 as Hu, GasCoinType as Hv, WMultiGetObjectsParams as Hw, query_local_mark_list as Hx, RepositoryAddress as Hy, parseSerializedSignature as I, GetNormalizedMoveStructParams as IC, WowMoveNormalizedEnum as IE, GrpcCoreClientOptions as IS, GetPastObjectRequest as IT, resolveSupportedValue as I_, isWowChain as Ia, isValidU32 as Ib, create$3 as Ic, AmountType as Id, ObjectTypeDefinition as If, MAX_GUARD_COUNT_DEMAND as Ig, entitySet as Ih, WtsServerPublicKey as Ii, task_set as Il, GuardParseError as Im, SettingsRequest as In, CallProof as Io, WitnessSourceType as Ip, MessageContentType as Ir, CallReward as Is, encodeIsTransferProcessed as It, guard_remove as Iu, ENTITY_CONTACT_ADDRESS as Iv, WGetNormalizedMoveModulesByPackageParams as Iw, query_account as Ix, ProgressObject as Iy, W_PRIVATE_KEY_PREFIX as J, QueryTransactionBlocksParams as JC, WowObjectRef as JE, Argument$1 as JS, ObjectResponseError as JT, LogLevel as J_, FeedbackEvent as Ja, parseWitnessType as Jb, price_reduce as Jc, ENTITY_ORDER_ROLE_OWNER as Jd, QueryOrdersByUser as Jf, MAX_PERM_FOR_ENTITY as Jg, remarkRemove as Jh, TransactionDetail as Ji, resolvePaymentInfoContext as Jl, gen_passport as Jm, pull_messages as Jn, MAX_EXTERNAL_DEPOSIT_GUARD_COUNT as Jo, getObjectTypesFromNumbers as Jp, PQPreKeyPublic as Jr, description_set$2 as Js, BRIDGE_STEP_DESCRIPTIONS as Jt, confirm as Ju, GuardObject as Jv, WowObjectChangeMutated as Jw, AccountData as Jx, ServiceAddress as Jy, SignatureWithBytes as K, MultiGetTransactionBlocksParams as KC, WowObjectDataFilter as KE, SerializedTransactionDataV2 as KS, ObjectOwner$1 as KT, ReceivedObjectsOrRecently as K_, EventQuery as Ka, object_name_from_type as Kb, pause as Kc, DiscountType as Kd, QueryAddressProfile as Kf, MAX_NODE_PAIR_COUNT as Kg, query_permissions as Kh, ObjectLastUpdated as Ki, paymentInfo as Kl, create$10 as Km, mark_messages_as_viewed as Kn, CallTreasury as Ko, getObjectTypeFromMoveName as Kp, MessengerErrorCode as Kr, coin_add as Ks, BridgeNodeClientOptions as Kt, arb_withdraw as Ku, GetObjectExisted as Kv, WowObjectChangeCreated as Kw, TokenTypeInfo as Kx, RewardAddress as Ky, toSerializedSignature as L, GetObjectParams as LC, WowMoveNormalizedField as LE, GraphQLDocument as LS, InputObjectKind as LT, uint2address as L_, AllocationEvent as La, isValidU64 as Lb, customer_required_set as Lc, ArbIndemnity as Ld, ObjectsAnswer as Lf, MAX_GUARD_COUNT_PASSPORT as Lg, entitySwap as Lh, WtsSession as Li, CallPayment as Ll, GuardParseResult as Lm, SettingsResponse as Ln, CallProof_Data as Lo, WitnessTargetType as Lp, MessageDirection as Lr, CallReward_Data as Ls, encodeTokenTransferPayloadV2 as Lt, location_set$1 as Lu, ENTITY_LINKER_ADDRESS as Lv, WGetNormalizedMoveStructParams as Lw, query_account_list as Lx, ProofAddress as Ly, isValidHardenedPath as M, GetMoveFunctionArgTypesParams as MC, WowMoveAbilitySet as ME, WowGrpcClient as MS, EventId as MT, parseObjectType as M_, SignedAction as Ma, isValidName as Mb, buy_guard_set as Mc, Allocators as Md, ObjectService as Mf, MAX_EXTERNAL_DEPOSIT_GUARD_COUNT$1 as Mg, entityCopy as Mh, WtsMessage as Mi, namedOperator_set as Ml, raw2type as Mm, FriendslistResponse as Mn, resolveCallEnv as Mo, UserOrderView as Mp, MAX_QUERY_LIMIT as Mr, reward_add as Ms, encodeBridgeERC20 as Mt, description_set$5 as Mu, DemandAddress as Mv, WGetLatestCheckpointSequenceNumberParams as Mw, fetch_token_info_operation as Mx, PaymentObject as My, mnemonicToSeed as N, GetNormalizedMoveFunctionParams as NC, WowMoveAbort as NE, WowGrpcClientOptions as NS, ExecuteTransactionRequestType as NT, parseRecipient as N_, TransferRecord as Na, isValidU128 as Nb, compensation_fund_add as Nc, Amount as Nd, ObjectTokenTypeInfo as Nf, MAX_EXTERNAL_WITHDRAW_GUARD_COUNT$1 as Ng, entityDel as Nh, WtsMeta as Ni, newProgress as Nl, CallGuard as Nm, GuardParam as Nn, restoreNodeFromOutput as No, VoteWeight as Np, MerkleMetadata as Nr, reward_clear as Ns, encodeBridgeERC20V2 as Nt, feedback as Nu, DemandObject as Nv, WGetMoveFunctionArgTypesParams as Nw, local_history_operation as Nx, PermissionAddress as Ny, WowJsonRpcClient as O, GetDynamicFieldObjectParams as OC, WowEventFilter as OE, GrpcWebFetchTransport$1 as OS, DynamicFieldName$1 as OT, bcsBytesToValue as O_, BridgeToken as Oa, isValidArray as Ob, arbitration_clear as Oc, AddressProfile as Od, ObjectProof as Of, MAX_DISCOUNT_RECEIVER_ONCE$1 as Og, adminSet as Oh, WTS_SCHEMA_URL as Oi, getMachineNodeForward as Ol, query_shared_objects_json as Om, verifyCommitteeConsistency as On, getGuardQueryInfo as Oo, TableQuery as Op, GetSettingsRequest as Or, policy_add as Os, TOKENS_CLAIMED_TOPIC as Ot, MAX_FEEDBACK_COUNT as Ou, CoinWrapperObject as Ov, WGetChainIdentifierParams as Ow, ManyAccountOrMark_Address as Ox, PackageAddress as Oy, mnemonicToSeedHex as P, GetNormalizedMoveModuleParams as PC, WowMoveFunctionArgType as PE, isWowGrpcClient as PS, ExecutionStatus$2 as PT, parseTypeParameter as P_, TransferStatus as Pa, isValidU16 as Pb, compensation_fund_receive as Pc, AmountFromDepositGuard as Pd, ObjectTokenTypeQuery as Pf, MAX_FORWARD_COUNT as Pg, entityRemove as Ph, WtsPayload as Pi, owner_receive as Pl, CallGuard_Data as Pm, GuardlistRequest as Pn, CallContact as Po, VotingGuard as Pp, MerkleProof as Pr, reward_remove as Ps, encodeBridgeETH as Pt, guard_add$1 as Pu, DescriptionObject as Pv, WGetNormalizedMoveFunctionParams as Pw, local_info_operation as Px, PermissionObject as Py, TransactionObjectArgument as Q, TCoinMetadataParams as QC, WowProgrammableMoveCall as QE, ObjectRef as QS, PaginatedCoins as QT, logger as Q_, PaymentRevenue as Qa, toTxAddress as Qb, repository_remove as Qc, GuardInPassport as Qd, QueryTableItem_byString as Qf, MAX_PROOF_SIZE as Qg, SubmissionCall as Qh, TxBalanceChange as Qi, NodePairParam as Ql, newGuard as Qm, sign_wts as Qn, description_set as Qo, objectTypeFromAddress as Qp, PullMessagesResponse as Qr, newReward as Qs, BridgeTransferStep as Qt, fee_set as Qu, IsValidEndpoint as Qv, Order as Qw, MAX_ACCOUNTS as Qx, TreasuryObject as Qy, MultiSigPublicKey as R, GetOwnedObjectsParams as RC, WowMoveNormalizedFunction as RE, GraphQLQueryOptions as RS, MoveCallParams as RT, validObjects as R_, ArbEvent as Ra, isValidU8 as Rb, description_set$3 as Rc, ArbProposition as Rd, ObjectsQuery as Rf, MAX_GUARD_COUNT_REWARD as Rg, isBizPermIndex as Rh, WtsSignature as Ri, CallPaymentCreate_Data as Rl, GuardSubmissionToFill as Rm, blacklist as Rn, gen_proof as Ro, data2object as Rp, MessageFilter as Rr, CallReward_DataInput as Rs, encodeTransferBridgedTokensWithSignatures as Rt, newDemand as Ru, ENTITY_ORDER_ADDRESS as Rv, WGetObjectParams as Rw, query_local_info as Rx, ReceivedObject as Ry, getJsonRpcFullnodeUrl as S, GetBalanceParams as SC, WowArgument as SE, Secp256k1Keypair as SS, DelegatedStake as ST, ROLE_ADMIN as S_, BridgeError as Sa, WitnessTypeInput as Sb, NAMED_OPERATOR_ORDER_PAYER as Sc, create$9 as Sd, ObjectOrder as Sf, MAX_ALLOCATOR_COUNT$1 as Sg, PermissionInfo as Sh, TimeRange as Si, accomplish as Sl, query_object_token_type as Sm, MAINNET_COMMITTEE_PUBKEYS as Sn, GuardInstruct as So, TableItem_ObjectLinkerTx as Sp, Empty as Sr, data$1 as Ss, buildClaimMessage as St, publish$1 as Su, ArbitrationObject as Sv, UnsafeSplitCoinParams as Sw, LocalHistoryOperationResult as Sx, ObjectResult as Sy, WowHTTPTransportError as T, GetCoinMetadataParams as TC, WowCoinMetadata as TE, Ed25519Keypair as TS, DisplayFieldsResponse as TT, USER_DEFINED_PERM_INDEX_START as T_, BridgeMessage as Ta, demandFn as Tb, ServiceRequiredObject as Tc, resolveAllocators as Td, ObjectPermission as Tf, MAX_CONTEXT_REPOSITORY_COUNT as Tg, Permission_Index_Entity as Th, UploadPreKeysResponse as Ti, context_repository_clear as Tl, query_personal as Tm, findEvmChainConfigByBridgeChainId as Tn, GuardQuery as To, TableItem_RepositoryData as Tp, FailedPrekeyInfo as Tr, description_set$1 as Ts, isEvmNonceAlreadyProcessed as Tt, CallDemand_Data as Tu, CoinObject as Tv, WDevInspectTransactionBlockParams as Tw, LocalMarkOperation as Tx, OperatorType as Ty, LEGACY_PRIVATE_KEY_SIZE as U, GetTotalSupplyParams as UC, WowMoveVisibility as UE, WowGraphQLRequestError as US, MultiSigLegacy as UT, ReceivedBalanceOrRecently as U_, EventAnswer as Ua, isWitnessType as Ub, machine_set as Uc, CoreLinkView as Ud, ProgressSession as Uf, MAX_NAMED_OPERATOR_COUNT$1 as Ug, permRemove as Uh, ZipMetadata as Ui, create$5 as Ul, ProgressHistoryFindConditionsBCS as Um, getMessengerManager as Un, CallPersonal_DataMarkInput as Uo, getNumbersFromObjectTypes as Up, MessageType$1 as Ur, RewardGuardObject as Us, depositEth as Ut, um_set$5 as Uu, GasTokenType as Uv, WMultiGetTransactionBlocksParams as Uw, query_local_token_list as Ux, RepositoryObject as Uy, FALCON512_PRIVATE_KEY_SIZE as V, GetStakesByIdsParams as VC, WowMoveNormalizedType as VE, WowGraphQLClient as VS, MoveVariant as VT, ReceivedBalance as V_, DemandFeedbackEvent as Va, isValidWitnessTypeInput as Vb, discount_send as Vc, ArbsAnswer as Vd, PolicyRule as Vf, MAX_ITEM_COUNT as Vg, ownerReceiveObject as Vh, WtsVerificationResult as Vi, PaymentInfoResolved as Vl, GuardValidationIssue as Vm, friendslist as Vn, CallPersonal_Data as Vo, getNumberFromMoveName as Vp, MessageStatus as Vr, RecipientRecord as Vs, DepositParams as Vt, reward_clear$2 as Vu, EntityAddress as Vv, WGetTransactionBlockParams as Vw, query_local_mark as Vx, RegistrarAddress as Vy, PRIVATE_KEY_SIZE as W, GetTransactionBlockParams as WC, WowObjectChange as WE, isWowGraphQLClient as WS, MultiSigPublicKey$1 as WT, ReceivedNormal as W_, EventBase as Wa, machineFn as Wb, newService as Wc, DemandsAnswer as Wd, ProgressSessionHolder as Wf, MAX_NODE_COUNT as Wg, permSet as Wh, AddressActivityQuery as Wi, newPayment as Wl, ProgressSessionFindConditionsBCS as Wm, guardlist as Wn, ManyAccountOrMark_AddressInput as Wo, getObjectTypeDefinition as Wp, MessengerConfig as Wr, RewardRecord as Ws, depositFromEth as Wt, CallArbitration as Wu, GetObject as Wv, WTryGetPastObjectParams as Ww, TokenDataFilter as Wx, ResourceAddress as Wy, encodeWowPrivateKey as X, TAllCoinsParams as XC, WowObjectResponseQuery as XE, Command$1 as XS, OwnedObjectRef as XT, createSensitiveLogger as X_, NewOrderEvent as Xa, rewardFn as Xb, repository_add as Xc, EntityOrderItemView as Xd, QueryTableItem_byAddress as Xf, MAX_POLICY_DESCRIPTION_LEN as Xg, transferPermission as Xh, TransactionHistoryItem as Xi, CallMachine_Data as Xl, guard2file as Xm, send_message as Xn, create as Xo, isValidIdFromInput as Xp, PreKeyPublic as Xr, guard_expiration_time_add as Xs, BridgeTransferState as Xt, description_set$6 as Xu, IsValidArgType as Xv, WowObjectChangeTransferred as Xw, DEFAULT_ACCOUNT_NAME as Xx, SupportedValue as Xy, decodeWowPrivateKey as Y, TAllBalancesParams as YC, WowObjectResponse as YE, CallArg as YS, ObjectValueKind as YT, Logger as Y_, NewEntityEvent as Ya, repositoryFn as Yb, publish as Yc, EntityContactItemView as Yd, QueryTableItem_Entity as Yf, MAX_POLICY_COUNT as Yg, remarkSet as Yh, TransactionHistoryAnswer as Yi, CallMachine as Yl, generateNodeComments as Ym, send_file as Yn, MAX_EXTERNAL_WITHDRAW_GUARD_COUNT as Yo, idFromToString as Yp, PlaintextMessage as Yr, guard_add as Ys, BridgeTransferDirection as Yt, create$8 as Yu, IsBcsStringLength as Yv, WowObjectChangePublished as Yw, AccountFilter as Yx, ServiceObject as Yy, Transaction$1 as Z, TBalanceParams as ZC, WowParsedData as ZE, GasData as ZS, PaginatedCheckpoints as ZT, getLogLevel as Z_, NewPaymentEvent as Za, serviceFn as Zb, repository_clear as Zc, EntityPermissionItemView as Zd, QueryTableItem_byNameAddress as Zf, MAX_POLICY_GUARD_COUNT as Zg, um_set$7 as Zh, TransactionQuery as Zi, ForwardParam as Zl, guardFn as Zm, settings as Zn, deposit as Zo, numberToObjectType as Zp, PreKeyStatus as Zr, guard_remove_expired as Zs, BridgeTransferStatus as Zt, dispute as Zu, IsValidBalance as Zv, WowObjectChangeWrapped as Zw, FaucetCoinInfo as Zx, TreasuryAddress as Zy, SerialTransactionExecutor as _, EryEventsParams as _C, ClientCacheOptions as _D, TransferObjectParams as _E, DEFAULT_SECP256R1_DERIVATION_PATH as _S, CoinStruct as _T, MaxNodeCountSdkLiteral as __, queryProtocolInfo as _a, ValueTypeInput as _b, MAX_DISCOUNT_TOTAL_COUNT as _c, CallAllocation_Data as _d, ObjectEntity as _f, DISCOUNT_TYPE_MINUS$1 as _g, BuiltinPermissionIndex as _h, SseEventType as _i, MachineNodeForwardResult as _l, queryTableItem_TreasuryHistory as _m, queryWowClaimStatus as _n, AffiliationTableKind as _o, TableItem_EntityOrder as _p, ConversationsFilter as _r, RepositoryPolicyGuardObject as _s, DepositWowResult as _t, node_rename as _u, AllocationAddress as _v, UnsafePayWowParams as _w, FetchTokenInfoOperation as _x, NamedObjectWithPermission as _y, formatMoveAbortMessage as a, SIGNATURE_SCHEME_TO_SIZE as aC, WowTransactionBlockResponse as aD, ProtocolConfig$2 as aE, MultiSigSigner as aS, ProgrammableTransaction$1 as aT, MAX_REQUIRED_INFO_SIZE$1 as a_, query_object_last_updated as aa, TypeNamedObject as ab, CallService as ac, reset as ad, MachineForwardGuard as af, passportFn as ag, validateGuardData as ah, SendMessageResponse as ai, sales_remove as al, queryTableItem_EntityLinker as am, queryEthTxConfirmations as an, parseWowokEventItem as ao, ServicesAnswer as ap, AddGuardListRequest as ar, external_withdraw_guard_clear as as, Inputs as at, description_set$4 as au, WValidate as av, TReferenceGasPriceParams as aw, toTxU16Vec as ax, MAX_LOGIC_OPERANDS as ay, getPureBcsSchema as b, GetAllBalancesParams as bC, ValidatorApy as bE, Secp256k1PublicKey as bS, CompressedSignature$1 as bT, ORDER_ROLE_OWNER as b_, BridgeChainId as ba, WithPermissionObject as bb, MAX_REWARD_COUNT as bc, allocationFn as bd, ObjectGuard as bf, MAX_ADMIN_COUNT as bg, PermissionFilter as bh, SseNewMessageEvent as bi, ProgressNext as bl, query_arbs as bm, MAINNET_BRIDGE_CONFIG as bn, GUARDINSTRUCT as bo, TableItem_MachineNode as bp, DEFAULT_QUERY_LIMIT as br, SignerOrClockBase as bs, ClaimEthParams as bt, prev_nodes_remove as bu, ArbObject as bv, UnsafeRequestWithdrawStakeParams as bw, GetManyAccountOrMark_Address as bx, OBJECT_LINKER_TX_ADDRESS as by, BaseClient as c, PublicKey as cC, WowValidatorSummary as cD, RPCTransactionRequestParams as cE, Falcon512KeypairData as cS, WowMovePackage as cT, MAX_SERVER_PUBKEY_SIZE as c_, COMMON_MISTAKES as ca, TypedPermissionObject as cb, DEFAULT_LOCK_DURATION as cc, usage_guard_set as cd, NamedOperator$1 as cf, verify_guard as cg, CallResponseError as ch, ServerMessage as ci, stock_add as cl, queryTableItem_EntityRegistrar as cm, queryWowToEvmTransferStatus as cn, queryObjectWithType as co, SharedObjectsAnswerItem as cp, BaseRange as cr, receive as cs, TransactionInput as ct, forwards_remove as cu, W_FAILURE as cv, TTotalSupplyParams as cw, toTxU64 as cx, MAX_NAME_LENGTH as cy, CoreClientOptions as d, IntentScope as dC, HttpHeaders as dD, StakeObject as dE, BrowserPasskeyProvider as dS, AccumulatorValue as dT, MAX_SUBMISSION_SIZE_PASSPORT as d_, FUNDING_GUIDANCE as da, U256_MAX as db, DISCOUNT_TYPE_RATES as dc, voting_guard_add as dd, ObjectArb as df, BRIDGE_MESSAGE_VERSION as dg, ObjectsOp as dh, SessionState as di, CallProgress as dl, queryTableItem_ObjectLinkerTx as dm, waitForWowTx as dn, ServiceContextResult as do, TableAnswerItem as dp, ChainProofRequest as dr, CallRepository as ds, SchemaCompatibilityResult as dt, newMachine as du, W_VALIDATE_PARAM as dv, TryMultiGetPastObjectsParams as dw, valueTypeToString as dx, MAX_STRING_OPERANDS as dy, ClientWithExtensions as eC, WowSystemStateSummary as eD, PaginatedEvents as eE, publicKeyFromRawBytes as eS, CheckpointPage as eT, MAX_RECIPIENT_COUNT as e_, TxObjectChange as ea, TxAddressVec as eb, transformRewardInput as ec, fees_alloc as ed, IdFrom as ef, freeze as eg, parseGuardFromMarkdown as eh, RemoteBundle as ei, reward_clear$1 as el, parseIdFrom as em, makeBridgeTransferState as en, RewardClaimEvent as eo, RewardGuard as ep, watch_conversations as er, external_deposit_guard_add as es, TransactionResult$1 as et, THRESHOLD_DEFAULT as eu, MoveErrors as ev, TCommitteeInfoParams as ew, toTxObject as ex, MAX_DESCRIPTION_LENGTH as ey, isArgument as f, messageWithIntent as fC, JsonRpcHTTPTransport as fD, TransactionBlockBytes as fE, BrowserPasswordProviderOptions as fS, Balance$2 as fT, MAX_TAGS_COUNT as f_, FundingGuidance as fa, U32_MAX as fb, Discount as fc, voting_guard_clear as fd, ObjectArbitration as ff, BRIDGE_TRANSFER_STATUS_APPROVED as fg, ResponseData as fh, SignedRequest as fi, CallProgress_Data as fl, queryTableItem_PermissionPerm as fm, ClaimWowParams as fn, query_serviceContext as fo, TableItemQuery as fp, ChainProofResponse as fr, CallRepository_Data as fs, checkSchemaCompatibility as ft, node as fu, enrichMoveError as fv, UnsafeBatchTransactionParams as fw, witnessTypeToString as fx, MachineAddress as fy, ParallelTransactionExecutorOptions as g, DryRunTransactionBlockParams as gC, ClientCache as gD, TransactionFilter$1 as gE, Secp256r1PublicKey as gS, CheckpointId as gT, MAX_WIP_LENGTH as g_, queryPermissions as ga, ValueType as gb, MAX_DISCOUNT_RECEIVER_ONCE as gc, CallAllocation as gd, ObjectDiscount as gf, DEFAULT_LOCK_DURATION$1 as gg, resolveCoinParam as gh, SseEvent as gi, MAX_NAMED_OPERATOR_COUNT as gl, queryTableItem_ServiceOrders as gm, claimOnWow as gn, AffiliationEntry as go, TableItem_EntityLinker as gp, ConversationInfo as gr, RepDataItem as gs, DepositWowParams as gt, node_remove as gu, AddressResult as gv, UnsafePayParams as gw, FaucetNetwork as gx, NamedObjectWithDescription as gy, ParallelTransactionExecutor as h, DevInspectTransactionBlockParams as hC, JsonRpcTransportRequestOptions as hD, TransactionEffects$2 as hE, findCommonPublicKey as hS, CheckpointCommitment$1 as hT, MAX_WIP_HASH_LENGTH as h_, ProtocolInfoResult as ha, ValueContainer as hb, MAX_DISCOUNT_COUNT_ONCE as hc, AllocatorsType as hd, ObjectDemand as hf, BRIDGE_TRANSFER_STATUS_PENDING as hg, isCallResultSubmission as hh, SseCustomEvent as hi, MAX_NAMED_OPERATOR_ADDRESS_COUNT as hl, queryTableItem_RewardRecord as hm, WowClaimStatus as hn, AffiliationAnswer as ho, TableItem_EntityContact as hp, ContactListsSyncResult as hr, RemoveParam as hs, BridgeTransferRecord as ht, node_exchange_name as hu, isWowokSystemAddress as hv, UnsafePayAllWowParams as hw, AccountOrMark_Address as hx, NamedObject as hy, extractStatusFromEffectsBcs as i, SIGNATURE_SCHEME_TO_FLAG as iC, WowTransactionBlockKind as iD, PasskeyAuthenticator$1 as iE, verifyTransactionSignature as iS, EpochPage as iT, MAX_REPOSITORY_COUNT$1 as i_, query_object_history_json as ia, TxString as ib, Buy as ic, pause$2 as id, MachineForward as if, newPassport as ig, reliesRemove as ih, SendMessageRequest as ii, sales_clear as il, queryTableItem_EntityContact as im, queryEthBalance as in, VoteEvent as io, ServiceSummary as ip, Messenger as ir, external_withdraw_guard_add as is, TransactionPlugin as it, create$6 as iu, WResult as iv, TOwnedObjectsParams as iw, toTxU16 as ix, MAX_INPUT_SIZE as iy, isValidBIP32Path as j, GetLatestWowSystemStateParams as jC, WowMoveAbility as jE, types_d_exports as jS, EndOfEpochData$1 as jT, owner_receive$1 as j_, BridgeVersion as ja, isValidLongName as jb, buy as jc, Allocator as jd, ObjectReward as jf, MAX_ENTITY_COUNT as jg, entityAdd as jh, WtsGenerationParams as ji, namedOperator_remove as jl, query_table_json as jm, FriendslistRequest as jn, getCallEnvAccount as jo, TxLinkView as jp, ListOperationResponse as jr, policy_set as js, encodeApprove as jt, create$7 as ju, ContextType as jv, WGetEventsParams as jw, account_operation as jx, PaymentInfoObject as jy, WowJsonRpcClientOptions as k, GetDynamicFieldsParams as kC, WowExecutionResult as kE, GrpcWebOptions$1 as kS, DynamicFieldType as kT, extractCoinType as k_, BridgeTokenId as ka, isValidDescription as kb, arbitrations_add as kc, AllocationMode as kd, ObjectRepository as kf, MAX_DISCOUNT_TOTAL_COUNT$1 as kg, create$11 as kh, WtsFile as ki, hold as kl, query_table as km, BlacklistRequest as kn, RestoreNodeResult as ko, TreasuryOp as kp, GetSettingsResponse as kr, policy_clear as ks, TOKENS_DEPOSITED_TOPIC as kt, MAX_GUARD_COUNT$1 as ku, ContactAddress as kv, WGetCheckpointParams as kw, QueryAccount as kx, PassportObject as ky, ClientWithCoreApi as l, PublicKeyInitData as lC, WowWithdrawFrom as lD, RawData as lE, Falcon512PublicKey as lS, AccumulatorEvent as lT, MAX_SERVER_SIGNATURE_SIZE as l_, CommonMistakeFilter as la, U128_MAX as lb, DEFAULT_SETTING_LOCK_DURATION as lc, vote as ld, OBJECT_TYPE_DEFINITIONS as lf, BRIDGE_CURRENT_VERSION as lg, CallResult as lh, ServerRegisterRequest as li, stock_reduce as ll, queryTableItem_MachineNode as lm, queryWowTx as ln, queryObjectsWithType as lo, SharedObjectsQuery as lp, CHAIN_PROOF_TYPE as lr, um_set as ls, UpgradePolicy as lt, init_node_name as lu, W_SAFE as lv, TValidatorsApyParams as lw, toTxU8 as lx, MAX_NUMBER_OPERANDS as ly, coinWithBalance as m, BscribeTransactionParams as mC, JsonRpcTransport as mD, TransactionBlockEffectsModifiedAtVersions as mE, PasskeyProvider as mS, Checkpoint$1 as mT, MAX_VOTOR_COUNT as m_, ProtocolInfoQuery as ma, U8_MAX as mb, MAX_CUSTOMER_REQUIRED_INFO_COUNT as mc, AllocatorsResolved as md, ObjectContact as mf, BRIDGE_TRANSFER_STATUS_NOT_FOUND as mg, getCoinParam as mh, SseArkConfirmedEvent as mi, Holder as ml, queryTableItem_RepositoryData as mm, WowClaimState as mn, AFFILIATION_TABLE_META as mo, TableItem_DemandPresenter as mp, ContactLists as mr, KeyData as ms, BridgeClientOptions as mt, node_clear as mu, isWException as mv, UnsafeMoveCallParams as mw, AccountOperationResult as mx, Modules as my, WowClientOptions as n, WowClientTypes as nC, WowTransactionBlock as nD, PaginatedTransactionResponse as nE, verifyPersonalMessageSignature as nS, EndOfEpochInfo as nT, MAX_RECORD_COUNT_REWARD as n_, query_address_activity_json as na, TxNumberVec as nb, CallOrder as nc, location_set$2 as nd, Im as nf, guardAdd as ng, reliesClear as nh, ReplyTo as ni, sale_suspension as nl, queryTableItem_AddressMark as nm, parseEthDepositEvent as nn, ServiceEvent as no, ServiceGuard as np, wts2html as nr, external_deposit_guard_remove as ns, BuildTransactionOptions as nt, consensus_repositories_clear as nu, WErrors as nv, TDynamicFieldsParams as nw, toTxString as nx, MAX_GUARD_NODE_DEPTH as ny, parseTransactionBcs as o, SignatureFlag as oC, WowTransactionBlockResponseOptions as oD, ProtocolConfigValue as oE, DEFAULT_FALCON512_DERIVATION_PATH as oS, WowMoveNormalizedModules as oT, MAX_REWARD_COUNT$1 as o_, query_transaction as oa, TypeNamedObjectWithPermission as ob, CallService_Data as oc, um_set$6 as od, MachineNode as of, resolve_submission_names as og, validateGuardNode as oh, SendMessageResult as oi, sales_set as ol, queryTableItem_EntityOrder as om, queryEthTxReceipt as on, query_events as oo, ServicesQuery as op, AddListRequest as or, external_withdraw_guard_remove as os, TransactionArgument as ot, forward as ou, W_ENSURE as ov, TStakesByIdsParams as ow, toTxU256 as ox, MAX_LONG_NAME_LENGTH as oy, Arguments as p, BscribeEventParams as pC, JsonRpcHTTPTransportOptions as pD, TransactionBlockData as pE, PasskeyKeypair as pS, BalanceChange$2 as pT, MAX_VOTING_GUARD_COUNT as p_, INFO_CONSTANT as pa, U64_MAX as pb, MAX_ARBITRATION_COUNT as pc, voting_guard_remove as pd, ObjectBase as pf, BRIDGE_TRANSFER_STATUS_CLAIMED as pg, applyCoinParam as ph, SignedRequestBase as pi, History as pl, queryTableItem_ProgressHistory as pm, ClaimWowResult as pn, AFFILIATION_TABLES_BY_TYPE as po, TableItem_AddressMark as pp, ClearListRequest as pr, DataRemoveItem as ps, BridgeClient as pt, node_add as pu, getMoveErrorDescription as pv, UnsafeMergeCoinsParams as pw, AccountOperation as px, MachineObject as py, Signer as q, QueryEventsParams as qC, WowObjectDataOptions as qE, SerializedTransactionDataV1 as qS, ObjectRead as qT, query_received as q_, EventType as qa, parseValueType as qb, price_add as qc, ENTITY_ORDER_ROLE_AGENT as qd, QueryAddressProfiles as qf, MAX_ORDER_ITEM_COUNT as qg, remarkClear as qh, ObjectLastUpdatedQuery as qi, receiveToMyself as ql, formatGuardParseErrors as qm, proof_message as qn, CallTreasury_Data as qo, getObjectTypeFromNumber as qp, NORMAL_MESSAGE_BYTES_LIMIT as qr, create$2 as qs, SignedBridgeActionResponse as qt, arbitration as qu, GuardAddress as qv, WowObjectChangeDeleted as qw, Account as qx, RewardObject as qy, SimulationError as r, SIGNATURE_FLAG_TO_SCHEME as rC, WowTransactionBlockBuilderMode as rD, Party as rE, verifySignature as rS, EpochInfo as rT, MAX_RECORD_LENGTH as r_, query_object_history as ra, TxObject as rb, CallOrder_Data as rc, newArbitration as rd, MAX_OBJECTS_PER_QUERY as rf, guardClear as rg, reliesLogic as rh, SERVER_URL as ri, sales_add as rl, queryTableItem_DemandPresenter as rm, queryErc20Balance as rn, TreasuryEvent as ro, ServiceSale$1 as rp, MessengerManager as rr, external_withdraw as rs, SerializeTransactionOptions as rt, consensus_repositories_remove as ru, WException as rv, TLatestWowSystemStateParams as rw, toTxU128 as rx, MAX_GUARD_TABLE_ITEM_LENGTH as ry, parseTransactionEffectsBcs as s, SignatureScheme$1 as sC, WowTransactionBlockResponseQuery as sD, PublicKey$1 as sE, Falcon512Keypair as sS, WowMoveObject as sT, MAX_SALE_COUNT$1 as s_, query_transaction_json as sa, TypedDescriptionObject as sb, CompensationClaim as sc, usage_guard_none as sd, MachineNodePair as sf, verify as sg, CallBase as sh, SeqIndexRange as si, setting_lock_duration_add as sl, queryTableItem_EntityPermission as sm, queryEvmToWowTransferStatus as sn, query_events_json as so, SharedObjectsAnswer as sp, AddressExistence as sr, newTreasury as ss, TransactionCommands as st, forwards_add as su, W_ERROR as sv, TStakesParams as sw, toTxU32 as sx, MAX_MULTI_OPERANDS as sy, WowClient as t, WowClientRegistration as tC, WowTransaction as tD, PaginatedObjectsResponse as tE, publicKeyFromWowBytes as tS, DynamicFieldPage as tT, MAX_RECORD_COUNT_REGISTRAR as t_, query_address_activity as ta, TxNumber as tb, um_set$2 as tc, fees_transfer as td, IdFromInput as tf, get_guardSubmissions as tg, reliesAdd as th, RemoveListRequest as ti, reward_remove$1 as tl, queryOrdersByUser as tm, parseEthClaimEvent as tn, RewardFundEvent as to, RoleEvidence as tp, watch_messages as tr, external_deposit_guard_clear as ts, isTransaction as tt, consensus_repositories_add as tu, MoveModuleError as tv, TDynamicFieldObjectParams as tw, toTxReceivingObject as tx, MAX_ENV_PERMISSION_GUARD_COUNT as ty, CoreClient as u, bytesEqual as uC, WowWithdrawalTypeArg as uD, Signature as uE, PasskeyPublicKey as uS, AccumulatorOperation as uT, MAX_SHARING_COUNT as u_, CommonMistakeInfo as ua, U16_MAX as ub, DISCOUNT_TYPE_MINUS as uc, voting_deadline_change as ud, ObjectAllocation as uf, BRIDGE_EVM_ADDRESS_LENGTH as ug, CoinPlan as uh, ServerRegisterResponse as ui, um_set$3 as ul, queryTableItem_ObjectLinkerCore as um, waitForEthTx as un, ServiceContextQuery as uo, TableAnswer as up, CURRENT_NETWORK as ur, withdraw as us, SCHEMA_VERSION as ut, machineNode2file as uu, W_SUCCESS as uv, TryGetPastObjectParams as uw, treasuryFn as ux, MAX_PERMISSION_GUARD_COUNT as uy, AsyncCache as v, EryTransactionBlocksParams as vC, TypeOrigin$1 as vE, Secp256r1Keypair as vS, CoinSupply as vT, ONCHAIN_CONSTANTS as v_, query_common_mistakes as va, ValueTypeToType as vb, MAX_REPOSITORY_COUNT as vc, MAX_ALLOCATOR_COUNT as vd, ObjectEntityLinker as vf, DISCOUNT_TYPE_RATES$1 as vg, CallPermission as vh, SseGuardConfirmedEvent as vi, NamedOperator as vl, query_address_profile as vm, BridgeConfig as vn, QueryAffiliations as vo, TableItem_EntityPermission as vp, DEFAULT_DEVICE_ID as vr, RepositoryPolicyRuleObject as vs, depositFromWow as vt, nodepair as vu, AllocationObject as vv, UnsafePublishParams as vw, GetAccountOrMark_Address as vx, NormalObject as vy, WowHTTPStatusError as w, GetCheckpointsParams as wC, WowChangeEpoch as wE, DEFAULT_ED25519_DERIVATION_PATH as wS, DevInspectResults as wT, ROLE_OWNER as w_, BridgeLimit as wa, contactFn as wb, ServiceQuoteObject as wc, receive$2 as wd, ObjectPayment as wf, MAX_CONSENSUS_REPOSITORIES_COUNT as wg, Permission_Index as wh, UploadPreKeysRequest as wi, context_repository_add as wl, query_objects_json as wm, findEvmChainConfig as wn, GuardItem as wo, TableItem_ProgressHistory as wp, ExistListRequest as wr, data_remove as ws, claimOnEthBySeq as wt, CallDemand as wu, CallEnv as wv, UnsafeTransferWowParams as ww, LocalInfoOperationResult as wx, ObjectWithType as wy, normalizedTypeToMoveTypeSignature as x, GetAllCoinsParams as xC, ValidatorsApy as xE, DEFAULT_SECP256K1_DERIVATION_PATH as xS, ConsensusDeterminedVersionAssignments$1 as xT, OnchainConstantName as x_, BridgeCommitteeMember as xa, WitnessType as xb, MAX_SALE_COUNT as xc, allocators as xd, ObjectMachine as xf, MAX_AGENT_COUNT as xg, PermissionIndexType as xh, SsePreKeyLowEvent as xi, Session as xl, query_demands as xm, MAINNET_COMMITTEE_MEMBER_ADDRESSES as xn, GUARDQUERY as xo, TableItem_ObjectLinkerCore as xp, DecryptedMessage as xr, create$1 as xs, EvmNoncePrecheckParams as xt, prev_nodes_remove_with_passport as xu, ArbitrationAddress as xv, UnsafeSplitCoinEqualParams as xw, LocalHistoryOperation as xx, ObjectModuleAndName as xy, ObjectCache as y, ExecuteTransactionBlockParams as yC, UpgradeInfo as yE, Secp256r1KeypairData as yS, CommitteeInfo as yT, ORDER_ROLE_AGENT as y_, BridgeCallResult as ya, WObject as yb, MAX_REQUIRED_INFO_SIZE as yc, alloc as yd, ObjectEntityRegistrar as yf, MAX_ADDRESS_COUNT as yg, CallPermission_Data as yh, SseGuardRejectedEvent as yi, ProgressEvent$1 as yl, query_address_profiles as ym, EvmChainConfig as yn, query_affiliations as yo, TableItem_EntityRegistrar as yp, DEFAULT_MESSENGER_CONFIG as yr, SignerOrClock as ys, ClaimEthOptions as yt, pause$1 as yu, ArbAddress as yv, UnsafeRequestAddStakeParams as yw, GetLocalNamesByAddresses as yx, OBJECT_LINKER_CORE_ADDRESS as yy, MultiSigStruct as z, GetProtocolConfigParams as zC, WowMoveNormalizedModule as zE, GraphQLQueryResult as zS, MoveStruct as zT, valueToBcsBytes as z_, ArbitrationEvent as za, isValidValueType as zb, discount as zc, ArbStatus as zd, PaymentInfo as zf, MAX_ID_COUNT_ONCE as zg, newPermission as zh, WtsSignatureVerification as zi, CallPaymentReceive_Data as zl, GuardTableItem as zm, extractZipFromPlaintext as zn, AccountOrMark_AddressInput as zo, getMoveNameFromNumber as zp, MessageIdRange as zr, MAX_GUARD_COUNT as zs, DepositErc20Options as zt, present as zu, ENTITY_PERMISSION_ADDRESS as zv, WGetProtocolConfigParams as zw, query_local_info_default as zx, Recipient as zy };
|
|
25406
|
+
export { TransactionObjectInput as $, QueryTransactionBlocksParams as $C, WowObjectRef as $E, Argument$1 as $S, ObjectResponseError as $T, queryOrdersByUser as $_, PaymentRevenue as $a, MAX_NODE_COUNT_ONCHAIN as $b, repository_remove as $c, BalanceType as $d, ObjectResult as $f, ServiceGuard as $g, Im as $h, TxBalanceChange as $i, NodePairParam as $l, LocalHistoryOperationResult as $m, sign_wts as $n, description_set as $o, WitnessTypeInput as $p, PullMessagesResponse as $r, newReward as $s, EvmTxReceipt as $t, fee_set as $u, parseGuardFile as $v, WowObjectChangeMutated as $w, AccountData as $x, ReceivedBalance as $y, isWowJsonRpcClient as A, GetCoinMetadataParams as AC, WowCoinMetadata as AE, Ed25519Keypair as AS, DisplayFieldsResponse as AT, VoteWeight as A_, BridgeTokenId as Aa, MAX_ALLOCATOR_COUNT$1 as Ab, arbitrations_add as Ac, isValidValueContainer as Ad, MAX_DESCRIPTION_LENGTH as Af, ObjectTokenTypeInfo as Ag, Amount as Ah, WtsFile as Ai, hold as Al, toTxAddressVec as Am, BlacklistResponse as An, RestoreNodeResult as Ao, TxAddress as Ap, GetSettingsResponse as Ar, policy_clear as As, TOKENS_DEPOSITED_V2_TOPIC as At, MAX_GUARD_COUNT$1 as Au, raw2type as Av, WDevInspectTransactionBlockParams as Aw, ROLE_ADMIN as Ax, descriptionSet as Ay, parsePartialSignatures as B, GetNormalizedMoveModulesByPackageParams as BC, WowMoveModuleId as BE, GrpcCoreClient as BS, GasCostSummary$2 as BT, getNumberFromObjectType as B_, ArbitrationEvent as Ba, MAX_EXTERNAL_DEPOSIT_GUARD_COUNT$1 as Bb, discount as Bc, LogLevel as Bd, MAX_PERMISSION_GUARD_COUNT as Bf, ProgressSession as Bg, CoreLinkView as Bh, WtsSignatureVerification as Bi, CallPaymentReceive_Data as Bl, toTxU8 as Bm, extract_zip_messages as Bn, AccountOrMark_AddressInput as Bo, U128_MAX as Bp, MessageIdRange as Br, MAX_GUARD_COUNT as Bs, DepositEthOptions as Bt, present as Bu, GuardTableItemBase as Bv, WGetNormalizedMoveModuleParams as Bw, WResult as Bx, ownerReceive as By, JsonRpcError as C, EryTransactionBlocksParams as CC, TypeOrigin$1 as CE, Secp256r1Keypair as CS, CoinSupply as CT, TableItem_RewardRecord as C_, BridgeError as Ca, BRIDGE_TRANSFER_STATUS_PENDING as Cb, NAMED_OPERATOR_ORDER_PAYER as Cc, create$9 as Cd, GuardAddress as Cf, ObjectPersonal as Cg, TokenTypeInfo as Ch, TimeRange as Ci, accomplish as Cl, object_name_from_type as Cm, MAINNET_COMMITTEE_WEIGHTS as Cn, GuardInstruct as Co, RewardAddress as Cp, Empty as Cr, data$1 as Cs, claimOnEth as Ct, publish$1 as Cu, query_personal as Cv, UnsafePublishParams as Cw, MAX_WIP_HASH_LENGTH as Cx, PermissionInfoType as Cy, PaginationArguments as D, GetBalanceParams as DC, WowArgument as DE, Secp256k1Keypair as DS, DelegatedStake as DT, TreasuryRecord as D_, BridgeResult as Da, MAX_ADDRESS_COUNT as Db, ServiceSale as Dc, sharing as Dd, IsValidBalance as Df, ObjectResource as Dg, AllocationSharing as Dh, WTS_FILE_BYTES_LIMIT as Di, context_repository_remove as Dl, rewardFn as Dm, findTokenBySymbol as Dn, QueryInvariant as Do, SupportedValue as Dp, FetchMessagesRequest as Dr, newRepository as Ds, ERC20_TRANSFER_TOPIC as Dt, DemandPresent as Du, query_table as Dv, UnsafeSplitCoinParams as Dw, ORDER_ROLE_AGENT as Dx, adminRemove as Dy, OrderArguments as E, GetAllCoinsParams as EC, ValidatorsApy as EE, DEFAULT_SECP256K1_DERIVATION_PATH as ES, ConsensusDeterminedVersionAssignments$1 as ET, TreasuryOp as E_, BridgeMessage as Ea, DISCOUNT_TYPE_RATES$1 as Eb, ServiceRequiredObject as Ec, resolveAllocators as Ed, IsValidArgType as Ef, ObjectRepository as Eg, AllocationMode as Eh, UploadPreKeysResponse as Ei, context_repository_clear as El, repositoryFn as Em, findToken as En, GuardQuery as Eo, ServiceObject as Ep, FailedPrekeyInfo as Er, description_set$1 as Es, AbiMessage as Et, CallDemand_Data as Eu, query_shared_objects_json as Ev, UnsafeSplitCoinEqualParams as Ew, ONCHAIN_CONSTANTS as Ex, adminAdd as Ey, SerializeSignatureInput as F, GetLatestCheckpointSequenceNumberParams as FC, WowGasData as FE, RpcTransport$1 as FS, ECMHLiveObjectSetDigest as FT, WowAddressKind as F_, TransferStatus as Fa, MAX_DISCOUNT_COUNT_ONCE$1 as Fb, compensation_fund_receive as Fc, permission_set as Fd, MAX_LOGIC_OPERANDS as Ff, ObjectsQuery as Fg, ArbProposition as Fh, WtsPayload as Fi, owner_receive as Fl, toTxU16 as Fm, GuardlistResponse as Fn, CallContact as Fo, TxString as Fp, MerkleProof as Fr, reward_remove as Fs, encodeBridgeETHV2 as Ft, guard_add$1 as Fu, GuardNode as Fv, WGetCheckpointsParams as Fw, WOWOK_WTS_PROOF_TYPE as Fx, entityReplace as Fy, ParsedKeypair as G, GetReferenceGasPriceParams as GC, WowMoveNormalizedStruct as GE, GraphQLResponseErrors as GS, MoveValue as GT, getObjectTypeFromNumber as G_, EventBase as Ga, MAX_GUARD_COUNT_PASSPORT as Gb, newService as Gc, setLogLevel as Gd, Modules as Gf, QueryOrdersByUser as Gg, ENTITY_ORDER_ROLE_OWNER as Gh, AddressActivityQuery as Gi, newPayment as Gl, AccountOperationResult as Gm, mark_conversation_as_viewed as Gn, ManyAccountOrMark_AddressInput as Go, U8_MAX as Gp, MessengerConfig as Gr, RewardRecord as Gs, BridgeNodeClient as Gt, CallArbitration as Gu, RecordQueryConditionsBCS as Gv, WGetTotalTransactionBlocksParams as Gw, W_SAFE as Gx, permissionFn as Gy, Keypair as H, GetObjectParams as HC, WowMoveNormalizedField as HE, GraphQLDocument as HS, InputObjectKind as HT, getObjectTypeDefinition as H_, DemandFeedbackEvent as Ha, MAX_FORWARD_COUNT as Hb, discount_send as Hc, createSensitiveLogger as Hd, MESSENGER_ADDRESS as Hf, PurchasedItem as Hg, DemandsQuery as Hh, WtsVerificationResult as Hi, PaymentInfoResolved as Hl, valueTypeToString as Hm, generate_wts as Hn, CallPersonal_Data as Ho, U256_MAX as Hp, MessageStatus as Hr, RecipientRecord as Hs, depositErc20 as Ht, reward_clear$2 as Hu, ProgressForwardFindConditionsBCS as Hv, WGetNormalizedMoveStructParams as Hw, W_ENSURE as Hx, permAdd as Hy, parseSerializedSignature as I, GetLatestWowSystemStateParams as IC, WowMoveAbility as IE, types_d_exports as IS, EndOfEpochData$1 as IT, data2object as I_, isEvmChain as Ia, MAX_DISCOUNT_RECEIVER_ONCE$1 as Ib, compensation_fund_withdraw as Ic, resolveSupportedValue as Id, MAX_LONG_NAME_LENGTH as If, PaymentInfo as Ig, ArbStatus as Ih, WtsRange as Ii, progressFn as Il, toTxU16Vec as Im, SettingsRequest as In, CallContact_Data as Io, TypeNamedObject as Ip, Message as Ir, um_set$1 as Is, encodeIsTransferProcessed as It, guard_clear as Iu, GuardParseError as Iv, WGetEventsParams as Iw, MoveErrors as Ix, entitySet as Iy, W_PRIVATE_KEY_PREFIX as J, GetTotalSupplyParams as JC, WowMoveVisibility as JE, WowGraphQLRequestError as JS, MultiSigLegacy as JT, isValidIdFromInput as J_, EventType as Ja, MAX_IM_COUNT as Jb, price_add as Jc, AllocationObject as Jd, NamedObjectWithPermission as Jf, QueryTableItem_byNameAddress as Jg, EntityPermissionItemView as Jh, ObjectLastUpdatedQuery as Ji, receiveToMyself as Jl, FetchTokenInfoOperation as Jm, pull_messages as Jn, CallTreasury_Data as Jo, ValueTypeInput as Jp, NORMAL_MESSAGE_BYTES_LIMIT as Jr, create$2 as Js, BRIDGE_STEP_DESCRIPTIONS as Jt, arbitration as Ju, gen_passport as Jv, WMultiGetTransactionBlocksParams as Jw, enrichMoveError as Jx, remarkRemove as Jy, SignatureWithBytes as K, GetStakesByIdsParams as KC, WowMoveNormalizedType as KE, WowGraphQLClient as KS, MoveVariant as KT, getObjectTypesFromNumbers as K_, EventCursor as Ka, MAX_GUARD_COUNT_REWARD as Kb, order_allocators_set as Kc, AddressResult as Kd, NamedObject as Kf, QueryTableItem_Entity as Kg, EntityContactItemView as Kh, ObjectHistoryQuery as Ki, paymentFn as Kl, AccountOrMark_Address as Km, mark_messages_as_viewed as Kn, transformPersonalInput as Ko, ValueContainer as Kp, MessengerError as Kr, claim as Ks, BridgeNodeClientOptions as Kt, CallArbitration_Data as Ku, create$10 as Kv, WGetTransactionBlockParams as Kw, W_SUCCESS as Kx, query_permissions as Ky, toSerializedSignature as L, GetMoveFunctionArgTypesParams as LC, WowMoveAbilitySet as LE, WowGrpcClient as LS, EventId as LT, getMoveNameFromNumber as L_, isWowChain as La, MAX_DISCOUNT_TOTAL_COUNT$1 as Lb, create$3 as Lc, uint2address as Ld, MAX_MULTI_OPERANDS as Lf, PersonalQuery as Lg, ArbVoted as Lh, WtsServerPublicKey as Li, task_set as Ll, toTxU256 as Lm, SettingsResponse as Ln, CallProof as Lo, TypeNamedObjectWithPermission as Lp, MessageContentType as Lr, CallReward as Ls, encodeTokenTransferPayloadV2 as Lt, guard_remove as Lu, GuardParseResult as Lv, WGetLatestCheckpointSequenceNumberParams as Lw, MoveModuleError as Lx, entitySwap as Ly, isValidHardenedPath as M, GetCommitteeInfoParams as MC, WowEvent as ME, Ed25519PublicKey as MS, DynamicFieldInfo as MT, WReceivedObject as M_, BridgeVersion as Ma, MAX_CONSENSUS_REPOSITORIES_COUNT as Mb, buy as Mc, parseObjectType as Md, MAX_GUARD_NODE_DEPTH as Mf, ObjectTreasury as Mg, AmountFromWithdrawGuard as Mh, WtsGenerationParams as Mi, namedOperator_remove as Ml, toTxReceivingObject as Mm, FriendslistResponse as Mn, getCallEnvAccount as Mo, TxNumber as Mp, ListOperationResponse as Mr, policy_set as Ms, encodeBridgeERC20 as Mt, create$7 as Mu, wowObjectTypeNameForAddress as Mv, WExecuteTransactionBlockParams as Mw, ROLE_OWNER as Mx, entityCopy as My, mnemonicToSeed as N, GetDynamicFieldObjectParams as NC, WowEventFilter as NE, GrpcWebFetchTransport$1 as NS, DynamicFieldName$1 as NT, WitnessSourceType as N_, SignedAction as Na, MAX_CONTEXT_REPOSITORY_COUNT as Nb, buy_guard_set as Nc, parseRecipient as Nd, MAX_GUARD_TABLE_ITEM_LENGTH as Nf, ObjectTypeDefinition as Ng, AmountType as Nh, WtsMessage as Ni, namedOperator_set as Nl, toTxString as Nm, GuardParam as Nn, resolveCallEnv as No, TxNumberVec as Np, MAX_QUERY_LIMIT as Nr, reward_add as Ns, encodeBridgeERC20V2 as Nt, description_set$5 as Nu, CallGuard as Nv, WGetChainIdentifierParams as Nw, USER_DEFINED_PERM_INDEX_START as Nx, entityDel as Ny, WowJsonRpcClient as O, GetCheckpointParams as OC, WowCallArg as OE, Secp256k1KeypairData as OS, DevInspectArgs as OT, TxLinkView as O_, BridgeSummary as Oa, MAX_ADMIN_COUNT as Ob, ServiceSaleObject as Oc, bcsBytesToValue as Od, IsValidEndpoint as Of, ObjectReward as Og, Allocator as Oh, WTS_MAX_MESSAGE_COUNT as Oi, create$4 as Ol, serviceFn as Om, verifyCommitteeConsistency as On, filterGuardInstruct as Oo, TreasuryAddress as Op, GetBundleParams as Or, policy as Os, TOKENS_CLAIMED_TOPIC as Ot, FeedbackInfo as Ou, query_tableItem as Ov, UnsafeTransferObjectParams as Ow, ORDER_ROLE_OWNER as Ox, adminSet as Oy, mnemonicToSeedHex as P, GetDynamicFieldsParams as PC, WowExecutionResult as PE, GrpcWebOptions$1 as PS, DynamicFieldType as PT, WitnessTargetType as P_, TransferRecord as Pa, MAX_DATA_SIZE as Pb, compensation_fund_add as Pc, parseTypeParameter as Pd, MAX_INPUT_SIZE as Pf, ObjectsAnswer as Pg, ArbIndemnity as Ph, WtsMeta as Pi, newProgress as Pl, toTxU128 as Pm, GuardlistRequest as Pn, restoreNodeFromOutput as Po, TxObject as Pp, MerkleMetadata as Pr, reward_clear as Ps, encodeBridgeETH as Pt, feedback as Pu, CallGuard_Data as Pv, WGetCheckpointParams as Pw, WITHDRAW_DURATION_TIME as Px, entityRemove as Py, TransactionObjectArgument as Q, QueryEventsParams as QC, WowObjectDataOptions as QE, SerializedTransactionDataV1 as QS, ObjectRead as QT, parseIdFrom as Q_, NewPaymentEvent as Qa, MAX_NODE_COUNT as Qb, repository_clear as Qc, ArbitrationObject as Qd, ObjectModuleAndName as Qf, RoleEvidence as Qg, IdFromInput as Qh, TransactionQuery as Qi, ForwardParam as Ql, LocalHistoryOperation as Qm, settings as Qn, deposit as Qo, WitnessType as Qp, PreKeyStatus as Qr, guard_remove_expired as Qs, BridgeTransferStep as Qt, dispute as Qu, newGuard as Qv, WowObjectChangeDeleted as Qw, Account as Qx, QueryReceived as Qy, MultiSigPublicKey as R, GetNormalizedMoveFunctionParams as RC, WowMoveAbort as RE, WowGrpcClientOptions as RS, ExecuteTransactionRequestType as RT, getMoveNameFromObjectType as R_, AllocationEvent as Ra, MAX_DISPUTE_COUNT as Rb, customer_required_set as Rc, validObjects as Rd, MAX_NAME_LENGTH as Rf, PolicyRule as Rg, ArbsAnswer as Rh, WtsSession as Ri, CallPayment as Rl, toTxU32 as Rm, blacklist as Rn, CallProof_Data as Ro, TypedDescriptionObject as Rp, MessageDirection as Rr, CallReward_Data as Rs, encodeTransferBridgedTokensWithSignatures as Rt, location_set$1 as Ru, GuardSubmissionToFill as Rv, WGetMoveFunctionArgTypesParams as Rw, WErrors as Rx, isBizPermIndex as Ry, getJsonRpcFullnodeUrl as S, EryEventsParams as SC, ClientCacheOptions as SD, TransferObjectParams as SE, DEFAULT_SECP256R1_DERIVATION_PATH as SS, CoinStruct as ST, TableItem_RepositoryData as S_, BridgeCommitteeMember as Sa, BRIDGE_TRANSFER_STATUS_NOT_FOUND as Sb, MAX_SALE_COUNT as Sc, allocators as Sd, GetObjectExisted as Sf, ObjectPermission as Sg, TokenInfo as Sh, SsePreKeyLowEvent as Si, Session as Sl, object_module_and_name_from_type as Sm, MAINNET_COMMITTEE_PUBKEYS as Sn, GUARDQUERY as So, ResourceObject as Sp, DecryptedMessage as Sr, create$1 as Ss, buildClaimMessage as St, prev_nodes_remove_with_passport as Su, query_objects_json as Sv, UnsafePayWowParams as Sw, MAX_VOTOR_COUNT as Sx, PermissionInfo as Sy, WowHTTPTransportError as T, GetAllBalancesParams as TC, ValidatorApy as TE, Secp256k1PublicKey as TS, CompressedSignature$1 as TT, TableQuery as T_, BridgeLimit as Ta, DISCOUNT_TYPE_MINUS$1 as Tb, ServiceQuoteObject as Tc, receive$2 as Td, IsBcsStringLength as Tf, ObjectProof as Tg, AddressProfile as Th, UploadPreKeysRequest as Ti, context_repository_add as Tl, parseWitnessType as Tm, findEvmChainConfigByBridgeChainId as Tn, GuardItem as To, ServiceAddress as Tp, ExistListRequest as Tr, data_remove as Ts, isEvmNonceAlreadyProcessed as Tt, CallDemand as Tu, query_shared_objects as Tv, UnsafeRequestWithdrawStakeParams as Tw, MaxNodeCountSdkLiteral as Tx, Permission_Index_Entity as Ty, LEGACY_PRIVATE_KEY_SIZE as U, GetOwnedObjectsParams as UC, WowMoveNormalizedFunction as UE, GraphQLQueryOptions as US, MoveCallParams as UT, getObjectTypeDefinitionFromNumber as U_, DemandPresentEvent as Ua, MAX_FORWARD_ORDER_COUNT as Ub, location_set as Uc, getLogLevel as Ud, MachineAddress as Uf, QueryAddressProfile as Ug, DiscountType as Uh, ZipContentType as Ui, Revenue as Ul, witnessTypeToString as Um, getMessengerManager as Un, CallPersonal_DataInput as Uo, U32_MAX as Up, MessageTimeField as Ur, RewardGuardInput as Us, depositEth as Ut, reward_remove$2 as Uu, ProgressHistoryFindConditionsBCS as Uv, WGetObjectParams as Uw, W_ERROR as Ux, permRemove as Uy, FALCON512_PRIVATE_KEY_SIZE as V, GetNormalizedMoveStructParams as VC, WowMoveNormalizedEnum as VE, GrpcCoreClientOptions as VS, GetPastObjectRequest as VT, getNumbersFromObjectTypes as V_, DemandChangedEvent as Va, MAX_EXTERNAL_WITHDRAW_GUARD_COUNT$1 as Vb, discount_destroy as Vc, Logger as Vd, MAX_STRING_OPERANDS as Vf, ProgressSessionHolder as Vg, DemandsAnswer as Vh, WtsToHtmlOptions as Vi, CallPayment_Data as Vl, treasuryFn as Vm, friendslist as Vn, CallPersonal as Vo, U16_MAX as Vp, MessageListResult as Vr, MAX_RECORD_COUNT as Vs, DepositParams as Vt, reward_add$2 as Vu, GuardValidationIssue as Vv, WGetNormalizedMoveModulesByPackageParams as Vw, WValidate as Vx, ownerReceiveObject as Vy, PRIVATE_KEY_SIZE as W, GetProtocolConfigParams as WC, WowMoveNormalizedModule as WE, GraphQLQueryResult as WS, MoveStruct as WT, getObjectTypeFromMoveName as W_, EventAnswer as Wa, MAX_GUARD_COUNT_DEMAND as Wb, machine_set as Wc, logger as Wd, MachineObject as Wf, QueryAddressProfiles as Wg, ENTITY_ORDER_ROLE_AGENT as Wh, ZipMetadata as Wi, create$5 as Wl, AccountOperation as Wm, guardlist as Wn, CallPersonal_DataMarkInput as Wo, U64_MAX as Wp, MessageType$1 as Wr, RewardGuardObject as Ws, depositFromEth as Wt, um_set$5 as Wu, ProgressSessionFindConditionsBCS as Wv, WGetProtocolConfigParams as Ww, W_FAILURE as Wx, permSet as Wy, encodeWowPrivateKey as X, MultiGetObjectsParams as XC, WowObjectData as XE, TransactionDataBuilder as XS, MultiSigPublicKeyLegacy as XT, objectTypeFromAddress as X_, NewEntityEvent as Xa, MAX_NAMED_OPERATOR_ADDRESS_COUNT$1 as Xb, publish as Xc, ArbObject as Xd, OBJECT_LINKER_CORE_ADDRESS as Xf, QueryTableItem_byU64 as Xg, GuardSubmission as Xh, TransactionHistoryAnswer as Xi, CallMachine as Xl, GetLocalNamesByAddresses as Xm, send_file as Xn, MAX_EXTERNAL_WITHDRAW_GUARD_COUNT as Xo, WObject as Xp, PlaintextMessage as Xr, guard_add as Xs, BridgeTransferState as Xt, create$8 as Xu, guard2file as Xv, WTryMultiGetPastObjectsParams as Xw, isWException as Xx, transferPermission as Xy, decodeWowPrivateKey as Y, GetTransactionBlockParams as YC, WowObjectChange as YE, isWowGraphQLClient as YS, MultiSigPublicKey$1 as YT, numberToObjectType as Y_, FeedbackEvent as Ya, MAX_ITEM_COUNT as Yb, price_reduce as Yc, ArbAddress as Yd, NormalObject as Yf, QueryTableItem_byString as Yg, GuardInPassport as Yh, TransactionDetail as Yi, resolvePaymentInfoContext as Yl, GetAccountOrMark_Address as Ym, search_messages as Yn, MAX_EXTERNAL_DEPOSIT_GUARD_COUNT as Yo, ValueTypeToType as Yp, PQPreKeyPublic as Yr, description_set$2 as Ys, BridgeTransferDirection as Yt, confirm as Yu, generateNodeComments as Yv, WTryGetPastObjectParams as Yw, getMoveErrorDescription as Yx, remarkSet as Yy, Transaction$1 as Z, MultiGetTransactionBlocksParams as ZC, WowObjectDataFilter as ZE, SerializedTransactionDataV2 as ZS, ObjectOwner$1 as ZT, objectTypeToNumber as Z_, NewOrderEvent as Za, MAX_NAMED_OPERATOR_COUNT$1 as Zb, repository_add as Zc, ArbitrationAddress as Zd, OBJECT_LINKER_TX_ADDRESS as Zf, RewardGuard as Zg, IdFrom as Zh, TransactionHistoryItem as Zi, CallMachine_Data as Zl, GetManyAccountOrMark_Address as Zm, send_message as Zn, create as Zo, WithPermissionObject as Zp, PreKeyPublic as Zr, guard_expiration_time_add as Zs, BridgeTransferStatus as Zt, description_set$6 as Zu, guardFn as Zv, WowObjectChangeCreated as Zw, isWowokSystemAddress as Zx, um_set$7 as Zy, SerialTransactionExecutor as _, messageWithIntent as _C, JsonRpcHTTPTransport as _D, TransactionBlockBytes as _E, BrowserPasswordProviderOptions as _S, Balance$2 as _T, TableItem_MachineNode as __, queryPermissions as _a, BRIDGE_CURRENT_VERSION as _b, MAX_DISCOUNT_RECEIVER_ONCE as _c, CallAllocation as _d, EntityAddress as _f, ObjectGuard as _g, query_local_info_list as _h, SseEvent as _i, MAX_NAMED_OPERATOR_COUNT as _l, isValidValueTypeInput as _m, queryWowClaimStatus as _n, AffiliationEntry as _o, RecipientType as _p, ConversationInfo as _r, RepDataItem as _s, DepositWowResult as _t, node_remove as _u, query_address_profiles as _v, UnsafeBatchTransactionParams as _w, MAX_SERVER_SIGNATURE_SIZE as _x, BuiltinPermissionIndex as _y, formatMoveAbortMessage as a, ClientWithExtensions as aC, WowSystemStateSummary as aD, PaginatedEvents as aE, publicKeyFromRawBytes as aS, CheckpointPage as aT, SharedObjectsAnswerItem as a_, query_object_history_json as aa, query_received as ab, Buy as ac, pause$2 as ad, ContactAddress as af, NamedOperator$1 as ag, ManyAccountOrMark_Address as ah, SendMessageRequest as ai, sales_clear as al, isValidArray as am, queryEthTxConfirmations as an, VoteEvent as ao, PackageAddress as ap, Messenger as ar, external_withdraw_guard_add as as, Inputs as at, create$6 as au, queryTableItem_EntityPermission as av, TCommitteeInfoParams as aw, MAX_POLICY_GUARD_COUNT as ax, validateGuardData as ay, getPureBcsSchema as b, DevInspectTransactionBlockParams as bC, JsonRpcTransportRequestOptions as bD, TransactionEffects$2 as bE, findCommonPublicKey as bS, CheckpointCommitment$1 as bT, TableItem_PermissionPerm as b_, BridgeCallResult as ba, BRIDGE_TRANSFER_STATUS_APPROVED as bb, MAX_REQUIRED_INFO_SIZE as bc, alloc as bd, GetObject as bf, ObjectPassport as bg, query_local_token_list as bh, SseGuardRejectedEvent as bi, ProgressEvent$1 as bl, isWitnessType as bm, MAINNET_BRIDGE_CONFIG as bn, query_affiliations as bo, RepositoryObject as bp, DEFAULT_MESSENGER_CONFIG as br, SignerOrClock as bs, ClaimEthParams as bt, pause$1 as bu, query_object_token_type as bv, UnsafePayAllWowParams as bw, MAX_TAGS_COUNT as bx, PermissionFilter as by, BaseClient as c, SIGNATURE_FLAG_TO_SCHEME as cC, WowTransactionBlockBuilderMode as cD, Party as cE, verifySignature as cS, EpochInfo as cT, TableAnswerItem as c_, query_transaction_json as ca, freeze as cb, CompensationClaim as cc, usage_guard_none as cd, DemandAddress as cf, ObjectArb as cg, account_operation as ch, SeqIndexRange as ci, setting_lock_duration_add as cl, isValidLongName as cm, queryWowToEvmTransferStatus as cn, query_events_json as co, PaymentInfoObject as cp, AddressExistence as cr, newTreasury as cs, TransactionInput as ct, forwards_add as cu, queryTableItem_ObjectLinkerCore as cv, TLatestWowSystemStateParams as cw, MAX_RECIPIENT_COUNT as cx, CallResponseError as cy, CoreClientOptions as d, SignatureFlag as dC, WowTransactionBlockResponseOptions as dD, ProtocolConfigValue as dE, DEFAULT_FALCON512_DERIVATION_PATH as dS, WowMoveNormalizedModules as dT, TableItem_DemandPresenter as d_, CommonMistakeInfo as da, guardClear as db, DISCOUNT_TYPE_MINUS as dc, voting_deadline_change as dd, DiscountObject as df, ObjectContact as dg, local_info_operation as dh, ServerRegisterResponse as di, um_set$3 as dl, isValidU16 as dm, waitForWowTx as dn, ServiceContextQuery as do, PermissionObject as dp, CURRENT_NETWORK as dr, withdraw as ds, SchemaCompatibilityResult as dt, machineNode2file as du, queryTableItem_ProgressHistory as dv, TStakesByIdsParams as dw, MAX_RECORD_LENGTH as dx, ObjectsOp as dy, CallArg as eC, WowObjectResponse as eD, ObjectValueKind as eE, AccountFilter as eS, WowObjectChangePublished as eT, ServiceSale$1 as e_, TxEvent as ea, ReceivedBalanceObject as eb, receive$1 as ec, feedback$1 as ed, CallEnv as ef, MAX_OBJECTS_PER_QUERY as eg, LocalInfoOperation as eh, RangeType as ei, reward_add$1 as el, arbitrationFn as em, makeBridgeTransferState as en, ProgressEvent as eo, ObjectType as ep, verify_wts as er, external_deposit as es, TransactionResult$1 as et, NodeParam as eu, queryTableItem_AddressMark as ev, TAllBalancesParams as ew, MAX_NODE_PAIR_COUNT as ex, parseGuardFromMarkdown as ey, isArgument as f, SignatureScheme$1 as fC, WowTransactionBlockResponseQuery as fD, PublicKey$1 as fE, Falcon512Keypair as fS, WowMoveObject as fT, TableItem_EntityContact as f_, FUNDING_GUIDANCE as fa, newPassport as fb, DISCOUNT_TYPE_RATES as fc, voting_guard_add as fd, ENTITY_CONTACT_ADDRESS as ff, ObjectDemand as fg, local_mark_operation as fh, SessionState as fi, CallProgress as fl, isValidU256 as fm, ClaimWowParams as fn, ServiceContextResult as fo, ProgressAddress as fp, ChainProofRequest as fr, CallRepository as fs, checkSchemaCompatibility as ft, newMachine as fu, queryTableItem_RepositoryData as fv, TStakesParams as fw, MAX_REPOSITORY_COUNT$1 as fx, ResponseData as fy, ParallelTransactionExecutorOptions as g, IntentScope as gC, HttpHeaders as gD, StakeObject as gE, BrowserPasskeyProvider as gS, AccumulatorValue as gT, TableItem_EntityRegistrar as g_, ProtocolInfoResult as ga, verify_guard as gb, MAX_DISCOUNT_COUNT_ONCE as gc, AllocatorsType as gd, ENTITY_REGISTRAR_ADDRESS as gf, ObjectEntityRegistrar as gg, query_local_info_default as gh, SseCustomEvent as gi, MAX_NAMED_OPERATOR_ADDRESS_COUNT as gl, isValidValueType as gm, claimOnWow as gn, AffiliationAnswer as go, Recipient as gp, ContactListsSyncResult as gr, RemoveParam as gs, DepositWowParams as gt, node_exchange_name as gu, query_address_profile as gv, TryMultiGetPastObjectsParams as gw, MAX_SERVER_PUBKEY_SIZE as gx, resolveCoinParam as gy, ParallelTransactionExecutor as h, bytesEqual as hC, WowWithdrawalTypeArg as hD, Signature as hE, PasskeyPublicKey as hS, AccumulatorOperation as hT, TableItem_EntityPermission as h_, ProtocolInfoQuery as ha, verify as hb, MAX_CUSTOMER_REQUIRED_INFO_COUNT as hc, AllocatorsResolved as hd, ENTITY_PERMISSION_ADDRESS as hf, ObjectEntityLinker as hg, query_local_info as hh, SseArkConfirmedEvent as hi, Holder as hl, isValidU8 as hm, WowClaimStatus as hn, AFFILIATION_TABLE_META as ho, ReceivedObject as hp, ContactLists as hr, KeyData as hs, BridgeTransferRecord as ht, node_clear as hu, queryTableItem_TreasuryHistory as hv, TryGetPastObjectParams as hw, MAX_SALE_COUNT$1 as hx, isCallResultSubmission as hy, extractStatusFromEffectsBcs as i, TransactionData$1 as iC, WowReservation as iD, PaginatedDynamicFieldInfos as iE, MAX_MESSENGER_ACCOUNTS as iS, CoinBalance as iT, SharedObjectsAnswer as i_, query_object_history as ia, ReceivedObjectsOrRecently as ib, CallOrder_Data as ic, newArbitration as id, CoinWrapperObject as if, MachineNodePair as ig, LocalNameByAddress as ih, SERVER_URL as ii, sales_add as il, isThisPackage as im, queryEthBalance as in, TreasuryEvent as io, OrderObject as ip, MessengerManager as ir, external_withdraw as is, TransactionPlugin as it, consensus_repositories_remove as iu, queryTableItem_EntityOrder as iv, TCoinsParams as iw, MAX_POLICY_DESCRIPTION_LEN as ix, reliesRemove as iy, isValidBIP32Path as j, GetCoinsParams as jC, WowEndOfEpochTransactionKind as jE, Ed25519KeypairData as jS, DryRunTransactionBlockResponse as jT, VotingGuard as j_, BridgeTokenSymbol as ja, MAX_ARBITRATION_COUNT$1 as jb, arbitrations_remove as jc, owner_receive$1 as jd, MAX_ENV_PERMISSION_GUARD_COUNT as jf, ObjectTokenTypeQuery as jg, AmountFromDepositGuard as jh, WtsFileResult as ji, namedOperator_add as jl, toTxObject as jm, FriendslistRequest as jn, checkType as jo, TxAddressVec as jp, GuardListItem as jr, policy_remove as js, encodeApprove as jt, ServiceInfo$2 as ju, wowAddressKind as jv, WDryRunTransactionBlockParams as jw, ROLE_ENTITY as jx, entityAdd as jy, WowJsonRpcClientOptions as k, GetCheckpointsParams as kC, WowChangeEpoch as kE, DEFAULT_ED25519_DERIVATION_PATH as kS, DevInspectResults as kT, UserOrderView as k_, BridgeToken as ka, MAX_AGENT_COUNT as kb, arbitration_clear as kc, extractCoinType as kd, MAX_DEPENDED_COUNT as kf, ObjectService as kg, Allocators as kh, WTS_SCHEMA_URL as ki, getMachineNodeForward as kl, toTxAddress as km, BlacklistRequest as kn, getGuardQueryInfo as ko, TreasuryObject as kp, GetSettingsRequest as kr, policy_add as ks, TOKENS_DEPOSITED_TOPIC as kt, MAX_FEEDBACK_COUNT as ku, query_table_json as kv, UnsafeTransferWowParams as kw, OnchainConstantName as kx, create$11 as ky, ClientWithCoreApi as l, SIGNATURE_SCHEME_TO_FLAG as lC, WowTransactionBlockKind as lD, PasskeyAuthenticator$1 as lE, verifyTransactionSignature as lS, EpochPage as lT, TableItemQuery as l_, COMMON_MISTAKES as la, get_guardSubmissions as lb, DEFAULT_LOCK_DURATION as lc, usage_guard_set as ld, DemandObject as lf, ObjectArbitration as lg, fetch_token_info_operation as lh, ServerMessage as li, stock_add as ll, isValidName as lm, queryWowTx as ln, queryObjectWithType as lo, PaymentObject as lp, BaseRange as lr, receive as ls, UpgradePolicy as lt, forwards_remove as lu, queryTableItem_ObjectLinkerTx as lv, TOwnedObjectsParams as lw, MAX_RECORD_COUNT_REGISTRAR as lx, CallResult as ly, coinWithBalance as m, PublicKeyInitData as mC, WowWithdrawFrom as mD, RawData as mE, Falcon512PublicKey as mS, AccumulatorEvent as mT, TableItem_EntityOrder as m_, INFO_CONSTANT as ma, resolve_submission_names as mb, MAX_ARBITRATION_COUNT as mc, voting_guard_remove as md, ENTITY_ORDER_ADDRESS as mf, ObjectEntity as mg, query_account_list as mh, SignedRequestBase as mi, History as ml, isValidU64 as mm, WowClaimState as mn, AFFILIATION_TABLES_BY_TYPE as mo, ProofAddress as mp, ClearListRequest as mr, DataRemoveItem as ms, BridgeClientOptions as mt, node_add as mu, queryTableItem_ServiceOrders as mv, TValidatorsApyParams as mw, MAX_REWARD_COUNT$1 as mx, getCoinParam as my, WowClientOptions as n, GasData as nC, WowParsedData as nD, PaginatedCheckpoints as nE, FaucetCoinInfo as nS, WowObjectChangeWrapped as nT, ServicesAnswer as n_, query_address_activity as na, ReceivedNormal as nb, um_set$2 as nc, fees_transfer as nd, CoinParam as nf, MachineForwardGuard as ng, LocalMarkOperation as nh, RemoveListRequest as ni, reward_remove$1 as nl, demandFn as nm, parseEthDepositEvent as nn, RewardFundEvent as no, OperatorType as np, watch_messages as nr, external_deposit_guard_clear as ns, BuildTransactionOptions as nt, consensus_repositories_add as nu, queryTableItem_EntityContact as nv, TBalanceParams as nw, MAX_PERM_FOR_ENTITY as nx, reliesClear as ny, parseTransactionBcs as o, WowClientRegistration as oC, WowTransaction as oD, PaginatedObjectsResponse as oE, publicKeyFromWowBytes as oS, DynamicFieldPage as oT, SharedObjectsQuery as o_, query_object_last_updated as oa, SubmissionCall as ob, CallService as oc, reset as od, ContactObject as of, OBJECT_TYPE_DEFINITIONS as og, QueryAccount as oh, SendMessageResponse as oi, sales_remove as ol, isValidDescription as om, queryEthTxReceipt as on, parseWowokEventItem as oo, PassportObject as op, AddGuardListRequest as or, external_withdraw_guard_clear as os, TransactionArgument as ot, description_set$4 as ou, queryTableItem_EntityRegistrar as ov, TDynamicFieldObjectParams as ow, MAX_PROOF_SIZE as ox, validateGuardNode as oy, Arguments as p, PublicKey as pC, WowValidatorSummary as pD, RPCTransactionRequestParams as pE, Falcon512KeypairData as pS, WowMovePackage as pT, TableItem_EntityLinker as p_, FundingGuidance as pa, passportFn as pb, Discount as pc, voting_guard_clear as pd, ENTITY_LINKER_ADDRESS as pf, ObjectDiscount as pg, query_account as ph, SignedRequest as pi, CallProgress_Data as pl, isValidU32 as pm, ClaimWowResult as pn, query_serviceContext as po, ProgressObject as pp, ChainProofResponse as pr, CallRepository_Data as ps, BridgeClient as pt, node as pu, queryTableItem_RewardRecord as pv, TTotalSupplyParams as pw, MAX_REQUIRED_INFO_SIZE$1 as px, applyCoinParam as py, Signer as q, GetStakesParams as qC, WowMoveStructTypeParameter as qE, WowGraphQLClientOptions as qS, MultiSig as qT, idFromToString as q_, EventQuery as qa, MAX_ID_COUNT_ONCE as qb, pause as qc, AllocationAddress as qd, NamedObjectWithDescription as qf, QueryTableItem_byAddress as qg, EntityOrderItemView as qh, ObjectLastUpdated as qi, paymentInfo as ql, FaucetNetwork as qm, proof_message as qn, CallTreasury as qo, ValueType as qp, MessengerErrorCode as qr, coin_add as qs, SignedBridgeActionResponse as qt, arb_withdraw as qu, formatGuardParseErrors as qv, WMultiGetObjectsParams as qw, W_VALIDATE_PARAM as qx, remarkClear as qy, SimulationError as r, ObjectRef as rC, WowProgrammableMoveCall as rD, PaginatedCoins as rE, MAX_ACCOUNTS as rS, Order as rT, ServicesQuery as r_, query_address_activity_json as ra, ReceivedObjects as rb, CallOrder as rc, location_set$2 as rd, CoinWrapPrefix as rf, MachineNode as rg, LocalMarkOperationResult as rh, ReplyTo as ri, sale_suspension as rl, isGasTokenType as rm, queryErc20Balance as rn, ServiceEvent as ro, OrderAddress as rp, wts2html as rr, external_deposit_guard_remove as rs, SerializeTransactionOptions as rt, consensus_repositories_clear as ru, queryTableItem_EntityLinker as rv, TCoinMetadataParams as rw, MAX_POLICY_COUNT as rx, reliesLogic as ry, parseTransactionEffectsBcs as s, WowClientTypes as sC, WowTransactionBlock as sD, PaginatedTransactionResponse as sE, verifyPersonalMessageSignature as sS, EndOfEpochInfo as sT, TableAnswer as s_, query_transaction as sa, destroy as sb, CallService_Data as sc, um_set$6 as sd, ContextType as sf, ObjectAllocation as sg, QueryAccountResult as sh, SendMessageResult as si, sales_set as sl, isValidHttpUrl as sm, queryEvmToWowTransferStatus as sn, query_events as so, PaymentAddress as sp, AddListRequest as sr, external_withdraw_guard_remove as ss, TransactionCommands as st, forward as su, queryTableItem_MachineNode as sv, TDynamicFieldsParams as sw, MAX_PROPOSITION_COUNT as sx, CallBase as sy, WowClient as t, Command$1 as tC, WowObjectResponseQuery as tD, OwnedObjectRef as tE, DEFAULT_ACCOUNT_NAME as tS, WowObjectChangeTransferred as tT, ServiceSummary as t_, TxObjectChange as ta, ReceivedBalanceOrRecently as tb, transformRewardInput as tc, fees_alloc as td, CoinObject as tf, MachineForward as tg, LocalInfoOperationResult as th, RemoteBundle as ti, reward_clear$1 as tl, contactFn as tm, parseEthClaimEvent as tn, RewardClaimEvent as to, ObjectWithType as tp, watch_conversations as tr, external_deposit_guard_add as ts, isTransaction as tt, THRESHOLD_DEFAULT as tu, queryTableItem_DemandPresenter as tv, TAllCoinsParams as tw, MAX_ORDER_ITEM_COUNT as tx, reliesAdd as ty, CoreClient as u, SIGNATURE_SCHEME_TO_SIZE as uC, WowTransactionBlockResponse as uD, ProtocolConfig$2 as uE, MultiSigSigner as uS, ProgrammableTransaction$1 as uT, TableItem_AddressMark as u_, CommonMistakeFilter as ua, guardAdd as ub, DEFAULT_SETTING_LOCK_DURATION as uc, vote as ud, DescriptionObject as uf, ObjectBase as ug, local_history_operation as uh, ServerRegisterRequest as ui, stock_reduce as ul, isValidU128 as um, waitForEthTx as un, queryObjectsWithType as uo, PermissionAddress as up, CHAIN_PROOF_TYPE as ur, um_set as us, SCHEMA_VERSION as ut, init_node_name as uu, queryTableItem_PermissionPerm as uv, TReferenceGasPriceParams as uw, MAX_RECORD_COUNT_REWARD as ux, CoinPlan as uy, AsyncCache as v, BscribeEventParams as vC, JsonRpcHTTPTransportOptions as vD, TransactionBlockData as vE, PasskeyKeypair as vS, BalanceChange$2 as vT, TableItem_ObjectLinkerCore as v_, queryProtocolInfo as va, BRIDGE_EVM_ADDRESS_LENGTH as vb, MAX_DISCOUNT_TOTAL_COUNT as vc, CallAllocation_Data as vd, GasCoinType as vf, ObjectMachine as vg, query_local_mark as vh, SseEventType as vi, MachineNodeForwardResult as vl, isValidWitnessTypeInput as vm, BridgeConfig as vn, AffiliationTableKind as vo, RegistrarAddress as vp, ConversationsFilter as vr, RepositoryPolicyGuardObject as vs, depositFromWow as vt, node_rename as vu, query_arbs as vv, UnsafeMergeCoinsParams as vw, MAX_SHARING_COUNT as vx, CallPermission as vy, WowHTTPStatusError as w, ExecuteTransactionBlockParams as wC, UpgradeInfo as wE, Secp256r1KeypairData as wS, CommitteeInfo as wT, TableItem_TreasuryHistory as w_, BridgeErrorCode as wa, DEFAULT_LOCK_DURATION$1 as wb, ServiceBuyItem as wc, newAllocation as wd, GuardObject as wf, ObjectProgress as wg, AddressActivity as wh, UpdateSettingsRequest as wi, adminUnhold as wl, parseValueType as wm, findEvmChainConfig as wn, GuardInstructFilterOptions as wo, RewardObject as wp, EventStreamParams as wr, data_id_from as ws, claimOnEthBySeq as wt, um_set$4 as wu, query_services as wv, UnsafeRequestAddStakeParams as ww, MAX_WIP_LENGTH as wx, Permission_Index as wy, normalizedTypeToMoveTypeSignature as x, DryRunTransactionBlockParams as xC, ClientCache as xD, TransactionFilter$1 as xE, Secp256r1PublicKey as xS, CheckpointId as xT, TableItem_ProgressHistory as x_, BridgeChainId as xa, BRIDGE_TRANSFER_STATUS_CLAIMED as xb, MAX_REWARD_COUNT as xc, allocationFn as xd, GetObjectDescription as xf, ObjectPayment as xg, TokenDataFilter as xh, SseNewMessageEvent as xi, ProgressNext as xl, machineFn as xm, MAINNET_COMMITTEE_MEMBER_ADDRESSES as xn, GUARDINSTRUCT as xo, ResourceAddress as xp, DEFAULT_QUERY_LIMIT as xr, SignerOrClockBase as xs, EvmNoncePrecheckParams as xt, prev_nodes_remove as xu, query_objects as xv, UnsafePayParams as xw, MAX_VOTING_GUARD_COUNT as xx, PermissionIndexType as xy, ObjectCache as y, BscribeTransactionParams as yC, JsonRpcTransport as yD, TransactionBlockEffectsModifiedAtVersions as yE, PasskeyProvider as yS, Checkpoint$1 as yT, TableItem_ObjectLinkerTx as y_, query_common_mistakes as ya, BRIDGE_MESSAGE_VERSION as yb, MAX_REPOSITORY_COUNT as yc, MAX_ALLOCATOR_COUNT as yd, GasTokenType as yf, ObjectOrder as yg, query_local_mark_list as yh, SseGuardConfirmedEvent as yi, NamedOperator as yl, isValueTypeNumber as ym, EvmChainConfig as yn, QueryAffiliations as yo, RepositoryAddress as yp, DEFAULT_DEVICE_ID as yr, RepositoryPolicyRuleObject as ys, ClaimEthOptions as yt, nodepair as yu, query_demands as yv, UnsafeMoveCallParams as yw, MAX_SUBMISSION_SIZE_PASSPORT as yx, CallPermission_Data as yy, MultiSigStruct as z, GetNormalizedMoveModuleParams as zC, WowMoveFunctionArgType as zE, isWowGrpcClient as zS, ExecutionStatus$2 as zT, getNumberFromMoveName as z_, ArbEvent as za, MAX_ENTITY_COUNT as zb, description_set$3 as zc, valueToBcsBytes as zd, MAX_NUMBER_OPERANDS as zf, PolicyWriteGuard as zg, ArbsQuery as zh, WtsSignature as zi, CallPaymentCreate_Data as zl, toTxU64 as zm, extractZipFromPlaintext as zn, gen_proof as zo, TypedPermissionObject as zp, MessageFilter as zr, CallReward_DataInput as zs, DepositErc20Options as zt, newDemand as zu, GuardTableItem as zv, WGetNormalizedMoveFunctionParams as zw, WException as zx, newPermission as zy };
|