@wowok/wowok 2.3.16 → 2.4.0
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/{arb-DqRR5FTf.mjs → arb-pFcb4ftp.mjs} +1 -1
- package/dist/esm/{base-BaV8tCMN.mjs → base-BdlWCNje.mjs} +1 -1
- package/dist/esm/bcs/index.d.mts +1 -1
- package/dist/esm/call-Cf74XogX.mjs +1 -0
- package/dist/esm/client/index.d.mts +2 -2
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client-CcSxA1Tm.mjs +1 -0
- package/dist/esm/{common-5hE5A-jb.mjs → common-D8TcHVCJ.mjs} +1 -1
- package/dist/esm/{config-Bdlw4pMJ.d.mts → config-CPqpYYLT.d.mts} +6 -1
- package/dist/esm/cryptography/index.d.mts +1 -1
- package/dist/esm/{evm-account-DMl7wn2f.d.mts → evm-account-B1-nzcbY.d.mts} +135 -20
- package/dist/esm/exception-CkI_xPvd.mjs +1 -0
- package/dist/esm/graphql/index.d.mts +1 -1
- package/dist/esm/graphql/index.mjs +1 -1
- package/dist/esm/{graphql-ruyEDFAJ.mjs → graphql-Ccoor2f6.mjs} +1 -1
- package/dist/esm/grpc/index.d.mts +1 -1
- package/dist/esm/grpc/index.mjs +1 -1
- package/dist/esm/{grpc-oOvPQrN2.mjs → grpc-33XsFGKx.mjs} +1 -1
- package/dist/esm/{index-Cj4KHtbw.d.mts → index-B8BZSNzI.d.mts} +6 -6
- package/dist/esm/{index-Dg2FVWSm.d.mts → index-C-WBdTM5.d.mts} +290 -23
- package/dist/esm/index.d.mts +9 -9
- 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/keypairs/ed25519/index.d.mts +1 -1
- package/dist/esm/keypairs/falcon512/index.d.mts +1 -1
- package/dist/esm/keypairs/passkey/index.d.mts +1 -1
- package/dist/esm/keypairs/secp256k1/index.d.mts +1 -1
- package/dist/esm/keypairs/secp256r1/index.d.mts +1 -1
- package/dist/esm/{local-CtSmnSPu.d.mts → local-CnxBimye.d.mts} +12 -3
- package/dist/esm/logger-Cs5Mf7Mf.mjs +1 -0
- package/dist/esm/messenger-CkRQcNzs.mjs +1 -0
- package/dist/esm/messenger-api-B9NB9Byo.mjs +1 -0
- package/dist/esm/multisig/index.d.mts +1 -1
- package/dist/esm/multisig/index.mjs +1 -1
- package/dist/esm/network-CeDd07Hg.mjs +1 -1
- package/dist/esm/{networks-DjNV6z1E.d.mts → networks-Cab2UR8C.d.mts} +5 -0
- package/dist/esm/{object-Dk20SVoh.mjs → object-D5C_RkYD.mjs} +1 -1
- package/dist/esm/passkey-CS2Qexll.mjs +1 -1
- package/dist/esm/{proof-CYzFLG3W.mjs → proof-BR6cbbRo.mjs} +1 -1
- package/dist/esm/publickey-5xoCmE9g.mjs +1 -1
- package/dist/esm/publickey-BzPz9Uwr.mjs +1 -1
- package/dist/esm/publickey-C9TocS69.mjs +1 -1
- package/dist/esm/publickey-CQWQyM6S.mjs +1 -1
- package/dist/esm/publickey-CvCDfw_N.mjs +1 -1
- package/dist/esm/publickey-DhiTZPiB.mjs +1 -1
- package/dist/esm/{query-KyXahKV2.mjs → query-CoCibg2q.mjs} +1 -1
- package/dist/esm/{received-UkU0DIQD.mjs → received-H24viThJ.mjs} +1 -1
- package/dist/esm/secp256k1-DhrvBMbI.mjs +1 -1
- package/dist/esm/secp256r1-BCaQWLGZ.mjs +1 -1
- package/dist/esm/{secure-storage-Dkh4Oioi.d.mts → secure-storage-D4X3f-9t.d.mts} +29 -6
- package/dist/esm/{service-Dk_yUxg1.mjs → service-NZ-TLNHV.mjs} +1 -1
- package/dist/esm/{storage-0OmomSuj.d.mts → storage-D6ZEdlgz.d.mts} +4 -0
- package/dist/esm/storage-UnD4qWaK.mjs +1 -0
- package/dist/esm/transactions/index.d.mts +1 -1
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions-CkMcWBKS.mjs +1 -1
- package/dist/esm/util-DWhWaV7w.mjs +1 -0
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils-npJYSbqk.mjs +1 -1
- 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 +2 -2
- package/dist/esm/w/call/guard.mjs +1 -1
- package/dist/esm/w/call/index.d.mts +2 -2
- 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 +2 -2
- 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 +1 -1
- package/dist/esm/w/common.mjs +1 -1
- package/dist/esm/w/index.d.mts +8 -8
- 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.d.mts +2 -2
- package/dist/esm/w/local/evm-account.mjs +1 -1
- package/dist/esm/w/local/index.d.mts +8 -8
- package/dist/esm/w/local/index.mjs +1 -1
- package/dist/esm/w/local/local.d.mts +1 -1
- package/dist/esm/w/local/local.mjs +1 -1
- package/dist/esm/w/local/secure-storage.d.mts +1 -1
- package/dist/esm/w/local/secure-storage.mjs +1 -1
- package/dist/esm/w/local/storage.d.mts +1 -1
- package/dist/esm/w/local/storage.mjs +1 -1
- package/dist/esm/w/local/token.d.mts +1 -1
- package/dist/esm/w/local/token.mjs +1 -1
- package/dist/esm/w/local/util.mjs +1 -1
- package/dist/esm/w/local/wip.mjs +1 -1
- package/dist/esm/w/messenger/index.d.mts +1 -1
- package/dist/esm/w/messenger/index.mjs +1 -1
- package/dist/esm/w/messenger/messenger-api.d.mts +1 -1
- 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/storage.d.mts +1 -1
- package/dist/esm/w/messenger/storage.mjs +1 -1
- package/dist/esm/w/messenger/types.d.mts +1 -1
- package/dist/esm/w/query/index.d.mts +1 -1
- package/dist/esm/w/query/index.mjs +1 -1
- package/dist/esm/w/query/object.d.mts +1 -1
- package/dist/esm/w/query/object.mjs +1 -1
- package/dist/esm/w-GXPhQ_II.mjs +1 -0
- package/package.json +1 -1
- package/dist/esm/call-DxZ8joBg.mjs +0 -1
- package/dist/esm/client-BclB95bx.mjs +0 -1
- package/dist/esm/exception--UEPnygY.mjs +0 -1
- package/dist/esm/messenger-2hLfhXrY.mjs +0 -1
- package/dist/esm/messenger-api-Bw07tHXw.mjs +0 -1
- package/dist/esm/util-B0nM8Wvi.mjs +0 -1
- package/dist/esm/w-M-SrRB3j.mjs +0 -1
|
@@ -1,21 +1,47 @@
|
|
|
1
|
-
import { t as IAccountStorage } from "./storage-
|
|
1
|
+
import { t as IAccountStorage } from "./storage-D6ZEdlgz.mjs";
|
|
2
|
+
import { n as EncryptionMode } from "./secure-storage-D4X3f-9t.mjs";
|
|
2
3
|
//#region src/w/local/evm-account.d.ts
|
|
3
4
|
/**
|
|
4
|
-
*
|
|
5
|
+
* EVM 账户数据(多账户 + 唯一 active)。
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
* -
|
|
8
|
-
* - 私钥持久化到 account.db → evm_accounts
|
|
9
|
-
* - secret
|
|
10
|
-
* -
|
|
7
|
+
* 设计意图(v2 多账户改造):
|
|
8
|
+
* - 支持多个 EVM 账户,但同一时间只有一个 activeEvmAccount(isActive=true)
|
|
9
|
+
* - 私钥持久化到 account.db → evm_accounts 表,单行 JSON 数组
|
|
10
|
+
* - secret 仅在读出时临时存在于内存,对外返回时自动清除
|
|
11
|
+
* - secp256k1 私钥在所有 EVM 兼容链(ETH 主网 / L2)通用
|
|
12
|
+
* - active 账户用于跨链桥签名;非 active 账户仅展示余额
|
|
13
|
+
*
|
|
14
|
+
* 迁移兼容:
|
|
15
|
+
* - 旧格式单对象 → 自动包装为单元素数组并标记 isActive=true
|
|
16
|
+
* - 旧格式数组(无 isActive 字段)→ 第一个标记为 isActive=true
|
|
11
17
|
*/
|
|
12
18
|
interface EvmAccountData {
|
|
13
19
|
address: string;
|
|
20
|
+
name?: string;
|
|
14
21
|
pubkey?: string;
|
|
15
22
|
secret?: string;
|
|
23
|
+
isActive?: boolean;
|
|
16
24
|
createdAt?: number;
|
|
17
25
|
updatedAt?: number;
|
|
18
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* EVM 账户列表过滤条件。
|
|
29
|
+
* 支持名称/地址模糊搜索(评分排序,参考 Account.list)。
|
|
30
|
+
*/
|
|
31
|
+
interface EvmAccountFilter {
|
|
32
|
+
name?: string;
|
|
33
|
+
address?: string;
|
|
34
|
+
isActive?: boolean;
|
|
35
|
+
createdAt?: {
|
|
36
|
+
gte?: number;
|
|
37
|
+
lte?: number;
|
|
38
|
+
};
|
|
39
|
+
updatedAt?: {
|
|
40
|
+
gte?: number;
|
|
41
|
+
lte?: number;
|
|
42
|
+
};
|
|
43
|
+
includePubkey?: boolean;
|
|
44
|
+
}
|
|
19
45
|
/** EVM 交易请求(未签名) */
|
|
20
46
|
interface EvmTransactionRequest {
|
|
21
47
|
to: string;
|
|
@@ -64,24 +90,31 @@ interface EvmLog {
|
|
|
64
90
|
removed: boolean;
|
|
65
91
|
}
|
|
66
92
|
/**
|
|
67
|
-
*
|
|
93
|
+
* EVM 账户管理(多账户 + 唯一 activeEvmAccount)。
|
|
68
94
|
*
|
|
69
95
|
* 使用例:
|
|
70
96
|
* ```ts
|
|
71
97
|
* const acc = EvmAccount.Instance();
|
|
72
|
-
* const active = await acc.active(); // 自动 gen 或返回已有
|
|
98
|
+
* const active = await acc.active(); // 自动 gen 或返回已有 active
|
|
73
99
|
* const receipt = await acc.sign_and_send(tx); // 用 active 账户签名
|
|
100
|
+
* const all = await acc.list(); // 列出所有账户
|
|
101
|
+
* await acc.setActive(anotherAddress); // 切换 active
|
|
74
102
|
* ```
|
|
75
103
|
*/
|
|
76
104
|
declare class EvmAccount {
|
|
77
105
|
static _instance: EvmAccount | undefined;
|
|
78
106
|
static storage: IAccountStorage | undefined;
|
|
79
|
-
private static
|
|
107
|
+
private static _dataLock;
|
|
108
|
+
private static _storageLock;
|
|
80
109
|
setStorage(storage: IAccountStorage): void;
|
|
81
110
|
/**
|
|
82
111
|
* 设置自定义存储,并自动启用透明加密。
|
|
83
112
|
*/
|
|
84
113
|
setEncryptedStorage(storage: IAccountStorage): void;
|
|
114
|
+
/**
|
|
115
|
+
* 获取存储实例,如果未初始化则自动初始化(默认启用透明加密)。
|
|
116
|
+
* 并发安全:双重检查锁定,确保同一时间只有一个初始化在进行。
|
|
117
|
+
*/
|
|
85
118
|
private _getStorage;
|
|
86
119
|
/**
|
|
87
120
|
* 解锁密码保护的 EVM 账户数据。
|
|
@@ -105,21 +138,59 @@ declare class EvmAccount {
|
|
|
105
138
|
* 移除密码保护,回退到默认加密。
|
|
106
139
|
*/
|
|
107
140
|
removeEncryptionPassword(password: string): Promise<void>;
|
|
141
|
+
/**
|
|
142
|
+
* 获取当前加密模式。
|
|
143
|
+
* - "default": 默认加密(无需密码)
|
|
144
|
+
* - "password": 密码保护模式
|
|
145
|
+
* - undefined: 尚未初始化
|
|
146
|
+
*
|
|
147
|
+
* 只读查询,不涉及密码本身,可安全暴露给客户端判断是否需要显示密码门禁。
|
|
148
|
+
*/
|
|
149
|
+
getEncryptionMode(): Promise<EncryptionMode | undefined>;
|
|
150
|
+
/**
|
|
151
|
+
* 是否已设置密码保护。
|
|
152
|
+
* 等价于 getEncryptionMode() === "password"。
|
|
153
|
+
*/
|
|
154
|
+
isPasswordSet(): Promise<boolean>;
|
|
155
|
+
/**
|
|
156
|
+
* 获取 EvmAccount 单例实例。
|
|
157
|
+
* 并发安全:双重检查锁定,确保同一时间只有一个实例被创建。
|
|
158
|
+
*/
|
|
108
159
|
static Instance(): EvmAccount;
|
|
109
160
|
/**
|
|
110
|
-
*
|
|
111
|
-
*
|
|
161
|
+
* 从存储读取所有 EVM 账户(含 secret,内部使用)。
|
|
162
|
+
* 自动迁移旧格式(单对象 / 旧数组)→ 新数组格式。
|
|
163
|
+
*
|
|
164
|
+
* 迁移规则:
|
|
165
|
+
* - 旧格式单对象 → 包装为单元素数组,标记 isActive=true
|
|
166
|
+
* - 旧格式数组(无 isActive 字段)→ 第一个标记为 isActive=true,去除 suspended/name 旧字段
|
|
167
|
+
* - 新格式数组 → 原样返回
|
|
168
|
+
*
|
|
169
|
+
* 若数组中没有 isActive=true 的账户,自动将第一个标记为 active。
|
|
170
|
+
*/
|
|
171
|
+
private _readAll;
|
|
172
|
+
/** 直接写入整个账户数组。 */
|
|
173
|
+
private _writeAll;
|
|
174
|
+
/** 查找 active 账户(数组中 isActive=true 的第一个,若无则返回 undefined)。 */
|
|
175
|
+
private _findActive;
|
|
176
|
+
/** 从账户数据中剔除 secret 字段,可选剔除 pubkey。 */
|
|
177
|
+
private _sanitize;
|
|
178
|
+
/**
|
|
179
|
+
* 获取当前 active 账户(不含 secret)。
|
|
180
|
+
* @param includePubkey 是否包含公钥(默认 false)
|
|
112
181
|
*/
|
|
113
182
|
private _get;
|
|
114
183
|
/**
|
|
115
|
-
*
|
|
116
|
-
* 用于签名操作(sign_and_send / signData / transfer)。
|
|
184
|
+
* 获取当前 active 账户(含 secret),用于签名操作。
|
|
117
185
|
*/
|
|
118
186
|
private _getWithSecret;
|
|
119
187
|
/**
|
|
120
|
-
*
|
|
188
|
+
* 新增或更新单个账户到数组,并标记为 active(其他设为非 active)。
|
|
189
|
+
* 用于 gen / importPrivateKey。
|
|
190
|
+
*
|
|
191
|
+
* 注意:此方法不获取锁,调用方(gen/importPrivateKey)需已持有 _dataLock。
|
|
121
192
|
*/
|
|
122
|
-
private
|
|
193
|
+
private _upsertAsActive;
|
|
123
194
|
/**
|
|
124
195
|
* 解析网络配置(统一入口)
|
|
125
196
|
*
|
|
@@ -137,9 +208,9 @@ declare class EvmAccount {
|
|
|
137
208
|
*/
|
|
138
209
|
private rpcWithFailover;
|
|
139
210
|
/**
|
|
140
|
-
* 生成新的 EVM 账户(secp256k1
|
|
211
|
+
* 生成新的 EVM 账户(secp256k1),添加到账户数组并标记为 active。
|
|
141
212
|
*
|
|
142
|
-
*
|
|
213
|
+
* 新账户会成为 activeEvmAccount(其他账户自动设为非 active)。
|
|
143
214
|
* 通常由 active() 在首次调用时自动调用,无需手动调用。
|
|
144
215
|
*
|
|
145
216
|
* @param includePubkey 是否包含公钥(默认 false)
|
|
@@ -147,7 +218,9 @@ declare class EvmAccount {
|
|
|
147
218
|
*/
|
|
148
219
|
gen(includePubkey?: boolean): Promise<EvmAccountData>;
|
|
149
220
|
/**
|
|
150
|
-
* 导入已有 EVM
|
|
221
|
+
* 导入已有 EVM 私钥,添加到账户数组并标记为 active。
|
|
222
|
+
*
|
|
223
|
+
* 若地址已存在则更新其私钥并设为 active;否则新增。
|
|
151
224
|
*
|
|
152
225
|
* @param privateKey 私钥(0x + 64 hex,32 字节)
|
|
153
226
|
* @param includePubkey 是否包含公钥(默认 false)
|
|
@@ -164,6 +237,48 @@ declare class EvmAccount {
|
|
|
164
237
|
* @returns 活跃账户数据(不含 secret)
|
|
165
238
|
*/
|
|
166
239
|
active(includePubkey?: boolean): Promise<EvmAccountData>;
|
|
240
|
+
/**
|
|
241
|
+
* 列出所有 EVM 账户(不含 secret)。
|
|
242
|
+
* 支持按名称/地址模糊搜索(评分排序,参考 Account.list)。
|
|
243
|
+
*
|
|
244
|
+
* @param filter 过滤条件(可选)
|
|
245
|
+
* @returns 账户列表(不含 secret,active 账户排在首位)
|
|
246
|
+
*/
|
|
247
|
+
list(filter?: EvmAccountFilter): Promise<EvmAccountData[]>;
|
|
248
|
+
/**
|
|
249
|
+
* 设置指定账户为 active(其他自动设为非 active)。
|
|
250
|
+
* @param address 要设为 active 的账户地址
|
|
251
|
+
* @returns 是否成功
|
|
252
|
+
*/
|
|
253
|
+
setActive(address: string): Promise<boolean>;
|
|
254
|
+
/**
|
|
255
|
+
* 重命名指定账户。
|
|
256
|
+
* @param address 账户地址
|
|
257
|
+
* @param newName 新名称
|
|
258
|
+
* @returns 是否成功
|
|
259
|
+
*/
|
|
260
|
+
rename(address: string, newName: string): Promise<boolean>;
|
|
261
|
+
/**
|
|
262
|
+
* 删除指定账户。
|
|
263
|
+
* 若删除的是 active 账户,自动将剩余的第一个设为 active。
|
|
264
|
+
* @param address 要删除的账户地址
|
|
265
|
+
* @returns 是否成功
|
|
266
|
+
*/
|
|
267
|
+
del(address: string): Promise<boolean>;
|
|
268
|
+
/**
|
|
269
|
+
* 按名称或地址查询单个账户(默认不含 secret)。
|
|
270
|
+
* @param nameOrAddress 名称或地址
|
|
271
|
+
* @param includePubkey 是否包含公钥
|
|
272
|
+
* @param includeSecret 是否包含私钥(仅用于导出私钥场景)
|
|
273
|
+
*/
|
|
274
|
+
getByNameOrAddress(nameOrAddress: string, includePubkey?: boolean, includeSecret?: boolean): Promise<EvmAccountData | undefined>;
|
|
275
|
+
/**
|
|
276
|
+
* 导出指定 EVM 账户的私钥。
|
|
277
|
+
* 需要账户已解锁(若设了密码)。
|
|
278
|
+
* @param address EVM 地址(0x + 40 hex)
|
|
279
|
+
* @returns 私钥字符串(0x + 64 hex),若账户不存在则返回 undefined
|
|
280
|
+
*/
|
|
281
|
+
exportSecret(address: string): Promise<string | undefined>;
|
|
167
282
|
/** 查询 EVM 活跃账户的 ETH 原生余额(wei) */
|
|
168
283
|
balance(network?: number | string, rpcUrl?: string): Promise<bigint | undefined>;
|
|
169
284
|
/** 查询 EVM 活跃账户的 ERC20 token 余额(需 ABI 调用 balanceOf) */
|
|
@@ -263,4 +378,4 @@ declare class EvmAccount {
|
|
|
263
378
|
}): Promise<EvmTransactionReceipt>;
|
|
264
379
|
}
|
|
265
380
|
//#endregion
|
|
266
|
-
export {
|
|
381
|
+
export { EvmTransactionReceipt as a, EvmLog as i, EvmAccountData as n, EvmTransactionRequest as o, EvmAccountFilter as r, EvmAccount as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let WErrors=function(a){return a['AccountNotFound']='account\x20not\x20found',a['AddressNotFound']='address\x20not\x20found',a['IsValidDescription']='invalid\x20description',a['IsValidName']='invalid\x20name',a['IsValidName_AllowEmpty']='invalid\x20name',a['IsValidEndpoint']='invalid\x20endpoint',a['IsValidAddress']='invalid\x20address',a['IsValidArgType']='invalid\x20argument\x20type',a['IsValidTokenType']='invalid\x20token\x20type',a['IsValidUint']='invalid\x20uint',a['IsValidInt']='invalid\x20int',a['IsValidU8']='invalid\x20u8',a['IsValidU16']='invalid\x20u16',a['IsValidU32']='invalid\x20u32',a['IsValidU64']='invalid\x20u64',a['IsValidU128']='invalid\x20u128',a['IsValidU256']='invalid\x20u256',a['IsValidRate']='invalid\x20rate[0-10000]',a['IsValidArray']='invalid\x20array',a['IsValidObjects']='invalid\x20objects',a['AllInvalid']='one\x20valid\x20at\x20least',a['InvalidParam']='invalid\x20parameter',a['IsValidPermissionIndex']='invalid\x20permission\x20index',a['IsValidKey']='invalid\x20key',a['Fail']='fail',a['IsValidIdentifier']='identifier\x20invalid',a['IsValidHttpUrl']='invalid\x20url',a['IsValidBizPermissionIndex']='invalid\x20biz-permission\x20id[1000\x20-\x2065535]',a['BcsTypeInvalid']='invalid\x20bcs\x20type',a['IsValidServiceItemName']='invalid\x20service\x20item\x20name',a['IsValidCoinType']='not\x20the\x20coin\x20type',a['IsValidGuardIdentifier']='guard\x20identifier\x20invalid',a['NoPermission']='no\x20permission',a['IsValidValue']='invalid\x20value',a['IsValidValueType']='invalid\x20value\x20type',a['IsValidLocation']='invalid\x20location',a['NetworkInvalid']='protocol\x20network\x20not\x20specified',a['WitnessTypeInvalid']='witness\x20type\x20invalid',a['AddressCountExceeded']='address\x20count\x20exceeded',a['NumberCountExceeded']='number\x20count\x20exceeded',a['NewGuardCheckFailed']='new\x20guard\x20check\x20failed',a['GuardTableItemLengthExceeded']='guard\x20table\x20item\x20length\x20exceeded',a['AccountPersistentStorageNotSet']='account\x20persistent\x20storage\x20not\x20set',a['AccountPersistentStorageNotFound']='account\x20persistent\x20storage\x20not\x20found',a['AccountNameExist']='account\x20name\x20exist',a['ConfigPersistentStorageNotSet']='config\x20persistent\x20storage\x20not\x20set',a['TokenNotFoundLocally']='token\x20not\x20found',a['LocalMarkNameExist']='local\x20mark\x20name\x20exist',a['MaxObjectsPerQuery']='max\x20objects\x20per\x20query',a['ResourceTagCountExceeded']='resource\x20tag\x20count\x20exceeded',a['ParseObjectContentFailed']='parse\x20object\x20content\x20failed',a;}({});var WException=class WException extends Error{constructor(a,b){const c=a['toString']()+(b?':'+String(b):'');super(c),this['code']=a,this['details']=b,Object['setPrototypeOf'](this,WException['prototype']);}['getErrorMessage'](){return this['message'];}['getErrorCode'](){return this['code'];}['getDetails'](){return this['details'];}};function isWException(a){return a instanceof WException;}const W_ERROR=(a,b)=>{throw new WException(a,b);},W_SUCCESS=a=>({'success':!![],'data':a}),W_FAILURE=(a,b)=>({'success':![],'error':new WException(a,b)});function WValidate(a){return function(...b){try{return a['apply'](this,b);}catch(c){if(c instanceof WException)throw c;throw new WException('fail',c);}};}const W_SAFE=(a,b,c)=>{try{const d=a();return W_SUCCESS(d);}catch(e){if(e instanceof WException)return W_FAILURE(e['code'],e['details']);return W_FAILURE(b||'fail',c||e);}},W_ENSURE=(a,b,c)=>{if(!a)W_ERROR(b,c);},W_VALIDATE_PARAM=(a,b,c,d)=>{if(!b(a))W_ERROR(c,d);},MoveErrors=[{'module':'service','code':0x1,'description':'Maximum\x20sale\x20count\x20exceeded'},{'module':'service','code':0x2,'description':'Maximum\x20repository\x20count\x20exceeded'},{'module':'service','code':0x3,'description':'Maximum\x20arbitration\x20count\x20exceeded'},{'module':'service','code':0x4,'description':'Maximum\x20WIP\x20length\x20exceeded'},{'module':'service','code':0x5,'description':'Maximum\x20WIP\x20hash\x20length\x20exceeded'},{'module':'service','code':0x6,'description':'Service\x20already\x20published'},{'module':'service','code':0x7,'description':'Service\x20not\x20published'},{'module':'service','code':0x8,'description':'Invalid\x20off-on\x20discount\x20rates'},{'module':'service','code':0x9,'description':'Maximum\x20discount\x20count\x20per\x20operation\x20exceeded'},{'module':'service','code':0xa,'description':'Discount\x20not\x20transferable'},{'module':'service','code':0xb,'description':'Discount\x20receiver\x20empty'},{'module':'service','code':0xc,'description':'Discount\x20count\x20empty'},{'module':'service','code':0xd,'description':'Maximum\x20discount\x20receiver\x20per\x20operation\x20exceeded'},{'module':'service','code':0xe,'description':'Maximum\x20total\x20discount\x20count\x20exceeded'},{'module':'service','code':0xf,'description':'Service\x20discount\x20does\x20not\x20match'},{'module':'service','code':0x10,'description':'Stock\x20not\x20enough'},{'module':'service','code':0x11,'description':'Invalid\x20quote'},{'module':'service','code':0x12,'description':'Buyer\x20guard\x20passport\x20required'},{'module':'service','code':0x13,'description':'Service\x20is\x20paused'},{'module':'service','code':0x14,'description':'Coin\x20not\x20enough'},{'module':'service','code':0x15,'description':'Maximum\x20required\x20info\x20size\x20exceeded'},{'module':'service','code':0x16,'description':'Machine\x20does\x20not\x20match'},{'module':'service','code':0x17,'description':'No\x20allocator\x20configured'},{'module':'service','code':0x18,'description':'Critical\x20setting\x20lock\x20duration\x20not\x20exceeded.\x20After\x20Service\x20is\x20published,\x20modifications\x20to\x20\x27order_allocators\x27,\x20\x27rewards\x27,\x20\x27arbitrations\x27,\x20\x27machine\x27,\x20and\x20withdrawal\x20from\x20\x27compensation_fund\x27\x20must\x20exceed\x20the\x20\x27setting_lock_duration\x27\x20lock\x20time'},{'module':'service','code':0x19,'description':'Arbitration\x20not\x20set\x20with\x20compensation\x20fund'},{'module':'service','code':0x1a,'description':'Order\x20service\x20does\x20not\x20match'},{'module':'service','code':0x1b,'description':'Compensation\x20does\x20not\x20match'},{'module':'service','code':0x1c,'description':'Maximum\x20reward\x20count\x20exceeded'},{'module':'service','code':0x1d,'description':'Invalid\x20discount\x20type'},{'module':'service','code':0x1e,'description':'Invalid\x20timestamp\x20ms\x20end'},{'module':'service','code':0x1f,'description':'WIP\x20hash\x20not\x20match'},{'module':'service','code':0x20,'description':'Sale\x20item\x20not\x20found'},{'module':'permission','code':0x1,'description':'Not\x20the\x20builder'},{'module':'permission','code':0x2,'description':'Not\x20admin'},{'module':'permission','code':0x3,'description':'Address\x20count\x20in\x20permission\x20exceeded\x20limit'},{'module':'permission','code':0x4,'description':'Permission\x20count\x20exceeded\x20limit'},{'module':'permission','code':0x5,'description':'Permission\x20denied'},{'module':'permission','code':0x6,'description':'Admin\x20count\x20exceeded\x20limit'},{'module':'permission','code':0x7,'description':'Permission\x20index\x20not\x20found'},{'module':'permission','code':0x8,'description':'Permission\x20does\x20not\x20match'},{'module':'permission','code':0x9,'description':'Not\x20user\x20address'},{'module':'passport','code':0x1,'description':'Guard\x20count\x20exceeded\x20limit'},{'module':'passport','code':0x2,'description':'Relies\x20guard\x20not\x20added'},{'module':'passport','code':0x3,'description':'Submission\x20size\x20exceeded\x20limit'},{'module':'passport','code':0x4,'description':'Already\x20verified'},{'module':'passport','code':0x5,'description':'Not\x20verified'},{'module':'passport','code':0x6,'description':'Not\x20impact\x20guard'},{'module':'passport','code':0x7,'description':'Verification\x20failed'},{'module':'passport','code':0x8,'description':'Transaction\x20does\x20not\x20match'},{'module':'passport','code':0x9,'description':'Impact\x20guard\x20not\x20found'},{'module':'passport','code':0xa,'description':'Submission\x20not\x20found'},{'module':'passport','code':0xb,'description':'Digest\x20not\x20match'},{'module':'reward','code':0x1,'description':'Guard\x20locked\x20time\x20not\x20increasing'},{'module':'reward','code':0x2,'description':'Guard\x20expired'},{'module':'reward','code':0x3,'description':'Guard\x20count\x20exceeded\x20limit'},{'module':'reward','code':0x4,'description':'Recipient\x20identifier\x20not\x20address\x20type'},{'module':'reward','code':0x5,'description':'Amount\x20not\x20u64\x20type'},{'module':'reward','code':0x6,'description':'Insufficient\x20balance'},{'module':'reward','code':0x7,'description':'Guard\x20not\x20found'},{'module':'reward','code':0x8,'description':'Record\x20count\x20exceeded\x20limit'},{'module':'reward','code':0xa,'description':'Invalid\x20guard\x20locked\x20time'},{'module':'reward','code':0xb,'description':'Guard\x20locked\x20time\x20invalid'},{'module':'reward','code':0xc,'description':'Store\x20from\x20ID\x20not\x20compatible'},{'module':'arbitration','code':0x1,'description':'Guard\x20identifier\x20not\x20number\x20type'},{'module':'arbitration','code':0x2,'description':'Voting\x20guard\x20already\x20used'},{'module':'arbitration','code':0x3,'description':'Arbitration\x20does\x20not\x20match'},{'module':'arbitration','code':0x4,'description':'Arbitration\x20is\x20paused'},{'module':'arbitration','code':0x5,'description':'Fee\x20not\x20enough'},{'module':'arbitration','code':0x6,'description':'Passport\x20required'},{'module':'arbitration','code':0x7,'description':'Guard\x20identifier\x20number\x20invalid'},{'module':'arbitration','code':0x8,'description':'Voting\x20guard\x20not\x20found'},{'module':'arbitration','code':0x9,'description':'Maximum\x20voting\x20guard\x20count\x20exceeded'},{'module':'demand','code':0x1,'description':'Maximum\x20reward\x20count\x20exceeded'},{'module':'demand','code':0x2,'description':'Maximum\x20guard\x20count\x20exceeded'},{'module':'demand','code':0x3,'description':'Passport\x20required'},{'module':'demand','code':0x4,'description':'Guard\x20not\x20found'},{'module':'progress','code':0x1,'description':'Maximum\x20context\x20repository\x20count\x20exceeded'},{'module':'progress','code':0x2,'description':'Maximum\x20named\x20operator\x20count\x20exceeded'},{'module':'progress','code':0x3,'description':'Maximum\x20named\x20operator\x20address\x20count\x20exceeded'},{'module':'progress','code':0x4,'description':'Machine\x20does\x20not\x20match'},{'module':'progress','code':0x5,'description':'Task\x20already\x20set'},{'module':'progress','code':0x6,'description':'Not\x20the\x20holder'},{'module':'progress','code':0x7,'description':'Forward\x20already\x20accomplished'},{'module':'progress','code':0x8,'description':'Permission\x20not\x20defined\x20when\x20hold'},{'module':'progress','code':0x9,'description':'Passport\x20required'},{'module':'progress','code':0xa,'description':'Order\x20does\x20not\x20match'},{'module':'guard','code':0x1,'description':'Input\x20empty'},{'module':'guard','code':0x2,'description':'Input\x20size\x20exceeded\x20limit'},{'module':'guard','code':0x3,'description':'Table\x20size\x20exceeded\x20limit'},{'module':'guard','code':0x5,'description':'Dependent\x20count\x20exceeded\x20limit'},{'module':'guard','code':0x6,'description':'Not\x20dependent\x20guard'},{'module':'guard','code':0x7,'description':'Guard\x20cannot\x20depend\x20on\x20itself'},{'module':'guard','code':0x8,'description':'Guard\x20IDs\x20parse\x20error'},{'module':'guard','code':0x9,'description':'Guard\x20IDs\x20type\x20error'},{'module':'guard','code':0xa,'description':'ID\x20value\x20count\x20not\x20equal\x20to\x20guard\x20count'},{'module':'guard','code':0xb,'description':'Submission\x20ID\x20not\x20found'},{'module':'guard','code':0xc,'description':'Submission\x20value\x20type\x20error'},{'module':'order','code':0x1,'description':'Not\x20the\x20owner'},{'module':'order','code':0x2,'description':'Maximum\x20agent\x20count\x20exceeded'},{'module':'order','code':0x3,'description':'Progress\x20not\x20specified'},{'module':'order','code':0x5,'description':'No\x20operation\x20permission'},{'module':'order','code':0x6,'description':'Maximum\x20dispute\x20count\x20exceeded'},{'module':'order','code':0x7,'description':'Order\x20already\x20claimed'},{'module':'order','code':0x8,'description':'Invalid\x20customer\x20info'},{'module':'order','code':0x9,'description':'Allocation\x20not\x20specified'},{'module':'order','code':0xa,'description':'Allocation\x20already\x20specified'},{'module':'order','code':0xb,'description':'Progress\x20already\x20specified'},{'module':'machine','code':0x1,'description':'Maximum\x20consensus\x20repositories\x20exceeded'},{'module':'machine','code':0x2,'description':'Machine\x20not\x20published'},{'module':'machine','code':0x3,'description':'Machine\x20already\x20published'},{'module':'machine','code':0x4,'description':'Maximum\x20forward\x20order\x20count\x20exceeded'},{'module':'machine','code':0x5,'description':'Maximum\x20node\x20count\x20exceeded'},{'module':'machine','code':0x6,'description':'Duplicate\x20forward\x20name'},{'module':'machine','code':0x7,'description':'Duplicate\x20node\x20previous'},{'module':'machine','code':0x8,'description':'Old\x20node\x20name\x20does\x20not\x20exist'},{'module':'machine','code':0x9,'description':'New\x20node\x20name\x20already\x20exists'},{'module':'machine','code':0xa,'description':'Node\x20not\x20found'},{'module':'machine','code':0xb,'description':'Machine\x20is\x20paused'},{'module':'machine','code':0xc,'description':'Retained\x20submission\x20error'},{'module':'machine','code':0xd,'description':'Info\x20not\x20found'},{'module':'machine','code':0xe,'description':'Permission\x20not\x20defined'},{'module':'machine','code':0xf,'description':'Maximum\x20node\x20pair\x20count\x20exceeded'},{'module':'machine','code':0x10,'description':'Maximum\x20forward\x20count\x20exceeded'},{'module':'treasury','code':0x1,'description':'Maximum\x20external\x20deposit\x20guard\x20count\x20exceeded'},{'module':'treasury','code':0x2,'description':'Maximum\x20external\x20withdraw\x20guard\x20count\x20exceeded'},{'module':'treasury','code':0x3,'description':'External\x20deposit\x20guard\x20not\x20found'},{'module':'treasury','code':0x4,'description':'External\x20withdraw\x20guard\x20not\x20found'},{'module':'treasury','code':0x5,'description':'Identifier\x20not\x20number\x20type'},{'module':'treasury','code':0x6,'description':'Deposit\x20insufficient\x20amount'},{'module':'treasury','code':0x7,'description':'Withdraw\x20insufficient\x20amount'},{'module':'treasury','code':0x8,'description':'Store\x20from\x20ID\x20not\x20compatible'},{'module':'arb','code':0x1,'description':'Maximum\x20proposition\x20count\x20exceeded'},{'module':'arb','code':0x2,'description':'Arbitration\x20order\x20does\x20not\x20match'},{'module':'arb','code':0x3,'description':'Status\x20does\x20not\x20match'},{'module':'arb','code':0x4,'description':'Voting\x20deadline\x20not\x20passed'},{'module':'arb','code':0x5,'description':'Proposition\x20not\x20found'},{'module':'arb','code':0x6,'description':'Maximum\x20voter\x20count\x20exceeded'},{'module':'arb','code':0x7,'description':'Voting\x20deadline\x20passed'},{'module':'arb','code':0x8,'description':'Withdraw\x20duration\x20time\x20not\x20passed'},{'module':'repository','code':0x1,'description':'Policy\x20description\x20length\x20exceeded'},{'module':'repository','code':0x2,'description':'Policy\x20guard\x20count\x20exceeded'},{'module':'repository','code':0x3,'description':'Policy\x20count\x20exceeded'},{'module':'repository','code':0x4,'description':'Data\x20size\x20exceeded\x20limit'},{'module':'repository','code':0x5,'description':'ID\x20count\x20exceeded\x20limit'},{'module':'repository','code':0x6,'description':'Quantities\x20not\x20equal'},{'module':'repository','code':0x7,'description':'Policy\x20not\x20found'},{'module':'repository','code':0x8,'description':'Policy\x20ID\x20from\x20none'},{'module':'repository','code':0x9,'description':'Passport\x20required'},{'module':'repository','code':0xa,'description':'Data\x20type\x20does\x20not\x20match'},{'module':'repository','code':0xb,'description':'Guard\x20specified\x20ID\x20from\x20submission'},{'module':'repository','code':0xc,'description':'Not\x20impact\x20guard\x20in\x20passport'},{'module':'repository','code':0xd,'description':'Guard\x20specified\x20not\x20in\x20policy'},{'module':'repository','code':0xe,'description':'ID\x20vector\x20not\x20enough'},{'module':'repository','code':0xf,'description':'Data\x20vector\x20not\x20enough'},{'module':'repository','code':0x10,'description':'Invalid\x20ID\x20in\x20guard\x20table'},{'module':'repository','code':0x11,'description':'Invalid\x20data\x20in\x20guard\x20table'},{'module':'repository','code':0x12,'description':'Invalid\x20ID\x20from'},{'module':'repository','code':0x13,'description':'Maximum\x20reward\x20count\x20exceeded'},{'module':'repository','code':0x14,'description':'Guard\x20not\x20specified\x20ID\x20from\x20submission'},{'module':'repository','code':0x15,'description':'Need\x20dependent\x20guard'},{'module':'common','code':0x1,'description':'Name\x20length\x20exceeded\x20limit'},{'module':'common','code':0x2,'description':'Name\x20is\x20empty'},{'module':'common','code':0x3,'description':'Description\x20length\x20exceeded\x20limit'},{'module':'common','code':0x6,'description':'Invalid\x20value\x20type'},{'module':'common','code':0x7,'description':'Address\x20type\x20does\x20not\x20match'},{'module':'common','code':0x8,'description':'Number\x20type\x20does\x20not\x20match'},{'module':'common','code':0x9,'description':'Invalid\x20data\x20value'},{'module':'common','code':0xa,'description':'Invalid\x20string\x20value'},{'module':'common','code':0xb,'description':'Long\x20name\x20length\x20exceeded\x20limit'},{'module':'common','code':0xc,'description':'Not\x20u64\x20type'},{'module':'common','code':0xd,'description':'Invalid\x20service\x20object\x20type'},{'module':'resource','code':0x1,'description':'Tags\x20count\x20exceeded\x20limit'},{'module':'allocation','code':0x1,'description':'Recipient\x20identifier\x20not\x20address\x20type'},{'module':'allocation','code':0x2,'description':'Allocator\x20count\x20exceeded'},{'module':'allocation','code':0x3,'description':'No\x20allocator'},{'module':'allocation','code':0x4,'description':'Rate\x20not\x2010000'},{'module':'allocation','code':0x5,'description':'Multiple\x20surplus'},{'module':'allocation','code':0x6,'description':'Rate\x20exceeds\x2010000'},{'module':'allocation','code':0x7,'description':'Insufficient\x20balance'},{'module':'allocation','code':0x8,'description':'Allocators\x20empty'},{'module':'allocation','code':0x9,'description':'No\x20payment\x20info'},{'module':'allocation','code':0xa,'description':'Sharing\x20count\x20exceeded'},{'module':'allocation','code':0xb,'description':'Sharing\x20mode\x20invalid'},{'module':'allocation','code':0xc,'description':'Amount\x20below\x20threshold'},{'module':'allocation','code':0xd,'description':'Amount\x20exceeds\x20max'},{'module':'proof','code':0x1,'description':'Maximum\x20proof\x20size\x20exceeded'},{'module':'proof','code':0x2,'description':'Maximum\x20server\x20pubkey\x20size\x20exceeded'},{'module':'proof','code':0x3,'description':'Maximum\x20server\x20signature\x20size\x20exceeded'},{'module':'payment','code':0x1,'description':'Recipient\x20count\x20exceeded'},{'module':'payment','code':0x2,'description':'Vector\x20count\x20not\x20equal'},{'module':'payment','code':0x3,'description':'Payment\x20not\x20match'},{'module':'payment','code':0x4,'description':'Recipient\x20empty'},{'module':'contact','code':0x1,'description':'IM\x20count\x20exceeded'},{'module':'registrar','code':0x0,'description':'Not\x20system\x20address'},{'module':'registrar','code':0x1,'description':'Record\x20count\x20exceeded'},{'module':'registrar','code':0x2,'description':'Record\x20length\x20exceeded'},{'module':'registrar','code':0x3,'description':'Record\x20type\x20empty'},{'module':'transfer','code':0x0,'description':'Shared\x20non-new\x20object'},{'module':'transfer','code':0x1,'description':'BCS\x20serialization\x20failure'},{'module':'transfer','code':0x2,'description':'Receiving\x20object\x20type\x20mismatch'},{'module':'transfer','code':0x3,'description':'Unable\x20to\x20receive\x20object'},{'module':'transfer','code':0x4,'description':'Shared\x20object\x20operation\x20not\x20supported'},{'module':'transfer','code':0x5,'description':'Operation\x20not\x20supported'},{'module':'transfer','code':0x6,'description':'Invalid\x20party\x20permissions'},{'module':'tx_context','code':0x0,'description':'Bad\x20transaction\x20hash\x20length'},{'module':'coin','code':0x0,'description':'Bad\x20witness'},{'module':'coin','code':0x1,'description':'Invalid\x20argument'},{'module':'coin','code':0x2,'description':'Not\x20enough\x20balance'},{'module':'coin','code':0x3,'description':'Global\x20pause\x20not\x20allowed'},{'module':'borrow','code':0x0,'description':'Wrong\x20borrow'},{'module':'borrow','code':0x1,'description':'Wrong\x20value'},{'module':'bcs','code':0x0,'description':'Out\x20of\x20range'},{'module':'bcs','code':0x1,'description':'Not\x20bool'},{'module':'bcs','code':0x2,'description':'Length\x20out\x20of\x20range'},{'module':'balance','code':0x0,'description':'Non-zero\x20balance'},{'module':'balance','code':0x1,'description':'Overflow'},{'module':'balance','code':0x2,'description':'Not\x20enough'},{'module':'balance','code':0x3,'description':'Not\x20system\x20address'},{'module':'balance','code':0x4,'description':'Not\x20WOW'},{'module':'parent_table','code':0x0,'description':'Parent\x20table\x20not\x20match'},{'module':'parent_table_vec','code':0x0,'description':'Index\x20out\x20of\x20bound'},{'module':'parent_linked_table','code':0x0,'description':'Table\x20is\x20empty'},{'module':'parent_linked_table','code':0x1,'description':'Table\x20not\x20match'}];function getMoveErrorDescription(a,b){const c=MoveErrors['find'](d=>d['module']===a&&d['code']===b);return c?c['description']:null;}function enrichMoveError(a){if(!a||typeof a!=='string')return a;const b='0x0000000000000000000000000000000000000000000000000000000000000002',c=/MoveAbort\([^,]+,\s*(\d+)\)/,d=/name:\s*Identifier\("([^"]+)"\)/,e=/address:\s*([0-9a-fA-Fx]+)/,f=a['match'](c),g=a['match'](d),h=a['match'](e);if(f&&g&&h){const o=parseInt(f[0x1],0xa),p=g[0x1]['toLowerCase'](),q=h[0x1]['toLowerCase']();if(q===b||q==='0x2'){const r=MoveErrors['find'](s=>s['module']['toLowerCase']()===p&&s['code']===o);if(r)return'Error\x20Description:\x20'+r['description']+'\x0a'+a;}}const i=/abort code:\s*(\d+)/,j=/'0x[0-9a-fA-F]+::([^:]+)::[^']+'/,k=/'(0x[0-9a-fA-F]+)::/,l=a['match'](i),m=a['match'](j),n=a['match'](k);if(l&&m&&n){const s=parseInt(l[0x1],0xa),t=m[0x1]['toLowerCase'](),u=n[0x1]['toLowerCase']();if(u===b||u==='0x2'){const v=MoveErrors['find'](w=>w['module']['toLowerCase']()===t&&w['code']===s);if(v)return'Error\x20Description:\x20'+v['description']+'\x0a'+a;}}return a;}export{W_ENSURE as a,W_SAFE as c,enrichMoveError as d,getMoveErrorDescription as f,WValidate as i,W_SUCCESS as l,WErrors as n,W_ERROR as o,isWException as p,WException as r,W_FAILURE as s,MoveErrors as t,W_VALIDATE_PARAM as u};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _y as GraphQLResponseErrors, by as WowGraphQLRequestError, gy as GraphQLQueryResult, hy as GraphQLQueryOptions, my as GraphQLDocument, vy as WowGraphQLClient, xy as isWowGraphQLClient, yy as WowGraphQLClientOptions } from "../index-C-WBdTM5.mjs";
|
|
2
2
|
export { type GraphQLDocument, type GraphQLQueryOptions, type GraphQLQueryResult, type GraphQLResponseErrors, WowGraphQLClient, type WowGraphQLClientOptions, WowGraphQLRequestError, isWowGraphQLClient };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as a16a,r as a16b,t as a16c}from'../graphql-
|
|
1
|
+
import{n as a16a,r as a16b,t as a16c}from'../graphql-Ccoor2f6.mjs';export{a16c as WowGraphQLClient,a16a as WowGraphQLRequestError,a16b as isWowGraphQLClient};
|