@wowok/wowok 3.0.5 → 3.0.7
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-CXTekz6P.mjs +1 -0
- package/dist/esm/call-c56KBPmQ.mjs +1 -0
- package/dist/esm/client/index.d.mts +2 -2
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client-BYIflYp_.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-Cee3vmP8.mjs +1 -0
- package/dist/esm/graphql/index.d.mts +1 -1
- package/dist/esm/graphql/index.mjs +1 -1
- package/dist/esm/graphql-DDWKR2yj.mjs +1 -0
- package/dist/esm/grpc/index.d.mts +1 -1
- package/dist/esm/grpc/index.mjs +1 -1
- package/dist/esm/grpc-D9wyZZs1.mjs +1 -0
- package/dist/esm/{index-rkqH73U5.d.mts → index-BQOp8Peb.d.mts} +2363 -1887
- package/dist/esm/{index-B7GX5gzh.d.mts → index-Bs4A3nTL.d.mts} +2 -1
- package/dist/esm/index.d.mts +5 -5
- 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-D9cIgjVB.mjs +1 -0
- package/dist/esm/messenger-api-BkZ1Urhv.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/{networks-ByH0We-G.d.mts → networks-DgObqYrB.d.mts} +16 -1
- package/dist/esm/proof-DN-LYZHK.mjs +1 -0
- package/dist/esm/received-BeCU01U-.mjs +1 -0
- package/dist/esm/service-JWjnxOnc.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-CQi8j1Df.mjs +1 -0
- package/dist/esm/util-DtomxQB5.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 +4 -4
- package/dist/esm/w/index.mjs +1 -1
- package/dist/esm/w/local/account.d.mts +2 -2
- 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.d.mts +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 +4 -4
- 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/attachment.d.mts +2 -0
- package/dist/esm/w/messenger/attachment.mjs +1 -0
- 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 +2 -2
- package/dist/esm/w/messenger/types.mjs +1 -1
- package/dist/esm/w/messenger/utils.d.mts +31 -0
- package/dist/esm/w/messenger/utils.mjs +1 -0
- 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-C4MkpJSy.mjs} +1 -1
- package/package.json +10 -2
- 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";
|
|
@@ -15037,6 +15037,16 @@ type FaucetCoinInfo = {
|
|
|
15037
15037
|
id: string;
|
|
15038
15038
|
transferTxDigest: string;
|
|
15039
15039
|
};
|
|
15040
|
+
/**
|
|
15041
|
+
* Result of Account.coinObject_with_balance: producing a coin object of the
|
|
15042
|
+
* required balance executes an on-chain split/merge + self-delivery
|
|
15043
|
+
* transaction, so both the coin object id and the transaction digest are
|
|
15044
|
+
* returned (digest undefined only when no transaction was executed).
|
|
15045
|
+
*/
|
|
15046
|
+
interface CoinObjectWithBalanceResult {
|
|
15047
|
+
coin_address?: string;
|
|
15048
|
+
digest?: string;
|
|
15049
|
+
}
|
|
15040
15050
|
interface AccountData {
|
|
15041
15051
|
name?: string;
|
|
15042
15052
|
address: string;
|
|
@@ -15186,7 +15196,7 @@ declare class Account {
|
|
|
15186
15196
|
get_many_coin_object: (txb: Transaction$1, balance_required: (string | bigint | number)[], token_type?: string, address_or_name?: string, network?: ENTRYPOINT) => Promise<TransactionObjectArgument>;
|
|
15187
15197
|
refund_coin(txb: Transaction$1, coin: CoinObject, to_address_or_name?: string): Promise<void>;
|
|
15188
15198
|
transfer(amount: number | string | bigint, token_type?: string, to_address_or_name?: string, from_address_or_name?: string, network?: ENTRYPOINT): Promise<WowTransactionBlockResponse | undefined>;
|
|
15189
|
-
coinObject_with_balance: (balance_required: string | bigint | number, token_type?: string, address_or_name?: string, network?: ENTRYPOINT) => Promise<
|
|
15199
|
+
coinObject_with_balance: (balance_required: string | bigint | number, token_type?: string, address_or_name?: string, network?: ENTRYPOINT) => Promise<CoinObjectWithBalanceResult | undefined>;
|
|
15190
15200
|
/**
|
|
15191
15201
|
* Sign data with the account's private key
|
|
15192
15202
|
*
|
|
@@ -15247,1048 +15257,225 @@ declare class Account {
|
|
|
15247
15257
|
count_messenger_accounts(): Promise<number>;
|
|
15248
15258
|
}
|
|
15249
15259
|
//#endregion
|
|
15250
|
-
//#region src/w/
|
|
15251
|
-
|
|
15252
|
-
|
|
15253
|
-
|
|
15254
|
-
|
|
15260
|
+
//#region src/w/exception.d.ts
|
|
15261
|
+
declare enum WErrors {
|
|
15262
|
+
AccountNotFound = "account not found",
|
|
15263
|
+
AddressNotFound = "address not found",
|
|
15264
|
+
IsValidDescription = "invalid description",
|
|
15265
|
+
IsValidName = "invalid name",
|
|
15266
|
+
IsValidName_AllowEmpty = "invalid name",
|
|
15267
|
+
IsValidEndpoint = "invalid endpoint",
|
|
15268
|
+
IsValidAddress = "invalid address",
|
|
15269
|
+
IsValidArgType = "invalid argument type",
|
|
15270
|
+
IsValidTokenType = "invalid token type",
|
|
15271
|
+
IsValidUint = "invalid uint",
|
|
15272
|
+
IsValidInt = "invalid int",
|
|
15273
|
+
IsValidU8 = "invalid u8",
|
|
15274
|
+
IsValidU16 = "invalid u16",
|
|
15275
|
+
IsValidU32 = "invalid u32",
|
|
15276
|
+
IsValidU64 = "invalid u64",
|
|
15277
|
+
IsValidU128 = "invalid u128",
|
|
15278
|
+
IsValidU256 = "invalid u256",
|
|
15279
|
+
IsValidRate = "invalid rate[0-10000]",
|
|
15280
|
+
IsValidArray = "invalid array",
|
|
15281
|
+
IsValidObjects = "invalid objects",
|
|
15282
|
+
AllInvalid = "one valid at least",
|
|
15283
|
+
InvalidParam = "invalid parameter",
|
|
15284
|
+
IsValidPermissionIndex = "invalid permission index",
|
|
15285
|
+
IsValidKey = "invalid key",
|
|
15286
|
+
Fail = "fail",
|
|
15287
|
+
IsValidIdentifier = "identifier invalid",
|
|
15288
|
+
IsValidHttpUrl = "invalid url",
|
|
15289
|
+
IsValidBizPermissionIndex = "invalid biz-permission id[1000 - 65535]",
|
|
15290
|
+
BcsTypeInvalid = "invalid bcs type",
|
|
15291
|
+
IsValidServiceItemName = "invalid service item name",
|
|
15292
|
+
IsValidCoinType = "not the coin type",
|
|
15293
|
+
IsValidGuardIdentifier = "guard identifier invalid",
|
|
15294
|
+
NoPermission = "no permission",
|
|
15295
|
+
IsValidValue = "invalid value",
|
|
15296
|
+
IsValidValueType = "invalid value type",
|
|
15297
|
+
IsValidLocation = "invalid location",
|
|
15298
|
+
NetworkInvalid = "protocol network not specified",
|
|
15299
|
+
WitnessTypeInvalid = "witness type invalid",
|
|
15300
|
+
AddressCountExceeded = "address count exceeded",
|
|
15301
|
+
NumberCountExceeded = "number count exceeded",
|
|
15302
|
+
NewGuardCheckFailed = "new guard check failed",
|
|
15303
|
+
GuardTableItemLengthExceeded = "guard table item length exceeded",
|
|
15304
|
+
AccountPersistentStorageNotSet = "account persistent storage not set",
|
|
15305
|
+
AccountPersistentStorageNotFound = "account persistent storage not found",
|
|
15306
|
+
AccountNameExist = "account name exist",
|
|
15307
|
+
ConfigPersistentStorageNotSet = "config persistent storage not set",
|
|
15308
|
+
TokenNotFoundLocally = "token not found",
|
|
15309
|
+
LocalMarkNameExist = "local mark name exist",
|
|
15310
|
+
MaxObjectsPerQuery = "max objects per query",
|
|
15311
|
+
ResourceTagCountExceeded = "resource tag count exceeded",
|
|
15312
|
+
ParseObjectContentFailed = "parse object content failed"
|
|
15255
15313
|
}
|
|
15256
|
-
|
|
15257
|
-
|
|
15258
|
-
|
|
15259
|
-
|
|
15314
|
+
declare class WException extends Error {
|
|
15315
|
+
readonly code: WErrors;
|
|
15316
|
+
readonly details?: unknown;
|
|
15317
|
+
readonly path?: string;
|
|
15318
|
+
constructor(error: WErrors, details?: unknown, path?: string);
|
|
15319
|
+
getErrorMessage(): string;
|
|
15320
|
+
getErrorCode(): WErrors;
|
|
15321
|
+
getDetails(): unknown;
|
|
15260
15322
|
}
|
|
15261
|
-
|
|
15262
|
-
|
|
15263
|
-
|
|
15323
|
+
/**
|
|
15324
|
+
* 类型守卫函数,用于判断一个值是否为 WException 类型
|
|
15325
|
+
* @param error - 待判断的值
|
|
15326
|
+
* @returns 如果是 WException 类型则返回 true,同时 TypeScript 会收窄类型
|
|
15327
|
+
*/
|
|
15328
|
+
declare function isWException(error: unknown): error is WException;
|
|
15329
|
+
declare const W_ERROR: (error: WErrors, details?: unknown, path?: string) => never;
|
|
15330
|
+
type WResult<T> = {
|
|
15331
|
+
success: true;
|
|
15332
|
+
data: T;
|
|
15333
|
+
} | {
|
|
15334
|
+
success: false;
|
|
15335
|
+
error: WException;
|
|
15336
|
+
};
|
|
15337
|
+
declare const W_SUCCESS: <T>(data: T) => WResult<T>;
|
|
15338
|
+
declare const W_FAILURE: (error: WErrors, details?: unknown) => WResult<never>;
|
|
15339
|
+
/**
|
|
15340
|
+
* 异常处理装饰器
|
|
15341
|
+
* 捕获函数执行过程中的非 WException 异常,将其包装为 WException 后重新抛出
|
|
15342
|
+
* @param fn - 需要装饰的函数,参数和返回值类型保持不变
|
|
15343
|
+
* @returns 装饰后的函数,类型与原函数一致
|
|
15344
|
+
*/
|
|
15345
|
+
declare function WValidate<T extends (...args: any[]) => any>(fn: T): T;
|
|
15346
|
+
declare const W_SAFE: <T>(fn: () => T, error?: WErrors, details?: unknown) => WResult<T>;
|
|
15347
|
+
declare const W_ENSURE: (condition: boolean, error: WErrors, details?: unknown) => void;
|
|
15348
|
+
declare const W_VALIDATE_PARAM: (param: unknown, validator: (value: unknown) => boolean, error: WErrors, details?: unknown) => void;
|
|
15349
|
+
interface MoveModuleError {
|
|
15350
|
+
module: string;
|
|
15351
|
+
code: number;
|
|
15352
|
+
description: string;
|
|
15353
|
+
}
|
|
15354
|
+
declare const MoveErrors: MoveModuleError[];
|
|
15355
|
+
declare function getMoveErrorDescription(module: string, code: number): string | null;
|
|
15356
|
+
/**
|
|
15357
|
+
* Check whether a parsed ModuleId address belongs to a Wowok system package:
|
|
15358
|
+
* the Wowok framework (0x2) or move-stdlib (0x1).
|
|
15359
|
+
*
|
|
15360
|
+
* Address shapes seen across the two wire formats:
|
|
15361
|
+
* - dry-run Debug text: 64 hex chars WITHOUT the 0x prefix
|
|
15362
|
+
* ("address: 0000…0002") — the raw Debug of AccountAddress;
|
|
15363
|
+
* - formatted effects text: 0x-prefixed, full or shortened ("0x0000…0002", "0x2").
|
|
15364
|
+
*
|
|
15365
|
+
* Normalizes to the minimal hex form (0x and leading zeros stripped) instead
|
|
15366
|
+
* of exact-matching a fixed 0x-prefixed set — the exact match never hit the
|
|
15367
|
+
* dry-run shape, so enrichMoveError never enriched dry-run errors (the very
|
|
15368
|
+
* format shown in its own doc comment). Mirrors the MCP's
|
|
15369
|
+
* extractMoveAbortInfo normalization — keep the two in sync.
|
|
15370
|
+
*/
|
|
15371
|
+
declare function isWowokSystemAddress(address: string): boolean;
|
|
15372
|
+
/**
|
|
15373
|
+
* Parse MoveAbort error and enrich with human-readable description
|
|
15374
|
+
* Matches error against MoveErrors table using module name and error code
|
|
15375
|
+
* Only matches errors from Wowok framework (address 0x2)
|
|
15376
|
+
* @param errorMessage Original error message containing MoveAbort
|
|
15377
|
+
* @returns Enriched error message with description if match found
|
|
15378
|
+
*/
|
|
15379
|
+
declare function enrichMoveError(errorMessage: string): string;
|
|
15380
|
+
//#endregion
|
|
15381
|
+
//#region src/w/call/onchain-constants.d.ts
|
|
15382
|
+
/**
|
|
15383
|
+
* On-chain constants — single source of truth for all numeric limits that
|
|
15384
|
+
* originate from the Move smart contracts in
|
|
15385
|
+
* `d:\wowok\wow\crates\wow-framework\packages\wow-framework\sources\w\*.move`.
|
|
15386
|
+
*
|
|
15387
|
+
* ## Why this file exists
|
|
15388
|
+
*
|
|
15389
|
+
* Before this module, each `*.ts` call file (machine.ts, permission.ts,
|
|
15390
|
+
* order.ts, ...) defined its own `export const MAX_* = N;` next to the call
|
|
15391
|
+
* site. This caused three problems:
|
|
15392
|
+
*
|
|
15393
|
+
* 1. **Drift risk** — when a Move constant changes, the SDK value must be
|
|
15394
|
+
* hunted down across many files. Several SDK files even redefined the
|
|
15395
|
+
* same name (e.g. `MAX_GUARD_COUNT` exists in demand.ts=20, reward.ts=200,
|
|
15396
|
+
* passport.move=20) with different values per object scope.
|
|
15397
|
+
* 2. **Magic numbers in MCP** — the MCP layer (d:\wowok\agent\mcp\src) had
|
|
15398
|
+
* to hardcode numbers like `1000` for `USER_DEFINED_PERM_INDEX_START`
|
|
15399
|
+
* without any import link, so risk rules and analyzers could silently
|
|
15400
|
+
* diverge from the SDK.
|
|
15401
|
+
* 3. **SDK aligned with chain** — the chain caps MAX_NODE_COUNT=100, and
|
|
15402
|
+
* the SDK/MCP enforces 100 to keep generated Machines reviewable. That
|
|
15403
|
+
* distinction was implicit; now it is explicit via the
|
|
15404
|
+
* `MAX_NODE_COUNT_SDK` field.
|
|
15405
|
+
*
|
|
15406
|
+
* ## How to use
|
|
15407
|
+
*
|
|
15408
|
+
* - **Inside the SDK** (`packages/wowok/src/w/call/*.ts`):
|
|
15409
|
+
* ```ts
|
|
15410
|
+
* // Before:
|
|
15411
|
+
* // export const MAX_NODE_COUNT = 100;
|
|
15412
|
+
* // if (nodes.length > MAX_NODE_COUNT) { ... }
|
|
15413
|
+
* // After:
|
|
15414
|
+
* import { MAX_NODE_COUNT } from "./onchain-constants.js";
|
|
15415
|
+
* if (nodes.length > MAX_NODE_COUNT) { ... }
|
|
15416
|
+
* ```
|
|
15417
|
+
* Re-export the named constant from the file where it was previously
|
|
15418
|
+
* defined, OR update internal references to import directly from here.
|
|
15419
|
+
*
|
|
15420
|
+
* - **Inside the MCP** (`agent/mcp/src/knowledge/*.ts`):
|
|
15421
|
+
* ```ts
|
|
15422
|
+
* import { ONCHAIN_CONSTANTS, USER_DEFINED_PERM_INDEX_START } from "@wowok/wowok";
|
|
15423
|
+
* ```
|
|
15424
|
+
* The MCP layer must NEVER redefine these numbers — it imports them.
|
|
15425
|
+
*
|
|
15426
|
+
* - **Inside smart contracts** (`wow-framework/.../w/*.move`):
|
|
15427
|
+
* Unchanged. The Move `const` declarations remain the chain-level source
|
|
15428
|
+
* of truth. This file mirrors them via the `Move source:` JSDoc tags.
|
|
15429
|
+
*
|
|
15430
|
+
* ## Synchronization guarantee
|
|
15431
|
+
*
|
|
15432
|
+
* A unit test in
|
|
15433
|
+
* `agent/mcp/src/knowledge/__tests__/onchain-constants.spec.ts` asserts:
|
|
15434
|
+
* 1. Every value exported here equals the corresponding Move constant
|
|
15435
|
+
* (parsed from `*.move` source).
|
|
15436
|
+
* 2. The MCP import of each constant equals the SDK export (no drift).
|
|
15437
|
+
*
|
|
15438
|
+
* If you change a value here, also update the corresponding `*.move` const
|
|
15439
|
+
* (or vice versa) and run the sync test.
|
|
15440
|
+
*
|
|
15441
|
+
* ## Naming conventions
|
|
15442
|
+
*
|
|
15443
|
+
* - Constants keep their Move name verbatim (e.g. `MAX_FORWARD_ORDER_COUNT`,
|
|
15444
|
+
* not a re-spelled variant).
|
|
15445
|
+
* - When the SDK intentionally enforces a stricter value than the chain, the
|
|
15446
|
+
* chain value is kept as `*_ONCHAIN` and the SDK value as `*_SDK`, with a
|
|
15447
|
+
* bare `MAX_NODE_COUNT` alias pointing to the SDK value for ergonomics.
|
|
15448
|
+
* - `USER_DEFINED_PERM_INDEX_START` is defined in Move as
|
|
15449
|
+
* `permission.move:17 const USER_DEFINED_PERM_INDEX_START: u16 = 1000;`
|
|
15450
|
+
* and enforced by `permission::USER_DEFINED_PERM_INDEX()` (package-only
|
|
15451
|
+
* assert). The constant is mirrored here so MCP risk rules (R-M3-08) can
|
|
15452
|
+
* import a single canonical value.
|
|
15453
|
+
*/
|
|
15454
|
+
/**
|
|
15455
|
+
* All on-chain numeric constants, grouped by source object.
|
|
15456
|
+
*
|
|
15457
|
+
* Frozen via `as const` so literal-type inference works in consumers
|
|
15458
|
+
* (e.g. `type PermIndex = number & { __brand: ... }` patterns).
|
|
15459
|
+
*/
|
|
15460
|
+
declare const ONCHAIN_CONSTANTS: {
|
|
15264
15461
|
/**
|
|
15265
|
-
*
|
|
15266
|
-
*
|
|
15462
|
+
* Chain-level maximum number of nodes a single Machine may contain.
|
|
15463
|
+
*
|
|
15464
|
+
* Move source: machine.move:23 `const MAX_NODE_COUNT: u64 = 100;`
|
|
15465
|
+
*
|
|
15466
|
+
* The chain caps at 100 (aligned with MAX_NODE_COUNT_SDK) so any Machine
|
|
15467
|
+
* that passes chain validation is also human-reviewable. Use
|
|
15468
|
+
* `MAX_NODE_COUNT` (the alias) for SDK-side validation; use this field
|
|
15469
|
+
* only when you need to compare against the chain hard limit (e.g. for
|
|
15470
|
+
* diagnostic messages).
|
|
15267
15471
|
*/
|
|
15268
|
-
|
|
15269
|
-
private cacheKey;
|
|
15472
|
+
readonly MAX_NODE_COUNT_ONCHAIN: 100;
|
|
15270
15473
|
/**
|
|
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.
|
|
15474
|
+
* SDK/MCP-enforced maximum node count (matches chain hard limit).
|
|
15475
|
+
*
|
|
15476
|
+
* Rationale: 100-node Machines are the chain ceiling — a larger Machine
|
|
15477
|
+
* is impossible on-chain and any smaller one must stay reviewable by a
|
|
15478
|
+
* human or an AI auditor. MCP risk rule R-M3-XX fires above this.
|
|
16292
15479
|
*/
|
|
16293
15480
|
readonly MAX_NODE_COUNT_SDK: 100;
|
|
16294
15481
|
/**
|
|
@@ -16754,6 +15941,59 @@ declare const guardAdd: (tx: Transaction$1, passport: PassportObject, guard: Gua
|
|
|
16754
15941
|
declare function guardClear(tx: Transaction$1, passport: PassportObject): void;
|
|
16755
15942
|
declare function verify(tx: Transaction$1, passport: PassportObject): TransactionResult$1;
|
|
16756
15943
|
//#endregion
|
|
15944
|
+
//#region src/w/query/received.d.ts
|
|
15945
|
+
interface QueryReceived {
|
|
15946
|
+
name_or_address: AccountOrMark_Address;
|
|
15947
|
+
/**
|
|
15948
|
+
* Type filter for querying received objects.
|
|
15949
|
+
* - If undefined or null: query all types (equivalent to the old all_type=true)
|
|
15950
|
+
* - If "CoinWrapper": query CoinWrapper type for the object's token (equivalent to the old all_type=false)
|
|
15951
|
+
* - If string: query specific StructType
|
|
15952
|
+
*/
|
|
15953
|
+
type?: string | "CoinWrapper" | null;
|
|
15954
|
+
/**
|
|
15955
|
+
* An optional paging cursor. If provided, the query will start from the next item after the specified
|
|
15956
|
+
* cursor. Default to start from the first item if not specified.
|
|
15957
|
+
*/
|
|
15958
|
+
cursor?: string | null | undefined;
|
|
15959
|
+
/** Max number of items returned per page, default to [QUERY_MAX_RESULT_LIMIT] if not specified. */
|
|
15960
|
+
limit?: number | null | undefined;
|
|
15961
|
+
no_cache?: boolean;
|
|
15962
|
+
network?: ENTRYPOINT;
|
|
15963
|
+
}
|
|
15964
|
+
interface ReceivedBalanceObject {
|
|
15965
|
+
id: string;
|
|
15966
|
+
balance: BalanceType;
|
|
15967
|
+
payment: string;
|
|
15968
|
+
/**
|
|
15969
|
+
* Type of the received object (or the inner coin type). Used for
|
|
15970
|
+
* token_type fallback detection in CoinWrapper queries for accounts.
|
|
15971
|
+
*/
|
|
15972
|
+
type?: string;
|
|
15973
|
+
/** Object version, required to build a Receiving<T> argument for owner_receive. */
|
|
15974
|
+
version?: string;
|
|
15975
|
+
/** Object digest, required to build a Receiving<T> argument for owner_receive. */
|
|
15976
|
+
digest?: string;
|
|
15977
|
+
}
|
|
15978
|
+
interface ReceivedBalance {
|
|
15979
|
+
balance: BalanceType;
|
|
15980
|
+
token_type: string;
|
|
15981
|
+
received: ReceivedBalanceObject[];
|
|
15982
|
+
}
|
|
15983
|
+
type ReceivedBalanceOrRecently = ReceivedBalance | "recently";
|
|
15984
|
+
type ReceivedObjectsOrRecently = ReceivedObjects | "recently";
|
|
15985
|
+
interface ReceivedNormal {
|
|
15986
|
+
id: string;
|
|
15987
|
+
type: string;
|
|
15988
|
+
content_raw?: any;
|
|
15989
|
+
/** Object version, required to build a Receiving<T> argument for owner_receive. */
|
|
15990
|
+
version?: string;
|
|
15991
|
+
/** Object digest, required to build a Receiving<T> argument for owner_receive. */
|
|
15992
|
+
digest?: string;
|
|
15993
|
+
}
|
|
15994
|
+
type ReceivedObjects = ReceivedNormal[] | ReceivedBalance;
|
|
15995
|
+
declare const query_received: (query: QueryReceived) => Promise<ReceivedObjects>;
|
|
15996
|
+
//#endregion
|
|
16757
15997
|
//#region src/w/call/permission.d.ts
|
|
16758
15998
|
declare enum BuiltinPermissionIndex {
|
|
16759
15999
|
REPOSITORY_NEW = 100,
|
|
@@ -17630,6 +16870,21 @@ declare const numberToObjectType: Record<number, ObjectType>;
|
|
|
17630
16870
|
* child objects (0xf1), system objects, and the reserved 0x21/0x22 gaps.
|
|
17631
16871
|
*/
|
|
17632
16872
|
declare function objectTypeFromAddress(address: string): ObjectType | null;
|
|
16873
|
+
type WowAddressKind = "user" | "object" | "unknown";
|
|
16874
|
+
/**
|
|
16875
|
+
* Classify a wow address by its first byte (mirror of wow-framework
|
|
16876
|
+
* w/common/util.move): 0x00 → user; 0x10..=0x24 / 0xf1 → object; any other
|
|
16877
|
+
* first byte cannot exist on-chain → unknown. Short builtin forms ("0x5",
|
|
16878
|
+
* "0xaaa") are canonicalized to 32-byte before classification (their big-endian
|
|
16879
|
+
* first byte is 0x00 → user).
|
|
16880
|
+
*/
|
|
16881
|
+
declare function wowAddressKind(address: string): WowAddressKind;
|
|
16882
|
+
/**
|
|
16883
|
+
* Human type name for a typed business-object address (0x19 → "Treasury").
|
|
16884
|
+
* Reuses objectTypeFromAddress as the SINGLE first-byte→type mapping source.
|
|
16885
|
+
* Returns undefined for user / 0xf1 / unknown / reserved 0x21-0x22 addresses.
|
|
16886
|
+
*/
|
|
16887
|
+
declare function wowObjectTypeNameForAddress(address: string): string | undefined;
|
|
17633
16888
|
/**
|
|
17634
16889
|
* Converts a numeric value to ObjectType enum
|
|
17635
16890
|
* @param value Numeric value to convert
|
|
@@ -17701,938 +16956,1712 @@ interface ObjectBase {
|
|
|
17701
16956
|
query_name?: string;
|
|
17702
16957
|
content_raw?: any;
|
|
17703
16958
|
}
|
|
17704
|
-
interface Im {
|
|
17705
|
-
at: string;
|
|
17706
|
-
status: string;
|
|
17707
|
-
join_time: number;
|
|
16959
|
+
interface Im {
|
|
16960
|
+
at: string;
|
|
16961
|
+
status: string;
|
|
16962
|
+
join_time: number;
|
|
16963
|
+
description: string;
|
|
16964
|
+
}
|
|
16965
|
+
interface ObjectContact extends ObjectBase {
|
|
16966
|
+
description: string;
|
|
16967
|
+
permission: string;
|
|
16968
|
+
location: string;
|
|
16969
|
+
ims: Im[];
|
|
16970
|
+
}
|
|
16971
|
+
interface ObjectEntityRegistrar extends ObjectBase {
|
|
16972
|
+
entity_count: number;
|
|
16973
|
+
}
|
|
16974
|
+
interface ObjectEntityLinker extends ObjectBase {
|
|
16975
|
+
entity_count: number;
|
|
16976
|
+
}
|
|
16977
|
+
interface ObjectResource extends ObjectBase {
|
|
16978
|
+
entity_count: number;
|
|
16979
|
+
}
|
|
16980
|
+
interface ObjectEntity extends ObjectBase {
|
|
16981
|
+
entity_count: number;
|
|
16982
|
+
}
|
|
16983
|
+
interface TableItem_EntityLinker extends ObjectBase {
|
|
16984
|
+
address: string;
|
|
16985
|
+
pos: number;
|
|
16986
|
+
count: number;
|
|
16987
|
+
votes: VoteInRegistrar[];
|
|
16988
|
+
}
|
|
16989
|
+
interface TableItem_EntityRegistrar extends ObjectBase {
|
|
16990
|
+
address: string;
|
|
16991
|
+
description: string;
|
|
16992
|
+
time: number;
|
|
16993
|
+
referrer: string | null;
|
|
16994
|
+
mark_object: string | null;
|
|
16995
|
+
records: RecordsInEntity[];
|
|
16996
|
+
}
|
|
16997
|
+
interface TableItem_AddressMark extends ObjectBase {
|
|
16998
|
+
entity: string;
|
|
16999
|
+
name: string;
|
|
17000
|
+
tags: string[];
|
|
17001
|
+
}
|
|
17002
|
+
interface ServiceGuard {
|
|
17003
|
+
guard: string;
|
|
17004
|
+
service_identifier?: number | null;
|
|
17005
|
+
}
|
|
17006
|
+
interface ObjectDemand extends ObjectBase {
|
|
17007
|
+
description: string;
|
|
17008
|
+
location: string;
|
|
17009
|
+
rewards: string[];
|
|
17010
|
+
guards: ServiceGuard[];
|
|
17011
|
+
presenters_count: number;
|
|
17012
|
+
um: string | null;
|
|
17013
|
+
permission: string;
|
|
17014
|
+
}
|
|
17015
|
+
interface ObjectMachine extends ObjectBase {
|
|
17016
|
+
description: string;
|
|
17017
|
+
node_count: number;
|
|
17018
|
+
consensus_repositories: string[];
|
|
17019
|
+
bPaused: boolean;
|
|
17020
|
+
bPublished: boolean;
|
|
17021
|
+
um: string | null;
|
|
17022
|
+
permission: string;
|
|
17023
|
+
}
|
|
17024
|
+
interface ServiceSale$1 {
|
|
17025
|
+
name: string;
|
|
17026
|
+
price: BalanceType;
|
|
17027
|
+
stock: BalanceType;
|
|
17028
|
+
suspension: boolean;
|
|
17029
|
+
wip: string;
|
|
17030
|
+
wip_hash: string;
|
|
17031
|
+
}
|
|
17032
|
+
interface PurchasedItem {
|
|
17033
|
+
name: string;
|
|
17034
|
+
price: BalanceType;
|
|
17035
|
+
quantity: BalanceType;
|
|
17036
|
+
wip_hash: string;
|
|
17037
|
+
}
|
|
17038
|
+
interface ObjectOrder extends ObjectBase {
|
|
17039
|
+
items: PurchasedItem[];
|
|
17040
|
+
discount: string | null;
|
|
17041
|
+
progress: string | null;
|
|
17042
|
+
machine: string | null;
|
|
17043
|
+
amount: BalanceType;
|
|
17044
|
+
builder: string;
|
|
17045
|
+
service: string;
|
|
17046
|
+
dispute: string[];
|
|
17047
|
+
agent: string[];
|
|
17048
|
+
allocation: string | null;
|
|
17049
|
+
claimed_by: string | null;
|
|
17050
|
+
required_info: string | null;
|
|
17051
|
+
time: string | number;
|
|
17052
|
+
}
|
|
17053
|
+
interface NamedOperator$1 {
|
|
17054
|
+
name: string;
|
|
17055
|
+
operators: string[];
|
|
17056
|
+
}
|
|
17057
|
+
interface ProgressSession {
|
|
17058
|
+
next_node: string;
|
|
17059
|
+
forwards: ProgressSessionHolder[];
|
|
17060
|
+
weights: number;
|
|
17061
|
+
threshold: number;
|
|
17062
|
+
}
|
|
17063
|
+
interface ProgressSessionHolder {
|
|
17064
|
+
forward: string;
|
|
17065
|
+
who: string | null;
|
|
17066
|
+
retained_submission: GuardSubmission[];
|
|
17067
|
+
msg: string;
|
|
17068
|
+
accomplished: boolean;
|
|
17069
|
+
time: number;
|
|
17070
|
+
}
|
|
17071
|
+
interface ObjectProgress extends ObjectBase {
|
|
17072
|
+
machine: string;
|
|
17073
|
+
context_repositories: string[];
|
|
17074
|
+
current: string;
|
|
17075
|
+
task: string | null;
|
|
17076
|
+
namedOperator: NamedOperator$1[];
|
|
17077
|
+
session: ProgressSession[];
|
|
17078
|
+
history_count: number;
|
|
17079
|
+
current_time: number;
|
|
17080
|
+
}
|
|
17081
|
+
declare enum AmountType {
|
|
17082
|
+
GuardU64Identifier = 0,
|
|
17083
|
+
Fixed = 1
|
|
17084
|
+
}
|
|
17085
|
+
type Amount = {
|
|
17086
|
+
type: AmountType.GuardU64Identifier;
|
|
17087
|
+
value: number;
|
|
17088
|
+
} | {
|
|
17089
|
+
type: AmountType.Fixed;
|
|
17090
|
+
value: BalanceType;
|
|
17091
|
+
};
|
|
17092
|
+
interface RewardGuard {
|
|
17093
|
+
guard: string;
|
|
17094
|
+
recipient: Recipient;
|
|
17095
|
+
amount: Amount;
|
|
17096
|
+
expiration_time?: number;
|
|
17097
|
+
store_from_id?: number | null;
|
|
17098
|
+
}
|
|
17099
|
+
interface ObjectReward extends ObjectBase {
|
|
17100
|
+
description: string;
|
|
17101
|
+
guards: RewardGuard[];
|
|
17102
|
+
balance: BalanceType;
|
|
17103
|
+
guard_not_added_expiration_time: string | number | null;
|
|
17104
|
+
record_count: number;
|
|
17105
|
+
um: string | null;
|
|
17106
|
+
permission: string;
|
|
17107
|
+
}
|
|
17108
|
+
interface ObjectService extends ObjectBase {
|
|
17109
|
+
description: string;
|
|
17110
|
+
location: string;
|
|
17111
|
+
sales: ServiceSale$1[];
|
|
17112
|
+
repositories: string[];
|
|
17113
|
+
buy_guard: string | null;
|
|
17114
|
+
machine: string | null;
|
|
17115
|
+
bPublished: boolean;
|
|
17116
|
+
bPaused: boolean;
|
|
17117
|
+
customer_required: string[];
|
|
17118
|
+
arbitrations: string[];
|
|
17119
|
+
compensation_fund: BalanceType;
|
|
17120
|
+
paused_time: number | null;
|
|
17121
|
+
setting_lock_duration: string | number | bigint;
|
|
17122
|
+
order_allocators: Allocators | null;
|
|
17123
|
+
rewards: string[];
|
|
17124
|
+
um: string | null;
|
|
17125
|
+
permission: string;
|
|
17126
|
+
}
|
|
17127
|
+
interface ArbVoted {
|
|
17128
|
+
voter: string;
|
|
17129
|
+
agrees: number[];
|
|
17130
|
+
weight: number;
|
|
17131
|
+
time: number;
|
|
17132
|
+
}
|
|
17133
|
+
interface ArbProposition {
|
|
17134
|
+
name: string;
|
|
17135
|
+
votes: number;
|
|
17136
|
+
}
|
|
17137
|
+
interface ArbIndemnity {
|
|
17138
|
+
amount: BalanceType;
|
|
17139
|
+
time: number;
|
|
17140
|
+
}
|
|
17141
|
+
declare enum ArbStatus {
|
|
17142
|
+
Principal_confirming = 0,
|
|
17143
|
+
Arbitrator_confirming = 1,
|
|
17144
|
+
Voting = 2,
|
|
17145
|
+
Arbitrated = 3,
|
|
17146
|
+
Objectionable = 4,
|
|
17147
|
+
Finished = 5,
|
|
17148
|
+
Withdrawn = 6
|
|
17149
|
+
}
|
|
17150
|
+
interface ObjectArb extends ObjectBase {
|
|
17708
17151
|
description: string;
|
|
17152
|
+
arbitration: string;
|
|
17153
|
+
order: string;
|
|
17154
|
+
voted: ArbVoted[];
|
|
17155
|
+
proposition: ArbProposition[];
|
|
17156
|
+
fee: BalanceType;
|
|
17157
|
+
feedback: string;
|
|
17158
|
+
indemnity?: ArbIndemnity | null;
|
|
17159
|
+
voting_deadline?: number | string | bigint;
|
|
17160
|
+
objection: string;
|
|
17161
|
+
status: ArbStatus;
|
|
17162
|
+
compensation_time: number | null;
|
|
17163
|
+
time: number;
|
|
17709
17164
|
}
|
|
17710
|
-
|
|
17165
|
+
declare enum DiscountType {
|
|
17166
|
+
RATES = 0,
|
|
17167
|
+
// off%
|
|
17168
|
+
FIXED = 1
|
|
17169
|
+
}
|
|
17170
|
+
interface ObjectDiscount extends ObjectBase {
|
|
17171
|
+
name: string;
|
|
17172
|
+
discount_type: DiscountType;
|
|
17173
|
+
benchmark: BalanceType | null;
|
|
17174
|
+
off: BalanceType;
|
|
17175
|
+
time_start: string | number;
|
|
17176
|
+
time_end: string | number;
|
|
17177
|
+
service: string;
|
|
17178
|
+
transferable: boolean;
|
|
17179
|
+
}
|
|
17180
|
+
interface AmountFromDepositGuard {
|
|
17181
|
+
guard: string;
|
|
17182
|
+
identifier?: number | null;
|
|
17183
|
+
store_from_id?: number | null;
|
|
17184
|
+
}
|
|
17185
|
+
interface AmountFromWithdrawGuard {
|
|
17186
|
+
guard: string;
|
|
17187
|
+
identifier: number;
|
|
17188
|
+
store_from_id?: number | null;
|
|
17189
|
+
}
|
|
17190
|
+
interface ObjectProof extends ObjectBase {
|
|
17191
|
+
description: string;
|
|
17192
|
+
proof: string;
|
|
17193
|
+
server_pubkey: string;
|
|
17194
|
+
server_signature: string;
|
|
17195
|
+
proof_type: number;
|
|
17196
|
+
item_count: number | null;
|
|
17197
|
+
about_address: string | null;
|
|
17198
|
+
signer: string;
|
|
17199
|
+
time: number;
|
|
17200
|
+
}
|
|
17201
|
+
interface ObjectTreasury extends ObjectBase {
|
|
17711
17202
|
description: string;
|
|
17203
|
+
balance: BalanceType;
|
|
17204
|
+
history_count: number;
|
|
17205
|
+
external_deposit_guard: AmountFromDepositGuard[];
|
|
17206
|
+
external_withdraw_guard: AmountFromWithdrawGuard[];
|
|
17207
|
+
inflow: BalanceType;
|
|
17208
|
+
outflow: BalanceType;
|
|
17209
|
+
um: string | null;
|
|
17712
17210
|
permission: string;
|
|
17713
|
-
location: string;
|
|
17714
|
-
ims: Im[];
|
|
17715
17211
|
}
|
|
17716
|
-
|
|
17717
|
-
|
|
17212
|
+
declare enum TreasuryOp {
|
|
17213
|
+
Withdraw = 0,
|
|
17214
|
+
Deposit = 1,
|
|
17215
|
+
Receive = 2
|
|
17718
17216
|
}
|
|
17719
|
-
interface
|
|
17720
|
-
|
|
17217
|
+
interface TreasuryRecord {
|
|
17218
|
+
op: TreasuryOp;
|
|
17219
|
+
signer: string;
|
|
17220
|
+
external_guard: string | null;
|
|
17221
|
+
amount: BalanceType;
|
|
17222
|
+
time: number | string | bigint;
|
|
17223
|
+
store_from_id?: string | null;
|
|
17721
17224
|
}
|
|
17722
|
-
interface
|
|
17723
|
-
|
|
17225
|
+
interface WReceivedObject extends ObjectBase {
|
|
17226
|
+
balance: BalanceType;
|
|
17227
|
+
payment: string;
|
|
17724
17228
|
}
|
|
17725
|
-
interface
|
|
17726
|
-
|
|
17229
|
+
interface PolicyWriteGuard {
|
|
17230
|
+
guard: string;
|
|
17231
|
+
id_from_submission?: number;
|
|
17232
|
+
data_from_submission?: number;
|
|
17727
17233
|
}
|
|
17728
|
-
|
|
17729
|
-
|
|
17730
|
-
|
|
17731
|
-
|
|
17732
|
-
votes: VoteInRegistrar[];
|
|
17234
|
+
declare enum IdFrom {
|
|
17235
|
+
None = 0,
|
|
17236
|
+
Clock = 1,
|
|
17237
|
+
Signer = 2
|
|
17733
17238
|
}
|
|
17734
|
-
|
|
17735
|
-
|
|
17239
|
+
type IdFromInput = IdFrom | string;
|
|
17240
|
+
declare const parseIdFrom: (input: IdFromInput) => IdFrom;
|
|
17241
|
+
declare const idFromToString: (type: IdFrom) => string;
|
|
17242
|
+
declare const isValidIdFromInput: (input: unknown) => input is IdFromInput;
|
|
17243
|
+
interface PolicyRule {
|
|
17244
|
+
name: string;
|
|
17736
17245
|
description: string;
|
|
17737
|
-
|
|
17738
|
-
|
|
17739
|
-
|
|
17740
|
-
|
|
17246
|
+
write_guard: PolicyWriteGuard[];
|
|
17247
|
+
quote_guard?: string | null;
|
|
17248
|
+
id_from: IdFromInput;
|
|
17249
|
+
value_type: ValueTypeInput;
|
|
17741
17250
|
}
|
|
17742
|
-
interface
|
|
17251
|
+
interface TableItem_RepositoryData extends ObjectBase {
|
|
17743
17252
|
entity: string;
|
|
17744
17253
|
name: string;
|
|
17745
|
-
|
|
17254
|
+
value: Uint8Array;
|
|
17255
|
+
data: {
|
|
17256
|
+
value_type: ValueTypeInput;
|
|
17257
|
+
value: SupportedValue;
|
|
17258
|
+
};
|
|
17746
17259
|
}
|
|
17747
|
-
interface
|
|
17748
|
-
|
|
17749
|
-
|
|
17260
|
+
interface TableItem_RewardRecord extends ObjectBase {
|
|
17261
|
+
recipient: string;
|
|
17262
|
+
/** RecipientRecord has NO guard (reward.move L102-105 = {total, amount}).
|
|
17263
|
+
* Kept optional for backwards compat — the parser never sets it. */
|
|
17264
|
+
guard?: string | null;
|
|
17265
|
+
total: BalanceType;
|
|
17266
|
+
record: {
|
|
17267
|
+
/** Guard that verified the claim (reward.move Record.guard, L95-100). */guard?: string | null;
|
|
17268
|
+
amount: BalanceType;
|
|
17269
|
+
time: number;
|
|
17270
|
+
store_from_id?: string | null;
|
|
17271
|
+
}[];
|
|
17750
17272
|
}
|
|
17751
|
-
interface
|
|
17273
|
+
interface ObjectRepository extends ObjectBase {
|
|
17752
17274
|
description: string;
|
|
17753
|
-
|
|
17275
|
+
policies: PolicyRule[];
|
|
17276
|
+
data_count: number;
|
|
17754
17277
|
rewards: string[];
|
|
17755
|
-
guards: ServiceGuard[];
|
|
17756
|
-
presenters_count: number;
|
|
17757
17278
|
um: string | null;
|
|
17758
17279
|
permission: string;
|
|
17759
17280
|
}
|
|
17760
|
-
interface
|
|
17281
|
+
interface ObjectPersonal extends ObjectBase {
|
|
17282
|
+
address: string;
|
|
17283
|
+
like: number;
|
|
17284
|
+
dislike: number;
|
|
17285
|
+
favor: number;
|
|
17286
|
+
info: RecordsInEntity[];
|
|
17761
17287
|
description: string;
|
|
17762
|
-
|
|
17763
|
-
|
|
17764
|
-
|
|
17765
|
-
|
|
17288
|
+
referrer: string | null;
|
|
17289
|
+
mark_object: string | null;
|
|
17290
|
+
details: VoteInRegistrar[];
|
|
17291
|
+
active_tx: string | null;
|
|
17292
|
+
passive_tx: string | null;
|
|
17293
|
+
time: number;
|
|
17294
|
+
}
|
|
17295
|
+
interface ObjectPermission extends ObjectBase {
|
|
17296
|
+
builder: string;
|
|
17297
|
+
admin: string[];
|
|
17298
|
+
description: string;
|
|
17299
|
+
entity_count: number;
|
|
17300
|
+
perm_remark: {
|
|
17301
|
+
index: PermissionIndexType;
|
|
17302
|
+
remark: string;
|
|
17303
|
+
}[];
|
|
17766
17304
|
um: string | null;
|
|
17767
|
-
permission: string;
|
|
17768
17305
|
}
|
|
17769
|
-
interface
|
|
17770
|
-
|
|
17771
|
-
|
|
17772
|
-
|
|
17773
|
-
|
|
17774
|
-
|
|
17775
|
-
|
|
17306
|
+
interface ObjectGuard extends ObjectBase {
|
|
17307
|
+
description: string;
|
|
17308
|
+
table: GuardTableItem[];
|
|
17309
|
+
input: Uint8Array;
|
|
17310
|
+
root: GuardNode;
|
|
17311
|
+
rep_quote: Map<string, string[]>;
|
|
17312
|
+
relies: string[];
|
|
17313
|
+
relies_logic_and: boolean;
|
|
17314
|
+
rep: boolean;
|
|
17315
|
+
immutable: boolean;
|
|
17776
17316
|
}
|
|
17777
|
-
|
|
17778
|
-
|
|
17779
|
-
|
|
17780
|
-
|
|
17781
|
-
wip_hash: string;
|
|
17317
|
+
declare enum AllocationMode {
|
|
17318
|
+
Amount = 0,
|
|
17319
|
+
Rate = 1,
|
|
17320
|
+
Surplus = 2
|
|
17782
17321
|
}
|
|
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;
|
|
17322
|
+
interface AllocationSharing {
|
|
17323
|
+
who: Recipient;
|
|
17324
|
+
sharing: BalanceType;
|
|
17325
|
+
mode: AllocationMode;
|
|
17797
17326
|
}
|
|
17798
|
-
interface
|
|
17799
|
-
|
|
17800
|
-
|
|
17327
|
+
interface Allocator {
|
|
17328
|
+
guard: string;
|
|
17329
|
+
sharing: AllocationSharing[];
|
|
17330
|
+
fix?: BalanceType;
|
|
17331
|
+
max?: BalanceType | null;
|
|
17801
17332
|
}
|
|
17802
|
-
interface
|
|
17803
|
-
|
|
17804
|
-
|
|
17805
|
-
|
|
17806
|
-
threshold: number;
|
|
17333
|
+
interface Allocators {
|
|
17334
|
+
description: string;
|
|
17335
|
+
threshold: BalanceType;
|
|
17336
|
+
allocators: Allocator[];
|
|
17807
17337
|
}
|
|
17808
|
-
interface
|
|
17809
|
-
|
|
17810
|
-
|
|
17811
|
-
|
|
17812
|
-
|
|
17813
|
-
accomplished: boolean;
|
|
17814
|
-
time: number;
|
|
17338
|
+
interface PaymentInfo {
|
|
17339
|
+
for_object?: string | null;
|
|
17340
|
+
for_guard?: string | null;
|
|
17341
|
+
remark: string;
|
|
17342
|
+
index: number | bigint | string;
|
|
17815
17343
|
}
|
|
17816
|
-
interface
|
|
17817
|
-
|
|
17818
|
-
|
|
17819
|
-
|
|
17820
|
-
|
|
17821
|
-
|
|
17822
|
-
|
|
17823
|
-
|
|
17824
|
-
|
|
17344
|
+
interface ObjectPayment extends ObjectBase {
|
|
17345
|
+
record: {
|
|
17346
|
+
recipient: Recipient;
|
|
17347
|
+
amount: BalanceType;
|
|
17348
|
+
}[];
|
|
17349
|
+
amount: BalanceType;
|
|
17350
|
+
time: string;
|
|
17351
|
+
from_object?: string | null;
|
|
17352
|
+
signer: string;
|
|
17353
|
+
info: PaymentInfo;
|
|
17825
17354
|
}
|
|
17826
|
-
|
|
17827
|
-
|
|
17828
|
-
|
|
17355
|
+
interface ObjectAllocation extends ObjectBase {
|
|
17356
|
+
description: string;
|
|
17357
|
+
allocators: Allocator[];
|
|
17358
|
+
balance: BalanceType;
|
|
17359
|
+
payment_info?: PaymentInfo;
|
|
17360
|
+
payment: string[];
|
|
17829
17361
|
}
|
|
17830
|
-
type
|
|
17831
|
-
|
|
17832
|
-
value: number;
|
|
17362
|
+
type VoteWeight = {
|
|
17363
|
+
GuardIdentifier: number;
|
|
17833
17364
|
} | {
|
|
17834
|
-
|
|
17835
|
-
value: BalanceType;
|
|
17365
|
+
FixedValue: number;
|
|
17836
17366
|
};
|
|
17837
|
-
interface
|
|
17367
|
+
interface VotingGuard {
|
|
17838
17368
|
guard: string;
|
|
17839
|
-
|
|
17840
|
-
amount: Amount;
|
|
17841
|
-
expiration_time?: number;
|
|
17842
|
-
store_from_id?: number | null;
|
|
17369
|
+
vote_weight: VoteWeight;
|
|
17843
17370
|
}
|
|
17844
|
-
interface
|
|
17371
|
+
interface ObjectArbitration extends ObjectBase {
|
|
17845
17372
|
description: string;
|
|
17846
|
-
|
|
17373
|
+
location: string;
|
|
17374
|
+
voting_guard: VotingGuard[];
|
|
17375
|
+
usage_guard?: string | null;
|
|
17376
|
+
fee: BalanceType;
|
|
17847
17377
|
balance: BalanceType;
|
|
17848
|
-
|
|
17849
|
-
record_count: number;
|
|
17378
|
+
bPaused: boolean;
|
|
17850
17379
|
um: string | null;
|
|
17851
17380
|
permission: string;
|
|
17852
17381
|
}
|
|
17853
|
-
interface
|
|
17854
|
-
|
|
17855
|
-
|
|
17856
|
-
|
|
17857
|
-
|
|
17858
|
-
|
|
17859
|
-
|
|
17860
|
-
|
|
17861
|
-
|
|
17862
|
-
|
|
17863
|
-
|
|
17864
|
-
|
|
17865
|
-
|
|
17866
|
-
|
|
17867
|
-
|
|
17868
|
-
|
|
17869
|
-
|
|
17382
|
+
interface GuardSubmission {
|
|
17383
|
+
identifier: number;
|
|
17384
|
+
value_type: ValueTypeInput;
|
|
17385
|
+
value: SupportedValue;
|
|
17386
|
+
}
|
|
17387
|
+
interface GuardInPassport {
|
|
17388
|
+
guard: string;
|
|
17389
|
+
result: boolean;
|
|
17390
|
+
impack: boolean;
|
|
17391
|
+
relies: string[];
|
|
17392
|
+
relies_logic_and: boolean;
|
|
17393
|
+
submission: GuardSubmission;
|
|
17394
|
+
}
|
|
17395
|
+
interface ObjectPassport extends ObjectBase {
|
|
17396
|
+
info: GuardInPassport[];
|
|
17397
|
+
result: boolean;
|
|
17398
|
+
tx_hash: string;
|
|
17399
|
+
impack_guard: string[];
|
|
17400
|
+
time: number;
|
|
17401
|
+
signer: string;
|
|
17402
|
+
has_verified: boolean;
|
|
17403
|
+
}
|
|
17404
|
+
interface TableItem_PermissionPerm extends ObjectBase {
|
|
17405
|
+
address: string;
|
|
17406
|
+
perm: number[];
|
|
17407
|
+
}
|
|
17408
|
+
/** A single PermissionItem of the global entity-permission reverse index. */
|
|
17409
|
+
interface EntityPermissionItemView {
|
|
17410
|
+
role: number;
|
|
17870
17411
|
permission: string;
|
|
17412
|
+
time: number;
|
|
17871
17413
|
}
|
|
17872
|
-
|
|
17873
|
-
|
|
17874
|
-
|
|
17875
|
-
|
|
17414
|
+
/** Dynamic-field item of EntityPermission (0xaad): entity address → items. */
|
|
17415
|
+
interface TableItem_EntityPermission extends ObjectBase {
|
|
17416
|
+
address: string;
|
|
17417
|
+
items: EntityPermissionItemView[];
|
|
17418
|
+
}
|
|
17419
|
+
/** Contact membership item of EntityContact (0xaa9). */
|
|
17420
|
+
interface EntityContactItemView {
|
|
17421
|
+
contact: string;
|
|
17876
17422
|
time: number;
|
|
17877
17423
|
}
|
|
17878
|
-
|
|
17879
|
-
|
|
17880
|
-
|
|
17424
|
+
/** Dynamic-field item of EntityContact (0xaa9): entity address → items. */
|
|
17425
|
+
interface TableItem_EntityContact extends ObjectBase {
|
|
17426
|
+
address: string;
|
|
17427
|
+
items: EntityContactItemView[];
|
|
17881
17428
|
}
|
|
17882
|
-
|
|
17883
|
-
|
|
17429
|
+
/** Core reverse link of ObjectLinkerCore (0xaae). */
|
|
17430
|
+
interface CoreLinkView {
|
|
17431
|
+
who: string;
|
|
17884
17432
|
time: number;
|
|
17885
17433
|
}
|
|
17886
|
-
|
|
17887
|
-
|
|
17888
|
-
|
|
17889
|
-
|
|
17890
|
-
Arbitrated = 3,
|
|
17891
|
-
Objectionable = 4,
|
|
17892
|
-
Finished = 5,
|
|
17893
|
-
Withdrawn = 6
|
|
17434
|
+
/** Dynamic-field item of ObjectLinkerCore (0xaae): target → core links. */
|
|
17435
|
+
interface TableItem_ObjectLinkerCore extends ObjectBase {
|
|
17436
|
+
address: string;
|
|
17437
|
+
items: CoreLinkView[];
|
|
17894
17438
|
}
|
|
17895
|
-
|
|
17896
|
-
|
|
17897
|
-
|
|
17439
|
+
/** Tx reverse link of ObjectLinkerTx (0xaaf). */
|
|
17440
|
+
interface TxLinkView {
|
|
17441
|
+
who: string;
|
|
17442
|
+
time: number;
|
|
17443
|
+
}
|
|
17444
|
+
/** Dynamic-field item of ObjectLinkerTx (0xaaf): target → tx buffer links. */
|
|
17445
|
+
interface TableItem_ObjectLinkerTx extends ObjectBase {
|
|
17446
|
+
address: string;
|
|
17447
|
+
items: TxLinkView[];
|
|
17448
|
+
}
|
|
17449
|
+
/** A single OrderRoleItem of the global entity-order reverse index. */
|
|
17450
|
+
interface EntityOrderItemView {
|
|
17451
|
+
role: number;
|
|
17898
17452
|
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
17453
|
time: number;
|
|
17909
17454
|
}
|
|
17910
|
-
|
|
17911
|
-
|
|
17912
|
-
|
|
17913
|
-
|
|
17455
|
+
/** Dynamic-field item of EntityOrder (0xaa8): entity address → items. */
|
|
17456
|
+
interface TableItem_EntityOrder extends ObjectBase {
|
|
17457
|
+
address: string;
|
|
17458
|
+
items: EntityOrderItemView[];
|
|
17914
17459
|
}
|
|
17915
|
-
interface
|
|
17916
|
-
|
|
17917
|
-
|
|
17918
|
-
|
|
17919
|
-
|
|
17920
|
-
|
|
17921
|
-
|
|
17922
|
-
|
|
17923
|
-
transferable: boolean;
|
|
17460
|
+
interface TableItem_DemandPresenter extends ObjectBase {
|
|
17461
|
+
address: string;
|
|
17462
|
+
recommend: string;
|
|
17463
|
+
service: string | null;
|
|
17464
|
+
update_time: number;
|
|
17465
|
+
acceptance_score: number | null;
|
|
17466
|
+
feedback: string;
|
|
17467
|
+
feedback_time: number;
|
|
17924
17468
|
}
|
|
17925
|
-
interface
|
|
17469
|
+
interface MachineForwardGuard {
|
|
17926
17470
|
guard: string;
|
|
17927
|
-
|
|
17928
|
-
store_from_id?: number | null;
|
|
17471
|
+
retained_submission?: number[];
|
|
17929
17472
|
}
|
|
17930
|
-
interface
|
|
17931
|
-
|
|
17932
|
-
|
|
17933
|
-
|
|
17473
|
+
interface MachineForward {
|
|
17474
|
+
name: string;
|
|
17475
|
+
namedOperator?: string;
|
|
17476
|
+
permissionIndex?: number;
|
|
17477
|
+
weight: number;
|
|
17478
|
+
guard?: MachineForwardGuard;
|
|
17934
17479
|
}
|
|
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;
|
|
17480
|
+
interface MachineNodePair {
|
|
17481
|
+
prev_node: string;
|
|
17482
|
+
threshold: number;
|
|
17483
|
+
forwards: MachineForward[];
|
|
17945
17484
|
}
|
|
17946
|
-
interface
|
|
17947
|
-
|
|
17948
|
-
|
|
17949
|
-
|
|
17950
|
-
|
|
17951
|
-
|
|
17952
|
-
|
|
17953
|
-
outflow: BalanceType;
|
|
17954
|
-
um: string | null;
|
|
17955
|
-
permission: string;
|
|
17485
|
+
interface MachineNode {
|
|
17486
|
+
name: string;
|
|
17487
|
+
pairs: MachineNodePair[];
|
|
17488
|
+
}
|
|
17489
|
+
interface TableItem_MachineNode extends ObjectBase {
|
|
17490
|
+
name: string;
|
|
17491
|
+
value: MachineNodePair[];
|
|
17956
17492
|
}
|
|
17957
|
-
|
|
17958
|
-
|
|
17959
|
-
|
|
17960
|
-
|
|
17493
|
+
interface TableItem_ProgressHistory extends ObjectBase {
|
|
17494
|
+
index: number;
|
|
17495
|
+
node: string;
|
|
17496
|
+
next_node: string;
|
|
17497
|
+
session: ProgressSession[];
|
|
17498
|
+
time: number;
|
|
17961
17499
|
}
|
|
17962
|
-
interface
|
|
17500
|
+
interface TableItem_TreasuryHistory extends ObjectBase {
|
|
17501
|
+
payment: string;
|
|
17963
17502
|
op: TreasuryOp;
|
|
17964
17503
|
signer: string;
|
|
17965
17504
|
external_guard: string | null;
|
|
17966
17505
|
amount: BalanceType;
|
|
17967
|
-
time: number
|
|
17506
|
+
time: number;
|
|
17968
17507
|
store_from_id?: string | null;
|
|
17969
17508
|
}
|
|
17970
|
-
interface
|
|
17971
|
-
|
|
17972
|
-
|
|
17509
|
+
interface ObjectsQuery {
|
|
17510
|
+
objects: string[];
|
|
17511
|
+
no_cache?: boolean;
|
|
17512
|
+
network?: ENTRYPOINT;
|
|
17973
17513
|
}
|
|
17974
|
-
interface
|
|
17975
|
-
|
|
17976
|
-
id_from_submission?: number;
|
|
17977
|
-
data_from_submission?: number;
|
|
17514
|
+
interface ObjectsAnswer {
|
|
17515
|
+
objects?: ObjectBase[];
|
|
17978
17516
|
}
|
|
17979
|
-
|
|
17980
|
-
|
|
17981
|
-
|
|
17982
|
-
|
|
17517
|
+
interface PersonalQuery {
|
|
17518
|
+
account?: string;
|
|
17519
|
+
no_cache?: boolean;
|
|
17520
|
+
network?: ENTRYPOINT;
|
|
17983
17521
|
}
|
|
17984
|
-
|
|
17985
|
-
|
|
17986
|
-
|
|
17987
|
-
|
|
17988
|
-
|
|
17989
|
-
|
|
17990
|
-
description: string;
|
|
17991
|
-
write_guard: PolicyWriteGuard[];
|
|
17992
|
-
quote_guard?: string | null;
|
|
17993
|
-
id_from: IdFromInput;
|
|
17994
|
-
value_type: ValueTypeInput;
|
|
17522
|
+
interface TableQuery {
|
|
17523
|
+
parent: string;
|
|
17524
|
+
cursor?: string | null | undefined;
|
|
17525
|
+
limit?: number | null | undefined;
|
|
17526
|
+
no_cache?: boolean;
|
|
17527
|
+
network?: ENTRYPOINT;
|
|
17995
17528
|
}
|
|
17996
|
-
interface
|
|
17997
|
-
|
|
17998
|
-
|
|
17999
|
-
|
|
18000
|
-
|
|
18001
|
-
|
|
18002
|
-
|
|
17529
|
+
interface TableAnswer {
|
|
17530
|
+
items: TableAnswerItem[];
|
|
17531
|
+
nextCursor: string | null;
|
|
17532
|
+
hasNextPage: boolean;
|
|
17533
|
+
cache_expire?: CacheExpireType;
|
|
17534
|
+
}
|
|
17535
|
+
interface TableItemQuery {
|
|
17536
|
+
parent: string;
|
|
17537
|
+
key: {
|
|
17538
|
+
type: string;
|
|
17539
|
+
value: unknown;
|
|
18003
17540
|
};
|
|
17541
|
+
no_cache?: boolean;
|
|
17542
|
+
network?: ENTRYPOINT;
|
|
18004
17543
|
}
|
|
18005
|
-
interface
|
|
18006
|
-
|
|
18007
|
-
|
|
18008
|
-
|
|
18009
|
-
|
|
18010
|
-
|
|
18011
|
-
|
|
18012
|
-
|
|
18013
|
-
amount: BalanceType;
|
|
18014
|
-
time: number;
|
|
18015
|
-
store_from_id?: string | null;
|
|
18016
|
-
}[];
|
|
17544
|
+
interface TableAnswerItem {
|
|
17545
|
+
key: {
|
|
17546
|
+
type: string;
|
|
17547
|
+
value: unknown;
|
|
17548
|
+
};
|
|
17549
|
+
type: string;
|
|
17550
|
+
object: string;
|
|
17551
|
+
version: string;
|
|
18017
17552
|
}
|
|
18018
|
-
|
|
18019
|
-
|
|
18020
|
-
|
|
18021
|
-
|
|
18022
|
-
|
|
18023
|
-
|
|
18024
|
-
|
|
17553
|
+
declare const query_objects_json: (json: string) => Promise<string>;
|
|
17554
|
+
declare const query_shared_objects_json: (json: string) => Promise<string>;
|
|
17555
|
+
declare const query_table_json: (json: string) => Promise<string>;
|
|
17556
|
+
declare const query_objects: (query: ObjectsQuery) => Promise<ObjectsAnswer>;
|
|
17557
|
+
/**
|
|
17558
|
+
* Enumerate ALL shared objects of a type on the network (global discovery).
|
|
17559
|
+
*
|
|
17560
|
+
* GraphQL-only: uses the top-level `objects` connection with
|
|
17561
|
+
* {ownerKind: SHARED, type}. The JSON-RPC API has no equivalent — when the
|
|
17562
|
+
* GraphQL transport is not enabled for the target network this fails fast
|
|
17563
|
+
* with an explicit error (no silent fallback to a wrong partial result).
|
|
17564
|
+
*
|
|
17565
|
+
* The `type` accepts a package / module / fully-qualified name / full type
|
|
17566
|
+
* instantiation; a module-level type (e.g. `<pkg>::service`) enumerates ALL
|
|
17567
|
+
* generic instantiations (Service<WOW>, Service<SUI>, ...).
|
|
17568
|
+
*/
|
|
17569
|
+
interface SharedObjectsQuery {
|
|
17570
|
+
/** Type filter — e.g. `<pkg>::service` (module, all generics) or `<pkg>::service::Service<0x2::wow::WOW>` (exact instantiation). */
|
|
17571
|
+
type: string;
|
|
17572
|
+
/** Pagination cursor from a previous page. */
|
|
17573
|
+
cursor?: string | null;
|
|
17574
|
+
/** Page size (server-capped). */
|
|
17575
|
+
limit?: number;
|
|
17576
|
+
network?: ENTRYPOINT;
|
|
17577
|
+
no_cache?: boolean;
|
|
18025
17578
|
}
|
|
18026
|
-
interface
|
|
18027
|
-
address
|
|
18028
|
-
|
|
18029
|
-
|
|
18030
|
-
|
|
18031
|
-
|
|
18032
|
-
|
|
18033
|
-
|
|
18034
|
-
|
|
18035
|
-
details: VoteInRegistrar[];
|
|
18036
|
-
active_tx: string | null;
|
|
18037
|
-
passive_tx: string | null;
|
|
18038
|
-
time: number;
|
|
17579
|
+
interface SharedObjectsAnswerItem {
|
|
17580
|
+
/** Object address. */
|
|
17581
|
+
object: string;
|
|
17582
|
+
/** Raw full type string. */
|
|
17583
|
+
type_raw: string;
|
|
17584
|
+
version: string;
|
|
17585
|
+
digest?: string;
|
|
17586
|
+
/** Struct fields rendered as JSON (RpcVisitor shape) when requested. */
|
|
17587
|
+
json?: Record<string, unknown> | null;
|
|
18039
17588
|
}
|
|
18040
|
-
interface
|
|
18041
|
-
|
|
18042
|
-
|
|
18043
|
-
|
|
18044
|
-
entity_count: number;
|
|
18045
|
-
perm_remark: {
|
|
18046
|
-
index: PermissionIndexType;
|
|
18047
|
-
remark: string;
|
|
18048
|
-
}[];
|
|
18049
|
-
um: string | null;
|
|
17589
|
+
interface SharedObjectsAnswer {
|
|
17590
|
+
objects: SharedObjectsAnswerItem[];
|
|
17591
|
+
has_next_page: boolean;
|
|
17592
|
+
next_cursor: string | null;
|
|
18050
17593
|
}
|
|
18051
|
-
|
|
18052
|
-
|
|
18053
|
-
|
|
18054
|
-
|
|
18055
|
-
|
|
18056
|
-
|
|
18057
|
-
|
|
18058
|
-
|
|
18059
|
-
|
|
18060
|
-
|
|
17594
|
+
declare const query_shared_objects: (query: SharedObjectsQuery) => Promise<SharedObjectsAnswer>;
|
|
17595
|
+
/**
|
|
17596
|
+
* Purpose-driven Service discovery: enumerate every published (shared)
|
|
17597
|
+
* Service on the network and filter by business conditions.
|
|
17598
|
+
*
|
|
17599
|
+
* Filtering split (honest about where each filter executes):
|
|
17600
|
+
* - coin_type → SERVER-SIDE via the GraphQL type filter
|
|
17601
|
+
* (`0x2::service::Service<T>` exact instantiation; omit →
|
|
17602
|
+
* module-level `0x2::service` = ALL generic instantiations).
|
|
17603
|
+
* - name_contains / location_any → CLIENT-SIDE substring filters applied
|
|
17604
|
+
* after enumeration (the indexer has no struct-field filters).
|
|
17605
|
+
*
|
|
17606
|
+
* The raw enumeration is cached locally (memory + SQLite, 120s TTL) — filters
|
|
17607
|
+
* re-run on every call against the cached universe; `no_cache` forces a
|
|
17608
|
+
* fresh enumeration. When `has_more` is true the universe was truncated at
|
|
17609
|
+
* `max_objects` and client-side filters saw only a partial list.
|
|
17610
|
+
*/
|
|
17611
|
+
interface ServicesQuery {
|
|
17612
|
+
/** Exact coin instantiation, e.g. `0x2::wow::WOW<0x...>`; omit = ALL Service<T>. */
|
|
17613
|
+
coin_type?: string;
|
|
17614
|
+
/** Case-insensitive substring filter on service name. */
|
|
17615
|
+
name_contains?: string;
|
|
17616
|
+
/** Case-insensitive any-of substring filters on service location. */
|
|
17617
|
+
location_any?: string[];
|
|
17618
|
+
/** Enumeration cap before filtering (default 200). */
|
|
17619
|
+
max_objects?: number;
|
|
17620
|
+
network?: ENTRYPOINT;
|
|
17621
|
+
no_cache?: boolean;
|
|
18061
17622
|
}
|
|
18062
|
-
|
|
18063
|
-
|
|
18064
|
-
|
|
18065
|
-
|
|
17623
|
+
interface ServiceSummary {
|
|
17624
|
+
object: string;
|
|
17625
|
+
type_raw: string;
|
|
17626
|
+
version: string;
|
|
17627
|
+
digest?: string;
|
|
17628
|
+
name?: string;
|
|
17629
|
+
location?: string;
|
|
17630
|
+
/** Smallest-unit string, when present in contents. */
|
|
17631
|
+
price?: string;
|
|
17632
|
+
tags?: string[];
|
|
17633
|
+
json: Record<string, unknown> | null;
|
|
18066
17634
|
}
|
|
18067
|
-
interface
|
|
18068
|
-
|
|
18069
|
-
|
|
18070
|
-
|
|
17635
|
+
interface ServicesAnswer {
|
|
17636
|
+
services: ServiceSummary[];
|
|
17637
|
+
/** Objects enumerated before client-side filtering. */
|
|
17638
|
+
total_enumerated: number;
|
|
17639
|
+
/** True when enumeration was truncated at max_objects (partial universe). */
|
|
17640
|
+
has_more: boolean;
|
|
17641
|
+
}
|
|
17642
|
+
declare const query_services: (query: ServicesQuery) => Promise<ServicesAnswer>;
|
|
17643
|
+
/**
|
|
17644
|
+
* Reverse-enumeration query: enumerate every shared Demand on the network.
|
|
17645
|
+
*
|
|
17646
|
+
* Demand is a shared object (`transfer::share_object` in demand.move) and
|
|
17647
|
+
* therefore globally enumerable by type via GraphQL — no `NewDemandEvent` is
|
|
17648
|
+
* required for discovery. "New demand" detection is a caller concern (seen-set
|
|
17649
|
+
* diff or `query_object_last_updated`), this returns the full typed universe.
|
|
17650
|
+
*/
|
|
17651
|
+
interface DemandsQuery {
|
|
17652
|
+
/** Enumeration cap (default 200). */
|
|
17653
|
+
max_objects?: number;
|
|
17654
|
+
network?: ENTRYPOINT;
|
|
17655
|
+
no_cache?: boolean;
|
|
17656
|
+
}
|
|
17657
|
+
interface DemandsAnswer {
|
|
17658
|
+
demands: ObjectDemand[];
|
|
17659
|
+
/** Objects enumerated before parsing. */
|
|
17660
|
+
total_enumerated: number;
|
|
17661
|
+
/** True when enumeration was truncated at max_objects (partial universe). */
|
|
17662
|
+
has_more: boolean;
|
|
17663
|
+
}
|
|
17664
|
+
declare const query_demands: (query: DemandsQuery) => Promise<DemandsAnswer>;
|
|
17665
|
+
/**
|
|
17666
|
+
* Reverse-enumeration query: enumerate every shared Arb and filter by business
|
|
17667
|
+
* fields (arbitration / order / status). This is the pull-model replacement
|
|
17668
|
+
* for an on-chain "arbitration → Arb cases" reverse index (13 §3.2): the index
|
|
17669
|
+
* is rebuilt client-side from each Arb's final state, no indexer table needed
|
|
17670
|
+
* for the historical-scoring path.
|
|
17671
|
+
*/
|
|
17672
|
+
interface ArbsQuery {
|
|
17673
|
+
/** Only Arb cases belonging to this Arbitration object. */
|
|
17674
|
+
arbitration?: string;
|
|
17675
|
+
/** Only Arb cases for this Order object. */
|
|
17676
|
+
order?: string;
|
|
17677
|
+
/** Only Arb cases in these statuses. */
|
|
17678
|
+
status?: ArbStatus | ArbStatus[];
|
|
17679
|
+
/** Enumeration cap (default 200). */
|
|
17680
|
+
max_objects?: number;
|
|
17681
|
+
network?: ENTRYPOINT;
|
|
17682
|
+
no_cache?: boolean;
|
|
18071
17683
|
}
|
|
18072
|
-
interface
|
|
18073
|
-
|
|
18074
|
-
|
|
18075
|
-
|
|
18076
|
-
|
|
17684
|
+
interface ArbsAnswer {
|
|
17685
|
+
arbs: ObjectArb[];
|
|
17686
|
+
/** Objects enumerated before filtering. */
|
|
17687
|
+
total_enumerated: number;
|
|
17688
|
+
/** True when enumeration was truncated at max_objects (partial universe). */
|
|
17689
|
+
has_more: boolean;
|
|
18077
17690
|
}
|
|
18078
|
-
|
|
18079
|
-
|
|
18080
|
-
|
|
18081
|
-
|
|
17691
|
+
declare const query_arbs: (query: ArbsQuery) => Promise<ArbsAnswer>;
|
|
17692
|
+
declare const query_personal: (query: PersonalQuery) => Promise<ObjectPersonal | undefined>;
|
|
17693
|
+
declare const query_table: (query: TableQuery) => Promise<TableAnswer | undefined>;
|
|
17694
|
+
declare const query_tableItem: (query: TableItemQuery) => Promise<ObjectBase | undefined>;
|
|
17695
|
+
interface QueryTableItem_byAddress {
|
|
17696
|
+
parent: string | ObjectPermission | ObjectDemand | ObjectEntityRegistrar | ObjectResource | ObjectReward | ObjectTreasury | ObjectEntityLinker;
|
|
17697
|
+
address: AccountOrMark_Address | string;
|
|
17698
|
+
no_cache?: boolean;
|
|
17699
|
+
network?: ENTRYPOINT;
|
|
18082
17700
|
}
|
|
18083
|
-
interface
|
|
18084
|
-
|
|
18085
|
-
|
|
18086
|
-
|
|
18087
|
-
|
|
17701
|
+
interface QueryTableItem_byU64 {
|
|
17702
|
+
parent: string | ObjectProgress;
|
|
17703
|
+
u64: number | string | bigint;
|
|
17704
|
+
no_cache?: boolean;
|
|
17705
|
+
network?: ENTRYPOINT;
|
|
18088
17706
|
}
|
|
18089
|
-
interface
|
|
18090
|
-
|
|
18091
|
-
|
|
18092
|
-
|
|
18093
|
-
|
|
18094
|
-
amount: BalanceType;
|
|
18095
|
-
time: string;
|
|
18096
|
-
from_object?: string | null;
|
|
18097
|
-
signer: string;
|
|
18098
|
-
info: PaymentInfo;
|
|
17707
|
+
interface QueryTableItem_byString {
|
|
17708
|
+
parent: string | ObjectMachine;
|
|
17709
|
+
key: string;
|
|
17710
|
+
no_cache?: boolean;
|
|
17711
|
+
network?: ENTRYPOINT;
|
|
18099
17712
|
}
|
|
18100
|
-
interface
|
|
18101
|
-
|
|
18102
|
-
|
|
18103
|
-
|
|
18104
|
-
|
|
18105
|
-
|
|
17713
|
+
interface QueryTableItem_byNameAddress {
|
|
17714
|
+
parent: string | ObjectMachine;
|
|
17715
|
+
name: string;
|
|
17716
|
+
entity: AccountOrMark_Address | bigint | number;
|
|
17717
|
+
no_cache?: boolean;
|
|
17718
|
+
network?: ENTRYPOINT;
|
|
18106
17719
|
}
|
|
18107
|
-
|
|
18108
|
-
|
|
18109
|
-
|
|
18110
|
-
|
|
18111
|
-
};
|
|
18112
|
-
interface VotingGuard {
|
|
18113
|
-
guard: string;
|
|
18114
|
-
vote_weight: VoteWeight;
|
|
17720
|
+
interface QueryTableItem_Entity {
|
|
17721
|
+
address: AccountOrMark_Address | string;
|
|
17722
|
+
no_cache?: boolean;
|
|
17723
|
+
network?: ENTRYPOINT;
|
|
18115
17724
|
}
|
|
18116
|
-
|
|
18117
|
-
|
|
18118
|
-
|
|
18119
|
-
|
|
18120
|
-
|
|
18121
|
-
|
|
18122
|
-
|
|
18123
|
-
|
|
18124
|
-
|
|
18125
|
-
|
|
17725
|
+
declare const queryTableItem_RepositoryData: (query: QueryTableItem_byNameAddress) => Promise<TableItem_RepositoryData | undefined>;
|
|
17726
|
+
declare const queryTableItem_PermissionPerm: (query: QueryTableItem_byAddress) => Promise<TableItem_PermissionPerm | undefined>;
|
|
17727
|
+
declare const queryTableItem_EntityRegistrar: (query: QueryTableItem_Entity) => Promise<TableItem_EntityRegistrar | undefined>;
|
|
17728
|
+
declare const queryTableItem_EntityLinker: (query: QueryTableItem_Entity) => Promise<TableItem_EntityLinker | undefined>;
|
|
17729
|
+
declare const queryTableItem_EntityContact: (query: QueryTableItem_Entity) => Promise<TableItem_EntityContact | undefined>;
|
|
17730
|
+
declare const queryTableItem_ObjectLinkerCore: (query: QueryTableItem_Entity) => Promise<TableItem_ObjectLinkerCore | undefined>;
|
|
17731
|
+
declare const queryTableItem_ObjectLinkerTx: (query: QueryTableItem_Entity) => Promise<TableItem_ObjectLinkerTx | undefined>;
|
|
17732
|
+
/**
|
|
17733
|
+
* Orders registered under one target address in the GLOBAL ORDER TABLE
|
|
17734
|
+
* (ObjectLinkerTx 0xaaf — order.move:110 writes every order to its Service
|
|
17735
|
+
* key). This is the single source of truth for "which orders a service has".
|
|
17736
|
+
*
|
|
17737
|
+
* The raw table is a generic tx-touches buffer: it ALSO records entries for
|
|
17738
|
+
* guards whose rule tables reference the address (guard.move:246), progress,
|
|
17739
|
+
* allocations and payments. Those non-order touches are filtered out here by
|
|
17740
|
+
* decoding the typed first address byte (objectTypeFromAddress — local, zero
|
|
17741
|
+
* extra round-trips), so every returned `who` is a REAL Order object.
|
|
17742
|
+
*/
|
|
17743
|
+
declare const queryTableItem_ServiceOrders: (query: QueryTableItem_Entity) => Promise<TableItem_ObjectLinkerTx | undefined>;
|
|
17744
|
+
declare const queryTableItem_EntityOrder: (query: QueryTableItem_Entity) => Promise<TableItem_EntityOrder | undefined>;
|
|
17745
|
+
declare const queryTableItem_EntityPermission: (query: QueryTableItem_Entity) => Promise<TableItem_EntityPermission | undefined>;
|
|
17746
|
+
/** Role bit flags of the entity_order reverse index (order.move / entity_order.move). */
|
|
17747
|
+
declare const ENTITY_ORDER_ROLE_OWNER = 1;
|
|
17748
|
+
declare const ENTITY_ORDER_ROLE_AGENT = 2;
|
|
17749
|
+
/** One order membership of a user, resolved with the full on-chain order. */
|
|
17750
|
+
interface UserOrderView {
|
|
17751
|
+
role: number;
|
|
17752
|
+
is_owner: boolean;
|
|
17753
|
+
is_agent: boolean;
|
|
17754
|
+
time: number;
|
|
17755
|
+
order: ObjectOrder;
|
|
18126
17756
|
}
|
|
18127
|
-
interface
|
|
18128
|
-
|
|
18129
|
-
|
|
18130
|
-
|
|
17757
|
+
interface QueryOrdersByUser {
|
|
17758
|
+
address: AccountOrMark_Address | string;
|
|
17759
|
+
no_cache?: boolean;
|
|
17760
|
+
network?: ENTRYPOINT;
|
|
18131
17761
|
}
|
|
18132
|
-
|
|
18133
|
-
|
|
18134
|
-
|
|
18135
|
-
|
|
18136
|
-
|
|
18137
|
-
|
|
18138
|
-
|
|
17762
|
+
/**
|
|
17763
|
+
* Query every order a user participates in (as owner and/or agent) via the
|
|
17764
|
+
* global EntityOrder reverse index (0xaa8), then resolve the full Order
|
|
17765
|
+
* objects. Returns an empty array when the user has no orders.
|
|
17766
|
+
*/
|
|
17767
|
+
declare const queryOrdersByUser: (query: QueryOrdersByUser) => Promise<UserOrderView[]>;
|
|
17768
|
+
/** Unified address profile — the on-chain "who/what is this address" view (K3 22). */
|
|
17769
|
+
interface AddressActivity {
|
|
17770
|
+
/** Latest on-chain activity timestamp (ms) across all queried dimensions. */
|
|
17771
|
+
last_active_ms: number;
|
|
17772
|
+
/** Count of activity signals (order memberships + reputation votes + reverse tx bindings). */
|
|
17773
|
+
signal_count: number;
|
|
17774
|
+
/** Whether the address has any on-chain activity (false = likely dormant). */
|
|
17775
|
+
active: boolean;
|
|
18139
17776
|
}
|
|
18140
|
-
|
|
18141
|
-
|
|
18142
|
-
|
|
18143
|
-
|
|
18144
|
-
|
|
18145
|
-
|
|
18146
|
-
|
|
18147
|
-
|
|
17777
|
+
/** Role evidence derived from the address's on-chain facts (K3 22 §13 P1-7). */
|
|
17778
|
+
interface RoleEvidence {
|
|
17779
|
+
/** Orders the address participates in as owner (customer signal). */
|
|
17780
|
+
customer_orders: number;
|
|
17781
|
+
/** Orders the address participates in as agent (collaborator signal). */
|
|
17782
|
+
agent_orders: number;
|
|
17783
|
+
/** Whether bounded core objects bind to this address (merchant/supplier signal). */
|
|
17784
|
+
merchant_signal: boolean;
|
|
17785
|
+
/** Dominant role hint (prospect when no signal). */
|
|
17786
|
+
role_hint: string;
|
|
18148
17787
|
}
|
|
18149
|
-
interface
|
|
17788
|
+
interface AddressProfile {
|
|
18150
17789
|
address: string;
|
|
18151
|
-
|
|
17790
|
+
/** Classification: 'user' | a business object type (service/order/...) | a system singleton kind. */
|
|
17791
|
+
kind: string;
|
|
17792
|
+
is_system_singleton: boolean;
|
|
17793
|
+
identity?: TableItem_EntityRegistrar;
|
|
17794
|
+
reputation?: TableItem_EntityLinker;
|
|
17795
|
+
order_membership?: TableItem_EntityOrder;
|
|
17796
|
+
contact_membership?: TableItem_EntityContact;
|
|
17797
|
+
/** Permissions the address holds a role in (EntityPermission 0xaad reverse index). */
|
|
17798
|
+
permission_membership?: TableItem_EntityPermission;
|
|
17799
|
+
reverse_core?: TableItem_ObjectLinkerCore;
|
|
17800
|
+
reverse_tx?: TableItem_ObjectLinkerTx;
|
|
17801
|
+
object?: ObjectBase;
|
|
17802
|
+
/** Aggregated activity summary (K3 22 §13 P1-6). */
|
|
17803
|
+
activity: AddressActivity;
|
|
17804
|
+
/** Role evidence derived from the address's on-chain facts (K3 22 §13 P1-7). */
|
|
17805
|
+
role_evidence: RoleEvidence;
|
|
18152
17806
|
}
|
|
18153
|
-
|
|
18154
|
-
|
|
18155
|
-
|
|
18156
|
-
|
|
18157
|
-
time: number;
|
|
17807
|
+
interface QueryAddressProfile {
|
|
17808
|
+
address: AccountOrMark_Address | string;
|
|
17809
|
+
no_cache?: boolean;
|
|
17810
|
+
network?: ENTRYPOINT;
|
|
18158
17811
|
}
|
|
18159
|
-
/**
|
|
18160
|
-
|
|
18161
|
-
|
|
18162
|
-
|
|
17812
|
+
/**
|
|
17813
|
+
* Query a unified address profile (K3 22 §P0-1).
|
|
17814
|
+
*
|
|
17815
|
+
* One entry point that classifies the address (first-byte business-object
|
|
17816
|
+
* type, system singleton, or user), then batches the identity / reputation /
|
|
17817
|
+
* membership / reverse-binding / object lookups in a single Promise.all
|
|
17818
|
+
* (leveraging the SDK's per-object cache). Degrades honestly: any missing
|
|
17819
|
+
* dimension is simply left undefined.
|
|
17820
|
+
*/
|
|
17821
|
+
declare const query_address_profile: (query: QueryAddressProfile) => Promise<AddressProfile>;
|
|
17822
|
+
interface QueryAddressProfiles {
|
|
17823
|
+
/** Addresses (or LocalMark names) to profile — result order matches. */
|
|
17824
|
+
addresses: (AccountOrMark_Address | string)[];
|
|
17825
|
+
no_cache?: boolean;
|
|
17826
|
+
network?: ENTRYPOINT;
|
|
18163
17827
|
}
|
|
18164
|
-
/**
|
|
18165
|
-
|
|
18166
|
-
|
|
18167
|
-
|
|
17828
|
+
/**
|
|
17829
|
+
* Batch address profiles — one call for N addresses instead of N
|
|
17830
|
+
* single-address calls (list views were paying N MCP round-trips + N
|
|
17831
|
+
* sequential fan-outs). The per-address 8-dimension fan-out runs in PARALLEL
|
|
17832
|
+
* and every underlying read is per-key cached, so repeat refreshes hit the
|
|
17833
|
+
* cache layer only.
|
|
17834
|
+
*
|
|
17835
|
+
* Degrades per-address: an address that fails to resolve yields a null slot
|
|
17836
|
+
* (never rejects the whole batch).
|
|
17837
|
+
*/
|
|
17838
|
+
declare const query_address_profiles: (query: QueryAddressProfiles) => Promise<(AddressProfile | null)[]>;
|
|
17839
|
+
/** Token type bound to an on-chain object (its first generic type argument). */
|
|
17840
|
+
interface ObjectTokenTypeInfo {
|
|
17841
|
+
/** Object address actually queried (LocalMark names are resolved first). */
|
|
17842
|
+
object: string;
|
|
17843
|
+
/** Short semantic object type (e.g. "Treasury", "Service"), when known. */
|
|
17844
|
+
object_type?: ObjectType;
|
|
17845
|
+
/** Full raw Move type string, e.g. "0x2::treasury::Treasury<0x2::wow::WOW>". */
|
|
17846
|
+
type_raw?: string;
|
|
17847
|
+
/**
|
|
17848
|
+
* First generic type argument — the token/coin type T for token-generic
|
|
17849
|
+
* objects (Treasury<T>, Service<T>, Coin<T>, Allocation<T>, …). T is
|
|
17850
|
+
* fixed at creation and can NEVER change. Unset when the object type has
|
|
17851
|
+
* no generic parameter (e.g. Order, Guard).
|
|
17852
|
+
*/
|
|
17853
|
+
coin_type?: string;
|
|
18168
17854
|
}
|
|
18169
|
-
|
|
18170
|
-
|
|
18171
|
-
|
|
18172
|
-
|
|
17855
|
+
interface ObjectTokenTypeQuery {
|
|
17856
|
+
/** Object ids or LocalMark names. */
|
|
17857
|
+
objects: string[];
|
|
17858
|
+
/** Skip the cache and force a chain re-read. */
|
|
17859
|
+
no_cache?: boolean;
|
|
17860
|
+
/** Target network; defaults to the configured network. */
|
|
17861
|
+
network?: ENTRYPOINT;
|
|
18173
17862
|
}
|
|
18174
|
-
/**
|
|
18175
|
-
|
|
18176
|
-
|
|
18177
|
-
|
|
17863
|
+
/**
|
|
17864
|
+
* Query objects and extract their bound token/coin type (the first generic
|
|
17865
|
+
* argument of their Move type — e.g. `Treasury<0x2::wow::WOW>` →
|
|
17866
|
+
* `0x2::wow::WOW`). Goes through the standard object cache (cache-warmed,
|
|
17867
|
+
* write-invalidated), so repeated lookups are free.
|
|
17868
|
+
*
|
|
17869
|
+
* Pure read + type parsing — callers decide which object types are
|
|
17870
|
+
* token-generic (this reports a generic argument for ANY generic object,
|
|
17871
|
+
* including `Table<K, V>` where the first arg is the key type).
|
|
17872
|
+
*/
|
|
17873
|
+
declare const query_object_token_type: (query: ObjectTokenTypeQuery) => Promise<ObjectTokenTypeInfo[]>;
|
|
17874
|
+
declare const queryTableItem_RewardRecord: (query: QueryTableItem_byAddress) => Promise<TableItem_RewardRecord | undefined>;
|
|
17875
|
+
declare const queryTableItem_DemandPresenter: (query: QueryTableItem_byAddress) => Promise<TableItem_DemandPresenter | undefined>;
|
|
17876
|
+
declare const queryTableItem_TreasuryHistory: (query: QueryTableItem_byAddress) => Promise<TableItem_TreasuryHistory | undefined>;
|
|
17877
|
+
declare const queryTableItem_MachineNode: (query: QueryTableItem_byString) => Promise<TableItem_MachineNode | undefined>;
|
|
17878
|
+
declare const queryTableItem_AddressMark: (query: QueryTableItem_byAddress) => Promise<TableItem_AddressMark | undefined>;
|
|
17879
|
+
declare const queryTableItem_ProgressHistory: (query: QueryTableItem_byU64) => Promise<TableItem_ProgressHistory | undefined>;
|
|
17880
|
+
declare function raw2type(type_raw: string | undefined): ObjectType | undefined;
|
|
17881
|
+
/**
|
|
17882
|
+
* Parse a raw on-chain object payload into its typed JS representation.
|
|
17883
|
+
*
|
|
17884
|
+
* SINGLE POINT for description normalization: trailing/leading whitespace
|
|
17885
|
+
* (e.g. an accidental "\n" written at creation time) would otherwise leak
|
|
17886
|
+
* into every UI card and render phantom blank lines. Trimmed here so ALL
|
|
17887
|
+
* consumers — MCP payloads, panorama builders, client list items — receive
|
|
17888
|
+
* clean display text.
|
|
17889
|
+
*/
|
|
17890
|
+
declare function data2object(data?: any): ObjectBase;
|
|
17891
|
+
//#endregion
|
|
17892
|
+
//#region src/w/local/token.d.ts
|
|
17893
|
+
interface TokenTypeInfo extends WowCoinMetadata {
|
|
17894
|
+
alias?: string;
|
|
17895
|
+
type: string;
|
|
17896
|
+
/** type name for the token (e.g., 0x168da5bf1f48dafc111b0a488fa454aca95e0b5e::usdc::USDC) */
|
|
18178
17897
|
}
|
|
18179
|
-
|
|
18180
|
-
|
|
18181
|
-
|
|
18182
|
-
|
|
17898
|
+
interface TokenDataFilter {
|
|
17899
|
+
alias_or_name?: string;
|
|
17900
|
+
symbol?: string;
|
|
17901
|
+
type?: string;
|
|
18183
17902
|
}
|
|
18184
|
-
|
|
18185
|
-
|
|
18186
|
-
|
|
18187
|
-
|
|
17903
|
+
declare class TokenInfo {
|
|
17904
|
+
static _instance: TokenInfo | undefined;
|
|
17905
|
+
private static _instanceLock;
|
|
17906
|
+
/**
|
|
17907
|
+
* Get the TokenInfo singleton instance.
|
|
17908
|
+
* Concurrency-safe: double-checked locking ensures only one instance.
|
|
17909
|
+
*/
|
|
17910
|
+
static Instance(): TokenInfo;
|
|
17911
|
+
private cacheKey;
|
|
17912
|
+
/**
|
|
17913
|
+
* Validate coin metadata before it enters the (INFINITE) cache.
|
|
17914
|
+
* decimals is a Move u8 on-chain, so a missing / non-integer /
|
|
17915
|
+
* out-of-range value means the RPC response was malformed — treat it
|
|
17916
|
+
* as "not found" rather than caching a decimals=0 false positive that
|
|
17917
|
+
* would convert amounts 10^N times off.
|
|
17918
|
+
*/
|
|
17919
|
+
private static isValidMetadata;
|
|
17920
|
+
private fetch_imp;
|
|
17921
|
+
fetch(tokenType: string | null | undefined, alias?: string, network?: ENTRYPOINT): Promise<TokenTypeInfo | undefined>;
|
|
17922
|
+
list(filter?: TokenDataFilter, network?: ENTRYPOINT): Promise<TokenTypeInfo[]>;
|
|
18188
17923
|
}
|
|
18189
|
-
|
|
18190
|
-
|
|
18191
|
-
|
|
18192
|
-
|
|
17924
|
+
//#endregion
|
|
17925
|
+
//#region src/w/local/index.d.ts
|
|
17926
|
+
interface AccountOrMark_Address {
|
|
17927
|
+
name_or_address?: string;
|
|
17928
|
+
local_mark_first?: boolean;
|
|
18193
17929
|
}
|
|
18194
|
-
|
|
18195
|
-
|
|
18196
|
-
|
|
18197
|
-
order: string;
|
|
18198
|
-
time: number;
|
|
17930
|
+
interface ManyAccountOrMark_Address {
|
|
17931
|
+
entities: AccountOrMark_Address[];
|
|
17932
|
+
check_all_founded?: boolean;
|
|
18199
17933
|
}
|
|
18200
|
-
|
|
18201
|
-
interface
|
|
17934
|
+
declare const GetAccountOrMark_Address: (entity?: AccountOrMark_Address | string) => Promise<string | undefined>;
|
|
17935
|
+
interface LocalNameByAddress {
|
|
17936
|
+
account?: string;
|
|
17937
|
+
local_mark?: string;
|
|
18202
17938
|
address: string;
|
|
18203
|
-
items: EntityOrderItemView[];
|
|
18204
17939
|
}
|
|
18205
|
-
|
|
18206
|
-
|
|
18207
|
-
|
|
18208
|
-
|
|
18209
|
-
|
|
18210
|
-
|
|
18211
|
-
|
|
18212
|
-
|
|
17940
|
+
declare const GetLocalNamesByAddresses: (addresses: string[]) => Promise<LocalNameByAddress[]>;
|
|
17941
|
+
declare const GetManyAccountOrMark_Address: (entities: ManyAccountOrMark_Address | (string | AccountOrMark_Address)[]) => Promise<string[]>;
|
|
17942
|
+
declare const query_local_mark_list: (filter: LocalMarkFilter | undefined | null) => Promise<MarkData[]>;
|
|
17943
|
+
declare const query_account_list: (filter?: AccountFilter) => Promise<AccountData[]>;
|
|
17944
|
+
declare const query_local_info_list: (filter?: LocalInfoFilter) => Promise<InfoData[]>;
|
|
17945
|
+
declare const query_local_token_list: (filter?: TokenDataFilter, network?: ENTRYPOINT) => Promise<TokenTypeInfo[]>;
|
|
17946
|
+
declare const query_local_mark: <T extends string | string[]>(name_or_address: T) => Promise<T extends string ? MarkData | undefined : (MarkData | undefined)[]>;
|
|
17947
|
+
declare const query_local_info: <T extends string | string[]>(name?: T) => Promise<T extends string ? InfoData | undefined : (InfoData | undefined)[]>;
|
|
17948
|
+
declare const query_local_info_default: <T extends string | string[]>(name?: T) => Promise<T extends string ? string | undefined : (string | undefined)[]>;
|
|
17949
|
+
interface QueryAccount {
|
|
17950
|
+
name_or_address?: string;
|
|
17951
|
+
balance?: boolean;
|
|
17952
|
+
coin?: {
|
|
17953
|
+
cursor?: string | null | undefined;
|
|
17954
|
+
limit?: number | null | undefined;
|
|
17955
|
+
};
|
|
17956
|
+
token_type?: string;
|
|
17957
|
+
network?: ENTRYPOINT;
|
|
18213
17958
|
}
|
|
18214
|
-
interface
|
|
18215
|
-
|
|
18216
|
-
|
|
17959
|
+
interface QueryAccountResult {
|
|
17960
|
+
name_or_address?: string;
|
|
17961
|
+
address?: string;
|
|
17962
|
+
balance?: CoinBalance;
|
|
17963
|
+
coin?: PaginatedCoins;
|
|
17964
|
+
object?: ObjectBase;
|
|
17965
|
+
hint?: string;
|
|
18217
17966
|
}
|
|
18218
|
-
|
|
18219
|
-
|
|
18220
|
-
|
|
18221
|
-
|
|
18222
|
-
|
|
18223
|
-
|
|
17967
|
+
declare const query_account: (query: QueryAccount) => Promise<QueryAccountResult>;
|
|
17968
|
+
type FaucetNetwork = ENTRYPOINT.Localnet | ENTRYPOINT.Testnet;
|
|
17969
|
+
interface AccountOperation {
|
|
17970
|
+
gen?: {
|
|
17971
|
+
name?: string;
|
|
17972
|
+
replaceExistName?: boolean;
|
|
17973
|
+
messenger?: boolean;
|
|
17974
|
+
};
|
|
17975
|
+
faucet?: {
|
|
17976
|
+
name_or_address?: string;
|
|
17977
|
+
network: FaucetNetwork;
|
|
17978
|
+
};
|
|
17979
|
+
suspend?: {
|
|
17980
|
+
name_or_address?: string;
|
|
17981
|
+
};
|
|
17982
|
+
resume?: {
|
|
17983
|
+
address: string;
|
|
17984
|
+
name?: string;
|
|
17985
|
+
};
|
|
17986
|
+
rename?: {
|
|
17987
|
+
name_or_address?: string;
|
|
17988
|
+
new_name: string;
|
|
17989
|
+
};
|
|
17990
|
+
swap_name?: {
|
|
17991
|
+
name_or_address1?: string;
|
|
17992
|
+
name_or_address2?: string;
|
|
17993
|
+
};
|
|
17994
|
+
transfer?: {
|
|
17995
|
+
name_or_address_from?: string;
|
|
17996
|
+
name_or_address_to?: string;
|
|
17997
|
+
amount: number | string | bigint;
|
|
17998
|
+
token_type?: string;
|
|
17999
|
+
network?: ENTRYPOINT;
|
|
18000
|
+
};
|
|
18001
|
+
get?: {
|
|
18002
|
+
name_or_address?: string;
|
|
18003
|
+
balance_required: string | bigint | number;
|
|
18004
|
+
token_type?: string;
|
|
18005
|
+
network?: ENTRYPOINT;
|
|
18006
|
+
};
|
|
18007
|
+
signData?: {
|
|
18008
|
+
name_or_address?: string;
|
|
18009
|
+
data: string | Uint8Array;
|
|
18010
|
+
data_encoding?: "utf8" | "base64" | "hex";
|
|
18011
|
+
};
|
|
18012
|
+
messenger?: {
|
|
18013
|
+
name_or_account?: string;
|
|
18014
|
+
enabled: boolean;
|
|
18015
|
+
};
|
|
18224
18016
|
}
|
|
18225
|
-
interface
|
|
18226
|
-
|
|
18227
|
-
|
|
18228
|
-
|
|
18017
|
+
interface AccountOperationResult {
|
|
18018
|
+
gen?: {
|
|
18019
|
+
address: string;
|
|
18020
|
+
name?: string;
|
|
18021
|
+
messenger?: boolean;
|
|
18022
|
+
};
|
|
18023
|
+
faucet?: {
|
|
18024
|
+
name_or_address?: string;
|
|
18025
|
+
result: FaucetCoinInfo[];
|
|
18026
|
+
network: FaucetNetwork;
|
|
18027
|
+
};
|
|
18028
|
+
suspend?: {
|
|
18029
|
+
name_or_address?: string;
|
|
18030
|
+
success: boolean;
|
|
18031
|
+
};
|
|
18032
|
+
resume?: {
|
|
18033
|
+
address: string;
|
|
18034
|
+
name?: string;
|
|
18035
|
+
success: boolean;
|
|
18036
|
+
};
|
|
18037
|
+
rename?: {
|
|
18038
|
+
name_or_address?: string;
|
|
18039
|
+
new_name: string;
|
|
18040
|
+
success: boolean;
|
|
18041
|
+
};
|
|
18042
|
+
swap_name?: {
|
|
18043
|
+
name_or_address1?: string;
|
|
18044
|
+
name_or_address2?: string;
|
|
18045
|
+
success: boolean;
|
|
18046
|
+
};
|
|
18047
|
+
transfer?: WowTransactionBlockResponse;
|
|
18048
|
+
get?: {
|
|
18049
|
+
coin_address?: string;
|
|
18050
|
+
digest?: string;
|
|
18051
|
+
name_or_address?: string;
|
|
18052
|
+
balance_required: string | bigint | number;
|
|
18053
|
+
token_type?: string;
|
|
18054
|
+
network?: ENTRYPOINT;
|
|
18055
|
+
};
|
|
18056
|
+
signData?: {
|
|
18057
|
+
name_or_address?: string;
|
|
18058
|
+
signature: string;
|
|
18059
|
+
publicKey: string;
|
|
18060
|
+
address: string;
|
|
18061
|
+
};
|
|
18062
|
+
messenger?: {
|
|
18063
|
+
name_or_account?: string;
|
|
18064
|
+
enabled: boolean;
|
|
18065
|
+
registered?: boolean;
|
|
18066
|
+
registerError?: string;
|
|
18067
|
+
};
|
|
18229
18068
|
}
|
|
18230
|
-
|
|
18231
|
-
|
|
18232
|
-
|
|
18069
|
+
declare const account_operation: (op: AccountOperation) => Promise<AccountOperationResult>;
|
|
18070
|
+
interface LocalMarkOperation {
|
|
18071
|
+
clear?: {
|
|
18072
|
+
op: "clear";
|
|
18073
|
+
};
|
|
18074
|
+
add?: {
|
|
18075
|
+
op: "add";
|
|
18076
|
+
data: MarkParam[];
|
|
18077
|
+
};
|
|
18078
|
+
remove?: {
|
|
18079
|
+
op: "remove";
|
|
18080
|
+
names: string[];
|
|
18081
|
+
};
|
|
18233
18082
|
}
|
|
18234
|
-
interface
|
|
18235
|
-
|
|
18236
|
-
|
|
18083
|
+
interface LocalMarkOperationResult {
|
|
18084
|
+
clear?: boolean;
|
|
18085
|
+
add?: MarkData[];
|
|
18086
|
+
remove?: MarkData[];
|
|
18237
18087
|
}
|
|
18238
|
-
|
|
18239
|
-
|
|
18240
|
-
|
|
18241
|
-
|
|
18242
|
-
|
|
18243
|
-
|
|
18088
|
+
declare const local_mark_operation: (op: LocalMarkOperation) => Promise<LocalMarkOperationResult>;
|
|
18089
|
+
interface LocalInfoOperation {
|
|
18090
|
+
clear?: {
|
|
18091
|
+
op: "clear";
|
|
18092
|
+
};
|
|
18093
|
+
add?: {
|
|
18094
|
+
op: "add";
|
|
18095
|
+
data: InfoData[];
|
|
18096
|
+
};
|
|
18097
|
+
remove?: {
|
|
18098
|
+
op: "remove";
|
|
18099
|
+
data: string[];
|
|
18100
|
+
};
|
|
18101
|
+
reset?: {
|
|
18102
|
+
op: "reset";
|
|
18103
|
+
name: string;
|
|
18104
|
+
contents: string[];
|
|
18105
|
+
};
|
|
18244
18106
|
}
|
|
18245
|
-
interface
|
|
18246
|
-
|
|
18247
|
-
op: TreasuryOp;
|
|
18248
|
-
signer: string;
|
|
18249
|
-
external_guard: string | null;
|
|
18250
|
-
amount: BalanceType;
|
|
18251
|
-
time: number;
|
|
18252
|
-
store_from_id?: string | null;
|
|
18107
|
+
interface LocalInfoOperationResult {
|
|
18108
|
+
success: boolean;
|
|
18253
18109
|
}
|
|
18254
|
-
|
|
18255
|
-
|
|
18256
|
-
|
|
18257
|
-
|
|
18110
|
+
declare const local_info_operation: (op: LocalInfoOperation) => Promise<LocalInfoOperationResult>;
|
|
18111
|
+
interface LocalHistoryOperation {
|
|
18112
|
+
clear?: {
|
|
18113
|
+
op: "clear";
|
|
18114
|
+
};
|
|
18115
|
+
add?: {
|
|
18116
|
+
op: "add";
|
|
18117
|
+
data: HistoryVisit[];
|
|
18118
|
+
};
|
|
18119
|
+
remove?: {
|
|
18120
|
+
op: "remove";
|
|
18121
|
+
keys: string[];
|
|
18122
|
+
};
|
|
18258
18123
|
}
|
|
18259
|
-
interface
|
|
18260
|
-
|
|
18124
|
+
interface LocalHistoryOperationResult {
|
|
18125
|
+
list?: HistoryEntry[];
|
|
18126
|
+
add?: HistoryEntry[];
|
|
18127
|
+
remove?: HistoryEntry[];
|
|
18128
|
+
clear?: boolean;
|
|
18261
18129
|
}
|
|
18262
|
-
|
|
18263
|
-
|
|
18264
|
-
|
|
18130
|
+
declare const local_history_operation: (op: LocalHistoryOperation) => Promise<LocalHistoryOperationResult>;
|
|
18131
|
+
interface FetchTokenInfoOperation {
|
|
18132
|
+
tokenType?: string | null | undefined;
|
|
18133
|
+
alias?: string;
|
|
18265
18134
|
network?: ENTRYPOINT;
|
|
18266
18135
|
}
|
|
18267
|
-
|
|
18268
|
-
|
|
18269
|
-
|
|
18270
|
-
|
|
18271
|
-
|
|
18272
|
-
|
|
18136
|
+
declare const fetch_token_info_operation: (op: FetchTokenInfoOperation) => Promise<TokenTypeInfo | undefined>;
|
|
18137
|
+
//#endregion
|
|
18138
|
+
//#region src/w/common.d.ts
|
|
18139
|
+
type AddressResult = TransactionResult$1 | TransactionObjectArgument;
|
|
18140
|
+
type ObjectResult = TransactionResult$1 | string | TransactionObjectArgument;
|
|
18141
|
+
type PermissionAddress = AddressResult;
|
|
18142
|
+
type PermissionObject = ObjectResult;
|
|
18143
|
+
type RepositoryAddress = AddressResult;
|
|
18144
|
+
type RepositoryObject = ObjectResult;
|
|
18145
|
+
type GuardAddress = AddressResult;
|
|
18146
|
+
type GuardObject = ObjectResult;
|
|
18147
|
+
type MachineAddress = AddressResult;
|
|
18148
|
+
type MachineObject = ObjectResult;
|
|
18149
|
+
type ContactAddress = AddressResult;
|
|
18150
|
+
type ContactObject = ObjectResult;
|
|
18151
|
+
type PassportObject = TransactionResult$1;
|
|
18152
|
+
type DemandAddress = AddressResult;
|
|
18153
|
+
type DemandObject = ObjectResult;
|
|
18154
|
+
type ServiceObject = ObjectResult;
|
|
18155
|
+
type ServiceAddress = AddressResult;
|
|
18156
|
+
type ArbitrationObject = ObjectResult;
|
|
18157
|
+
type ArbitrationAddress = AddressResult;
|
|
18158
|
+
type ArbObject = ObjectResult;
|
|
18159
|
+
type ArbAddress = AddressResult;
|
|
18160
|
+
type ProgressObject = ObjectResult;
|
|
18161
|
+
type ProgressAddress = AddressResult;
|
|
18162
|
+
type TreasuryObject = ObjectResult;
|
|
18163
|
+
type TreasuryAddress = AddressResult;
|
|
18164
|
+
type OrderObject = ObjectResult;
|
|
18165
|
+
type OrderAddress = AddressResult;
|
|
18166
|
+
type DiscountObject = ObjectResult;
|
|
18167
|
+
type CoinObject = TransactionObjectArgument;
|
|
18168
|
+
type ResourceObject = ObjectResult;
|
|
18169
|
+
type ResourceAddress = AddressResult;
|
|
18170
|
+
type PaymentObject = ObjectResult;
|
|
18171
|
+
type PaymentAddress = AddressResult;
|
|
18172
|
+
type AllocationObject = TransactionObjectArgument;
|
|
18173
|
+
type AllocationAddress = AddressResult;
|
|
18174
|
+
type RewardObject = ObjectResult;
|
|
18175
|
+
type RewardAddress = AddressResult;
|
|
18176
|
+
type ReceivedObject = ObjectResult;
|
|
18177
|
+
type ProofAddress = AddressResult;
|
|
18178
|
+
type CoinWrapperObject = TransactionResult$1;
|
|
18179
|
+
type PaymentInfoObject = TransactionObjectArgument;
|
|
18180
|
+
type TxObject = ObjectResult | PassportObject | CoinWrapperObject;
|
|
18181
|
+
type TxAddress = string | TransactionResult$1 | TransactionObjectArgument;
|
|
18182
|
+
type TxString = string | TransactionArgument;
|
|
18183
|
+
type TxNumber = number | TransactionArgument | bigint | string;
|
|
18184
|
+
type TxAddressVec = Array<string> | TransactionResult$1;
|
|
18185
|
+
type TxNumberVec = Array<number | bigint | string> | TransactionResult$1;
|
|
18186
|
+
declare enum ValueType {
|
|
18187
|
+
Bool = 0,
|
|
18188
|
+
Address = 1,
|
|
18189
|
+
String = 2,
|
|
18190
|
+
U8 = 3,
|
|
18191
|
+
U16 = 4,
|
|
18192
|
+
U32 = 5,
|
|
18193
|
+
U64 = 6,
|
|
18194
|
+
U128 = 7,
|
|
18195
|
+
U256 = 8,
|
|
18196
|
+
VecBool = 9,
|
|
18197
|
+
VecAddress = 10,
|
|
18198
|
+
VecString = 11,
|
|
18199
|
+
VecU8 = 12,
|
|
18200
|
+
VecU16 = 13,
|
|
18201
|
+
VecU32 = 14,
|
|
18202
|
+
VecU64 = 15,
|
|
18203
|
+
VecU128 = 16,
|
|
18204
|
+
VecU256 = 17,
|
|
18205
|
+
VecVecU8 = 18,
|
|
18206
|
+
Value = 19
|
|
18273
18207
|
}
|
|
18274
|
-
interface
|
|
18275
|
-
|
|
18276
|
-
|
|
18277
|
-
hasNextPage: boolean;
|
|
18278
|
-
cache_expire?: CacheExpireType;
|
|
18208
|
+
interface ValueContainer<T extends ValueType = ValueType> {
|
|
18209
|
+
valueType: T;
|
|
18210
|
+
value: ValueTypeToType[T];
|
|
18279
18211
|
}
|
|
18280
|
-
|
|
18281
|
-
|
|
18282
|
-
|
|
18283
|
-
|
|
18284
|
-
|
|
18285
|
-
|
|
18286
|
-
|
|
18287
|
-
|
|
18212
|
+
type ValueTypeToType = {
|
|
18213
|
+
[ValueType.Bool]: boolean;
|
|
18214
|
+
[ValueType.Address]: AccountOrMark_Address | string;
|
|
18215
|
+
[ValueType.String]: string;
|
|
18216
|
+
[ValueType.U8]: number;
|
|
18217
|
+
[ValueType.U16]: number;
|
|
18218
|
+
[ValueType.U32]: number;
|
|
18219
|
+
[ValueType.U64]: bigint | number;
|
|
18220
|
+
[ValueType.U128]: bigint;
|
|
18221
|
+
[ValueType.U256]: bigint;
|
|
18222
|
+
[ValueType.VecBool]: boolean[];
|
|
18223
|
+
[ValueType.VecAddress]: ManyAccountOrMark_Address | string[];
|
|
18224
|
+
[ValueType.VecString]: string[];
|
|
18225
|
+
[ValueType.VecU8]: number[] | Uint8Array;
|
|
18226
|
+
[ValueType.VecU16]: number[];
|
|
18227
|
+
[ValueType.VecU32]: number[];
|
|
18228
|
+
[ValueType.VecU64]: (bigint | number)[];
|
|
18229
|
+
[ValueType.VecU128]: bigint[];
|
|
18230
|
+
[ValueType.VecU256]: bigint[];
|
|
18231
|
+
[ValueType.VecVecU8]: (number[] | Uint8Array)[];
|
|
18232
|
+
[ValueType.Value]: ValueContainer;
|
|
18233
|
+
};
|
|
18234
|
+
type SupportedValue = ValueTypeToType[keyof ValueTypeToType];
|
|
18235
|
+
/**
|
|
18236
|
+
* ValueType 输入类型 - 支持数字枚举或字符串名称
|
|
18237
|
+
* 字符串不区分大小写,如 "U64", "u64", "U64" 都有效
|
|
18238
|
+
*/
|
|
18239
|
+
type ValueTypeInput = ValueType | string;
|
|
18240
|
+
/**
|
|
18241
|
+
* 将 ValueTypeInput 转换为 ValueType 枚举
|
|
18242
|
+
* @param input - 数字枚举值或字符串名称
|
|
18243
|
+
* @returns ValueType 枚举值
|
|
18244
|
+
* @throws 如果输入无效
|
|
18245
|
+
*/
|
|
18246
|
+
declare const parseValueType: (input: ValueTypeInput) => ValueType;
|
|
18247
|
+
/**
|
|
18248
|
+
* 将 ValueType 枚举转换为字符串名称
|
|
18249
|
+
* @param type - ValueType 枚举值
|
|
18250
|
+
* @returns 字符串名称,如 "U64"
|
|
18251
|
+
*/
|
|
18252
|
+
declare const valueTypeToString: (type: ValueType) => string;
|
|
18253
|
+
/**
|
|
18254
|
+
* 检查输入是否为有效的 ValueTypeInput
|
|
18255
|
+
* @param input - 任意输入
|
|
18256
|
+
* @returns 是否有效
|
|
18257
|
+
*/
|
|
18258
|
+
declare const isValidValueTypeInput: (input: unknown) => input is ValueTypeInput;
|
|
18259
|
+
declare enum OperatorType {
|
|
18260
|
+
TypeQuery = 40,
|
|
18261
|
+
// 查询类型
|
|
18262
|
+
TypeNumberAdd = 200,
|
|
18263
|
+
// 数值加法
|
|
18264
|
+
TypeNumberSubtract = 201,
|
|
18265
|
+
// 数值减法
|
|
18266
|
+
TypeNumberMultiply = 202,
|
|
18267
|
+
// 数值乘法
|
|
18268
|
+
TypeNumberDivide = 203,
|
|
18269
|
+
// 数值除法
|
|
18270
|
+
TypeNumberMod = 204,
|
|
18271
|
+
// 数值取模
|
|
18272
|
+
TypeNumberAddress = 205,
|
|
18273
|
+
// 数值转地址
|
|
18274
|
+
TypeNumberString = 206,
|
|
18275
|
+
// 数值转字符串
|
|
18276
|
+
TypeAddressNumber = 207,
|
|
18277
|
+
// 地址转数值
|
|
18278
|
+
TypeStringNumber = 208,
|
|
18279
|
+
// 字符串转数值
|
|
18280
|
+
TypeSafeU8 = 220,
|
|
18281
|
+
// 转换为安全U8类型
|
|
18282
|
+
TypeSafeU16 = 221,
|
|
18283
|
+
// 转换为安全U16类型
|
|
18284
|
+
TypeSafeU32 = 222,
|
|
18285
|
+
// 转换为安全U32类型
|
|
18286
|
+
TypeSafeU64 = 223,
|
|
18287
|
+
// 转换为安全U64类型
|
|
18288
|
+
TypeSafeU128 = 224,
|
|
18289
|
+
// 转换为安全U128类型
|
|
18290
|
+
TypeSafeU256 = 225,
|
|
18291
|
+
// 转换为安全U256类型
|
|
18292
|
+
TypeStringLength = 61,
|
|
18293
|
+
// 获取字符串长度
|
|
18294
|
+
TypeStringIndexof = 62,
|
|
18295
|
+
// 字符串查找
|
|
18296
|
+
TypeStringNocaseIndexof = 63,
|
|
18297
|
+
// 字符串查找(不区分大小写)
|
|
18298
|
+
TypeStringContains = 64,
|
|
18299
|
+
// 字符串包含检查
|
|
18300
|
+
TypeStringNocaseContains = 65,
|
|
18301
|
+
// 字符串包含检查(不区分大小写)
|
|
18302
|
+
TypeStringNocaseEqual = 66,
|
|
18303
|
+
// 字符串相等检查(不区分大小写)
|
|
18304
|
+
TypedValueType = 70,
|
|
18305
|
+
// 获取TypedValue类型
|
|
18306
|
+
TypedValueVecLength = 71,
|
|
18307
|
+
// 获取TypedValue向量长度
|
|
18308
|
+
TypedValueVecContains_Bool = 72,
|
|
18309
|
+
// 检查TypedValue向量是否包含布尔值
|
|
18310
|
+
TypedValueVecContains_Address = 73,
|
|
18311
|
+
// 检查TypedValue向量是否包含地址
|
|
18312
|
+
TypedValueVecContains_String = 74,
|
|
18313
|
+
// 检查TypedValue向量是否包含字符串
|
|
18314
|
+
TypedValueVecContains_StringNoCase = 75,
|
|
18315
|
+
// 检查TypedValue向量是否包含字符串(不区分大小写)
|
|
18316
|
+
TypedValueVecContains_Number = 76,
|
|
18317
|
+
// 检查TypedValue向量是否包含数值
|
|
18318
|
+
TypedValueVecIndexOf_Bool = 77,
|
|
18319
|
+
// 查找TypedValue向量中布尔值的索引
|
|
18320
|
+
TypedValueVecIndexOf_Address = 78,
|
|
18321
|
+
// 查找TypedValue向量中地址的索引
|
|
18322
|
+
TypedValueVecIndexOf_String = 79,
|
|
18323
|
+
// 查找TypedValue向量中字符串的索引
|
|
18324
|
+
TypedValueVecIndexOf_StringNoCase = 80,
|
|
18325
|
+
// 查找TypedValue向量中字符串的索引(不区分大小写)
|
|
18326
|
+
TypedValueVecIndexOf_Number = 81,
|
|
18327
|
+
// 查找TypedValue向量中数值的索引
|
|
18328
|
+
TypeLogicEqual = 90,
|
|
18329
|
+
// 逻辑相等
|
|
18330
|
+
TypeLogicAsU256Greater = 91,
|
|
18331
|
+
// 逻辑U256大于
|
|
18332
|
+
TypeLogicAsU256GreaterEqual = 92,
|
|
18333
|
+
// 逻辑U256大于等于
|
|
18334
|
+
TypeLogicAsU256Lesser = 93,
|
|
18335
|
+
// 逻辑U256小于
|
|
18336
|
+
TypeLogicAsU256LesserEqual = 94,
|
|
18337
|
+
// 逻辑U256小于等于
|
|
18338
|
+
TypeLogicAsU256Equal = 95,
|
|
18339
|
+
// 逻辑U256相等
|
|
18340
|
+
TypeLogicAnd = 96,
|
|
18341
|
+
// 逻辑与
|
|
18342
|
+
TypeLogicOr = 97,
|
|
18343
|
+
// 逻辑或
|
|
18344
|
+
TypeLogicNot = 98
|
|
18288
18345
|
}
|
|
18289
|
-
|
|
18290
|
-
|
|
18291
|
-
|
|
18292
|
-
|
|
18293
|
-
|
|
18294
|
-
|
|
18295
|
-
|
|
18296
|
-
|
|
18346
|
+
declare enum WitnessType {
|
|
18347
|
+
TypeOrderProgress = 100,
|
|
18348
|
+
TypeOrderMachine = 101,
|
|
18349
|
+
TypeOrderService = 102,
|
|
18350
|
+
TypeProgressMachine = 103,
|
|
18351
|
+
TypeArbOrder = 104,
|
|
18352
|
+
TypeArbArbitration = 105,
|
|
18353
|
+
TypeArbProgress = 106,
|
|
18354
|
+
TypeArbMachine = 107,
|
|
18355
|
+
TypeArbService = 108
|
|
18297
18356
|
}
|
|
18298
|
-
declare const
|
|
18299
|
-
declare const query_shared_objects_json: (json: string) => Promise<string>;
|
|
18300
|
-
declare const query_table_json: (json: string) => Promise<string>;
|
|
18301
|
-
declare const query_objects: (query: ObjectsQuery) => Promise<ObjectsAnswer>;
|
|
18357
|
+
declare const isWitnessType: (type: number | WitnessType | undefined | null) => type is WitnessType;
|
|
18302
18358
|
/**
|
|
18303
|
-
*
|
|
18304
|
-
*
|
|
18305
|
-
*
|
|
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>, ...).
|
|
18359
|
+
* WitnessType 输入类型 - 支持数字枚举或字符串名称
|
|
18360
|
+
* 字符串不区分大小写,如 "TypeOrderProgress", "typeorderprogress", "ORDERPROGRESS" 都有效
|
|
18361
|
+
* 也支持去掉 "Type" 前缀的简写形式,如 "OrderProgress", "orderprogress"
|
|
18313
18362
|
*/
|
|
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>;
|
|
18363
|
+
type WitnessTypeInput = WitnessType | string;
|
|
18340
18364
|
/**
|
|
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.
|
|
18365
|
+
* 将 WitnessTypeInput 转换为 WitnessType 枚举
|
|
18366
|
+
* @param input - 数字枚举值或字符串名称
|
|
18367
|
+
* @returns WitnessType 枚举值
|
|
18368
|
+
* @throws 如果输入无效
|
|
18355
18369
|
*/
|
|
18356
|
-
|
|
18357
|
-
/** Exact coin instantiation, e.g. `0x2::wow::WOW<0x...>`; omit = ALL Service<T>. */
|
|
18358
|
-
coin_type?: string;
|
|
18359
|
-
/** Case-insensitive substring filter on service name. */
|
|
18360
|
-
name_contains?: string;
|
|
18361
|
-
/** Case-insensitive any-of substring filters on service location. */
|
|
18362
|
-
location_any?: string[];
|
|
18363
|
-
/** Enumeration cap before filtering (default 200). */
|
|
18364
|
-
max_objects?: number;
|
|
18365
|
-
network?: ENTRYPOINT;
|
|
18366
|
-
no_cache?: boolean;
|
|
18367
|
-
}
|
|
18368
|
-
interface ServiceSummary {
|
|
18369
|
-
object: string;
|
|
18370
|
-
type_raw: string;
|
|
18371
|
-
version: string;
|
|
18372
|
-
digest?: string;
|
|
18373
|
-
name?: string;
|
|
18374
|
-
location?: string;
|
|
18375
|
-
/** Smallest-unit string, when present in contents. */
|
|
18376
|
-
price?: string;
|
|
18377
|
-
tags?: string[];
|
|
18378
|
-
json: Record<string, unknown> | null;
|
|
18379
|
-
}
|
|
18380
|
-
interface ServicesAnswer {
|
|
18381
|
-
services: ServiceSummary[];
|
|
18382
|
-
/** Objects enumerated before client-side filtering. */
|
|
18383
|
-
total_enumerated: number;
|
|
18384
|
-
/** True when enumeration was truncated at max_objects (partial universe). */
|
|
18385
|
-
has_more: boolean;
|
|
18386
|
-
}
|
|
18387
|
-
declare const query_services: (query: ServicesQuery) => Promise<ServicesAnswer>;
|
|
18370
|
+
declare const parseWitnessType: (input: WitnessTypeInput) => WitnessType;
|
|
18388
18371
|
/**
|
|
18389
|
-
*
|
|
18390
|
-
*
|
|
18391
|
-
*
|
|
18392
|
-
*
|
|
18393
|
-
* required for discovery. "New demand" detection is a caller concern (seen-set
|
|
18394
|
-
* diff or `query_object_last_updated`), this returns the full typed universe.
|
|
18372
|
+
* 将 WitnessType 枚举转换为用户友好的字符串名称
|
|
18373
|
+
* 返回去掉 "Type" 前缀的名称,如 "OrderProgress" (而非 "TypeOrderProgress")
|
|
18374
|
+
* @param type - WitnessType 枚举值
|
|
18375
|
+
* @returns 字符串名称
|
|
18395
18376
|
*/
|
|
18396
|
-
|
|
18397
|
-
|
|
18398
|
-
|
|
18399
|
-
|
|
18400
|
-
|
|
18377
|
+
declare const witnessTypeToString: (type: WitnessType) => string;
|
|
18378
|
+
/**
|
|
18379
|
+
* 检查输入是否为有效的 WitnessTypeInput
|
|
18380
|
+
* @param input - 任意输入
|
|
18381
|
+
* @returns 是否有效
|
|
18382
|
+
*/
|
|
18383
|
+
declare const isValidWitnessTypeInput: (input: unknown) => input is WitnessTypeInput;
|
|
18384
|
+
declare enum ContextType {
|
|
18385
|
+
TypeSigner = 45,
|
|
18386
|
+
TypeClock = 46,
|
|
18387
|
+
TypeGuard = 47,
|
|
18388
|
+
TypeConstant = 48
|
|
18401
18389
|
}
|
|
18402
|
-
|
|
18403
|
-
|
|
18404
|
-
|
|
18405
|
-
|
|
18406
|
-
|
|
18407
|
-
|
|
18390
|
+
declare enum Modules {
|
|
18391
|
+
Machine = "machine",
|
|
18392
|
+
Progress = "progress",
|
|
18393
|
+
Repository = "repository",
|
|
18394
|
+
Permission = "permission",
|
|
18395
|
+
Passport = "passport",
|
|
18396
|
+
Guard = "guard",
|
|
18397
|
+
Demand = "demand",
|
|
18398
|
+
Order = "order",
|
|
18399
|
+
Service = "service",
|
|
18400
|
+
Resource = "resource",
|
|
18401
|
+
Entity = "entity",
|
|
18402
|
+
Wowok = "wowok",
|
|
18403
|
+
Treasury = "treasury",
|
|
18404
|
+
Payment = "payment",
|
|
18405
|
+
Arbitration = "arbitration",
|
|
18406
|
+
Arb = "arb",
|
|
18407
|
+
Allocation = "allocation"
|
|
18408
18408
|
}
|
|
18409
|
-
declare const
|
|
18409
|
+
declare const PackageAddress = "0x2";
|
|
18410
|
+
declare const GasTokenType = "0x2::wow::WOW";
|
|
18411
|
+
declare const GasCoinType = "0x2::coin::Coin<0x2::wow::WOW>";
|
|
18412
|
+
declare const RegistrarAddress = "0xaaa";
|
|
18413
|
+
declare const EntityAddress = "0xaab";
|
|
18414
|
+
declare const MAX_ENV_PERMISSION_GUARD_COUNT = 4;
|
|
18415
|
+
declare const isGasTokenType: (token_type: string) => boolean;
|
|
18416
|
+
declare const isValidValueType: (valueType: number) => boolean;
|
|
18417
|
+
declare const isThisPackage: (type: string) => boolean;
|
|
18418
|
+
declare const isValidArray: <T>(arr: T[], validator: (item: T) => boolean) => boolean;
|
|
18419
|
+
/** u8::MAX (2^8 - 1). */
|
|
18420
|
+
declare const U8_MAX = 255;
|
|
18421
|
+
/** u16::MAX (2^16 - 1). */
|
|
18422
|
+
declare const U16_MAX = 65535;
|
|
18423
|
+
/** u32::MAX (2^32 - 1). */
|
|
18424
|
+
declare const U32_MAX = 4294967295;
|
|
18425
|
+
/** u64::MAX (2^64 - 1). */
|
|
18426
|
+
declare const U64_MAX = 18446744073709551615n;
|
|
18427
|
+
/** u128::MAX (2^128 - 1). */
|
|
18428
|
+
declare const U128_MAX = 340282366920938463463374607431768211455n;
|
|
18429
|
+
/** u256::MAX (2^256 - 1). */
|
|
18430
|
+
declare const U256_MAX = 115792089237316195423570985008687907853269984665640564039457584007913129639935n;
|
|
18431
|
+
declare const isValidU8: (value: number | bigint | string) => boolean;
|
|
18432
|
+
declare const isValidU16: (value: number | bigint | string) => boolean;
|
|
18433
|
+
declare const isValidU64: (value: number | bigint | string) => boolean;
|
|
18434
|
+
declare const isValidU128: (value: number | bigint | string) => boolean;
|
|
18435
|
+
declare const isValidU256: (value: number | bigint | string) => boolean;
|
|
18436
|
+
declare const isValidU32: (value: number | bigint | string) => boolean;
|
|
18437
|
+
declare const IsBcsStringLength: (str: string, max_len: number) => boolean;
|
|
18438
|
+
declare const MAX_DESCRIPTION_LENGTH = 4000;
|
|
18439
|
+
declare const MAX_NAME_LENGTH = 64;
|
|
18440
|
+
declare const MAX_LONG_NAME_LENGTH = 256;
|
|
18441
|
+
declare const MAX_GUARD_TABLE_ITEM_LENGTH = 256;
|
|
18442
|
+
declare const MAX_INPUT_SIZE = 1024;
|
|
18443
|
+
declare const MAX_DEPENDED_COUNT = 4;
|
|
18444
|
+
/** Number ops (calc_number_*): 2..=8. · wtype.rs:55 */
|
|
18445
|
+
declare const MAX_NUMBER_OPERANDS = 8;
|
|
18446
|
+
/** Logic ops (logic_*): 2..=8. · wtype.rs:58 */
|
|
18447
|
+
declare const MAX_LOGIC_OPERANDS = 8;
|
|
18448
|
+
/** String ops (string contains/equal): 2..=6. · wtype.rs:61 */
|
|
18449
|
+
declare const MAX_STRING_OPERANDS = 6;
|
|
18410
18450
|
/**
|
|
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.
|
|
18451
|
+
* Generic cap used where the SDK validates a non-string multi-operand op
|
|
18452
|
+
* without distinguishing number from logic (both caps above are 8).
|
|
18416
18453
|
*/
|
|
18417
|
-
|
|
18418
|
-
|
|
18419
|
-
|
|
18420
|
-
|
|
18421
|
-
|
|
18422
|
-
|
|
18423
|
-
|
|
18424
|
-
|
|
18425
|
-
|
|
18426
|
-
|
|
18427
|
-
|
|
18454
|
+
declare const MAX_MULTI_OPERANDS = 8;
|
|
18455
|
+
declare const MAX_GUARD_NODE_DEPTH = 128;
|
|
18456
|
+
declare const isValidDescription: (description: string) => boolean;
|
|
18457
|
+
declare const isValidName: (name: string) => boolean;
|
|
18458
|
+
declare const isValidLongName: (name: string) => boolean;
|
|
18459
|
+
declare const isValidHttpUrl: (url: string) => boolean;
|
|
18460
|
+
declare const isValueTypeNumber: (valueType: ValueType | number) => boolean;
|
|
18461
|
+
declare const toTxObject: (tx: Transaction$1, arg: TxObject) => TransactionObjectArgument;
|
|
18462
|
+
declare const toTxReceivingObject: (tx: Transaction$1, objectId: string, version: string | number | undefined, digest: string | undefined) => TransactionObjectArgument;
|
|
18463
|
+
declare const toTxString: (tx: Transaction$1, arg: TxString) => TransactionArgument;
|
|
18464
|
+
declare const toTxU8: (tx: Transaction$1, arg: TxNumber) => TransactionArgument;
|
|
18465
|
+
declare const toTxU16: (tx: Transaction$1, arg: TxNumber) => TransactionArgument;
|
|
18466
|
+
declare const toTxU32: (tx: Transaction$1, arg: TxNumber) => TransactionArgument;
|
|
18467
|
+
declare const toTxU128: (tx: Transaction$1, arg: TxNumber) => TransactionArgument;
|
|
18468
|
+
declare const toTxU256: (tx: Transaction$1, arg: TxNumber) => TransactionArgument;
|
|
18469
|
+
declare const toTxU64: (tx: Transaction$1, arg: TxNumber) => TransactionArgument;
|
|
18470
|
+
declare const toTxAddress: (tx: Transaction$1, arg: TxAddress) => TransactionArgument;
|
|
18471
|
+
declare const toTxAddressVec: (tx: Transaction$1, arg: TxAddressVec, max_len: number) => TransactionArgument;
|
|
18472
|
+
declare const toTxU16Vec: (tx: Transaction$1, arg: TxNumberVec, max_len: number) => TransactionArgument;
|
|
18473
|
+
declare const object_name_from_type: (type_repr: string | null | undefined) => string | undefined;
|
|
18474
|
+
interface ObjectModuleAndName {
|
|
18475
|
+
module: string;
|
|
18476
|
+
name: string;
|
|
18428
18477
|
}
|
|
18429
|
-
|
|
18430
|
-
|
|
18431
|
-
|
|
18432
|
-
|
|
18433
|
-
|
|
18434
|
-
|
|
18478
|
+
declare const object_module_and_name_from_type: (type_repr: string | null | undefined) => ObjectModuleAndName | undefined;
|
|
18479
|
+
interface NamedObject {
|
|
18480
|
+
name?: string;
|
|
18481
|
+
tags?: string[];
|
|
18482
|
+
replaceExistName?: boolean;
|
|
18483
|
+
onChain?: boolean;
|
|
18435
18484
|
}
|
|
18436
|
-
|
|
18437
|
-
|
|
18438
|
-
declare const query_table: (query: TableQuery) => Promise<TableAnswer | undefined>;
|
|
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;
|
|
18485
|
+
interface NamedObjectWithDescription extends NamedObject {
|
|
18486
|
+
description?: string;
|
|
18445
18487
|
}
|
|
18446
|
-
interface
|
|
18447
|
-
|
|
18448
|
-
u64: number | string | bigint;
|
|
18449
|
-
no_cache?: boolean;
|
|
18450
|
-
network?: ENTRYPOINT;
|
|
18488
|
+
interface NamedObjectWithPermission extends NamedObject {
|
|
18489
|
+
permission?: DescriptionObject;
|
|
18451
18490
|
}
|
|
18452
|
-
interface
|
|
18453
|
-
|
|
18454
|
-
key: string;
|
|
18455
|
-
no_cache?: boolean;
|
|
18456
|
-
network?: ENTRYPOINT;
|
|
18491
|
+
interface TypeNamedObjectWithPermission extends NamedObjectWithPermission {
|
|
18492
|
+
type_parameter: string;
|
|
18457
18493
|
}
|
|
18458
|
-
interface
|
|
18459
|
-
|
|
18460
|
-
name: string;
|
|
18461
|
-
entity: AccountOrMark_Address | bigint | number;
|
|
18462
|
-
no_cache?: boolean;
|
|
18463
|
-
network?: ENTRYPOINT;
|
|
18494
|
+
interface TypeNamedObject extends NamedObject {
|
|
18495
|
+
type_parameter: string;
|
|
18464
18496
|
}
|
|
18465
|
-
|
|
18466
|
-
|
|
18467
|
-
|
|
18497
|
+
type TypedPermissionObject = string | TypeNamedObjectWithPermission;
|
|
18498
|
+
type TypedDescriptionObject = string | TypeNamedObject;
|
|
18499
|
+
type WithPermissionObject = string | NamedObjectWithPermission;
|
|
18500
|
+
type NormalObject = string | NamedObject;
|
|
18501
|
+
type DescriptionObject = string | NamedObjectWithDescription;
|
|
18502
|
+
type WObject = TypedPermissionObject | TypedDescriptionObject | PermissionObject | NormalObject | DescriptionObject;
|
|
18503
|
+
declare const GetObjectExisted: (object?: WObject) => Promise<string | undefined>;
|
|
18504
|
+
declare const GetObjectDescription: (object?: WObject) => string | undefined;
|
|
18505
|
+
declare const GetObject: (object?: WObject) => NamedObjectWithPermission | TypeNamedObjectWithPermission | NamedObjectWithDescription | TypeNamedObject | undefined;
|
|
18506
|
+
declare const MAX_PERMISSION_GUARD_COUNT = 4;
|
|
18507
|
+
interface CallEnv {
|
|
18468
18508
|
network?: ENTRYPOINT;
|
|
18469
|
-
|
|
18470
|
-
|
|
18471
|
-
declare const queryTableItem_PermissionPerm: (query: QueryTableItem_byAddress) => Promise<TableItem_PermissionPerm | undefined>;
|
|
18472
|
-
declare const queryTableItem_EntityRegistrar: (query: QueryTableItem_Entity) => Promise<TableItem_EntityRegistrar | undefined>;
|
|
18473
|
-
declare const queryTableItem_EntityLinker: (query: QueryTableItem_Entity) => Promise<TableItem_EntityLinker | undefined>;
|
|
18474
|
-
declare const queryTableItem_EntityContact: (query: QueryTableItem_Entity) => Promise<TableItem_EntityContact | undefined>;
|
|
18475
|
-
declare const queryTableItem_ObjectLinkerCore: (query: QueryTableItem_Entity) => Promise<TableItem_ObjectLinkerCore | undefined>;
|
|
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;
|
|
18501
|
-
}
|
|
18502
|
-
interface QueryOrdersByUser {
|
|
18503
|
-
address: AccountOrMark_Address | string;
|
|
18509
|
+
account?: string | null;
|
|
18510
|
+
permission_guard?: string[];
|
|
18504
18511
|
no_cache?: boolean;
|
|
18505
|
-
|
|
18506
|
-
|
|
18507
|
-
|
|
18508
|
-
|
|
18509
|
-
|
|
18510
|
-
|
|
18511
|
-
|
|
18512
|
-
|
|
18513
|
-
|
|
18514
|
-
|
|
18515
|
-
|
|
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;
|
|
18521
|
-
}
|
|
18522
|
-
/** Role evidence derived from the address's on-chain facts (K3 22 §13 P1-7). */
|
|
18523
|
-
interface RoleEvidence {
|
|
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;
|
|
18532
|
-
}
|
|
18533
|
-
interface AddressProfile {
|
|
18534
|
-
address: string;
|
|
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;
|
|
18512
|
+
referrer?: string | null;
|
|
18513
|
+
/**
|
|
18514
|
+
* Opt-out of SDK-level Entity auto-registration. By default the SDK
|
|
18515
|
+
* appends registrar::entity_register to a business transaction when the
|
|
18516
|
+
* sender has no entry in the global Entity table (one-time per account).
|
|
18517
|
+
* Set true to keep transactions untouched — e.g. after an explicit
|
|
18518
|
+
* entity_cancel, or for callers that must not mutate the Entity table.
|
|
18519
|
+
*/
|
|
18520
|
+
no_auto_register?: boolean;
|
|
18521
|
+
/** When true, simulate the transaction without signing or submitting (dry_run / Plan verification). */
|
|
18522
|
+
dry_run?: boolean;
|
|
18551
18523
|
}
|
|
18552
|
-
|
|
18553
|
-
|
|
18554
|
-
|
|
18555
|
-
|
|
18524
|
+
declare const CoinWrapPrefix = "0x2::payment::CoinWrapper";
|
|
18525
|
+
type BalanceType = number | bigint | string;
|
|
18526
|
+
declare const IsValidBalance: (balance: BalanceType) => boolean;
|
|
18527
|
+
declare const IsValidEndpoint: (endpoint?: string | null | undefined) => boolean;
|
|
18528
|
+
declare const IsValidArgType: (arg_type: string | null | undefined) => boolean;
|
|
18529
|
+
type CoinParam = {
|
|
18530
|
+
coin: CoinObject | string;
|
|
18531
|
+
} | {
|
|
18532
|
+
balance: BalanceType;
|
|
18533
|
+
};
|
|
18534
|
+
declare enum RecipientType {
|
|
18535
|
+
GuardIdentifier = 0,
|
|
18536
|
+
Entity = 1,
|
|
18537
|
+
Signer = 2
|
|
18556
18538
|
}
|
|
18557
|
-
|
|
18558
|
-
|
|
18559
|
-
|
|
18560
|
-
|
|
18561
|
-
|
|
18562
|
-
|
|
18563
|
-
|
|
18564
|
-
|
|
18565
|
-
|
|
18566
|
-
|
|
18567
|
-
|
|
18568
|
-
|
|
18569
|
-
|
|
18570
|
-
|
|
18571
|
-
|
|
18539
|
+
type Recipient = {
|
|
18540
|
+
GuardIdentifier: number;
|
|
18541
|
+
} | {
|
|
18542
|
+
Entity: AccountOrMark_Address;
|
|
18543
|
+
} | {
|
|
18544
|
+
Signer: "signer";
|
|
18545
|
+
};
|
|
18546
|
+
type ObjectWithType = {
|
|
18547
|
+
object: string;
|
|
18548
|
+
type: string;
|
|
18549
|
+
};
|
|
18550
|
+
declare function serviceFn(name: string): string;
|
|
18551
|
+
declare function demandFn(name: string): string;
|
|
18552
|
+
declare function machineFn(name: string): string;
|
|
18553
|
+
declare function contactFn(name: string): string;
|
|
18554
|
+
declare function treasuryFn(name: string): string;
|
|
18555
|
+
declare function arbitrationFn(name: string): string;
|
|
18556
|
+
declare function repositoryFn(name: string): string;
|
|
18557
|
+
declare function rewardFn(name: string): string;
|
|
18558
|
+
declare enum ObjectType {
|
|
18559
|
+
Permission = "Permission",
|
|
18560
|
+
Repository = "Repository",
|
|
18561
|
+
Arb = "Arb",
|
|
18562
|
+
Arbitration = "Arbitration",
|
|
18563
|
+
Service = "Service",
|
|
18564
|
+
Machine = "Machine",
|
|
18565
|
+
Order = "Order",
|
|
18566
|
+
Progress = "Progress",
|
|
18567
|
+
Payment = "Payment",
|
|
18568
|
+
Treasury = "Treasury",
|
|
18569
|
+
Guard = "Guard",
|
|
18570
|
+
Demand = "Demand",
|
|
18571
|
+
Passport = "Passport",
|
|
18572
|
+
Allocation = "Allocation",
|
|
18573
|
+
Resource = "Resource",
|
|
18574
|
+
Reward = "Reward",
|
|
18575
|
+
Discount = "Discount",
|
|
18576
|
+
EntityRegistrar = "EntityRegistrar",
|
|
18577
|
+
EntityLinker = "EntityLinker",
|
|
18578
|
+
Proof = "Proof",
|
|
18579
|
+
Contact = "Contact",
|
|
18580
|
+
EntityPermission = "EntityPermission",
|
|
18581
|
+
EntityContact = "EntityContact",
|
|
18582
|
+
ObjectLinkerCore = "ObjectLinkerCore",
|
|
18583
|
+
ObjectLinkerTx = "ObjectLinkerTx",
|
|
18584
|
+
EntityOrder = "EntityOrder",
|
|
18585
|
+
WReceivedObject = "WReceivedObject",
|
|
18586
|
+
TableItem_ProgressHistory = "TableItem_ProgressHistory",
|
|
18587
|
+
TableItem_PermissionPerm = "TableItem_PermissionPerm",
|
|
18588
|
+
TableItem_DemandPresenter = "TableItem_DemandPresenter",
|
|
18589
|
+
TableItem_MachineNode = "TableItem_MachineNode",
|
|
18590
|
+
TableItem_TreasuryHistory = "TableItem_TreasuryHistory",
|
|
18591
|
+
TableItem_RepositoryData = "TableItem_RepositoryData",
|
|
18592
|
+
TableItem_RewardRecord = "TableItem_RewardRecord",
|
|
18593
|
+
TableItem_EntityLinker = "TableItem_EntityLinker",
|
|
18594
|
+
TableItem_AddressMark = "TableItem_AddressMark",
|
|
18595
|
+
TableItem_EntityRegistrar = "TableItem_EntityRegistrar",
|
|
18596
|
+
TableItem_EntityPermission = "TableItem_EntityPermission",
|
|
18597
|
+
TableItem_EntityContact = "TableItem_EntityContact",
|
|
18598
|
+
TableItem_ObjectLinkerCore = "TableItem_ObjectLinkerCore",
|
|
18599
|
+
TableItem_ObjectLinkerTx = "TableItem_ObjectLinkerTx",
|
|
18600
|
+
TableItem_EntityOrder = "TableItem_EntityOrder"
|
|
18572
18601
|
}
|
|
18573
|
-
|
|
18574
|
-
|
|
18575
|
-
|
|
18576
|
-
|
|
18577
|
-
|
|
18578
|
-
|
|
18579
|
-
|
|
18580
|
-
|
|
18581
|
-
|
|
18582
|
-
|
|
18583
|
-
declare
|
|
18584
|
-
|
|
18585
|
-
|
|
18586
|
-
|
|
18587
|
-
|
|
18588
|
-
|
|
18589
|
-
object_type?: ObjectType;
|
|
18590
|
-
/** Full raw Move type string, e.g. "0x2::treasury::Treasury<0x2::wow::WOW>". */
|
|
18591
|
-
type_raw?: string;
|
|
18592
|
-
/**
|
|
18593
|
-
* First generic type argument — the token/coin type T for token-generic
|
|
18594
|
-
* objects (Treasury<T>, Service<T>, Coin<T>, Allocation<T>, …). T is
|
|
18595
|
-
* fixed at creation and can NEVER change. Unset when the object type has
|
|
18596
|
-
* no generic parameter (e.g. Order, Guard).
|
|
18597
|
-
*/
|
|
18598
|
-
coin_type?: string;
|
|
18602
|
+
declare const ENTITY_ORDER_ADDRESS: string;
|
|
18603
|
+
declare const ENTITY_CONTACT_ADDRESS: string;
|
|
18604
|
+
declare const ENTITY_LINKER_ADDRESS: string;
|
|
18605
|
+
declare const ENTITY_REGISTRAR_ADDRESS: string;
|
|
18606
|
+
declare const MESSENGER_ADDRESS: string;
|
|
18607
|
+
declare const ENTITY_PERMISSION_ADDRESS: string;
|
|
18608
|
+
declare const OBJECT_LINKER_CORE_ADDRESS: string;
|
|
18609
|
+
declare const OBJECT_LINKER_TX_ADDRESS: string;
|
|
18610
|
+
//#endregion
|
|
18611
|
+
//#region src/w/logger.d.ts
|
|
18612
|
+
declare enum LogLevel {
|
|
18613
|
+
Error = 0,
|
|
18614
|
+
Warn = 1,
|
|
18615
|
+
Info = 2,
|
|
18616
|
+
Debug = 3,
|
|
18617
|
+
Trace = 4
|
|
18599
18618
|
}
|
|
18600
|
-
|
|
18601
|
-
|
|
18602
|
-
|
|
18603
|
-
|
|
18604
|
-
|
|
18605
|
-
|
|
18606
|
-
|
|
18619
|
+
declare function setLogLevel(level: LogLevel | string): void;
|
|
18620
|
+
declare function getLogLevel(): LogLevel;
|
|
18621
|
+
declare class Logger {
|
|
18622
|
+
private prefix;
|
|
18623
|
+
private minLevel;
|
|
18624
|
+
constructor(prefix?: string, minLevel?: LogLevel | null);
|
|
18625
|
+
private getEffectiveLevel;
|
|
18626
|
+
private shouldLog;
|
|
18627
|
+
private log;
|
|
18628
|
+
error(...args: unknown[]): void;
|
|
18629
|
+
warn(...args: unknown[]): void;
|
|
18630
|
+
info(...args: unknown[]): void;
|
|
18631
|
+
debug(...args: unknown[]): void;
|
|
18632
|
+
trace(...args: unknown[]): void;
|
|
18633
|
+
child(prefix: string): Logger;
|
|
18607
18634
|
}
|
|
18635
|
+
declare function createSensitiveLogger(prefix: string): Logger;
|
|
18636
|
+
declare const logger: Logger;
|
|
18637
|
+
//#endregion
|
|
18638
|
+
//#region src/w/util.d.ts
|
|
18608
18639
|
/**
|
|
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.
|
|
18640
|
+
* Pre-resolve an Address/VecAddress-typed SupportedValue to canonical address
|
|
18641
|
+
* strings (write-back) so valueToBcsBytes performs no local lookups during
|
|
18642
|
+
* tx building (operate() stays I/O-free).
|
|
18628
18643
|
*
|
|
18629
|
-
*
|
|
18630
|
-
*
|
|
18631
|
-
*
|
|
18632
|
-
*
|
|
18633
|
-
*
|
|
18644
|
+
* Returns the resolved value, or undefined to KEEP the original:
|
|
18645
|
+
* - already-valid address / non-address value shape (fast-path in operate)
|
|
18646
|
+
* - VecAddress with any unresolved item (all-or-nothing write-back keeps the
|
|
18647
|
+
* original error semantics — no silent address drops)
|
|
18648
|
+
* - non-Address/VecAddress value types (no resolution needed)
|
|
18634
18649
|
*/
|
|
18635
|
-
declare
|
|
18650
|
+
declare const resolveSupportedValue: (valueType: ValueType, value: SupportedValue) => Promise<SupportedValue | undefined>;
|
|
18651
|
+
declare const isValidValueContainer: <T extends ValueType>(container: ValueContainer<T>) => boolean;
|
|
18652
|
+
declare const valueToBcsBytes: <T extends ValueType>(valueType: T, value: ValueTypeToType[T]) => Promise<Uint8Array>;
|
|
18653
|
+
declare const bcsBytesToValue: <T extends ValueType>(bytes: Uint8Array, valueType?: T) => T extends undefined ? SupportedValue : ValueTypeToType[T];
|
|
18654
|
+
declare const parseObjectType: (chain_type: string | null | undefined, header?: string) => string | undefined;
|
|
18655
|
+
declare const parseTypeParameter: (type: string | null | undefined) => string | undefined;
|
|
18656
|
+
declare const extractCoinType: (type: string | null | undefined) => string | undefined;
|
|
18657
|
+
declare function owner_receive$1(tx: Transaction$1, object: TxObject, // MachineObject | DemandObject | ServiceObject ...
|
|
18658
|
+
permission: PermissionObject, param: ReceivedObjects, caller_type: string | undefined, fnBuilder: (name: string) => string, // machineFn | demandFn
|
|
18659
|
+
passport?: PassportObject): Promise<void>;
|
|
18660
|
+
declare function permission_set(tx: Transaction$1, object: TxObject, // MachineObject | DemandObject
|
|
18661
|
+
old_permission: PermissionObject, new_permission: PermissionObject, caller_type: string | undefined, fnBuilder: (name: string) => string): void;
|
|
18662
|
+
declare const validObjects: (objects: (TxObject | undefined | null)[], allowNull?: boolean) => void;
|
|
18663
|
+
declare const uint2address: (value: number | bigint | string) => string;
|
|
18664
|
+
declare const parseRecipient: (whoData: any) => any;
|
|
18636
18665
|
//#endregion
|
|
18637
18666
|
//#region src/w/call/allocation.d.ts
|
|
18638
18667
|
type CallAllocation_Data = {
|
|
@@ -18649,6 +18678,7 @@ declare class CallAllocation extends CallBase {
|
|
|
18649
18678
|
data: CallAllocation_Data;
|
|
18650
18679
|
object_address: string | undefined;
|
|
18651
18680
|
type_parameter: string | undefined;
|
|
18681
|
+
private _auto_claim_alloc;
|
|
18652
18682
|
private _resolved_received_coins;
|
|
18653
18683
|
private _resolved_alloc_pi;
|
|
18654
18684
|
private _resolved_coin_plan;
|
|
@@ -18657,6 +18687,16 @@ declare class CallAllocation extends CallBase {
|
|
|
18657
18687
|
protected prepare(env: CallEnv): Promise<void>;
|
|
18658
18688
|
call(env: CallEnv): Promise<CallResult>;
|
|
18659
18689
|
operate(env: CallEnv, tx: Transaction$1, passport?: PassportObject): Promise<void>;
|
|
18690
|
+
protected sign_and_commit(env: CallEnv, tx: Transaction$1): Promise<WowTransactionBlockResponse>;
|
|
18691
|
+
/**
|
|
18692
|
+
* Claim the CoinWrapper objects THIS alloc_by_guard tx created and that are
|
|
18693
|
+
* owned by the signer (claim-to-self via payment::unwrap_to_myself), so
|
|
18694
|
+
* spendable coins land directly in the caller's wallet in one logical
|
|
18695
|
+
* operation. Wrappers owned by others (Order/Treasury escrow, Entity
|
|
18696
|
+
* recipients ≠ signer) are skipped — those are claimed through their own
|
|
18697
|
+
* receive entries.
|
|
18698
|
+
*/
|
|
18699
|
+
private auto_claim_created_wrappers;
|
|
18660
18700
|
}
|
|
18661
18701
|
declare function allocationFn(name: string): string;
|
|
18662
18702
|
declare const MAX_ALLOCATOR_COUNT: 100;
|
|
@@ -19957,9 +19997,30 @@ interface GuardInstruct {
|
|
|
19957
19997
|
id: OperatorType | ContextType;
|
|
19958
19998
|
description: string;
|
|
19959
19999
|
returnType?: ValueType;
|
|
20000
|
+
/**
|
|
20001
|
+
* Exact JSON shape of the Guard root node for this entry.
|
|
20002
|
+
* Present only for entries whose catalog `name` is NOT itself a root
|
|
20003
|
+
* node `type` ("identifier", "query_wowok_object", "context_*").
|
|
20004
|
+
* For every other entry the root node is simply {"type": name, ...}.
|
|
20005
|
+
* `id` for those special entries is the node OPCODE (40 query / 45-47
|
|
20006
|
+
* context / 48 table constant); for "query_wowok_object" the actual
|
|
20007
|
+
* query selector is a separate U16 query-id (1000+, scope
|
|
20008
|
+
* "object query"), never opcode 40.
|
|
20009
|
+
*/
|
|
20010
|
+
node?: string;
|
|
19960
20011
|
}
|
|
19961
20012
|
declare const GUARDINSTRUCT: GuardInstruct[];
|
|
19962
|
-
|
|
20013
|
+
/**
|
|
20014
|
+
* A catalog row returned by `filterGuardInstruct`. The optional `kind` tag
|
|
20015
|
+
* tells callers how to use the entry:
|
|
20016
|
+
* - "node": a Guard root node. Use the `node` snippet when present,
|
|
20017
|
+
* otherwise the root node is {"type": name, ...}.
|
|
20018
|
+
* - "query": a query-id (1000+); usable ONLY as the `query` selector
|
|
20019
|
+
* INSIDE a {"type":"query"} node, never as a root node type.
|
|
20020
|
+
*/
|
|
20021
|
+
type GuardItem = ((GuardInstruct | GuardQuery) & {
|
|
20022
|
+
kind?: "node" | "query";
|
|
20023
|
+
});
|
|
19963
20024
|
interface GuardInstructFilterOptions {
|
|
19964
20025
|
name?: string;
|
|
19965
20026
|
id?: (OperatorType | ContextType | number)[];
|
|
@@ -20609,8 +20670,16 @@ interface FundingGuidance {
|
|
|
20609
20670
|
steps: string[];
|
|
20610
20671
|
};
|
|
20611
20672
|
airdrop: {
|
|
20673
|
+
/**
|
|
20674
|
+
* Canonical airdrop page. Time-sensitive facts (round number/status,
|
|
20675
|
+
* pool size, start/snapshot dates, eligibility rules) live ONLY on
|
|
20676
|
+
* this page and change between rounds — they are intentionally NOT
|
|
20677
|
+
* embedded as constants. Agents needing current details must fetch
|
|
20678
|
+
* (or send the user to) this URL.
|
|
20679
|
+
*/
|
|
20612
20680
|
url: string;
|
|
20613
|
-
|
|
20681
|
+
refer_url: string;
|
|
20682
|
+
note: string;
|
|
20614
20683
|
};
|
|
20615
20684
|
payment_token: {
|
|
20616
20685
|
testnet_default: string;
|
|
@@ -20721,6 +20790,13 @@ interface ObjectLastUpdatedQuery extends ObjectHistoryQuery {
|
|
|
20721
20790
|
interface AddressActivityQuery {
|
|
20722
20791
|
/** Address (0x...) or account name */
|
|
20723
20792
|
name_or_address: string;
|
|
20793
|
+
/**
|
|
20794
|
+
* Activity direction relative to the address:
|
|
20795
|
+
* - "sent" (default): transactions SENT BY the address (FromAddress index)
|
|
20796
|
+
* - "received": transactions that delivered objects/coins TO the address
|
|
20797
|
+
* (ToAddress index) — the inbound / "when did this arrive" route.
|
|
20798
|
+
*/
|
|
20799
|
+
direction?: "sent" | "received";
|
|
20724
20800
|
/** Pagination cursor */
|
|
20725
20801
|
cursor?: string | null;
|
|
20726
20802
|
/** Max results per page (default 20, max 50) */
|
|
@@ -20804,6 +20880,8 @@ interface TransactionHistoryItem {
|
|
|
20804
20880
|
status: "success" | "failed";
|
|
20805
20881
|
/** Unix timestamp in ms */
|
|
20806
20882
|
timestamp_ms?: string;
|
|
20883
|
+
/** Checkpoint sequence containing this tx (global total order) */
|
|
20884
|
+
checkpoint?: string;
|
|
20807
20885
|
/** Sender address */
|
|
20808
20886
|
sender?: string;
|
|
20809
20887
|
/** Transaction kind */
|
|
@@ -20830,7 +20908,13 @@ declare const query_object_history: (query: ObjectHistoryQuery) => Promise<Trans
|
|
|
20830
20908
|
interface ObjectLastUpdated {
|
|
20831
20909
|
/** Resolved object address. */
|
|
20832
20910
|
object: string;
|
|
20833
|
-
/**
|
|
20911
|
+
/**
|
|
20912
|
+
* Unix timestamp (ms) of the LAST transaction touching this object, if any.
|
|
20913
|
+
* This is a last-modified/write stamp — it is NOT the creation or arrival
|
|
20914
|
+
* time and is replaced by every later write. For creation/arrival use
|
|
20915
|
+
* query_object_history (ascending first entry includes the creating tx) or
|
|
20916
|
+
* query_address_activity({ direction: "received" }).
|
|
20917
|
+
*/
|
|
20834
20918
|
timestamp_ms?: string;
|
|
20835
20919
|
/** Digest of the latest transaction touching this object. */
|
|
20836
20920
|
digest?: string;
|
|
@@ -20930,6 +21014,12 @@ interface Message {
|
|
|
20930
21014
|
createdAt: number;
|
|
20931
21015
|
receivedAt?: number;
|
|
20932
21016
|
zipMetadata?: ZipMetadata;
|
|
21017
|
+
/**
|
|
21018
|
+
* 附件描述符(仅读取出口派生,不持久化)。
|
|
21019
|
+
* 附件消息经 presentMessageForRead 后 plaintext 被剥离(避免 base64 外泄),
|
|
21020
|
+
* 字节需通过 get_attachment / export_attachment 按需获取。
|
|
21021
|
+
*/
|
|
21022
|
+
attachment?: AttachmentDescriptor;
|
|
20933
21023
|
proof?: string;
|
|
20934
21024
|
decryptError?: string;
|
|
20935
21025
|
decryptAttempts?: number;
|
|
@@ -20951,6 +21041,82 @@ interface ZipMetadata {
|
|
|
20951
21041
|
localCachePath?: string;
|
|
20952
21042
|
downloadedAt?: number;
|
|
20953
21043
|
}
|
|
21044
|
+
/**
|
|
21045
|
+
* 附件业务类型(v2 信封 manifest 的 kind)。
|
|
21046
|
+
* 注意 "voice" 只能由发送方显式指定(webm 扩展名无法区分语音与视频)。
|
|
21047
|
+
*/
|
|
21048
|
+
type AttachmentKind = "image" | "video" | "audio" | "voice" | "file" | "wts" | "wip";
|
|
21049
|
+
/**
|
|
21050
|
+
* 信封 v2 的加密内部清单(zip 内 .wowok-manifest.json 条目)。
|
|
21051
|
+
* 随密文端到端传输,服务器不可见;服务器侧的 ZipMetadata 保持不变。
|
|
21052
|
+
*/
|
|
21053
|
+
interface AttachmentManifest {
|
|
21054
|
+
/** 清单版本,当前固定 2 */
|
|
21055
|
+
v: 2;
|
|
21056
|
+
kind: AttachmentKind;
|
|
21057
|
+
/** 原始文件名(无传输用 .zip 后缀) */
|
|
21058
|
+
fileName: string;
|
|
21059
|
+
mimeType: string;
|
|
21060
|
+
/** zip 内条目清单(当前只有一个 payload 条目) */
|
|
21061
|
+
entries: {
|
|
21062
|
+
name: string;
|
|
21063
|
+
size: number;
|
|
21064
|
+
}[];
|
|
21065
|
+
/** 配文(与附件同一条消息,仅发送方可设置) */
|
|
21066
|
+
caption?: string;
|
|
21067
|
+
/** 音视频时长(毫秒) */
|
|
21068
|
+
durationMs?: number;
|
|
21069
|
+
width?: number;
|
|
21070
|
+
height?: number;
|
|
21071
|
+
}
|
|
21072
|
+
/**
|
|
21073
|
+
* 附件的无字节描述符。读取边界(watch/pull)只产出此描述符,
|
|
21074
|
+
* 字节必须通过 get_attachment / export_attachment 按需获取。
|
|
21075
|
+
*/
|
|
21076
|
+
interface AttachmentDescriptor {
|
|
21077
|
+
kind: AttachmentKind;
|
|
21078
|
+
fileName: string;
|
|
21079
|
+
mimeType: string;
|
|
21080
|
+
size: number;
|
|
21081
|
+
caption?: string;
|
|
21082
|
+
durationMs?: number;
|
|
21083
|
+
width?: number;
|
|
21084
|
+
height?: number;
|
|
21085
|
+
}
|
|
21086
|
+
/** 完整附件:描述符 + 单个载荷文件的字节(按需从 DB 解压得到,纯内存) */
|
|
21087
|
+
interface Attachment extends AttachmentDescriptor {
|
|
21088
|
+
/** 载荷字节 */
|
|
21089
|
+
bytes: Uint8Array;
|
|
21090
|
+
}
|
|
21091
|
+
/** send_file / sendZipFile 的附件发送选项(信封 v2) */
|
|
21092
|
+
interface SendAttachmentOptions {
|
|
21093
|
+
/** 自定义文件名(默认取 filePath 的 basename) */
|
|
21094
|
+
fileName?: string;
|
|
21095
|
+
/** 服务器可见的旧版分类(缺省按扩展名推断) */
|
|
21096
|
+
contentType?: ZipContentType;
|
|
21097
|
+
/** 业务类型覆盖;"voice" 只能显式指定 */
|
|
21098
|
+
kind?: AttachmentKind;
|
|
21099
|
+
/** MIME 覆盖(缺省按扩展名推断) */
|
|
21100
|
+
mimeType?: string;
|
|
21101
|
+
/** 配文,写入加密 manifest,服务器不可见 */
|
|
21102
|
+
caption?: string;
|
|
21103
|
+
durationMs?: number;
|
|
21104
|
+
width?: number;
|
|
21105
|
+
height?: number;
|
|
21106
|
+
guardAddress?: string;
|
|
21107
|
+
passportAddress?: string;
|
|
21108
|
+
network?: ENTRYPOINT;
|
|
21109
|
+
force?: boolean;
|
|
21110
|
+
}
|
|
21111
|
+
/** pullAllAccounts 扇出中单账号的结果条目(错误隔离,不抛异常) */
|
|
21112
|
+
interface PullAccountResult {
|
|
21113
|
+
account: string;
|
|
21114
|
+
/** 本次拉取并解密的消息数 */
|
|
21115
|
+
pulled: number;
|
|
21116
|
+
/** 已经过读取边界处理的消息(附件载荷被剥离为描述符) */
|
|
21117
|
+
messages: Message[];
|
|
21118
|
+
error?: string;
|
|
21119
|
+
}
|
|
20954
21120
|
interface MerkleProof {
|
|
20955
21121
|
root: string;
|
|
20956
21122
|
leafIndex: number;
|
|
@@ -21167,6 +21333,7 @@ interface MessengerConfig {
|
|
|
21167
21333
|
defaultQueryLimit?: number;
|
|
21168
21334
|
message_poll_default_interval_ms?: number;
|
|
21169
21335
|
message_poll_fast_interval_ms?: number;
|
|
21336
|
+
message_poll_urgent_interval_ms?: number;
|
|
21170
21337
|
prekey_poll_default_interval_ms?: number;
|
|
21171
21338
|
prekey_poll_fast_interval_ms?: number;
|
|
21172
21339
|
account_poll_delay_ms?: number;
|
|
@@ -21323,6 +21490,19 @@ interface MessageFilter {
|
|
|
21323
21490
|
contentType?: MessageContentType;
|
|
21324
21491
|
/** 只返回已解密的消息 */
|
|
21325
21492
|
decryptedOnly?: boolean;
|
|
21493
|
+
/**
|
|
21494
|
+
* 同步模式(可选,默认 true)
|
|
21495
|
+
* - true/undefined: 阻塞式——先从服务器拉取最新消息再返回
|
|
21496
|
+
* - false: 非阻塞——立即返回本地 SQLite 数据,同时在后台触发一次
|
|
21497
|
+
* 服务器拉取。适合常驻进程的 UI 线程场景(SDK 背景轮询持续保鲜)。
|
|
21498
|
+
*/
|
|
21499
|
+
sync?: boolean;
|
|
21500
|
+
/**
|
|
21501
|
+
* 附件消息是否保留 base64 zip 载荷(默认 false/undefined:剥离 plaintext,
|
|
21502
|
+
* 改挂 attachment 描述符)。仅供需要直接拿到线格式载荷的内部调用使用;
|
|
21503
|
+
* 普通查看/AI 出口永远不要开启。字节请走 get_attachment。
|
|
21504
|
+
*/
|
|
21505
|
+
includeAttachmentPayload?: boolean;
|
|
21326
21506
|
/** 只返回已确认的消息(已纳入 Merkle Tree) */
|
|
21327
21507
|
confirmedOnly?: boolean;
|
|
21328
21508
|
/** 关键词搜索(在明文中搜索) */
|
|
@@ -21518,6 +21698,15 @@ interface ConversationsFilter {
|
|
|
21518
21698
|
* 注意:只影响 previewMessages 中的消息
|
|
21519
21699
|
*/
|
|
21520
21700
|
skipAutoMarkViewed?: boolean;
|
|
21701
|
+
/**
|
|
21702
|
+
* 同步模式(可选,默认 true)
|
|
21703
|
+
* - true/undefined: 阻塞式——先从服务器拉取最新消息再返回(数据最新,
|
|
21704
|
+
* 调用方需等待一次网络往返)
|
|
21705
|
+
* - false: 非阻塞——立即返回本地 SQLite 数据,同时在后台触发一次
|
|
21706
|
+
* 服务器拉取(结果写入本地存储,由 SDK 背景轮询与下次调用呈现)。
|
|
21707
|
+
* 适合常驻进程的 UI 列表场景:每个账号的背景轮询会持续保鲜。
|
|
21708
|
+
*/
|
|
21709
|
+
sync?: boolean;
|
|
21521
21710
|
}
|
|
21522
21711
|
/** 范围类型 */
|
|
21523
21712
|
type RangeType = "time" | "messageId" | "seqIndex";
|
|
@@ -21571,6 +21760,8 @@ interface WtsGenerationParams {
|
|
|
21571
21760
|
interface WtsFileResult {
|
|
21572
21761
|
/** 生成的 WTS 文件路径列表 */
|
|
21573
21762
|
files: string[];
|
|
21763
|
+
/** 生成的 HTML 证据报告路径列表(与 .wts 文件一一对应) */
|
|
21764
|
+
htmlFiles: string[];
|
|
21574
21765
|
/** 总消息数量 */
|
|
21575
21766
|
totalMessageCount: number;
|
|
21576
21767
|
/** 时间范围 */
|
|
@@ -21732,6 +21923,8 @@ declare class Messenger {
|
|
|
21732
21923
|
private prekeyConsecutiveOkCount;
|
|
21733
21924
|
private currentMessageInterval;
|
|
21734
21925
|
private isPollingRunning;
|
|
21926
|
+
private emergencyMode;
|
|
21927
|
+
private pollInProgress;
|
|
21735
21928
|
private messageStorage;
|
|
21736
21929
|
private sessionStateStorage;
|
|
21737
21930
|
private decryptionEngine;
|
|
@@ -21739,6 +21932,15 @@ declare class Messenger {
|
|
|
21739
21932
|
private failedMessages;
|
|
21740
21933
|
private waitingMessageRetries;
|
|
21741
21934
|
private sendPromise;
|
|
21935
|
+
/**
|
|
21936
|
+
* Serialize send flows (sendMessage / sendZipFile) through one queue.
|
|
21937
|
+
* Both advance the SAME Signal ratchet via session.encryptMessage —
|
|
21938
|
+
* interleaved encryptions would push ratchet states in an order different
|
|
21939
|
+
* from the server's receive order, making the recipient fail decryption.
|
|
21940
|
+
*/
|
|
21941
|
+
private withSendLock;
|
|
21942
|
+
private pullInFlight;
|
|
21943
|
+
private lastPullCompletedAt;
|
|
21742
21944
|
constructor(userAddress: string, config?: Partial<MessengerConfig>);
|
|
21743
21945
|
/**
|
|
21744
21946
|
* 获取用户地址
|
|
@@ -21757,11 +21959,6 @@ declare class Messenger {
|
|
|
21757
21959
|
* @returns 是否为有效的Guard消息
|
|
21758
21960
|
*/
|
|
21759
21961
|
isValidGuardMessage(guardAddress: string | null | undefined, passportAddress: string | null | undefined): boolean;
|
|
21760
|
-
/**
|
|
21761
|
-
* 生成签名参数
|
|
21762
|
-
* 用于需要签名验证的 API 调用
|
|
21763
|
-
*/
|
|
21764
|
-
private generateSignatureParams;
|
|
21765
21962
|
/**
|
|
21766
21963
|
* 生成随机 nonce
|
|
21767
21964
|
*/
|
|
@@ -21775,16 +21972,22 @@ declare class Messenger {
|
|
|
21775
21972
|
* 5. 启动合并的polling timer
|
|
21776
21973
|
*/
|
|
21777
21974
|
initialize(): Promise<void>;
|
|
21778
|
-
/**
|
|
21779
|
-
* 检查并补充预密钥
|
|
21780
|
-
*
|
|
21781
|
-
* 逻辑:如果服务器预密钥未满,自动补充到最大容量
|
|
21782
|
-
*/
|
|
21783
|
-
private checkAndRefillPrekeys;
|
|
21784
21975
|
/**
|
|
21785
21976
|
* 查询服务端预密钥库存(带签名鉴权)
|
|
21786
21977
|
*/
|
|
21787
21978
|
getPreKeyStatus(): Promise<PreKeyStatus>;
|
|
21979
|
+
/**
|
|
21980
|
+
* Check whether a peer address is registered on the messenger server
|
|
21981
|
+
* (i.e. the peer has enabled Messenger).
|
|
21982
|
+
*
|
|
21983
|
+
* Pure probe: a signed GET /v1/bundle/{peer} — the same request session
|
|
21984
|
+
* establishment performs, but with NO side effects (no prekey pop, no
|
|
21985
|
+
* message, no session state). 404 / IDENTITY_NOT_FOUND is the server's
|
|
21986
|
+
* authoritative "never registered" answer → false. Transport and server
|
|
21987
|
+
* errors are RETHROWN so callers can distinguish "not registered" from
|
|
21988
|
+
* "cannot tell".
|
|
21989
|
+
*/
|
|
21990
|
+
isPeerRegistered(peerAddress: string): Promise<boolean>;
|
|
21788
21991
|
/**
|
|
21789
21992
|
* 启动合并的polling timer
|
|
21790
21993
|
*/
|
|
@@ -21797,6 +22000,11 @@ declare class Messenger {
|
|
|
21797
22000
|
* 安排下一次poll
|
|
21798
22001
|
*/
|
|
21799
22002
|
private scheduleNextPoll;
|
|
22003
|
+
/**
|
|
22004
|
+
* One poll round followed by rescheduling. Single-entry shape keeps the
|
|
22005
|
+
* chain unique even when the timer is replaced mid-flight (emergency).
|
|
22006
|
+
*/
|
|
22007
|
+
private runPollChain;
|
|
21800
22008
|
/**
|
|
21801
22009
|
* 获取下次poll的间隔时间
|
|
21802
22010
|
* 【优化】增加3秒快速模式(有待解密消息时)
|
|
@@ -21810,6 +22018,23 @@ declare class Messenger {
|
|
|
21810
22018
|
* 触发快速poll(发送消息后调用)
|
|
21811
22019
|
*/
|
|
21812
22020
|
private triggerFastPoll;
|
|
22021
|
+
/**
|
|
22022
|
+
* Activate the emergency contact line for this account.
|
|
22023
|
+
*
|
|
22024
|
+
* The NEXT pull fires immediately — the caller must not wait for the
|
|
22025
|
+
* possibly multi-minute quiet-state timer. While active, the cadence stays
|
|
22026
|
+
* fast while messages keep arriving and, after the configured consecutive
|
|
22027
|
+
* empty-pull rounds (default 3), settles on the urgent interval (default
|
|
22028
|
+
* 30s) instead of dropping back to the quiet state.
|
|
22029
|
+
*/
|
|
22030
|
+
triggerEmergencyPull(): void;
|
|
22031
|
+
/**
|
|
22032
|
+
* Deactivate the emergency contact line and return to the normal
|
|
22033
|
+
* quiet-state cadence. No-op when the account was not in emergency mode.
|
|
22034
|
+
*/
|
|
22035
|
+
stopEmergencyPull(): void;
|
|
22036
|
+
/** Whether the emergency contact line is currently active. */
|
|
22037
|
+
isInEmergencyMode(): boolean;
|
|
21813
22038
|
/**
|
|
21814
22039
|
* 发送加密消息
|
|
21815
22040
|
*
|
|
@@ -21827,24 +22052,29 @@ declare class Messenger {
|
|
|
21827
22052
|
replyTo?: ReplyTo;
|
|
21828
22053
|
}): Promise<SendMessageResult>;
|
|
21829
22054
|
/**
|
|
21830
|
-
*
|
|
22055
|
+
* 拉取消息(合并并发调用)
|
|
21831
22056
|
*
|
|
21832
22057
|
* 流程:
|
|
21833
22058
|
* 1. 从服务器拉取消息
|
|
21834
22059
|
* 2. 解密消息(Signal Protocol)
|
|
21835
22060
|
* 3. 验证 Merkle 证明
|
|
21836
22061
|
* 4. 本地存储并确认消息
|
|
22062
|
+
*
|
|
22063
|
+
* 并发/短间隔重复调用合并为一次网络往返:
|
|
22064
|
+
* - 已有 pull 在途 → 复用同一 Promise
|
|
22065
|
+
* - 刚完成一次 pull(PULL_COALESCE_TTL 内)→ 直接返回(数据已落 SQLite,
|
|
22066
|
+
* 调用方随后读取的都是最新本地存储)
|
|
21837
22067
|
*/
|
|
21838
22068
|
pullMessages(limit?: number): Promise<{
|
|
21839
22069
|
messages: DecryptedMessage[];
|
|
21840
22070
|
prekey_status?: PreKeyStatus;
|
|
22071
|
+
/** True when this call was absorbed by the coalescing window (no
|
|
22072
|
+
* network pull ran because a completed pull already covers it).
|
|
22073
|
+
* Callers must NOT treat it as an "empty server" result — poll uses
|
|
22074
|
+
* this to skip its empty-streak bookkeeping. */
|
|
22075
|
+
skipped?: boolean;
|
|
21841
22076
|
}>;
|
|
21842
|
-
|
|
21843
|
-
* 获取最后发送的消息序号
|
|
21844
|
-
* @param peerAddress 对方地址
|
|
21845
|
-
* @returns 最后发送的消息 leafIndex,如果没有发送过返回 -1
|
|
21846
|
-
*/
|
|
21847
|
-
private getLastSentLeafIndex;
|
|
22077
|
+
private doPullMessages;
|
|
21848
22078
|
/**
|
|
21849
22079
|
* 获取会话历史消息
|
|
21850
22080
|
*/
|
|
@@ -21898,14 +22128,7 @@ declare class Messenger {
|
|
|
21898
22128
|
* @param options 可选参数
|
|
21899
22129
|
* @returns 发送结果
|
|
21900
22130
|
*/
|
|
21901
|
-
sendZipFile(recipientAddress: string, source: string, options?:
|
|
21902
|
-
fileName?: string;
|
|
21903
|
-
contentType?: ZipContentType;
|
|
21904
|
-
guardAddress?: string;
|
|
21905
|
-
passportAddress?: string;
|
|
21906
|
-
network?: ENTRYPOINT;
|
|
21907
|
-
force?: boolean;
|
|
21908
|
-
}): Promise<SendMessageResult>;
|
|
22131
|
+
sendZipFile(recipientAddress: string, source: string, options?: SendAttachmentOptions): Promise<SendMessageResult>;
|
|
21909
22132
|
/**
|
|
21910
22133
|
* 加载文件数据(支持本地路径和网络 URL)
|
|
21911
22134
|
*/
|
|
@@ -22054,10 +22277,30 @@ declare class MessengerManager {
|
|
|
22054
22277
|
private instanceId;
|
|
22055
22278
|
private accountRefreshTimer;
|
|
22056
22279
|
private pollingLockedAccounts;
|
|
22280
|
+
private emergencyAccounts;
|
|
22281
|
+
private lastInitCompletedAt;
|
|
22057
22282
|
constructor(options?: MessengerManagerOptions);
|
|
22058
22283
|
private findAccount;
|
|
22059
22284
|
getConfig(): MessengerConfig;
|
|
22060
22285
|
get_accounts(): string[];
|
|
22286
|
+
/**
|
|
22287
|
+
* Bounded-concurrency fan-out pull over every account THIS process is
|
|
22288
|
+
* currently polling (holders of the cross-process SQLite polling lock).
|
|
22289
|
+
*
|
|
22290
|
+
* Accounts polled by another process are skipped on purpose — their pulls
|
|
22291
|
+
* land in the same shared SQLite store, so re-pulling here would only burn
|
|
22292
|
+
* rate limits. Each account reuses Messenger.pullMessages()'s single-flight
|
|
22293
|
+
* + coalescing. Per-account failures are isolated into result.error.
|
|
22294
|
+
*
|
|
22295
|
+
* Returned messages are hydrated from SQLite (to recover zipMetadata) and
|
|
22296
|
+
* passed through the read boundary: attachment base64 is stripped into an
|
|
22297
|
+
* attachment descriptor and reply wire prefixes are removed.
|
|
22298
|
+
*/
|
|
22299
|
+
pullAllAccounts(opts?: {
|
|
22300
|
+
/** Restrict to these accounts (addresses/names are lowercased) */accounts?: string[];
|
|
22301
|
+
limit?: number; /** Max concurrent account pulls (default 5) */
|
|
22302
|
+
concurrency?: number;
|
|
22303
|
+
}): Promise<PullAccountResult[]>;
|
|
22061
22304
|
refresh_accounts(): Promise<void>;
|
|
22062
22305
|
start(): Promise<void>;
|
|
22063
22306
|
stop(): void;
|
|
@@ -22067,6 +22310,37 @@ declare class MessengerManager {
|
|
|
22067
22310
|
* 如果正在初始化,等待完成
|
|
22068
22311
|
*/
|
|
22069
22312
|
ensureAccountReady(address: string): Promise<AccountInfo>;
|
|
22313
|
+
/**
|
|
22314
|
+
* Check whether a PEER address is registered on the messenger server
|
|
22315
|
+
* (the peer has enabled Messenger). Read-only probe through the given
|
|
22316
|
+
* local account's signed bundle fetch — never registers/initializes
|
|
22317
|
+
* anything (an account with messenger disabled fails fast instead of
|
|
22318
|
+
* being auto-enabled, unlike sendMessage's enable_messenger path).
|
|
22319
|
+
*/
|
|
22320
|
+
isPeerRegistered(account: string, peer: string): Promise<boolean>;
|
|
22321
|
+
/**
|
|
22322
|
+
* Replace the emergency contact-line account set.
|
|
22323
|
+
*
|
|
22324
|
+
* Set-diff semantics:
|
|
22325
|
+
* - newly added accounts are initialized (on demand), pull IMMEDIATELY and
|
|
22326
|
+
* keep the fast/urgent cadence while the line is active;
|
|
22327
|
+
* - accounts that leave the set revert to the normal quiet-state cadence;
|
|
22328
|
+
* - an empty list clears the line entirely (e.g. client view closed).
|
|
22329
|
+
*
|
|
22330
|
+
* The client passes the selected account plus every OTHER local account
|
|
22331
|
+
* appearing in its conversations, so both sides of a same-device exchange
|
|
22332
|
+
* poll urgently. A per-account init/pull failure is isolated and reported
|
|
22333
|
+
* in `failed` instead of failing the whole fan-out.
|
|
22334
|
+
*/
|
|
22335
|
+
setEmergencyAccounts(addresses: string[]): Promise<{
|
|
22336
|
+
active: string[];
|
|
22337
|
+
added: string[];
|
|
22338
|
+
removed: string[];
|
|
22339
|
+
failed: Array<{
|
|
22340
|
+
account: string;
|
|
22341
|
+
error: string;
|
|
22342
|
+
}>;
|
|
22343
|
+
}>;
|
|
22070
22344
|
/**
|
|
22071
22345
|
* 初始化账号
|
|
22072
22346
|
*/
|
|
@@ -22090,15 +22364,19 @@ declare class MessengerManager {
|
|
|
22090
22364
|
* 重新初始化账号(用于服务器数据丢失后重新注册)
|
|
22091
22365
|
*/
|
|
22092
22366
|
private reinitializeAccount;
|
|
22093
|
-
send_file(from: string, to: string, filePath: string, options?: {
|
|
22094
|
-
fileName?: string;
|
|
22095
|
-
contentType?: "wts" | "wip" | "zip";
|
|
22096
|
-
guardAddress?: string;
|
|
22097
|
-
passportAddress?: string;
|
|
22098
|
-
force?: boolean;
|
|
22367
|
+
send_file(from: string, to: string, filePath: string, options?: SendAttachmentOptions & {
|
|
22099
22368
|
enable_messenger?: boolean;
|
|
22100
|
-
network?: ENTRYPOINT;
|
|
22101
22369
|
}): Promise<SendMessageResult>;
|
|
22370
|
+
/**
|
|
22371
|
+
* Full filtered query WITHOUT pagination — the single source shared by
|
|
22372
|
+
* watch(), watch_paginated() and get_conversations(). Applies the server
|
|
22373
|
+
* pull (unless sync:false), the SQLite read, the in-memory filter pass,
|
|
22374
|
+
* sorting and reply wire-prefix stripping. offset/limit is applied by the
|
|
22375
|
+
* CALLERS: aggregation-style callers (get_conversations) must see every
|
|
22376
|
+
* row, and slicing inside the shared query made watch_paginated compute
|
|
22377
|
+
* its total from an already-paged result.
|
|
22378
|
+
*/
|
|
22379
|
+
private queryMessages;
|
|
22102
22380
|
watch(filter?: MessageFilter): Promise<Message[]>;
|
|
22103
22381
|
private startPolling;
|
|
22104
22382
|
private stopPolling;
|
|
@@ -22116,7 +22394,7 @@ declare class MessengerManager {
|
|
|
22116
22394
|
account?: string;
|
|
22117
22395
|
}): Promise<MessageListResult>;
|
|
22118
22396
|
get_conversations(account?: string): Promise<ConversationInfo[]>;
|
|
22119
|
-
generate_wts(outputDir: string, myAccount: string, peerAccount: string, range?: WtsRange, excludePlaintext?: boolean): Promise<WtsFileResult
|
|
22397
|
+
generate_wts(outputDir: string, myAccount: string, peerAccount: string, range?: WtsRange, excludePlaintext?: boolean): Promise<Omit<WtsFileResult, 'htmlFiles'>>;
|
|
22120
22398
|
addToBlacklist(account: string, addresses: string[]): Promise<ListOperationResponse>;
|
|
22121
22399
|
removeFromBlacklist(account: string, addresses: string[]): Promise<ListOperationResponse>;
|
|
22122
22400
|
clearBlacklist(account: string): Promise<ListOperationResponse>;
|
|
@@ -22233,6 +22511,20 @@ declare function send_message(from: string | undefined | null, to: AccountOrMark
|
|
|
22233
22511
|
network?: ENTRYPOINT;
|
|
22234
22512
|
replyTo?: ReplyTo;
|
|
22235
22513
|
}): Promise<SendMessageResult>;
|
|
22514
|
+
/**
|
|
22515
|
+
* Check whether a peer address is registered on the messenger server
|
|
22516
|
+
* (i.e. the peer has enabled Messenger) — a read-only signed bundle probe
|
|
22517
|
+
* with no side effects. Returns:
|
|
22518
|
+
* true — registered (can receive messages),
|
|
22519
|
+
* false — NOT registered (404 identity-not-found; messages to it bounce).
|
|
22520
|
+
* Transport/server errors are rethrown so callers can tell "not
|
|
22521
|
+
* registered" apart from "cannot tell".
|
|
22522
|
+
*
|
|
22523
|
+
* @param account optional signer account (defaults to the local default
|
|
22524
|
+
* account; must itself be messenger-enabled)
|
|
22525
|
+
* @param peer the address to probe
|
|
22526
|
+
*/
|
|
22527
|
+
declare function peer_registered(account: string | undefined | null, peer: string): Promise<boolean>;
|
|
22236
22528
|
/**
|
|
22237
22529
|
* 发送文件(ZIP 格式)
|
|
22238
22530
|
*
|
|
@@ -22247,7 +22539,13 @@ declare function send_message(from: string | undefined | null, to: AccountOrMark
|
|
|
22247
22539
|
*/
|
|
22248
22540
|
declare function send_file(from: string | undefined | null, to: AccountOrMark_Address, filePath: string, options?: {
|
|
22249
22541
|
fileName?: string;
|
|
22250
|
-
contentType?: "wts" | "wip" | "zip";
|
|
22542
|
+
contentType?: "wts" | "wip" | "zip"; /** 业务类型覆盖;"voice" 语音只能显式指定(webm 无法自动区分) */
|
|
22543
|
+
kind?: AttachmentKind;
|
|
22544
|
+
mimeType?: string; /** 配文(加密在信封 manifest 内,服务器不可见) */
|
|
22545
|
+
caption?: string;
|
|
22546
|
+
durationMs?: number;
|
|
22547
|
+
width?: number;
|
|
22548
|
+
height?: number;
|
|
22251
22549
|
guardAddress?: string;
|
|
22252
22550
|
passportAddress?: string;
|
|
22253
22551
|
force?: boolean;
|
|
@@ -22275,7 +22573,84 @@ declare function send_file(from: string | undefined | null, to: AccountOrMark_Ad
|
|
|
22275
22573
|
* const viewed = await watch_messages({ viewed: true });
|
|
22276
22574
|
*/
|
|
22277
22575
|
declare function watch_messages(filter?: MessageFilter): Promise<Message[]>;
|
|
22278
|
-
|
|
22576
|
+
/**
|
|
22577
|
+
* 关键字搜索本地消息库 — LIKE 谓词下推到 SQLite(每账号 .db),
|
|
22578
|
+
* 无需逐会话拉取全量线程,搜索耗时与命中数相关而非消息总量。
|
|
22579
|
+
*
|
|
22580
|
+
* 匹配明文内容与参与方地址(from/to),因此对方地址也是合法查询词。
|
|
22581
|
+
*
|
|
22582
|
+
* @param params.query 搜索关键字(必填,空串返回空数组)
|
|
22583
|
+
* @param params.account 限定账号(地址或名称);缺省使用默认账号
|
|
22584
|
+
* @param params.peerAddress 可选:限定会话对方(地址或名称,解析失败按原文过滤)
|
|
22585
|
+
* @param params.limit 返回上限(默认 50,最大 200),最新命中在前
|
|
22586
|
+
*/
|
|
22587
|
+
declare function search_messages(params: {
|
|
22588
|
+
query: string;
|
|
22589
|
+
account?: string | undefined | null;
|
|
22590
|
+
peerAddress?: string | undefined | null;
|
|
22591
|
+
limit?: number;
|
|
22592
|
+
}): Promise<Message[]>;
|
|
22593
|
+
declare function pull_messages(account?: string | undefined | null, limit?: number, opts?: {
|
|
22594
|
+
/** Pull every polling-enabled account in one bounded fan-out */allAccounts?: boolean; /** Restrict the fan-out to these accounts (implies allAccounts flow) */
|
|
22595
|
+
accounts?: string[]; /** Max concurrent account pulls (default 5) */
|
|
22596
|
+
concurrency?: number;
|
|
22597
|
+
}): Promise<Message[] | PullAccountResult[]>;
|
|
22598
|
+
/**
|
|
22599
|
+
* Emergency contact line — real-time feedback for the account the user is
|
|
22600
|
+
* currently viewing in the Messenger UI.
|
|
22601
|
+
*
|
|
22602
|
+
* Replaces the process-wide emergency account set (set-diff semantics):
|
|
22603
|
+
* - added accounts pull IMMEDIATELY (no waiting for the quiet-state timer),
|
|
22604
|
+
* keep the fast cadence while messages arrive, and after the configured
|
|
22605
|
+
* consecutive empty-pull rounds (default 3) settle at the urgent interval
|
|
22606
|
+
* (default 30s) instead of the multi-minute quiet state;
|
|
22607
|
+
* - accounts leaving the set revert to the normal quiet-state cadence;
|
|
22608
|
+
* - an empty list clears the line (e.g. the client view was closed).
|
|
22609
|
+
*
|
|
22610
|
+
* The client sends the selected account plus every OTHER local account that
|
|
22611
|
+
* appears in its conversations, so both sides of a same-device exchange poll
|
|
22612
|
+
* urgently.
|
|
22613
|
+
*/
|
|
22614
|
+
declare function emergency_pull(params?: {
|
|
22615
|
+
accounts?: string[];
|
|
22616
|
+
}): Promise<{
|
|
22617
|
+
active: string[];
|
|
22618
|
+
added: string[];
|
|
22619
|
+
removed: string[];
|
|
22620
|
+
failed: Array<{
|
|
22621
|
+
account: string;
|
|
22622
|
+
error: string;
|
|
22623
|
+
}>;
|
|
22624
|
+
}>;
|
|
22625
|
+
/**
|
|
22626
|
+
* Read one attachment message's payload from local SQLite and decode it
|
|
22627
|
+
* in memory (no temp files, no localCachePath mutation).
|
|
22628
|
+
*
|
|
22629
|
+
* Security:
|
|
22630
|
+
* - The whole zip blob is verified against zipMetadata.fileHash (sha256)
|
|
22631
|
+
* BEFORE extraction — HASH_MISMATCH otherwise.
|
|
22632
|
+
* - Envelope parsing enforces zip-bomb limits (entry count / total bytes)
|
|
22633
|
+
* and rejects zip-slip entry names.
|
|
22634
|
+
* - Works for both envelope v2 (manifest) and legacy single-entry zips.
|
|
22635
|
+
*
|
|
22636
|
+
* @param account 账号地址或名称(附件归属的本地消息库)
|
|
22637
|
+
* @param messageId 附件消息 ID
|
|
22638
|
+
* @returns Attachment(描述符 + bytes)
|
|
22639
|
+
*/
|
|
22640
|
+
declare function get_attachment(account: string | undefined | null, messageId: string): Promise<Attachment>;
|
|
22641
|
+
/**
|
|
22642
|
+
* Decode one attachment and persist it to a user-facing directory
|
|
22643
|
+
* (default <workspace>/attachments). Never writes temp extraction dirs and
|
|
22644
|
+
* never mutates the message/localCachePath.
|
|
22645
|
+
*
|
|
22646
|
+
* Filename collisions get a " (n)" suffix. wts/wip keep their extension.
|
|
22647
|
+
*
|
|
22648
|
+
* @returns Absolute path of the saved file.
|
|
22649
|
+
*/
|
|
22650
|
+
declare function export_attachment(account: string | undefined | null, messageId: string, options?: {
|
|
22651
|
+
/** Target directory (default: <workspace>/attachments) */outputDir?: string; /** Override the file name (basename only; paths are stripped) */
|
|
22652
|
+
saveAs?: string;
|
|
22653
|
+
}): Promise<string>;
|
|
22279
22654
|
/**
|
|
22280
22655
|
* 从 base64 编码的 ZIP 明文中提取所有文件内容
|
|
22281
22656
|
*
|
|
@@ -22304,6 +22679,10 @@ declare function extractZipFromPlaintext(plaintext: string): Promise<{
|
|
|
22304
22679
|
* @param outputDir 输出目录路径
|
|
22305
22680
|
* @param userAddress 用户地址(当传入消息ID数组时需要)
|
|
22306
22681
|
* @returns 解压后的文件路径数组
|
|
22682
|
+
* @deprecated Use {@link get_attachment} (in-memory decode) or
|
|
22683
|
+
* {@link export_attachment} (user-facing save with collision handling).
|
|
22684
|
+
* This legacy path writes into a temp extraction dir and mutates
|
|
22685
|
+
* localCachePath; it is kept only for backward compatibility.
|
|
22307
22686
|
*/
|
|
22308
22687
|
declare function extract_zip_messages(account: string | undefined | null, messages: (Message | string)[], outputDir?: string): Promise<string[]>;
|
|
22309
22688
|
declare function generate_wts(params: WtsGenerationParams): Promise<WtsFileResult>;
|
|
@@ -22344,7 +22723,7 @@ declare function proof_message(account: string | undefined | null, messageId: st
|
|
|
22344
22723
|
type BlacklistRequest = {
|
|
22345
22724
|
op: "add" | "remove";
|
|
22346
22725
|
account: string | undefined | null;
|
|
22347
|
-
users: ManyAccountOrMark_Address;
|
|
22726
|
+
users: ManyAccountOrMark_Address | string[];
|
|
22348
22727
|
} | {
|
|
22349
22728
|
op: "clear";
|
|
22350
22729
|
account: string | undefined | null;
|
|
@@ -22354,7 +22733,7 @@ type BlacklistRequest = {
|
|
|
22354
22733
|
} | {
|
|
22355
22734
|
op: "exist";
|
|
22356
22735
|
account: string | undefined | null;
|
|
22357
|
-
users: ManyAccountOrMark_Address;
|
|
22736
|
+
users: ManyAccountOrMark_Address | string[];
|
|
22358
22737
|
};
|
|
22359
22738
|
type BlacklistResponse = {
|
|
22360
22739
|
op: "add";
|
|
@@ -22381,7 +22760,7 @@ declare function blacklist(request: BlacklistRequest): Promise<BlacklistResponse
|
|
|
22381
22760
|
type FriendslistRequest = {
|
|
22382
22761
|
op: "add" | "remove";
|
|
22383
22762
|
account: string | undefined | null;
|
|
22384
|
-
users: ManyAccountOrMark_Address;
|
|
22763
|
+
users: ManyAccountOrMark_Address | string[];
|
|
22385
22764
|
} | {
|
|
22386
22765
|
op: "clear";
|
|
22387
22766
|
account: string | undefined | null;
|
|
@@ -22391,7 +22770,7 @@ type FriendslistRequest = {
|
|
|
22391
22770
|
} | {
|
|
22392
22771
|
op: "exist";
|
|
22393
22772
|
account: string | undefined | null;
|
|
22394
|
-
users: ManyAccountOrMark_Address;
|
|
22773
|
+
users: ManyAccountOrMark_Address | string[];
|
|
22395
22774
|
};
|
|
22396
22775
|
type FriendslistResponse = {
|
|
22397
22776
|
op: "add";
|
|
@@ -22470,6 +22849,93 @@ type SettingsResponse = {
|
|
|
22470
22849
|
*/
|
|
22471
22850
|
declare function settings(request: SettingsRequest): Promise<SettingsResponse>;
|
|
22472
22851
|
//#endregion
|
|
22852
|
+
//#region src/w/messenger/attachment.d.ts
|
|
22853
|
+
/** 信封内的清单条目名(根目录固定点文件) */
|
|
22854
|
+
declare const MANIFEST_ENTRY = ".wowok-manifest.json";
|
|
22855
|
+
/** 载荷条目目录前缀 */
|
|
22856
|
+
declare const PAYLOAD_PREFIX = "payload/";
|
|
22857
|
+
/** 单信封条目数上限(防异常数据) */
|
|
22858
|
+
declare const ENVELOPE_MAX_ENTRIES = 16;
|
|
22859
|
+
/** 解压后总字节上限(zip bomb 防护;当前信封本身 5MB 封顶) */
|
|
22860
|
+
declare const ENVELOPE_MAX_TOTAL_BYTES: number;
|
|
22861
|
+
/** 取小写扩展名(不含点);无扩展名返回空串 */
|
|
22862
|
+
declare function extOf(fileName: string): string;
|
|
22863
|
+
interface SniffOptions {
|
|
22864
|
+
/** 发送方显式指定的业务类型(voice 只能由此传入) */
|
|
22865
|
+
kind?: AttachmentKind;
|
|
22866
|
+
/** 发送方显式指定的 MIME */
|
|
22867
|
+
mimeType?: string;
|
|
22868
|
+
/** 服务器侧旧版分类(wts/wip 优先于扩展名) */
|
|
22869
|
+
contentType?: ZipContentType;
|
|
22870
|
+
}
|
|
22871
|
+
/**
|
|
22872
|
+
* 由文件名扩展名 + 覆盖项推断 kind/mimeType。
|
|
22873
|
+
* - contentType=wts/wip 永远胜出(证据格式不允许被扩展名伪装)。
|
|
22874
|
+
* - kind="voice" 只能显式指定;此时缺省 mime 为 audio/webm(面板录音格式)。
|
|
22875
|
+
*/
|
|
22876
|
+
declare function sniffKindAndMime(fileName: string, opts?: SniffOptions): {
|
|
22877
|
+
kind: AttachmentKind;
|
|
22878
|
+
mimeType: string;
|
|
22879
|
+
};
|
|
22880
|
+
/**
|
|
22881
|
+
* 清洗用户文件名,只保留纯 basename(防 zip slip / 路径穿越)。
|
|
22882
|
+
* - 同时按 / 与 \ 切分;拒绝盘符、..、控制字符。
|
|
22883
|
+
* - 空名/点文件回退为 "file"。
|
|
22884
|
+
*/
|
|
22885
|
+
declare function sanitizeFileName(raw: string): string;
|
|
22886
|
+
interface BuildAttachmentEnvelopeInput {
|
|
22887
|
+
fileName: string;
|
|
22888
|
+
bytes: Uint8Array;
|
|
22889
|
+
kind?: AttachmentKind;
|
|
22890
|
+
mimeType?: string;
|
|
22891
|
+
caption?: string;
|
|
22892
|
+
durationMs?: number;
|
|
22893
|
+
width?: number;
|
|
22894
|
+
height?: number;
|
|
22895
|
+
/** 服务器侧旧版分类(wts/wip/zip),影响 kind 推断 */
|
|
22896
|
+
contentType?: ZipContentType;
|
|
22897
|
+
}
|
|
22898
|
+
interface BuiltAttachmentEnvelope {
|
|
22899
|
+
zip: Uint8Array;
|
|
22900
|
+
manifest: AttachmentManifest;
|
|
22901
|
+
}
|
|
22902
|
+
/**
|
|
22903
|
+
* 构建附件信封 v2(zip 容器 + manifest + 单 payload)。
|
|
22904
|
+
* 媒体类 STORE,其余 DEFLATE。
|
|
22905
|
+
*/
|
|
22906
|
+
declare function buildAttachmentEnvelope(input: BuildAttachmentEnvelopeInput): Promise<BuiltAttachmentEnvelope>;
|
|
22907
|
+
/** PK 魔数校验(与历史 extractZipFromPlaintext 行为一致) */
|
|
22908
|
+
declare function assertZipMagic(zipData: Uint8Array): void;
|
|
22909
|
+
/**
|
|
22910
|
+
* 解析附件信封,返回单个载荷文件的字节 + 元数据。
|
|
22911
|
+
* - v2:读 .wowok-manifest.json,取 payload/ 下的载荷条目。
|
|
22912
|
+
* - 遗留:无 manifest 时取包内唯一条目,按扩展名/contentType 推断(永久兼容)。
|
|
22913
|
+
* hash 校验由调用方(get_attachment)在解码后执行;本函数只负责容器解析。
|
|
22914
|
+
*/
|
|
22915
|
+
declare function parseAttachmentEnvelope(zipData: Uint8Array, hint?: {
|
|
22916
|
+
contentType?: ZipContentType;
|
|
22917
|
+
}): Promise<Attachment>;
|
|
22918
|
+
/**
|
|
22919
|
+
* 仅凭 ZipMetadata 产出轻量描述符(不解压),供查询出口使用。
|
|
22920
|
+
* 发送端把原始文件名追加了 ".zip" 作为传输名,这里剥掉恰好一层。
|
|
22921
|
+
*/
|
|
22922
|
+
declare function describeAttachmentFromMetadata(meta: ZipMetadata): AttachmentDescriptor;
|
|
22923
|
+
interface ReadPresentationOptions {
|
|
22924
|
+
/** 保留附件 base64 载荷(默认剥离)。仅内部逃生门使用。 */
|
|
22925
|
+
includeAttachmentPayload?: boolean;
|
|
22926
|
+
}
|
|
22927
|
+
/**
|
|
22928
|
+
* 所有面向外部的消息读取出口的唯一收口函数:
|
|
22929
|
+
* - 附件消息(有 zipMetadata):默认 plaintext 置 undefined,挂 attachment 描述符;
|
|
22930
|
+
* includeAttachmentPayload 时原样返回。
|
|
22931
|
+
* - 非附件消息:剥离 @REPLY@ 线格式前缀(与历史 queryMessages 出口行为一致)。
|
|
22932
|
+
*
|
|
22933
|
+
* 不修改入参对象。存储层的线格式明文永不被改写(plaintextHash 链上一致性)。
|
|
22934
|
+
*/
|
|
22935
|
+
declare function presentMessageForRead<T extends Message>(msg: T, opts?: ReadPresentationOptions): T;
|
|
22936
|
+
/** 批量版本:等价于逐条 presentMessageForRead */
|
|
22937
|
+
declare function presentMessagesForRead<T extends Message>(messages: T[], opts?: ReadPresentationOptions): T[];
|
|
22938
|
+
//#endregion
|
|
22473
22939
|
//#region src/w/bridge/config.d.ts
|
|
22474
22940
|
/**
|
|
22475
22941
|
* 单条 EVM 链的 Bridge 配置
|
|
@@ -22532,13 +22998,20 @@ interface BridgeConfig {
|
|
|
22532
22998
|
*/
|
|
22533
22999
|
declare const MAINNET_COMMITTEE_PUBKEYS: string[];
|
|
22534
23000
|
/**
|
|
22535
|
-
* 主网 Committee 权重(源自链上
|
|
22536
|
-
*
|
|
22537
|
-
*
|
|
23001
|
+
* 主网 Committee 权重(源自链上 `view-wow-bridge` 的 committee[].stake)
|
|
23002
|
+
*
|
|
23003
|
+
* total = 10000,quorum = floor(10000 * 2/3) + 1 = 6667。
|
|
23004
|
+
* V0(3334)+V1(3333) = 6667 ≥ quorum ✓;V1+V2 = 6666 < quorum(需 V0 参与)。
|
|
23005
|
+
*
|
|
23006
|
+
* ⚠️ 权重由创世 stake 决定,re-genesis 后可能变化,必须核对链上再改:
|
|
23007
|
+
* 2026-09-15 re-genesis(chain 4cd1e4fa)stake 为 25M/20M/20M,
|
|
23008
|
+
* 按比例冻结为 3334/3333/3333 —— 与旧链 c9e743a5 的 3334/3334/3333 不同。
|
|
23009
|
+
* 若此处权重偏大,本 SDK 会算出偏大的 quorum(例:旧值 10001 → 6668),
|
|
23010
|
+
* 导致只收集 2 个节点的签名时永远判定为"未达 quorum",必须凑齐 3 个节点
|
|
23011
|
+
* 才能签发,容错性下降。
|
|
22538
23012
|
*
|
|
22539
|
-
* 链上核实(2026-
|
|
22540
|
-
* -
|
|
22541
|
-
* - 0x373ee3...: 3334 0x2829ea...: 3334 0x97b3c7...: 3333
|
|
23013
|
+
* 链上核实(2026-09-16):view-wow-bridge →
|
|
23014
|
+
* validator-0 0x373ee3...: 3334 validator-1 0x2829ea...: 3333 validator-2 0x97b3c7...: 3333
|
|
22542
23015
|
*/
|
|
22543
23016
|
declare const MAINNET_COMMITTEE_WEIGHTS: number[];
|
|
22544
23017
|
/**
|
|
@@ -22548,21 +23021,24 @@ declare const MAINNET_COMMITTEE_WEIGHTS: number[];
|
|
|
22548
23021
|
* 来源:由 MAINNET_COMMITTEE_PUBKEYS (ECDSA compressed pubkey) 推导得出:
|
|
22549
23022
|
* keccak256(uncompressed_pubkey[1:])[-20:]
|
|
22550
23023
|
*
|
|
22551
|
-
* 链上核实(2026-07-05):
|
|
22552
|
-
*
|
|
22553
|
-
*
|
|
22554
|
-
* -
|
|
23024
|
+
* 链上核实(2026-07-05):BridgeCommittee proxy: 0x822779c4183ed69bdd38e0454ec1826d2ae186a5
|
|
23025
|
+
* 链上再核实(2026-09-16,re-genesis 后):WOW 桥委员会 3 个成员的 eth_address
|
|
23026
|
+
* 依次为 0x373ee3fe…/0x2829ea93…/0x97b3c777…,与本文件完全一致 —— 因为
|
|
23027
|
+
* re-genesis 保留了原验证者的 ETH 身份(未改动 ETH 主网合约)。
|
|
23028
|
+
* ⚠️ 权重变了(3334/3333/3333,见上),但成员地址/pk 未变。
|
|
22555
23029
|
*
|
|
22556
23030
|
* 注意:此前此处使用 mainnet_bridge.md 中的地址(0xdc135aa7... 等)是错误的,
|
|
22557
23031
|
* 链上 stake=0,会导致 verifySignatures 失败。已修正。
|
|
22558
23032
|
*/
|
|
22559
23033
|
declare const MAINNET_COMMITTEE_MEMBER_ADDRESSES: string[];
|
|
22560
23034
|
/**
|
|
22561
|
-
* 主网 Bridge 默认配置(2026-09-
|
|
22562
|
-
* - EVM 合约地址:ETH 主网已部署合约(2026-09-
|
|
23035
|
+
* 主网 Bridge 默认配置(2026-09-15 re-genesis 后链上核实)
|
|
23036
|
+
* - EVM 合约地址:ETH 主网已部署合约(2026-09-15 re-genesis 复用,committee ECDSA 密钥沿用)
|
|
22563
23037
|
* - Bridge 节点 URL:v1/v2/v3.validator.mainnet.wowok.net:9211
|
|
22564
23038
|
* - Token 映射:链上 bridge treasury 的 supported_tokens / id_token_type_map
|
|
22565
|
-
* (本文件 tokens[].wowTypeTag 已更新为
|
|
23039
|
+
* (本文件 tokens[].wowTypeTag 已更新为 4cd1e4fa 上重新发布的包地址;
|
|
23040
|
+
* TreasuryCap/UpgradeCap 已通过 bridge::register_foreign_token 进入 waiting room,
|
|
23041
|
+
* 待 epoch 2 委员会 add-tokens-on-wow 激活)
|
|
22566
23042
|
*
|
|
22567
23043
|
* 用户仅需自填付费 ETH RPC(rpcUrl)以提升稳定性。
|
|
22568
23044
|
*/
|
|
@@ -24974,7 +25450,7 @@ declare class WowJsonRpcClient extends BaseClient {
|
|
|
24974
25450
|
pollInterval,
|
|
24975
25451
|
...input
|
|
24976
25452
|
}: {
|
|
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
|
|
25453
|
+
/** 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
25454
|
timeout?: number; /** The amount of time to wait between checks for the transaction block. Defaults to 2 seconds. */
|
|
24979
25455
|
pollInterval?: number;
|
|
24980
25456
|
} & Parameters<WowJsonRpcClient['getTransactionBlock']>[0]): Promise<WowTransactionBlockResponse>;
|
|
@@ -25323,4 +25799,4 @@ declare class WowClient extends WowJsonRpcClient {
|
|
|
25323
25799
|
constructor(options: WowClientOptions);
|
|
25324
25800
|
}
|
|
25325
25801
|
//#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 };
|
|
25802
|
+
export { TransactionObjectInput as $, GetAllBalancesParams as $C, ValidatorApy as $E, Secp256k1PublicKey as $S, CompressedSignature$1 as $T, TreasuryOp as $_, BridgeMessage as $a, DISCOUNT_TYPE_RATES$1 as $b, ServiceRequiredObject as $c, resolveAllocators as $d, IsValidArgType as $f, ObjectRepository as $g, AllocationMode as $h, UploadPreKeysResponse as $i, context_repository_clear as $l, repositoryFn as $m, SettingsRequest as $n, GuardQuery as $o, ServiceObject as $p, GetBundleParams as $r, description_set$1 as $s, EvmTxReceipt as $t, CallDemand_Data as $u, query_shared_objects_json as $v, UnsafeRequestWithdrawStakeParams as $w, ONCHAIN_CONSTANTS as $x, adminAdd as $y, isWowJsonRpcClient as A, GasData as AC, WowParsedData as AD, PaginatedCheckpoints as AE, FaucetCoinInfo as AS, WowObjectChangeWrapped as AT, ServicesQuery as A_, query_address_activity_json as Aa, ReceivedObjects as Ab, CallOrder as Ac, location_set$2 as Ad, CoinWrapPrefix as Af, MachineNode as Ag, LocalMarkOperationResult as Ah, SERVER_URL as Ai, sale_suspension as Al, isGasTokenType as Am, BuiltAttachmentEnvelope as An, ServiceEvent as Ao, OrderAddress as Ap, Attachment as Ar, external_deposit_guard_remove as As, TOKENS_DEPOSITED_V2_TOPIC as At, consensus_repositories_clear as Au, queryTableItem_EntityLinker as Av, TBalanceParams as Aw, MAX_POLICY_COUNT as Ax, reliesLogic as Ay, parsePartialSignatures as B, SignatureScheme$1 as BC, WowTransactionBlockResponseQuery as BD, PublicKey$1 as BE, Falcon512Keypair as BS, WowMoveObject as BT, TableItem_EntityLinker as B_, FundingGuidance as Ba, passportFn as Bb, Discount as Bc, voting_guard_clear as Bd, ENTITY_LINKER_ADDRESS as Bf, ObjectDiscount as Bg, query_account as Bh, SignedRequest as Bi, CallProgress_Data as Bl, isValidU32 as Bm, extOf as Bn, query_serviceContext as Bo, ProgressObject as Bp, ContactLists as Br, CallRepository_Data as Bs, DepositEthOptions as Bt, node as Bu, queryTableItem_RewardRecord as Bv, TStakesParams as Bw, MAX_REQUIRED_INFO_SIZE$1 as Bx, applyCoinParam as By, JsonRpcError as C, isWowGraphQLClient as CC, WowObjectChange as CD, MultiSigPublicKey$1 as CE, isWException as CS, WTryGetPastObjectParams as CT, QueryTableItem_byU64 as C_, TransactionHistoryAnswer as Ca, transferPermission as Cb, guard_add as Cc, create$8 as Cd, ArbObject as Cf, GuardSubmission as Cg, GetLocalNamesByAddresses as Ch, PreKeyStatus as Ci, publish as Cl, WObject as Cm, MAINNET_COMMITTEE_WEIGHTS as Cn, NewEntityEvent as Co, OBJECT_LINKER_CORE_ADDRESS as Cp, watch_messages as Cr, MAX_EXTERNAL_WITHDRAW_GUARD_COUNT as Cs, claimOnEth as Ct, CallMachine as Cu, objectTypeFromAddress as Cv, GetTransactionBlockParams as Cw, MAX_NAMED_OPERATOR_ADDRESS_COUNT$1 as Cx, guard2file as Cy, PaginationArguments as D, Argument$1 as DC, WowObjectRef as DD, ObjectResponseError as DE, AccountFilter as DS, WowObjectChangeMutated as DT, ServiceSale$1 as D_, TxEvent as Da, ReceivedBalanceObject as Db, receive$1 as Dc, feedback$1 as Dd, CallEnv as Df, MAX_OBJECTS_PER_QUERY as Dg, LocalInfoOperation as Dh, RemoteBundle as Di, reward_add$1 as Dl, arbitrationFn as Dm, findTokenBySymbol as Dn, ProgressEvent as Do, ObjectType as Dp, AddGuardListRequest as Dr, external_deposit as Ds, ERC20_TRANSFER_TOPIC as Dt, NodeParam as Du, queryTableItem_AddressMark as Dv, QueryTransactionBlocksParams as Dw, MAX_NODE_PAIR_COUNT as Dx, parseGuardFromMarkdown as Dy, OrderArguments as E, SerializedTransactionDataV1 as EC, WowObjectDataOptions as ED, ObjectRead as EE, AccountData as ES, WowObjectChangeDeleted as ET, ServiceGuard as E_, TxBalanceChange as Ea, ReceivedBalance as Eb, newReward as Ec, fee_set as Ed, BalanceType as Ef, Im as Eg, LocalHistoryOperationResult as Eh, RangeType as Ei, repository_remove as El, WitnessTypeInput as Em, findToken as En, PaymentRevenue as Eo, ObjectResult as Ep, Messenger as Er, description_set as Es, AbiMessage as Et, NodePairParam as Eu, queryOrdersByUser as Ev, QueryEventsParams as Ew, MAX_NODE_COUNT_ONCHAIN as Ex, parseGuardFile as Ey, SerializeSignatureInput as F, WowClientTypes as FC, WowTransactionBlock as FD, PaginatedTransactionResponse as FE, verifyPersonalMessageSignature as FS, EndOfEpochInfo as FT, TableAnswerItem as F_, query_transaction_json as Fa, freeze as Fb, CompensationClaim as Fc, usage_guard_none as Fd, DemandAddress as Ff, ObjectArb as Fg, account_operation as Fh, SeqIndexRange as Fi, setting_lock_duration_add as Fl, isValidLongName as Fm, ReadPresentationOptions as Fn, query_events_json as Fo, PaymentInfoObject as Fp, CHAIN_PROOF_TYPE as Fr, newTreasury as Fs, encodeBridgeETHV2 as Ft, forwards_add as Fu, queryTableItem_ObjectLinkerCore as Fv, TDynamicFieldsParams as Fw, MAX_RECIPIENT_COUNT as Fx, CallResponseError as Fy, ParsedKeypair as G, messageWithIntent as GC, JsonRpcHTTPTransport as GD, TransactionBlockBytes as GE, BrowserPasswordProviderOptions as GS, Balance$2 as GT, TableItem_ObjectLinkerCore as G_, queryProtocolInfo as Ga, BRIDGE_EVM_ADDRESS_LENGTH as Gb, MAX_DISCOUNT_TOTAL_COUNT as Gc, CallAllocation_Data as Gd, GasCoinType as Gf, ObjectMachine as Gg, query_local_mark as Gh, SseEventType as Gi, MachineNodeForwardResult as Gl, isValidWitnessTypeInput as Gm, sniffKindAndMime as Gn, AffiliationTableKind as Go, RegistrarAddress as Gp, DEFAULT_MESSENGER_CONFIG as Gr, RepositoryPolicyGuardObject as Gs, BridgeNodeClient as Gt, node_rename as Gu, query_arbs as Gv, UnsafeBatchTransactionParams as Gw, MAX_SHARING_COUNT as Gx, CallPermission as Gy, Keypair as H, PublicKeyInitData as HC, WowWithdrawFrom as HD, RawData as HE, Falcon512PublicKey as HS, AccumulatorEvent 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, presentMessageForRead as Hn, AFFILIATION_TABLE_META as Ho, ReceivedObject as Hp, ConversationInfo as Hr, KeyData as Hs, depositErc20 as Ht, node_clear as Hu, queryTableItem_TreasuryHistory as Hv, TValidatorsApyParams as Hw, MAX_SALE_COUNT$1 as Hx, isCallResultSubmission as Hy, parseSerializedSignature as I, SIGNATURE_FLAG_TO_SCHEME as IC, WowTransactionBlockBuilderMode as ID, Party as IE, verifySignature as IS, EpochInfo as IT, TableItemQuery as I_, COMMON_MISTAKES as Ia, get_guardSubmissions as Ib, DEFAULT_LOCK_DURATION as Ic, usage_guard_set as Id, DemandObject as If, ObjectArbitration as Ig, fetch_token_info_operation as Ih, ServerMessage as Ii, stock_add as Il, isValidName as Im, SniffOptions as In, queryObjectWithType as Io, PaymentObject as Ip, CURRENT_NETWORK as Ir, receive as Is, encodeIsTransferProcessed as It, forwards_remove as Iu, queryTableItem_ObjectLinkerTx as Iv, TLatestWowSystemStateParams as Iw, MAX_RECORD_COUNT_REGISTRAR as Ix, CallResult as Iy, W_PRIVATE_KEY_PREFIX as J, DevInspectTransactionBlockParams as JC, JsonRpcTransportRequestOptions as JD, TransactionEffects$2 as JE, findCommonPublicKey as JS, CheckpointCommitment$1 as JT, TableItem_ProgressHistory as J_, BridgeChainId as Ja, BRIDGE_TRANSFER_STATUS_CLAIMED as Jb, MAX_REWARD_COUNT as Jc, allocationFn as Jd, GetObjectDescription as Jf, ObjectPayment as Jg, TokenDataFilter as Jh, SseNewMessageEvent as Ji, ProgressNext as Jl, machineFn as Jm, FriendslistRequest as Jn, GUARDINSTRUCT as Jo, ResourceAddress as Jp, Empty as Jr, SignerOrClockBase as Js, BRIDGE_STEP_DESCRIPTIONS as Jt, prev_nodes_remove as Ju, query_objects as Jv, UnsafePayAllWowParams as Jw, MAX_VOTING_GUARD_COUNT as Jx, PermissionIndexType as Jy, SignatureWithBytes as K, BscribeEventParams as KC, JsonRpcHTTPTransportOptions as KD, TransactionBlockData as KE, PasskeyKeypair as KS, BalanceChange$2 as KT, TableItem_ObjectLinkerTx as K_, query_common_mistakes as Ka, BRIDGE_MESSAGE_VERSION as Kb, MAX_REPOSITORY_COUNT as Kc, MAX_ALLOCATOR_COUNT as Kd, GasTokenType as Kf, ObjectOrder as Kg, query_local_mark_list as Kh, SseGuardConfirmedEvent as Ki, NamedOperator as Kl, isValueTypeNumber as Km, BlacklistRequest as Kn, QueryAffiliations as Ko, RepositoryAddress as Kp, DEFAULT_QUERY_LIMIT as Kr, RepositoryPolicyRuleObject as Ks, BridgeNodeClientOptions as Kt, nodepair as Ku, query_demands as Kv, UnsafeMergeCoinsParams as Kw, MAX_SUBMISSION_SIZE_PASSPORT as Kx, CallPermission_Data as Ky, toSerializedSignature as L, SIGNATURE_SCHEME_TO_FLAG as LC, WowTransactionBlockKind as LD, PasskeyAuthenticator$1 as LE, verifyTransactionSignature as LS, EpochPage as LT, TableItem_AddressMark as L_, CommonMistakeFilter as La, guardAdd as Lb, DEFAULT_SETTING_LOCK_DURATION as Lc, vote as Ld, DescriptionObject as Lf, ObjectBase as Lg, local_history_operation as Lh, ServerRegisterRequest as Li, stock_reduce as Ll, isValidU128 as Lm, assertZipMagic as Ln, queryObjectsWithType as Lo, PermissionAddress as Lp, ChainProofRequest as Lr, um_set as Ls, encodeTokenTransferPayloadV2 as Lt, init_node_name as Lu, queryTableItem_PermissionPerm as Lv, TOwnedObjectsParams as Lw, MAX_RECORD_COUNT_REWARD as Lx, CoinPlan as Ly, isValidHardenedPath as M, TransactionData$1 as MC, WowReservation as MD, PaginatedDynamicFieldInfos as ME, MAX_MESSENGER_ACCOUNTS as MS, CoinBalance as MT, SharedObjectsAnswerItem as M_, query_object_history_json as Ma, query_received as Mb, Buy as Mc, pause$2 as Md, ContactAddress as Mf, NamedOperator$1 as Mg, ManyAccountOrMark_Address as Mh, SendMessageRequest as Mi, sales_clear as Ml, isValidArray as Mm, ENVELOPE_MAX_TOTAL_BYTES as Mn, VoteEvent as Mo, PackageAddress as Mp, AttachmentKind as Mr, external_withdraw_guard_add as Ms, encodeBridgeERC20 as Mt, create$6 as Mu, queryTableItem_EntityPermission as Mv, TCoinsParams as Mw, MAX_POLICY_GUARD_COUNT as Mx, validateGuardData as My, mnemonicToSeed as N, ClientWithExtensions as NC, WowSystemStateSummary as ND, PaginatedEvents as NE, publicKeyFromRawBytes as NS, CheckpointPage as NT, SharedObjectsQuery as N_, query_object_last_updated as Na, SubmissionCall as Nb, CallService as Nc, reset as Nd, ContactObject as Nf, OBJECT_TYPE_DEFINITIONS as Ng, QueryAccount as Nh, SendMessageResponse as Ni, sales_remove as Nl, isValidDescription as Nm, MANIFEST_ENTRY as Nn, parseWowokEventItem as No, PassportObject as Np, AttachmentManifest as Nr, external_withdraw_guard_clear as Ns, encodeBridgeERC20V2 as Nt, description_set$4 as Nu, queryTableItem_EntityRegistrar as Nv, TCommitteeInfoParams as Nw, MAX_PROOF_SIZE as Nx, validateGuardNode as Ny, WowJsonRpcClient as O, CallArg as OC, WowObjectResponse as OD, ObjectValueKind as OE, CoinObjectWithBalanceResult as OS, WowObjectChangePublished as OT, ServiceSummary as O_, TxObjectChange as Oa, ReceivedBalanceOrRecently as Ob, transformRewardInput as Oc, fees_alloc as Od, CoinObject as Of, MachineForward as Og, LocalInfoOperationResult as Oh, RemoveListRequest as Oi, reward_clear$1 as Ol, contactFn as Om, verifyCommitteeConsistency as On, RewardClaimEvent as Oo, ObjectWithType as Op, AddListRequest as Or, external_deposit_guard_add as Os, TOKENS_CLAIMED_TOPIC as Ot, THRESHOLD_DEFAULT as Ou, queryTableItem_DemandPresenter as Ov, TAllBalancesParams as Ow, MAX_ORDER_ITEM_COUNT as Ox, reliesAdd as Oy, mnemonicToSeedHex as P, WowClientRegistration as PC, WowTransaction as PD, PaginatedObjectsResponse as PE, publicKeyFromWowBytes as PS, DynamicFieldPage as PT, TableAnswer as P_, query_transaction as Pa, destroy as Pb, CallService_Data as Pc, um_set$6 as Pd, ContextType as Pf, ObjectAllocation as Pg, QueryAccountResult as Ph, SendMessageResult as Pi, sales_set as Pl, isValidHttpUrl as Pm, PAYLOAD_PREFIX as Pn, query_events as Po, PaymentAddress as Pp, BaseRange as Pr, external_withdraw_guard_remove as Ps, encodeBridgeETH as Pt, forward as Pu, queryTableItem_MachineNode as Pv, TDynamicFieldObjectParams as Pw, MAX_PROPOSITION_COUNT as Px, CallBase as Py, TransactionObjectArgument as Q, ExecuteTransactionBlockParams as QC, UpgradeInfo as QE, Secp256r1KeypairData as QS, CommitteeInfo as QT, TableQuery as Q_, BridgeLimit as Qa, DISCOUNT_TYPE_MINUS$1 as Qb, ServiceQuoteObject as Qc, receive$2 as Qd, IsBcsStringLength as Qf, ObjectProof as Qg, AddressProfile as Qh, UploadPreKeysRequest as Qi, context_repository_add as Ql, parseWitnessType as Qm, GuardlistResponse as Qn, GuardItem as Qo, ServiceAddress as Qp, FetchMessagesRequest as Qr, data_remove as Qs, BridgeTransferStep as Qt, CallDemand as Qu, query_shared_objects as Qv, UnsafeRequestAddStakeParams as Qw, MaxNodeCountSdkLiteral as Qx, Permission_Index_Entity as Qy, MultiSigPublicKey as R, SIGNATURE_SCHEME_TO_SIZE as RC, WowTransactionBlockResponse as RD, ProtocolConfig$2 as RE, MultiSigSigner as RS, ProgrammableTransaction$1 as RT, TableItem_DemandPresenter as R_, CommonMistakeInfo as Ra, guardClear as Rb, DISCOUNT_TYPE_MINUS as Rc, voting_deadline_change as Rd, DiscountObject as Rf, ObjectContact as Rg, local_info_operation as Rh, ServerRegisterResponse as Ri, um_set$3 as Rl, isValidU16 as Rm, buildAttachmentEnvelope as Rn, ServiceContextQuery as Ro, PermissionObject as Rp, ChainProofResponse as Rr, withdraw as Rs, encodeTransferBridgedTokensWithSignatures as Rt, machineNode2file as Ru, queryTableItem_ProgressHistory as Rv, TReferenceGasPriceParams as Rw, MAX_RECORD_LENGTH as Rx, ObjectsOp as Ry, getJsonRpcFullnodeUrl as S, WowGraphQLRequestError as SC, WowMoveVisibility as SD, MultiSigLegacy as SE, getMoveErrorDescription as SS, WMultiGetTransactionBlocksParams as ST, QueryTableItem_byString as S_, TransactionDetail as Sa, remarkSet as Sb, description_set$2 as Sc, confirm as Sd, ArbAddress as Sf, GuardInPassport as Sg, GetAccountOrMark_Address as Sh, PreKeyPublic as Si, price_reduce as Sl, ValueTypeToType as Sm, MAINNET_COMMITTEE_PUBKEYS as Sn, FeedbackEvent as So, NormalObject as Sp, watch_conversations as Sr, MAX_EXTERNAL_DEPOSIT_GUARD_COUNT as Ss, buildClaimMessage as St, resolvePaymentInfoContext as Su, numberToObjectType as Sv, GetTotalSupplyParams as Sw, MAX_ITEM_COUNT as Sx, generateNodeComments as Sy, WowHTTPTransportError as T, SerializedTransactionDataV2 as TC, WowObjectDataFilter as TD, ObjectOwner$1 as TE, Account as TS, WowObjectChangeCreated as TT, RoleEvidence as T_, TransactionQuery as Ta, QueryReceived as Tb, guard_remove_expired as Tc, dispute as Td, ArbitrationObject as Tf, IdFromInput as Tg, LocalHistoryOperation as Th, PullMessagesResponse as Ti, repository_clear as Tl, WitnessType as Tm, findEvmChainConfigByBridgeChainId as Tn, NewPaymentEvent as To, ObjectModuleAndName as Tp, MessengerManager as Tr, deposit as Ts, isEvmNonceAlreadyProcessed as Tt, ForwardParam as Tu, parseIdFrom as Tv, MultiGetTransactionBlocksParams as Tw, MAX_NODE_COUNT as Tx, newGuard as Ty, LEGACY_PRIVATE_KEY_SIZE as U, bytesEqual as UC, WowWithdrawalTypeArg as UD, Signature as UE, PasskeyPublicKey as US, AccumulatorOperation as UT, TableItem_EntityRegistrar as U_, ProtocolInfoResult as Ua, verify_guard as Ub, MAX_DISCOUNT_COUNT_ONCE as Uc, AllocatorsType as Ud, ENTITY_REGISTRAR_ADDRESS as Uf, ObjectEntityRegistrar as Ug, query_local_info_default as Uh, SseCustomEvent as Ui, MAX_NAMED_OPERATOR_ADDRESS_COUNT as Ul, isValidValueType as Um, presentMessagesForRead as Un, AffiliationAnswer as Uo, Recipient as Up, ConversationsFilter as Ur, RemoveParam as Us, depositEth as Ut, node_exchange_name as Uu, query_address_profile as Uv, TryGetPastObjectParams as Uw, MAX_SERVER_PUBKEY_SIZE as Ux, resolveCoinParam as Uy, FALCON512_PRIVATE_KEY_SIZE as V, PublicKey as VC, WowValidatorSummary as VD, RPCTransactionRequestParams as VE, Falcon512KeypairData as VS, WowMovePackage as VT, TableItem_EntityOrder as V_, INFO_CONSTANT as Va, resolve_submission_names as Vb, MAX_ARBITRATION_COUNT as Vc, voting_guard_remove as Vd, ENTITY_ORDER_ADDRESS as Vf, ObjectEntity as Vg, query_account_list as Vh, SignedRequestBase as Vi, History as Vl, isValidU64 as Vm, parseAttachmentEnvelope as Vn, AFFILIATION_TABLES_BY_TYPE as Vo, ProofAddress as Vp, ContactListsSyncResult as Vr, DataRemoveItem as Vs, DepositParams as Vt, node_add as Vu, queryTableItem_ServiceOrders as Vv, TTotalSupplyParams as Vw, MAX_REWARD_COUNT$1 as Vx, getCoinParam as Vy, PRIVATE_KEY_SIZE as W, IntentScope as WC, HttpHeaders as WD, StakeObject as WE, BrowserPasskeyProvider as WS, AccumulatorValue as WT, TableItem_MachineNode as W_, queryPermissions as Wa, BRIDGE_CURRENT_VERSION as Wb, MAX_DISCOUNT_RECEIVER_ONCE as Wc, CallAllocation as Wd, EntityAddress as Wf, ObjectGuard as Wg, query_local_info_list as Wh, SseEvent as Wi, MAX_NAMED_OPERATOR_COUNT as Wl, isValidValueTypeInput as Wm, sanitizeFileName as Wn, AffiliationEntry as Wo, RecipientType as Wp, DEFAULT_DEVICE_ID as Wr, RepDataItem as Ws, depositFromEth as Wt, node_remove as Wu, query_address_profiles as Wv, TryMultiGetPastObjectsParams as Ww, MAX_SERVER_SIGNATURE_SIZE as Wx, BuiltinPermissionIndex as Wy, encodeWowPrivateKey as X, EryEventsParams as XC, ClientCacheOptions as XD, TransferObjectParams as XE, DEFAULT_SECP256R1_DERIVATION_PATH as XS, CoinStruct as XT, TableItem_RewardRecord as X_, BridgeError as Xa, BRIDGE_TRANSFER_STATUS_PENDING as Xb, NAMED_OPERATOR_ORDER_PAYER as Xc, create$9 as Xd, GuardAddress as Xf, ObjectPersonal as Xg, TokenTypeInfo as Xh, TimeRange as Xi, accomplish as Xl, object_name_from_type as Xm, GuardParam as Xn, GuardInstruct as Xo, RewardAddress as Xp, ExistListRequest as Xr, data$1 as Xs, BridgeTransferState as Xt, publish$1 as Xu, query_personal as Xv, UnsafePayWowParams as Xw, MAX_WIP_HASH_LENGTH as Xx, PermissionInfoType as Xy, decodeWowPrivateKey as Y, DryRunTransactionBlockParams as YC, ClientCache as YD, TransactionFilter$1 as YE, Secp256r1PublicKey as YS, CheckpointId as YT, TableItem_RepositoryData as Y_, BridgeCommitteeMember as Ya, BRIDGE_TRANSFER_STATUS_NOT_FOUND as Yb, MAX_SALE_COUNT as Yc, allocators as Yd, GetObjectExisted as Yf, ObjectPermission as Yg, TokenInfo as Yh, SsePreKeyLowEvent as Yi, Session as Yl, object_module_and_name_from_type as Ym, FriendslistResponse as Yn, GUARDQUERY as Yo, ResourceObject as Yp, EventStreamParams as Yr, create$1 as Ys, BridgeTransferDirection as Yt, prev_nodes_remove_with_passport as Yu, query_objects_json as Yv, UnsafePayParams as Yw, MAX_VOTOR_COUNT as Yx, PermissionInfo as Yy, Transaction$1 as Z, EryTransactionBlocksParams as ZC, TypeOrigin$1 as ZE, Secp256r1Keypair as ZS, CoinSupply as ZT, TableItem_TreasuryHistory as Z_, BridgeErrorCode as Za, DEFAULT_LOCK_DURATION$1 as Zb, ServiceBuyItem as Zc, newAllocation as Zd, GuardObject as Zf, ObjectProgress as Zg, AddressActivity as Zh, UpdateSettingsRequest as Zi, adminUnhold as Zl, parseValueType as Zm, GuardlistRequest as Zn, GuardInstructFilterOptions as Zo, RewardObject as Zp, FailedPrekeyInfo as Zr, data_id_from as Zs, BridgeTransferStatus as Zt, um_set$4 as Zu, query_services as Zv, UnsafePublishParams as Zw, MAX_WIP_LENGTH as Zx, Permission_Index as Zy, SerialTransactionExecutor as _, GraphQLQueryOptions as _C, WowMoveNormalizedFunction as _D, MoveCallParams as _E, W_FAILURE as _S, WGetObjectParams as _T, QueryAddressProfiles as __, ZipMetadata as _a, permSet as _b, RewardGuardObject as _c, um_set$5 as _d, logger as _f, ENTITY_ORDER_ROLE_AGENT as _g, AccountOperation as _h, MessengerError as _i, machine_set as _l, U64_MAX as _m, queryWowClaimStatus as _n, EventAnswer as _o, MachineObject as _p, send_file as _r, CallPersonal_DataMarkInput as _s, DepositWowResult as _t, create$5 as _u, getObjectTypeFromMoveName as _v, GetOwnedObjectsParams as _w, MAX_GUARD_COUNT_DEMAND as _x, ProgressSessionFindConditionsBCS as _y, formatMoveAbortMessage as a, Ed25519KeypairData as aC, WowEndOfEpochTransactionKind as aD, DryRunTransactionBlockResponse as aE, ROLE_OWNER as aS, WDryRunTransactionBlockParams as aT, ObjectTreasury as a_, WtsGenerationParams as aa, entityCopy as ab, policy_set as ac, create$7 as ad, parseObjectType as af, AmountFromWithdrawGuard as ag, toTxReceivingObject as ah, MerkleMetadata as ai, buy as al, TxNumber as am, queryEthTxConfirmations as an, BridgeVersion as ao, MAX_GUARD_NODE_DEPTH as ap, extract_zip_messages as ar, getCallEnvAccount as as, Inputs as at, namedOperator_remove as au, WReceivedObject as av, GetCoinsParams as aw, MAX_CONSENSUS_REPOSITORIES_COUNT as ax, wowObjectTypeNameForAddress as ay, getPureBcsSchema as b, WowGraphQLClient as bC, WowMoveNormalizedType as bD, MoveVariant as bE, W_VALIDATE_PARAM as bS, WGetTransactionBlockParams as bT, QueryTableItem_byAddress as b_, ObjectLastUpdated as ba, remarkClear as bb, coin_add as bc, arb_withdraw as bd, AllocationAddress as bf, EntityOrderItemView as bg, FaucetNetwork as bh, PQPreKeyPublic as bi, pause as bl, ValueType as bm, MAINNET_BRIDGE_CONFIG as bn, EventQuery as bo, NamedObjectWithDescription as bp, sign_wts as br, CallTreasury as bs, ClaimEthParams as bt, paymentInfo as bu, idFromToString as bv, GetStakesByIdsParams as bw, MAX_ID_COUNT_ONCE as bx, formatGuardParseErrors as by, BaseClient as c, GrpcWebOptions$1 as cC, WowExecutionResult as cD, DynamicFieldType as cE, WOWOK_WTS_PROOF_TYPE as cS, WGetCheckpointParams as cT, ObjectsQuery as c_, WtsPayload as ca, entityReplace as cb, reward_remove as cc, guard_add$1 as cd, permission_set as cf, ArbProposition as cg, toTxU16 as ch, MessageContentType as ci, compensation_fund_receive as cl, TxString as cm, queryWowToEvmTransferStatus as cn, TransferStatus as co, MAX_LOGIC_OPERANDS as cp, getMessengerManager as cr, CallContact as cs, TransactionInput as ct, owner_receive as cu, WowAddressKind as cv, GetDynamicFieldsParams as cw, MAX_DISCOUNT_COUNT_ONCE$1 as cx, GuardNode as cy, CoreClientOptions as d, WowGrpcClient as dC, WowMoveAbilitySet as dD, EventId as dE, WErrors as dS, WGetLatestCheckpointSequenceNumberParams as dT, PolicyRule as d_, WtsSession as da, isBizPermIndex as db, CallReward_Data as dc, location_set$1 as dd, validObjects as df, ArbsAnswer as dg, toTxU32 as dh, MessageIdRange as di, customer_required_set as dl, TypedDescriptionObject as dm, waitForWowTx as dn, AllocationEvent as do, MAX_NAME_LENGTH as dp, mark_conversation_as_viewed as dr, CallProof_Data as ds, SchemaCompatibilityResult as dt, CallPayment as du, getMoveNameFromObjectType as dv, GetMoveFunctionArgTypesParams as dw, MAX_DISPUTE_COUNT as dx, GuardSubmissionToFill as dy, DEFAULT_SECP256K1_DERIVATION_PATH as eC, ValidatorsApy as eD, ConsensusDeterminedVersionAssignments$1 as eE, ORDER_ROLE_AGENT as eS, UnsafeSplitCoinEqualParams as eT, ObjectResource as e_, WTS_FILE_BYTES_LIMIT as ea, adminRemove as eb, newRepository as ec, DemandPresent as ed, sharing as ef, AllocationSharing as eg, rewardFn as eh, GetSettingsRequest as ei, ServiceSale as el, SupportedValue as em, makeBridgeTransferState as en, BridgeResult as eo, IsValidBalance as ep, SettingsResponse as er, QueryInvariant as es, TransactionResult$1 as et, context_repository_remove as eu, TreasuryRecord as ev, GetAllCoinsParams as ew, MAX_ADDRESS_COUNT as ex, query_table as ey, isArgument as f, WowGrpcClientOptions as fC, WowMoveAbort as fD, ExecuteTransactionRequestType as fE, WException as fS, WGetMoveFunctionArgTypesParams as fT, PolicyWriteGuard as f_, WtsSignature as fa, newPermission as fb, CallReward_DataInput as fc, newDemand as fd, valueToBcsBytes as ff, ArbsQuery as fg, toTxU64 as fh, MessageListResult as fi, description_set$3 as fl, TypedPermissionObject as fm, ClaimWowParams as fn, ArbEvent as fo, MAX_NUMBER_OPERANDS as fp, mark_messages_as_viewed as fr, gen_proof as fs, checkSchemaCompatibility as ft, CallPaymentCreate_Data as fu, getNumberFromMoveName as fv, GetNormalizedMoveFunctionParams as fw, MAX_ENTITY_COUNT as fx, GuardTableItem as fy, ParallelTransactionExecutorOptions as g, GraphQLDocument as gC, WowMoveNormalizedField as gD, InputObjectKind as gE, W_ERROR as gS, WGetNormalizedMoveStructParams as gT, QueryAddressProfile as g_, ZipContentType as ga, permRemove as gb, RewardGuardInput as gc, reward_remove$2 as gd, getLogLevel as gf, DiscountType as gg, witnessTypeToString as gh, MessengerConfig as gi, location_set as gl, U32_MAX as gm, claimOnWow as gn, DemandPresentEvent as go, MachineAddress as gp, search_messages as gr, CallPersonal_DataInput as gs, DepositWowParams as gt, Revenue as gu, getObjectTypeDefinitionFromNumber as gv, GetObjectParams as gw, MAX_FORWARD_ORDER_COUNT as gx, ProgressHistoryFindConditionsBCS as gy, ParallelTransactionExecutor as h, GrpcCoreClientOptions as hC, WowMoveNormalizedEnum as hD, GetPastObjectRequest as hE, W_ENSURE as hS, WGetNormalizedMoveModulesByPackageParams as hT, PurchasedItem as h_, WtsVerificationResult as ha, permAdd as hb, RecipientRecord as hc, reward_clear$2 as hd, createSensitiveLogger as hf, DemandsQuery as hg, valueTypeToString as hh, MessageType$1 as hi, discount_send as hl, U256_MAX as hm, WowClaimStatus as hn, DemandFeedbackEvent as ho, MESSENGER_ADDRESS as hp, pull_messages as hr, CallPersonal_Data as hs, BridgeTransferRecord as ht, PaymentInfoResolved as hu, getObjectTypeDefinition as hv, GetNormalizedMoveStructParams as hw, MAX_FORWARD_COUNT as hx, ProgressForwardFindConditionsBCS as hy, extractStatusFromEffectsBcs as i, Ed25519Keypair as iC, WowCoinMetadata as iD, DisplayFieldsResponse as iE, ROLE_ENTITY as iS, WDevInspectTransactionBlockParams as iT, ObjectTokenTypeQuery as i_, WtsFileResult as ia, entityAdd as ib, policy_remove as ic, ServiceInfo$2 as id, owner_receive$1 as if, AmountFromDepositGuard as ig, toTxObject as ih, MAX_QUERY_LIMIT as ii, arbitrations_remove as il, TxAddressVec as im, queryEthBalance as in, BridgeTokenSymbol as io, MAX_ENV_PERMISSION_GUARD_COUNT as ip, extractZipFromPlaintext as ir, checkType as is, TransactionPlugin as it, namedOperator_add as iu, VotingGuard as iv, GetCoinMetadataParams as iw, MAX_ARBITRATION_COUNT$1 as ix, wowAddressKind as iy, isValidBIP32Path as j, ObjectRef as jC, WowProgrammableMoveCall as jD, PaginatedCoins as jE, MAX_ACCOUNTS as jS, Order as jT, SharedObjectsAnswer as j_, query_object_history as ja, ReceivedObjectsOrRecently as jb, CallOrder_Data as jc, newArbitration as jd, CoinWrapperObject as jf, MachineNodePair as jg, LocalNameByAddress as jh, SendAttachmentOptions as ji, sales_add as jl, isThisPackage as jm, ENVELOPE_MAX_ENTRIES as jn, TreasuryEvent as jo, OrderObject as jp, AttachmentDescriptor as jr, external_withdraw as js, encodeApprove as jt, consensus_repositories_remove as ju, queryTableItem_EntityOrder as jv, TCoinMetadataParams as jw, MAX_POLICY_DESCRIPTION_LEN as jx, reliesRemove as jy, WowJsonRpcClientOptions as k, Command$1 as kC, WowObjectResponseQuery as kD, OwnedObjectRef as kE, DEFAULT_ACCOUNT_NAME as kS, WowObjectChangeTransferred as kT, ServicesAnswer as k_, query_address_activity as ka, ReceivedNormal as kb, um_set$2 as kc, fees_transfer as kd, CoinParam as kf, MachineForwardGuard as kg, LocalMarkOperation as kh, ReplyTo as ki, reward_remove$1 as kl, demandFn as km, BuildAttachmentEnvelopeInput as kn, RewardFundEvent as ko, OperatorType as kp, AddressExistence as kr, external_deposit_guard_clear as ks, TOKENS_DEPOSITED_TOPIC as kt, consensus_repositories_add as ku, queryTableItem_EntityContact as kv, TAllCoinsParams as kw, MAX_PERM_FOR_ENTITY as kx, reliesClear as ky, ClientWithCoreApi as l, RpcTransport$1 as lC, WowGasData as lD, ECMHLiveObjectSetDigest as lE, MoveErrors as lS, WGetCheckpointsParams as lT, PaymentInfo as l_, WtsRange as la, entitySet as lb, um_set$1 as lc, guard_clear as ld, resolveSupportedValue as lf, ArbStatus as lg, toTxU16Vec as lh, MessageDirection as li, compensation_fund_withdraw as ll, TypeNamedObject as lm, queryWowTx as ln, isEvmChain as lo, MAX_LONG_NAME_LENGTH as lp, get_attachment as lr, CallContact_Data as ls, UpgradePolicy as lt, progressFn as lu, data2object as lv, GetLatestCheckpointSequenceNumberParams as lw, MAX_DISCOUNT_RECEIVER_ONCE$1 as lx, GuardParseError as ly, coinWithBalance as m, GrpcCoreClient as mC, WowMoveModuleId as mD, GasCostSummary$2 as mE, WValidate as mS, WGetNormalizedMoveModuleParams as mT, ProgressSessionHolder as m_, WtsToHtmlOptions as ma, ownerReceiveObject as mb, MAX_RECORD_COUNT as mc, reward_add$2 as md, Logger as mf, DemandsAnswer as mg, treasuryFn as mh, MessageTimeField as mi, discount_destroy as ml, U16_MAX as mm, WowClaimState as mn, DemandChangedEvent as mo, MAX_STRING_OPERANDS as mp, proof_message as mr, CallPersonal as ms, BridgeClientOptions as mt, CallPayment_Data as mu, getNumbersFromObjectTypes as mv, GetNormalizedMoveModulesByPackageParams as mw, MAX_EXTERNAL_WITHDRAW_GUARD_COUNT$1 as mx, GuardValidationIssue as my, WowClientOptions as n, Secp256k1KeypairData as nC, WowCallArg as nD, DevInspectArgs as nE, OnchainConstantName as nS, UnsafeTransferObjectParams as nT, ObjectService as n_, WTS_SCHEMA_URL as na, create$11 as nb, policy_add as nc, MAX_FEEDBACK_COUNT as nd, extractCoinType as nf, Allocators as ng, toTxAddress as nh, GuardListItem as ni, arbitration_clear as nl, TreasuryObject as nm, parseEthDepositEvent as nn, BridgeToken as no, MAX_DEPENDED_COUNT as np, emergency_pull as nr, getGuardQueryInfo as ns, BuildTransactionOptions as nt, getMachineNodeForward as nu, UserOrderView as nv, GetCheckpointParams as nw, MAX_AGENT_COUNT as nx, query_table_json as ny, parseTransactionBcs as o, Ed25519PublicKey as oC, WowEvent as oD, DynamicFieldInfo as oE, USER_DEFINED_PERM_INDEX_START as oS, WExecuteTransactionBlockParams as oT, ObjectTypeDefinition as o_, WtsMessage as oa, entityDel as ob, reward_add as oc, description_set$5 as od, parseRecipient as of, AmountType as og, toTxString as oh, MerkleProof as oi, buy_guard_set as ol, TxNumberVec as om, queryEthTxReceipt as on, SignedAction as oo, MAX_GUARD_TABLE_ITEM_LENGTH as op, friendslist as or, resolveCallEnv as os, TransactionArgument as ot, namedOperator_set as ou, WitnessSourceType as ov, GetCommitteeInfoParams as ow, MAX_CONTEXT_REPOSITORY_COUNT as ox, CallGuard as oy, Arguments as p, isWowGrpcClient as pC, WowMoveFunctionArgType as pD, ExecutionStatus$2 as pE, WResult as pS, WGetNormalizedMoveFunctionParams as pT, ProgressSession as p_, WtsSignatureVerification as pa, ownerReceive as pb, MAX_GUARD_COUNT as pc, present as pd, LogLevel as pf, CoreLinkView as pg, toTxU8 as ph, MessageStatus as pi, discount as pl, U128_MAX as pm, ClaimWowResult as pn, ArbitrationEvent as po, MAX_PERMISSION_GUARD_COUNT as pp, peer_registered as pr, AccountOrMark_AddressInput as ps, BridgeClient as pt, CallPaymentReceive_Data as pu, getNumberFromObjectType as pv, GetNormalizedMoveModuleParams as pw, MAX_EXTERNAL_DEPOSIT_GUARD_COUNT$1 as px, GuardTableItemBase as py, Signer as q, BscribeTransactionParams as qC, JsonRpcTransport as qD, TransactionBlockEffectsModifiedAtVersions as qE, PasskeyProvider as qS, Checkpoint$1 as qT, TableItem_PermissionPerm as q_, BridgeCallResult as qa, BRIDGE_TRANSFER_STATUS_APPROVED as qb, MAX_REQUIRED_INFO_SIZE as qc, alloc as qd, GetObject as qf, ObjectPassport as qg, query_local_token_list as qh, SseGuardRejectedEvent as qi, ProgressEvent$1 as ql, isWitnessType as qm, BlacklistResponse as qn, query_affiliations as qo, RepositoryObject as qp, DecryptedMessage as qr, SignerOrClock as qs, SignedBridgeActionResponse as qt, pause$1 as qu, query_object_token_type as qv, UnsafeMoveCallParams as qw, MAX_TAGS_COUNT as qx, PermissionFilter as qy, SimulationError as r, DEFAULT_ED25519_DERIVATION_PATH as rC, WowChangeEpoch as rD, DevInspectResults as rE, ROLE_ADMIN as rS, UnsafeTransferWowParams as rT, ObjectTokenTypeInfo as r_, WtsFile as ra, descriptionSet as rb, policy_clear as rc, MAX_GUARD_COUNT$1 as rd, isValidValueContainer as rf, Amount as rg, toTxAddressVec as rh, ListOperationResponse as ri, arbitrations_add as rl, TxAddress as rm, queryErc20Balance as rn, BridgeTokenId as ro, MAX_DESCRIPTION_LENGTH as rp, export_attachment as rr, RestoreNodeResult as rs, SerializeTransactionOptions as rt, hold as ru, VoteWeight as rv, GetCheckpointsParams as rw, MAX_ALLOCATOR_COUNT$1 as rx, raw2type as ry, parseTransactionEffectsBcs as s, GrpcWebFetchTransport$1 as sC, WowEventFilter as sD, DynamicFieldName$1 as sE, WITHDRAW_DURATION_TIME as sS, WGetChainIdentifierParams as sT, ObjectsAnswer as s_, WtsMeta as sa, entityRemove as sb, reward_clear as sc, feedback as sd, parseTypeParameter as sf, ArbIndemnity as sg, toTxU128 as sh, Message as si, compensation_fund_add as sl, TxObject as sm, queryEvmToWowTransferStatus as sn, TransferRecord as so, MAX_INPUT_SIZE as sp, generate_wts as sr, restoreNodeFromOutput as ss, TransactionCommands as st, newProgress as su, WitnessTargetType as sv, GetDynamicFieldObjectParams as sw, MAX_DATA_SIZE as sx, CallGuard_Data as sy, WowClient as t, Secp256k1Keypair as tC, WowArgument as tD, DelegatedStake as tE, ORDER_ROLE_OWNER as tS, UnsafeSplitCoinParams as tT, ObjectReward as t_, WTS_MAX_MESSAGE_COUNT as ta, adminSet as tb, policy as tc, FeedbackInfo as td, bcsBytesToValue as tf, Allocator as tg, serviceFn as th, GetSettingsResponse as ti, ServiceSaleObject as tl, TreasuryAddress as tm, parseEthClaimEvent as tn, BridgeSummary as to, IsValidEndpoint as tp, blacklist as tr, filterGuardInstruct as ts, isTransaction as tt, create$4 as tu, TxLinkView as tv, GetBalanceParams as tw, MAX_ADMIN_COUNT as tx, query_tableItem as ty, CoreClient as u, types_d_exports as uC, WowMoveAbility as uD, EndOfEpochData$1 as uE, MoveModuleError as uS, WGetEventsParams as uT, PersonalQuery as u_, WtsServerPublicKey as ua, entitySwap as ub, CallReward as uc, guard_remove as ud, uint2address as uf, ArbVoted as ug, toTxU256 as uh, MessageFilter as ui, create$3 as ul, TypeNamedObjectWithPermission as um, waitForEthTx as un, isWowChain as uo, MAX_MULTI_OPERANDS as up, guardlist as ur, CallProof as us, SCHEMA_VERSION as ut, task_set as uu, getMoveNameFromNumber as uv, GetLatestWowSystemStateParams as uw, MAX_DISCOUNT_TOTAL_COUNT$1 as ux, GuardParseResult as uy, AsyncCache as v, GraphQLQueryResult as vC, WowMoveNormalizedModule as vD, MoveStruct as vE, W_SAFE as vS, WGetProtocolConfigParams as vT, QueryOrdersByUser as v_, AddressActivityQuery as va, permissionFn as vb, RewardRecord as vc, CallArbitration as vd, setLogLevel as vf, ENTITY_ORDER_ROLE_OWNER as vg, AccountOperationResult as vh, MessengerErrorCode as vi, newService as vl, U8_MAX as vm, BridgeConfig as vn, EventBase as vo, Modules as vp, send_message as vr, ManyAccountOrMark_AddressInput as vs, depositFromWow as vt, newPayment as vu, getObjectTypeFromNumber as vv, GetProtocolConfigParams as vw, MAX_GUARD_COUNT_PASSPORT as vx, RecordQueryConditionsBCS as vy, WowHTTPStatusError as w, TransactionDataBuilder as wC, WowObjectData as wD, MultiSigPublicKeyLegacy as wE, isWowokSystemAddress as wS, WTryMultiGetPastObjectsParams as wT, RewardGuard as w_, TransactionHistoryItem as wa, um_set$7 as wb, guard_expiration_time_add as wc, description_set$6 as wd, ArbitrationAddress as wf, IdFrom as wg, GetManyAccountOrMark_Address as wh, PullAccountResult as wi, repository_add as wl, WithPermissionObject as wm, findEvmChainConfig as wn, NewOrderEvent as wo, OBJECT_LINKER_TX_ADDRESS as wp, wts2html as wr, create as ws, claimOnEthBySeq as wt, CallMachine_Data as wu, objectTypeToNumber as wv, MultiGetObjectsParams as ww, MAX_NAMED_OPERATOR_COUNT$1 as wx, guardFn as wy, normalizedTypeToMoveTypeSignature as x, WowGraphQLClientOptions as xC, WowMoveStructTypeParameter as xD, MultiSig as xE, enrichMoveError as xS, WMultiGetObjectsParams as xT, QueryTableItem_byNameAddress as x_, ObjectLastUpdatedQuery as xa, remarkRemove as xb, create$2 as xc, arbitration as xd, AllocationObject as xf, EntityPermissionItemView as xg, FetchTokenInfoOperation as xh, PlaintextMessage as xi, price_add as xl, ValueTypeInput as xm, MAINNET_COMMITTEE_MEMBER_ADDRESSES as xn, EventType as xo, NamedObjectWithPermission as xp, verify_wts as xr, CallTreasury_Data as xs, EvmNoncePrecheckParams as xt, receiveToMyself as xu, isValidIdFromInput as xv, GetStakesParams as xw, MAX_IM_COUNT as xx, gen_passport as xy, ObjectCache as y, GraphQLResponseErrors as yC, WowMoveNormalizedStruct as yD, MoveValue as yE, W_SUCCESS as yS, WGetTotalTransactionBlocksParams as yT, QueryTableItem_Entity as y_, ObjectHistoryQuery as ya, query_permissions as yb, claim as yc, CallArbitration_Data as yd, AddressResult as yf, EntityContactItemView as yg, AccountOrMark_Address as yh, NORMAL_MESSAGE_BYTES_LIMIT as yi, order_allocators_set as yl, ValueContainer as ym, EvmChainConfig as yn, EventCursor as yo, NamedObject as yp, settings as yr, transformPersonalInput as ys, ClaimEthOptions as yt, paymentFn as yu, getObjectTypesFromNumbers as yv, GetReferenceGasPriceParams as yw, MAX_GUARD_COUNT_REWARD as yx, create$10 as yy, MultiSigStruct as z, SignatureFlag as zC, WowTransactionBlockResponseOptions as zD, ProtocolConfigValue as zE, DEFAULT_FALCON512_DERIVATION_PATH as zS, WowMoveNormalizedModules as zT, TableItem_EntityContact as z_, FUNDING_GUIDANCE as za, newPassport as zb, DISCOUNT_TYPE_RATES as zc, voting_guard_add as zd, ENTITY_CONTACT_ADDRESS as zf, ObjectDemand as zg, local_mark_operation as zh, SessionState as zi, CallProgress as zl, isValidU256 as zm, describeAttachmentFromMetadata as zn, ServiceContextResult as zo, ProgressAddress as zp, ClearListRequest as zr, CallRepository as zs, DepositErc20Options as zt, newMachine as zu, queryTableItem_RepositoryData as zv, TStakesByIdsParams as zw, MAX_REPOSITORY_COUNT$1 as zx, ResponseData as zy };
|