@trinaryex/sdk 4.0.0 → 5.0.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/index.js CHANGED
@@ -9932,46 +9932,75 @@ var Is = l.object({
9932
9932
  assetId: e.asset_id,
9933
9933
  name: e.name,
9934
9934
  symbol: e.symbol
9935
- })), Uc = l.object({
9935
+ })), Uc = [
9936
+ "manufacture",
9937
+ "refine",
9938
+ "construct",
9939
+ "reverse"
9940
+ ], Wc = l.object({
9936
9941
  id: l.number(),
9937
9942
  name: l.string().optional(),
9938
9943
  quantity: l.number()
9939
9944
  }).transform((e) => ({
9940
9945
  assetId: String(e.id),
9941
- name: e.name ?? null,
9946
+ name: e.name || null,
9942
9947
  quantity: e.quantity
9943
- })), Wc = l.object({
9944
- productId: l.number(),
9945
- productName: l.string(),
9946
- outputQuantity: l.number(),
9947
- time: l.number(),
9948
- materials: l.array(Uc)
9948
+ })), Gc = l.object({
9949
+ typeId: l.number(),
9950
+ name: l.string(),
9951
+ maxInputRuns: l.number(),
9952
+ maxOutputRuns: l.number()
9953
+ }).transform((e) => ({
9954
+ assetId: String(e.typeId),
9955
+ name: e.name || null,
9956
+ maxInputRuns: e.maxInputRuns,
9957
+ maxOutputRuns: e.maxOutputRuns
9958
+ })), Kc = l.object({
9959
+ blueprintId: l.number().nullable(),
9960
+ primaryTypeId: l.number(),
9961
+ kind: Z(Uc),
9962
+ runTime: l.number(),
9963
+ inputs: l.array(Wc),
9964
+ outputs: l.array(Wc),
9965
+ facilities: l.array(Gc)
9966
+ }).transform((e) => ({
9967
+ blueprintId: e.blueprintId,
9968
+ primaryAssetId: String(e.primaryTypeId),
9969
+ kind: e.kind,
9970
+ runTimeSeconds: e.runTime < 0 ? null : e.runTime,
9971
+ inputs: e.inputs,
9972
+ outputs: e.outputs,
9973
+ facilities: e.facilities
9974
+ })), qc = l.object({
9975
+ typeId: l.number(),
9976
+ name: l.string(),
9977
+ producedBy: l.array(Kc),
9978
+ usedIn: l.array(Kc)
9949
9979
  }).transform((e) => ({
9950
- productAssetId: String(e.productId),
9951
- productName: e.productName,
9952
- outputQuantity: e.outputQuantity,
9953
- craftTimeSeconds: e.time < 0 ? null : e.time,
9954
- materials: e.materials
9955
- })), Gc = [
9980
+ assetId: String(e.typeId),
9981
+ name: e.name || null,
9982
+ producedBy: e.producedBy,
9983
+ usedIn: e.usedIn
9984
+ })), Jc = [
9956
9985
  "fuel_efficient",
9957
9986
  "fastest",
9958
9987
  "balanced"
9959
- ], Kc = [
9988
+ ], Yc = [
9960
9989
  "start",
9961
9990
  "stargate",
9962
9991
  "jump_drive"
9963
- ], qc = l.object({
9992
+ ], Xc = l.object({
9964
9993
  solar_system_id: l.number(),
9965
9994
  solar_system_name: l.string().nullish(),
9966
- jump_type: Z(Kc),
9995
+ jump_type: Z(Yc),
9967
9996
  distance_ly: l.number().nullish()
9968
9997
  }).transform((e) => ({
9969
9998
  solarSystemId: e.solar_system_id,
9970
9999
  solarSystemName: e.solar_system_name ?? null,
9971
10000
  jumpType: e.jump_type,
9972
10001
  distanceLy: e.distance_ly ?? null
9973
- })), Jc = l.object({
9974
- optimization: Z(Gc),
10002
+ })), Zc = l.object({
10003
+ optimization: Z(Jc),
9975
10004
  total_cost: l.object({
9976
10005
  drive_distance_ly: l.number(),
9977
10006
  total_distance_ly: l.number(),
@@ -9979,7 +10008,7 @@ var Is = l.object({
9979
10008
  drive_jumps: l.number(),
9980
10009
  total_jumps: l.number()
9981
10010
  }),
9982
- waypoints: l.array(qc)
10011
+ waypoints: l.array(Xc)
9983
10012
  }).transform((e) => ({
9984
10013
  optimization: e.optimization,
9985
10014
  totalJumps: e.total_cost.total_jumps,
@@ -9988,15 +10017,15 @@ var Is = l.object({
9988
10017
  totalDistanceLy: e.total_cost.total_distance_ly,
9989
10018
  driveDistanceLy: e.total_cost.drive_distance_ly,
9990
10019
  waypoints: e.waypoints
9991
- })), Yc = l.object({
9992
- fuel_efficient: Jc,
9993
- fastest: Jc,
9994
- balanced: Jc
10020
+ })), Qc = l.object({
10021
+ fuel_efficient: Zc,
10022
+ fastest: Zc,
10023
+ balanced: Zc
9995
10024
  }).transform((e) => ({
9996
10025
  fuelEfficient: e.fuel_efficient,
9997
10026
  fastest: e.fastest,
9998
10027
  balanced: e.balanced
9999
- })), Xc = l.object({
10028
+ })), $c = l.object({
10000
10029
  connected_systems: l.number(),
10001
10030
  stargate_edges: l.number(),
10002
10031
  jump_drive_edges: l.number(),
@@ -10014,7 +10043,7 @@ function Q(e, t, n) {
10014
10043
  }
10015
10044
  //#endregion
10016
10045
  //#region src/armature/schemas.ts
10017
- var Zc = l.object({
10046
+ var el = l.object({
10018
10047
  image_url: l.string().optional(),
10019
10048
  description: l.string().optional(),
10020
10049
  version: l.number().optional(),
@@ -10024,13 +10053,13 @@ var Zc = l.object({
10024
10053
  description: e.description,
10025
10054
  version: e.version,
10026
10055
  errorReason: e.error_reason
10027
- })), Qc = l.object({
10056
+ })), tl = l.object({
10028
10057
  type: l.literal("player"),
10029
10058
  name: l.string()
10030
10059
  }).transform((e) => ({
10031
10060
  type: e.type,
10032
10061
  name: e.name
10033
- })), $c = l.lazy(() => l.object({
10062
+ })), nl = l.lazy(() => l.object({
10034
10063
  org_id: l.string(),
10035
10064
  charter_id: l.string().nullable(),
10036
10065
  treasury_id: l.string().nullable(),
@@ -10038,10 +10067,10 @@ var Zc = l.object({
10038
10067
  emergency_freeze_id: l.string().nullable(),
10039
10068
  name: l.string().nullable(),
10040
10069
  metadata_uri: l.string().nullable(),
10041
- metadata: Zc,
10070
+ metadata: el,
10042
10071
  members: l.array(l.string()),
10043
- ous: l.array($c),
10044
- actors: l.record(l.string(), Qc).optional(),
10072
+ ous: l.array(nl),
10073
+ actors: l.record(l.string(), tl).optional(),
10045
10074
  trading_account_id: l.string().nullable(),
10046
10075
  subdao_control_cap_id: l.string().nullable()
10047
10076
  }).transform((e) => ({
@@ -10058,7 +10087,7 @@ var Zc = l.object({
10058
10087
  actors: e.actors,
10059
10088
  tradingAccountId: e.trading_account_id,
10060
10089
  subdaoControlCapId: e.subdao_control_cap_id
10061
- }))), el = l.array($c), tl = l.object({
10090
+ }))), rl = l.array(nl), il = l.object({
10062
10091
  org_id: l.string(),
10063
10092
  name: l.string(),
10064
10093
  treasury_id: l.string(),
@@ -10072,13 +10101,13 @@ var Zc = l.object({
10072
10101
  imageUrl: e.image_url,
10073
10102
  description: e.description,
10074
10103
  memberCount: e.member_count
10075
- })), nl = l.object({
10076
- data: l.array(tl),
10104
+ })), al = l.object({
10105
+ data: l.array(il),
10077
10106
  next_cursor: l.string().nullable()
10078
10107
  }).transform((e) => ({
10079
10108
  entries: e.data,
10080
10109
  nextCursor: e.next_cursor
10081
- })), rl = l.object({
10110
+ })), ol = l.object({
10082
10111
  org_id: l.string(),
10083
10112
  name: l.string(),
10084
10113
  treasury_id: l.string(),
@@ -10096,7 +10125,7 @@ var Zc = l.object({
10096
10125
  rootOrgId: e.root_org_id,
10097
10126
  rootName: e.root_name,
10098
10127
  depth: e.depth
10099
- })), il = l.object({ orgs: l.array(rl).optional() }).transform((e) => e.orgs ?? []), al = l.object({
10128
+ })), sl = l.object({ orgs: l.array(ol).optional() }).transform((e) => e.orgs ?? []), cl = l.object({
10100
10129
  step_index: l.number(),
10101
10130
  step_type_key: l.string(),
10102
10131
  step_type: l.string().nullable()
@@ -10104,15 +10133,15 @@ var Zc = l.object({
10104
10133
  stepIndex: e.step_index,
10105
10134
  stepTypeKey: e.step_type_key,
10106
10135
  stepType: e.step_type
10107
- })), ol = l.union([l.string(), l.number()]).transform((e) => Number(e)), sl = l.object({
10136
+ })), ll = l.union([l.string(), l.number()]).transform((e) => Number(e)), ul = l.object({
10108
10137
  quorum: l.number(),
10109
10138
  approval_threshold: l.number(),
10110
- propose_threshold: ol,
10111
- expiry_ms: ol,
10112
- execution_delay_ms: ol,
10113
- cooldown_ms: ol,
10139
+ propose_threshold: ll,
10140
+ expiry_ms: ll,
10141
+ execution_delay_ms: ll,
10142
+ cooldown_ms: ll,
10114
10143
  composable_allowed: l.boolean(),
10115
- permissions: ol,
10144
+ permissions: ll,
10116
10145
  borrow_scope: l.array(l.string())
10117
10146
  }).transform((e) => ({
10118
10147
  quorum: e.quorum,
@@ -10124,7 +10153,7 @@ var Zc = l.object({
10124
10153
  composableAllowed: e.composable_allowed,
10125
10154
  permissions: e.permissions,
10126
10155
  borrowScope: e.borrow_scope.map(w)
10127
- })), cl = l.object({
10156
+ })), dl = l.object({
10128
10157
  proposal_id: l.string(),
10129
10158
  org_id: l.string(),
10130
10159
  type_key: l.string().nullable(),
@@ -10141,9 +10170,9 @@ var Zc = l.object({
10141
10170
  frame_id: l.string().nullable(),
10142
10171
  created_checkpoint: l.number(),
10143
10172
  metadata_ipfs: l.string().nullable().optional(),
10144
- config: sl.nullable().optional(),
10173
+ config: ul.nullable().optional(),
10145
10174
  created_ms: l.number().nullable().optional(),
10146
- composite: l.array(al).optional()
10175
+ composite: l.array(cl).optional()
10147
10176
  }).transform((e) => ({
10148
10177
  proposalId: e.proposal_id,
10149
10178
  orgId: e.org_id,
@@ -10159,7 +10188,7 @@ var Zc = l.object({
10159
10188
  config: e.config ?? null,
10160
10189
  createdMs: e.created_ms ?? null,
10161
10190
  composite: e.composite
10162
- })), ll = l.array(cl), ul = l.object({
10191
+ })), fl = l.array(dl), pl = l.object({
10163
10192
  acl_id: l.string(),
10164
10193
  matched_org_id: l.string().nullable(),
10165
10194
  name: l.string(),
@@ -10182,7 +10211,7 @@ var Zc = l.object({
10182
10211
  registrantOrgId: e.registrant_org_id,
10183
10212
  matchVia: e.match_via,
10184
10213
  roles: e.roles
10185
- })), dl = l.array(ul), fl = l.object({
10214
+ })), ml = l.array(pl), hl = l.object({
10186
10215
  role: l.enum([
10187
10216
  "deposit",
10188
10217
  "withdraw",
@@ -10200,13 +10229,13 @@ var Zc = l.object({
10200
10229
  kind: e.principal_kind,
10201
10230
  value: e.principal_value
10202
10231
  }
10203
- })), pl = l.object({
10232
+ })), gl = l.object({
10204
10233
  vault_id: l.string(),
10205
10234
  registrant_dao_id: l.string().nullable(),
10206
10235
  hub_id: l.string(),
10207
10236
  collection_id: l.string().nullable(),
10208
10237
  status: l.string(),
10209
- acl: l.array(fl)
10238
+ acl: l.array(hl)
10210
10239
  }).transform((e) => ({
10211
10240
  vaultId: e.vault_id,
10212
10241
  registrantOrgId: e.registrant_dao_id,
@@ -10214,7 +10243,7 @@ var Zc = l.object({
10214
10243
  collectionId: e.collection_id,
10215
10244
  status: e.status,
10216
10245
  acl: e.acl
10217
- })), ml = l.array(pl), hl = 200, gl = class {
10246
+ })), _l = l.array(gl), vl = 200, yl = class {
10218
10247
  baseUrl;
10219
10248
  apiKey;
10220
10249
  constructor(e, t) {
@@ -10224,23 +10253,23 @@ var Zc = l.object({
10224
10253
  return Ts(this.baseUrl, this.apiKey, e, t, n);
10225
10254
  }
10226
10255
  async get(e) {
10227
- return Q($c, await this.fetchJson(`/v1/orgs/${encodeURIComponent(e)}`, void 0, v.OrgNotFound), "org");
10256
+ return Q(nl, await this.fetchJson(`/v1/orgs/${encodeURIComponent(e)}`, void 0, v.OrgNotFound), "org");
10228
10257
  }
10229
10258
  async batch(e) {
10230
- return _l(e, "orgIds"), e.length === 0 ? [] : Q(el, await this.fetchJson("/v1/orgs", { ids: e.join(",") }), "orgs");
10259
+ return bl(e, "orgIds"), e.length === 0 ? [] : Q(rl, await this.fetchJson("/v1/orgs", { ids: e.join(",") }), "orgs");
10231
10260
  }
10232
10261
  async directory(e) {
10233
- return Q(nl, await this.fetchJson("/v1/orgs/directory", {
10262
+ return Q(al, await this.fetchJson("/v1/orgs/directory", {
10234
10263
  limit: e?.limit,
10235
10264
  cursor: e?.cursor,
10236
10265
  sort: e?.sort
10237
10266
  }), "orgDirectory");
10238
10267
  }
10239
10268
  async forPlayer(e) {
10240
- return Q(el, await this.fetchJson(`/v1/players/${encodeURIComponent(e)}/orgs`), "playerOrgs");
10269
+ return Q(rl, await this.fetchJson(`/v1/players/${encodeURIComponent(e)}/orgs`), "playerOrgs");
10241
10270
  }
10242
10271
  async search(e, t) {
10243
- return Q(il, await this.fetchJson("/v1/search", {
10272
+ return Q(sl, await this.fetchJson("/v1/search", {
10244
10273
  q: e,
10245
10274
  orgs: !0,
10246
10275
  characters: !1,
@@ -10249,21 +10278,21 @@ var Zc = l.object({
10249
10278
  }), "orgSearch");
10250
10279
  }
10251
10280
  async proposals(e) {
10252
- return Q(ll, await this.fetchJson(`/v1/orgs/${encodeURIComponent(e)}/proposals`), "orgProposals");
10281
+ return Q(fl, await this.fetchJson(`/v1/orgs/${encodeURIComponent(e)}/proposals`), "orgProposals");
10253
10282
  }
10254
10283
  async accessibleKeyspaces(e, t) {
10255
- return Q(dl, await this.fetchJson(`/v1/players/${encodeURIComponent(e)}/accessible-keyspaces`, { role: t }), "accessibleKeyspaces");
10284
+ return Q(ml, await this.fetchJson(`/v1/players/${encodeURIComponent(e)}/accessible-keyspaces`, { role: t }), "accessibleKeyspaces");
10256
10285
  }
10257
10286
  async vaultsAtHub(e) {
10258
- return Q(ml, await this.fetchJson(`/v1/hubs/${encodeURIComponent(e)}/dao-vaults`, void 0, v.HubNotFound), "hubDaoVaults");
10287
+ return Q(_l, await this.fetchJson(`/v1/hubs/${encodeURIComponent(e)}/dao-vaults`, void 0, v.HubNotFound), "hubDaoVaults");
10259
10288
  }
10260
10289
  };
10261
- function _l(e, t) {
10290
+ function bl(e, t) {
10262
10291
  if (e.length > 200) throw new y(v.ValidationFailed, `${t}: at most 200 ids per call (got ${e.length}).`);
10263
10292
  }
10264
10293
  //#endregion
10265
10294
  //#region src/coins/schemas.ts
10266
- var vl = X.nullable(), yl = l.object({
10295
+ var xl = X.nullable(), Sl = l.object({
10267
10296
  base_asset_id: l.string(),
10268
10297
  base_asset_symbol: l.string().nullable(),
10269
10298
  base_asset_name: l.string().nullable(),
@@ -10274,13 +10303,13 @@ var vl = X.nullable(), yl = l.object({
10274
10303
  quote_asset_decimals: l.number(),
10275
10304
  pool_id: l.string(),
10276
10305
  pool_name: l.string().nullable(),
10277
- fee: vl,
10306
+ fee: xl,
10278
10307
  fee_rate: l.number().nullable(),
10279
- best_bid: vl,
10280
- best_ask: vl,
10308
+ best_bid: xl,
10309
+ best_ask: xl,
10281
10310
  open_orders: l.number(),
10282
10311
  traders: l.number(),
10283
- last_price: vl,
10312
+ last_price: xl,
10284
10313
  last_traded_at: l.number().nullable()
10285
10314
  }).transform((e) => ({
10286
10315
  poolId: e.pool_id,
@@ -10301,7 +10330,7 @@ var vl = X.nullable(), yl = l.object({
10301
10330
  lastTradedAt: e.last_traded_at,
10302
10331
  openOrders: e.open_orders,
10303
10332
  traders: e.traders
10304
- })), bl = l.object({
10333
+ })), Cl = l.object({
10305
10334
  address: l.string(),
10306
10335
  label: l.string().nullable(),
10307
10336
  type: l.string(),
@@ -10311,13 +10340,13 @@ var vl = X.nullable(), yl = l.object({
10311
10340
  label: e.label,
10312
10341
  type: e.type,
10313
10342
  amount: e.amount
10314
- })), xl = l.object({
10343
+ })), wl = l.object({
10315
10344
  kind: l.enum(["fixed", "mintable"]),
10316
10345
  capped: l.boolean().nullable().optional()
10317
10346
  }).transform((e) => ({
10318
10347
  kind: e.kind,
10319
10348
  capped: e.capped ?? null
10320
- })), Sl = l.object({
10349
+ })), Tl = l.object({
10321
10350
  coin_type: l.string(),
10322
10351
  symbol: l.string().nullable(),
10323
10352
  name: l.string().nullable(),
@@ -10325,13 +10354,13 @@ var vl = X.nullable(), yl = l.object({
10325
10354
  icon_url: l.string().nullable(),
10326
10355
  total_supply: l.number().nullable(),
10327
10356
  circulating: l.number().nullable(),
10328
- treasury_holdings: l.array(bl).nullable(),
10357
+ treasury_holdings: l.array(Cl).nullable(),
10329
10358
  max_supply: l.number().nullable(),
10330
- mint_policy: xl.nullable(),
10359
+ mint_policy: wl.nullable(),
10331
10360
  immutable: l.boolean().nullable(),
10332
10361
  upgradeable: l.boolean().nullable(),
10333
10362
  verified: l.boolean().nullable(),
10334
- market: yl.nullable()
10363
+ market: Sl.nullable()
10335
10364
  }).transform((e) => ({
10336
10365
  coinType: e.coin_type,
10337
10366
  symbol: e.symbol,
@@ -10347,18 +10376,18 @@ var vl = X.nullable(), yl = l.object({
10347
10376
  upgradeable: e.upgradeable,
10348
10377
  verified: e.verified,
10349
10378
  market: e.market
10350
- })), Cl = l.array(Sl), wl = (1n << 128n) - 1n;
10351
- function Tl(e) {
10379
+ })), El = l.array(Tl), Dl = (1n << 128n) - 1n;
10380
+ function Ol(e) {
10352
10381
  let t = typeof e == "string" ? e.trim() : null, n = typeof e == "bigint" ? e : t !== null && /^(\d+|0x[0-9a-fA-F]+)$/.test(t) ? BigInt(t) : -1n;
10353
- if (n < 0n || n > wl) throw new y(v.ValidationFailed, `Invalid order id ${String(e)}: expected a u128 integer (decimal string or bigint).`);
10382
+ if (n < 0n || n > Dl) throw new y(v.ValidationFailed, `Invalid order id ${String(e)}: expected a u128 integer (decimal string or bigint).`);
10354
10383
  return n.toString();
10355
10384
  }
10356
- var El = class {
10385
+ var kl = class {
10357
10386
  baseUrl;
10358
10387
  apiKey;
10359
10388
  orgs;
10360
10389
  constructor(e, t) {
10361
- this.baseUrl = e, this.apiKey = t, this.orgs = new gl(e, t);
10390
+ this.baseUrl = e, this.apiKey = t, this.orgs = new yl(e, t);
10362
10391
  }
10363
10392
  get(e, t, n) {
10364
10393
  return Ts(this.baseUrl, this.apiKey, e, t, n);
@@ -10507,7 +10536,7 @@ var El = class {
10507
10536
  return Q(tc, await this.get("/v1/spatial/stats"), "spatialStats");
10508
10537
  }
10509
10538
  async listCoins(e) {
10510
- return Q(Cl, await this.get("/v1/coins", { coin_types: e?.length ? e.join(",") : void 0 }), "listCoins");
10539
+ return Q(El, await this.get("/v1/coins", { coin_types: e?.length ? e.join(",") : void 0 }), "listCoins");
10511
10540
  }
10512
10541
  async inventoryBalances(e) {
10513
10542
  return Q(sc, await this.get("/v1/inventory/balances", {
@@ -10547,7 +10576,7 @@ var El = class {
10547
10576
  }, v.TradingAccountNotFound), "trades");
10548
10577
  }
10549
10578
  async poolOrder(e) {
10550
- let t = Tl(e.orderId);
10579
+ let t = Ol(e.orderId);
10551
10580
  return Q(Tc, await this.get(`/v1/pools/${encodeURIComponent(e.poolId)}/orders/${encodeURIComponent(t)}`, void 0, v.OrderNotFound), "poolOrder");
10552
10581
  }
10553
10582
  async fill(e) {
@@ -10622,19 +10651,23 @@ var El = class {
10622
10651
  }
10623
10652
  async recipes() {
10624
10653
  let e = await this.get("/v1/world/recipes");
10625
- return Q(l.array(Wc), e, "recipes");
10654
+ return Q(l.array(Kc), e, "recipes");
10626
10655
  }
10627
10656
  async recipesFor(e) {
10628
10657
  try {
10629
- let t = await this.get(`/v1/world/recipes/${encodeURIComponent(e)}`, void 0, v.ItemNotFound);
10630
- return Q(l.array(Wc), t, "recipesFor");
10631
- } catch (e) {
10632
- if (e instanceof y && e.status === 404) return [];
10633
- throw e;
10658
+ return Q(qc, await this.get(`/v1/world/recipes/${encodeURIComponent(e)}`, void 0, v.ItemNotFound), "recipesFor");
10659
+ } catch (t) {
10660
+ if (t instanceof y && t.status === 404) return {
10661
+ assetId: e,
10662
+ name: null,
10663
+ producedBy: [],
10664
+ usedIn: []
10665
+ };
10666
+ throw t;
10634
10667
  }
10635
10668
  }
10636
10669
  async route(e) {
10637
- return Q(Jc, await this.get("/v1/routing/route", {
10670
+ return Q(Zc, await this.get("/v1/routing/route", {
10638
10671
  origin: e.origin,
10639
10672
  destination: e.destination,
10640
10673
  optimization: e.optimization,
@@ -10644,7 +10677,7 @@ var El = class {
10644
10677
  }, v.RouteNotFound), "route");
10645
10678
  }
10646
10679
  async compareRoutes(e) {
10647
- return Q(Yc, await this.get("/v1/routing/compare", {
10680
+ return Q(Qc, await this.get("/v1/routing/compare", {
10648
10681
  origin: e.origin,
10649
10682
  destination: e.destination,
10650
10683
  mass: e.mass,
@@ -10653,9 +10686,9 @@ var El = class {
10653
10686
  }, v.RouteNotFound), "compareRoutes");
10654
10687
  }
10655
10688
  async routingStats() {
10656
- return Q(Xc, await this.get("/v1/routing/stats"), "routingStats");
10689
+ return Q($c, await this.get("/v1/routing/stats"), "routingStats");
10657
10690
  }
10658
- }, Dl = class {
10691
+ }, Al = class {
10659
10692
  suiClient;
10660
10693
  ids;
10661
10694
  indexer;
@@ -10673,7 +10706,7 @@ var El = class {
10673
10706
  orgs;
10674
10707
  coins;
10675
10708
  constructor(e) {
10676
- this.suiClient = e.suiClient, this.executor = e.executor, this.address = e.address, this.ids = Ne(e.network ?? "testnet", e.packageIds), this.indexer = new El(e.indexerUrl ?? "https://api.trinary.exchange", e.apiKey), this.account = new Ml(this), this.balances = new Nl(this), this.market = new Pl(this), this.orders = new zl(this), this.spatial = new Fl(this), this.routing = new Il(this), this.characters = new Ll(this), this.world = new Rl(this), this.orgs = new Ta(this.indexer, (e) => this.requireAddress(e), {
10709
+ this.suiClient = e.suiClient, this.executor = e.executor, this.address = e.address, this.ids = Ne(e.network ?? "testnet", e.packageIds), this.indexer = new kl(e.indexerUrl ?? "https://api.trinary.exchange", e.apiKey), this.account = new Fl(this), this.balances = new Il(this), this.market = new Ll(this), this.orders = new Hl(this), this.spatial = new Rl(this), this.routing = new zl(this), this.characters = new Bl(this), this.world = new Vl(this), this.orgs = new Ta(this.indexer, (e) => this.requireAddress(e), {
10677
10710
  suiClient: this.suiClient,
10678
10711
  ids: this.ids,
10679
10712
  requireExecutor: () => this.requireExecutor()
@@ -10735,7 +10768,7 @@ var El = class {
10735
10768
  n || e.transferObjects([t], r);
10736
10769
  let i = await x(this.requireExecutor(), e);
10737
10770
  if (!n) {
10738
- let e = Ol(i);
10771
+ let e = jl(i);
10739
10772
  e && this.rememberTradingAccountId(r, e);
10740
10773
  }
10741
10774
  return $(i);
@@ -10746,13 +10779,13 @@ var El = class {
10746
10779
  return t;
10747
10780
  }
10748
10781
  };
10749
- function Ol(e) {
10782
+ function jl(e) {
10750
10783
  return S(e, "::trading_account::TradingAccount")?.objectId ?? null;
10751
10784
  }
10752
- var kl = (1n << 128n) - 1n, Al = "0x" + "0".repeat(64);
10753
- function jl(e) {
10785
+ var Ml = (1n << 128n) - 1n, Nl = "0x" + "0".repeat(64);
10786
+ function Pl(e) {
10754
10787
  let t = typeof e == "string" ? e.trim() : null, n = t === null ? e : /^(\d+|0x[0-9a-fA-F]+)$/.test(t) ? BigInt(t) : -1n;
10755
- if (n < 0n || n > kl) throw new y(v.ValidationFailed, `Invalid order id ${String(e)}: expected a u128 integer.`);
10788
+ if (n < 0n || n > Ml) throw new y(v.ValidationFailed, `Invalid order id ${String(e)}: expected a u128 integer.`);
10756
10789
  return n;
10757
10790
  }
10758
10791
  function $(e) {
@@ -10762,7 +10795,7 @@ function $(e) {
10762
10795
  raw: e.raw
10763
10796
  };
10764
10797
  }
10765
- var Ml = class {
10798
+ var Fl = class {
10766
10799
  c;
10767
10800
  constructor(e) {
10768
10801
  this.c = e;
@@ -10782,7 +10815,7 @@ var Ml = class {
10782
10815
  };
10783
10816
  let i = this.c.requireExecutor(), a = new e(), o = Da(a, this.c.ids);
10784
10817
  a.transferObjects([o], n);
10785
- let s = Ol(await x(i, a));
10818
+ let s = jl(await x(i, a));
10786
10819
  if (!s) throw new y(v.UnexpectedResponse, "Trading account created but no created-object info found — have the executor include effects+objectTypes (v2) or objectChanges (legacy).");
10787
10820
  return this.c.rememberTradingAccountId(n, s), {
10788
10821
  tradingAccountId: s,
@@ -10889,7 +10922,7 @@ var Ml = class {
10889
10922
  });
10890
10923
  return $(await x(i, o));
10891
10924
  }
10892
- }, Nl = class {
10925
+ }, Il = class {
10893
10926
  c;
10894
10927
  constructor(e) {
10895
10928
  this.c = e;
@@ -10911,7 +10944,7 @@ var Ml = class {
10911
10944
  tradingAccountId: r
10912
10945
  };
10913
10946
  }
10914
- }, Pl = class {
10947
+ }, Ll = class {
10915
10948
  c;
10916
10949
  constructor(e) {
10917
10950
  this.c = e;
@@ -11017,7 +11050,7 @@ var Ml = class {
11017
11050
  stats() {
11018
11051
  return this.c.indexer.stats();
11019
11052
  }
11020
- }, Fl = class {
11053
+ }, Rl = class {
11021
11054
  c;
11022
11055
  constructor(e) {
11023
11056
  this.c = e;
@@ -11040,7 +11073,7 @@ var Ml = class {
11040
11073
  stats() {
11041
11074
  return this.c.indexer.spatialStats();
11042
11075
  }
11043
- }, Il = class {
11076
+ }, zl = class {
11044
11077
  c;
11045
11078
  constructor(e) {
11046
11079
  this.c = e;
@@ -11054,7 +11087,7 @@ var Ml = class {
11054
11087
  stats() {
11055
11088
  return this.c.indexer.routingStats();
11056
11089
  }
11057
- }, Ll = class {
11090
+ }, Bl = class {
11058
11091
  c;
11059
11092
  constructor(e) {
11060
11093
  this.c = e;
@@ -11074,7 +11107,7 @@ var Ml = class {
11074
11107
  tribe(e) {
11075
11108
  return this.c.indexer.tribe(e);
11076
11109
  }
11077
- }, Rl = class {
11110
+ }, Vl = class {
11078
11111
  c;
11079
11112
  constructor(e) {
11080
11113
  this.c = e;
@@ -11091,7 +11124,7 @@ var Ml = class {
11091
11124
  recipesFor(e) {
11092
11125
  return this.c.indexer.recipesFor(e);
11093
11126
  }
11094
- }, zl = class {
11127
+ }, Hl = class {
11095
11128
  c;
11096
11129
  constructor(e) {
11097
11130
  this.c = e;
@@ -11100,7 +11133,7 @@ var Ml = class {
11100
11133
  let t = await this.c.resolveItemPoolId(e), n = this.c.optionalAddress(e.address), r = n ? await this.c.resolveTradingAccountId(n) : null;
11101
11134
  return ti(this.c.suiClient, this.c.ids, {
11102
11135
  poolId: t,
11103
- sender: n ?? Al,
11136
+ sender: n ?? Nl,
11104
11137
  tradingAccountId: r
11105
11138
  });
11106
11139
  }
@@ -11179,12 +11212,12 @@ var Ml = class {
11179
11212
  poolId: r,
11180
11213
  bm: n,
11181
11214
  proof: a,
11182
- orderId: jl(e.orderId)
11215
+ orderId: Pl(e.orderId)
11183
11216
  }), i();
11184
11217
  }
11185
11218
  async cancelMany(e) {
11186
11219
  if (e.orderIds.length === 0) throw new y(v.ValidationFailed, "cancelMany needs at least one order id.");
11187
- let t = e.orderIds.map(jl), { tx: n, bm: r, poolId: i, execute: a } = await this.beginCancelTx(e), o = U(n, this.c.ids, r)[0];
11220
+ let t = e.orderIds.map(Pl), { tx: n, bm: r, poolId: i, execute: a } = await this.beginCancelTx(e), o = U(n, this.c.ids, r)[0];
11188
11221
  return Ya(n, this.c.ids, {
11189
11222
  poolId: i,
11190
11223
  bm: r,
@@ -11207,7 +11240,7 @@ var Ml = class {
11207
11240
  poolId: r,
11208
11241
  bm: n,
11209
11242
  proof: a,
11210
- orderId: jl(e.orderId),
11243
+ orderId: Pl(e.orderId),
11211
11244
  newQuantity: e.newQuantity
11212
11245
  }), i();
11213
11246
  }
@@ -11264,13 +11297,13 @@ var Ml = class {
11264
11297
  execute: async () => $(await x(i, s))
11265
11298
  };
11266
11299
  }
11267
- }, Bl = class {
11300
+ }, Ul = class {
11268
11301
  ids;
11269
11302
  indexer;
11270
11303
  orgs;
11271
11304
  coins;
11272
11305
  constructor(e) {
11273
- this.ids = Ne(e.network ?? "testnet", e.packageIds), this.indexer = new El(e.indexerUrl ?? "https://api.trinary.exchange", e.apiKey), this.orgs = new wa(this.indexer, (e) => {
11306
+ this.ids = Ne(e.network ?? "testnet", e.packageIds), this.indexer = new kl(e.indexerUrl ?? "https://api.trinary.exchange", e.apiKey), this.orgs = new wa(this.indexer, (e) => {
11274
11307
  if (!e) throw new y(v.AddressRequired, "ReadOnlyClient has no configured player — pass the address explicitly.");
11275
11308
  return e;
11276
11309
  }), this.coins = new _s({
@@ -11446,7 +11479,7 @@ var Ml = class {
11446
11479
  };
11447
11480
  //#endregion
11448
11481
  //#region src/book.ts
11449
- function Vl(e) {
11482
+ function Wl(e) {
11450
11483
  let t = [];
11451
11484
  for (let n of e) {
11452
11485
  let e = t[t.length - 1];
@@ -11458,18 +11491,18 @@ function Vl(e) {
11458
11491
  }
11459
11492
  return t;
11460
11493
  }
11461
- function Hl(e) {
11494
+ function Gl(e) {
11462
11495
  return e.bids[0] ?? null;
11463
11496
  }
11464
- function Ul(e) {
11497
+ function Kl(e) {
11465
11498
  return e.asks[0] ?? null;
11466
11499
  }
11467
- function Wl(e) {
11468
- let t = Hl(e), n = Ul(e);
11500
+ function ql(e) {
11501
+ let t = Gl(e), n = Kl(e);
11469
11502
  return !t || !n ? null : (t.price + n.price) / 2n;
11470
11503
  }
11471
- function Gl(e) {
11472
- let t = Hl(e), n = Ul(e);
11504
+ function Jl(e) {
11505
+ let t = Gl(e), n = Kl(e);
11473
11506
  if (!t || !n) return null;
11474
11507
  let r = n.price - t.price, i = (t.price + n.price) / 2n;
11475
11508
  return i === 0n ? {
@@ -11480,19 +11513,19 @@ function Gl(e) {
11480
11513
  bps: Number(r * 10000n / i)
11481
11514
  };
11482
11515
  }
11483
- function Kl(e) {
11516
+ function Yl(e) {
11484
11517
  let t = 0n;
11485
11518
  for (let n of e) t += n.remainingQuantity;
11486
11519
  return t;
11487
11520
  }
11488
- function ql(e) {
11521
+ function Xl(e) {
11489
11522
  let t = 0n, n = 0n;
11490
11523
  for (let r of e) t += r.baseQuantity, n += r.quoteQuantity;
11491
11524
  return t === 0n ? null : n / t;
11492
11525
  }
11493
11526
  //#endregion
11494
11527
  //#region src/paging.ts
11495
- async function* Jl(e, t, n) {
11528
+ async function* Zl(e, t, n) {
11496
11529
  let r = n?.maxItems ?? 1e4, i = t?.cursor, a = 0;
11497
11530
  for (;;) {
11498
11531
  let n = await e.discovery({
@@ -11504,12 +11537,12 @@ async function* Jl(e, t, n) {
11504
11537
  i = n.nextCursor;
11505
11538
  }
11506
11539
  }
11507
- function Yl(e, t) {
11540
+ function Ql(e, t) {
11508
11541
  if (e === null || t === void 0) return null;
11509
11542
  let n = Number(e);
11510
11543
  return Number.isFinite(n) ? n : t;
11511
11544
  }
11512
- async function* Xl(e, t, n, r) {
11545
+ async function* $l(e, t, n, r) {
11513
11546
  let i = r?.maxItems ?? 1e4, a = n?.before, o = 0;
11514
11547
  for (;;) {
11515
11548
  let r = await e.fills(t, {
@@ -11517,12 +11550,12 @@ async function* Xl(e, t, n, r) {
11517
11550
  before: a
11518
11551
  });
11519
11552
  for (let e of r.fills) if (yield e, ++o >= i) return;
11520
- let s = Yl(r.nextCursor, r.fills.at(-1)?.filledAt);
11553
+ let s = Ql(r.nextCursor, r.fills.at(-1)?.filledAt);
11521
11554
  if (s === null) return;
11522
11555
  a = s;
11523
11556
  }
11524
11557
  }
11525
- async function* Zl(e, t, n, r) {
11558
+ async function* eu(e, t, n, r) {
11526
11559
  let i = r?.maxItems ?? 1e4, a = n?.before, o = 0;
11527
11560
  for (;;) {
11528
11561
  let r = await e.trades(t, {
@@ -11530,12 +11563,12 @@ async function* Zl(e, t, n, r) {
11530
11563
  before: a
11531
11564
  });
11532
11565
  for (let e of r.trades) if (yield e, ++o >= i) return;
11533
- let s = Yl(r.nextCursor, r.trades.at(-1)?.tradedAt);
11566
+ let s = Ql(r.nextCursor, r.trades.at(-1)?.tradedAt);
11534
11567
  if (s === null) return;
11535
11568
  a = s;
11536
11569
  }
11537
11570
  }
11538
- async function* Ql(e, t, n, r) {
11571
+ async function* tu(e, t, n, r) {
11539
11572
  let i = r?.maxItems ?? 1e4, a = n?.before, o = 0;
11540
11573
  for (;;) {
11541
11574
  let r = await e.openOrders(t, {
@@ -11543,12 +11576,12 @@ async function* Ql(e, t, n, r) {
11543
11576
  before: a
11544
11577
  });
11545
11578
  for (let e of r.orders) if (yield e, ++o >= i) return;
11546
- let s = Yl(r.nextCursor, r.orders.at(-1)?.updatedAt);
11579
+ let s = Ql(r.nextCursor, r.orders.at(-1)?.updatedAt);
11547
11580
  if (s === null) return;
11548
11581
  a = s;
11549
11582
  }
11550
11583
  }
11551
- async function* $l(e, t, n) {
11584
+ async function* nu(e, t, n) {
11552
11585
  let r = n?.maxItems ?? 1e4, i = t?.before, a = 0;
11553
11586
  for (;;) {
11554
11587
  let n = await e.recentTrades({
@@ -11556,12 +11589,12 @@ async function* $l(e, t, n) {
11556
11589
  before: i
11557
11590
  });
11558
11591
  for (let e of n.trades) if (yield e, ++a >= r) return;
11559
- let o = Yl(n.nextCursor, n.trades.at(-1)?.tradedAt);
11592
+ let o = Ql(n.nextCursor, n.trades.at(-1)?.tradedAt);
11560
11593
  if (o === null) return;
11561
11594
  i = o;
11562
11595
  }
11563
11596
  }
11564
- async function* eu(e, t, n) {
11597
+ async function* ru(e, t, n) {
11565
11598
  let r = n?.maxItems ?? 1e4, i = t?.cursor, a = 0;
11566
11599
  for (;;) {
11567
11600
  let n = await e.hubLocations({
@@ -11573,7 +11606,7 @@ async function* eu(e, t, n) {
11573
11606
  i = n.nextCursor;
11574
11607
  }
11575
11608
  }
11576
- async function* tu(e, t, n, r) {
11609
+ async function* iu(e, t, n, r) {
11577
11610
  let i = r?.maxItems ?? 1e4, a = n?.cursor, o = 0;
11578
11611
  for (;;) {
11579
11612
  let r = await e.itemLocations(t, {
@@ -11585,7 +11618,7 @@ async function* tu(e, t, n, r) {
11585
11618
  a = r.nextCursor;
11586
11619
  }
11587
11620
  }
11588
- async function* nu(e, t, n) {
11621
+ async function* au(e, t, n) {
11589
11622
  let r = n?.maxItems ?? 1e4, i = t?.cursor, a = 0;
11590
11623
  for (;;) {
11591
11624
  let n = await e.orgs.directory({
@@ -11599,7 +11632,7 @@ async function* nu(e, t, n) {
11599
11632
  }
11600
11633
  //#endregion
11601
11634
  //#region src/wait.ts
11602
- async function ru(e, t) {
11635
+ async function ou(e, t) {
11603
11636
  let n = t?.timeoutMs ?? 3e4, r = t?.intervalMs ?? 2e3, i = Date.now() + n;
11604
11637
  for (;;) {
11605
11638
  let a = await e();
@@ -11609,4 +11642,4 @@ async function ru(e, t) {
11609
11642
  }
11610
11643
  }
11611
11644
  //#endregion
11612
- export { ne as BYPASS_FORBIDDEN_PERMISSIONS, Ae as CLOCK_ID, rs as COIN_MAX_FILLS, ts as COIN_MAX_PRICE, es as COIN_MIN_PRICE, Mo as COIN_ORDER_STATUS, ns as COIN_POOL_CREATION_FEE, $o as COIN_PRICE_SCALING, mt as COMPOSITE_TYPE_CONFIG, Ln as COMPOSITE_TYPE_KEY, ko as CoinBalancesBcs, jo as CoinFeeScheduleBcs, Do as CoinOrderBcs, Oo as CoinOrderPageBcs, Ao as CoinPoolAccountBcs, vs as CoinsApi, _s as CoinsReadApi, ke as DEFAULT_INDEXER_URL, _t as DEFAULT_SLOT_TYPES, gs as DEFAULT_SWAP_SLIPPAGE_BPS, kc as DISPLAY_PRICE_TIERS, yr as FEE_RATE_SCALING, dt as GOVERNANCE_TYPE_CONFIG, br as GTC_EXPIRE, Rt as HIERARCHY_TYPE_CONFIG, te as HIGH_IMPACT_PERMISSIONS, El as IndexerClient, Kc as JUMP_TYPES, hl as MAX_BATCH_IDS, In as MAX_COMPOSITE_STEPS, f as MOVE_ABORT_CATALOG, vr as MULTICOIN_PRICE_SCALING, Me as NETWORK_PRESETS, vc as ORDER_STATUSES, yc as ORDER_TYPES, la as OrgHandle, gl as OrgQueries, wa as OrgsApi, Ta as OrgsWriteApi, C as PERMISSIONS, ro as POOL_CREATION_FEE, Gc as ROUTE_OPTIMIZATIONS, Bl as ReadOnlyClient, je as STILLNESS_PACKAGE_IDS, O as TRADING_TYPE_CONFIG, ft as TREASURY_TYPE_CONFIG, _r as TRIEX_PRICE_SCALING, Dl as TriexClient, y as TriexClientError, v as TriexError, dn as UPGRADE_POLICY, ni as VaultKeyBcs, pt as WHOLE_BOARD_TYPE_CONFIG, kt as addMemberAction, Dt as addMembersAction, Yi as adoptCurrencyAction, Vl as aggregateLevels, dr as appendClaimSettled, fr as appendClaimSettledCoin, Vn as appendPlanActions, Ut as appendTransferAssets, pn as appendUpgradeExecution, Pe as armatureTransactions, Ul as bestAsk, Hl as bestBid, Un as buildBatchPlanTx, Wn as buildCompositeSubmitTx, Kn as buildExecuteCompositeTx, Gn as buildExecutePassedTx, Hn as buildPlanTx, $i as burnCoinAction, Rn as canComposite, or as cancelOrderAction, cr as cancelOrderCoinAction, sn as capTypeOf, Fn as capabilitiesFor, Mi as claimTreasuryCoinsTx, os as coinMinOrderQuantity, Zn as coinPairProposalTypes, ds as coinPriceDecimals, fs as coinPriceToRaw, as as coinQuoteFee, is as coinQuoteForBase, ls as coinSellNet, co as coinTransactions, xn as compositeStepExecutor, Tr as computeAskProceeds, wr as computeBidQuoteDeposit, ss as computeCoinBidDeposit, Cr as computeItemQuote, I as computeQuoteFee, pe as configFromBcs, ta as configureMintAllowanceAction, cs as conservativeBidFeeRate, ye as cooldownEndsAt, nr as createMulticoinPoolAction, Qn as createMulticoinPoolProposalType, Bt as createSubOuAction, Sa as createTribeTx, Ji as currencyTypeEntries, vn as defaultSlotType, Ci as deinitializeOuVaultTx, Qo as depositCoinDeficit, er as depositCoinToBookAction, tr as depositFromOuVaultToBookAction, _i as depositReceiptTx, ji as depositToTreasuryTx, Kl as depth, Et as disableBypassTypeAction, yt as disableProposalTypeAction, Yo as dryRunCoinQuantityOut, Tt as enableBypassTypeAction, St as enableCompositeAction, j as enableProposalTypeAction, bt as enableSendCoinAction, xt as enableSendCoinToOuAction, Ct as enableTradingActions, us as estimateCoinMarketOrder, Or as estimateMarketBuyCost, kr as estimateMarketSellProceeds, An as evaluatePaths, Gi as execContextFor, x as executeAndNormalize, _n as executorForPayload, b as explainMoveAbort, _ as explainMoveAbortDetailed, qn as extractCreatedProposalId, hr as extractCreatedTradingCustody, on as fetchCapabilityVault, Wr as fetchCharacterInfo, qo as fetchCoinAccountOrders, Wo as fetchCoinBookSide, Ko as fetchCoinPoolAccount, zo as fetchCoinPoolTypes, Jo as fetchCoinTradeParams, Ee as fetchDaoGovernance, ln as fetchEncryptedEntries, un as fetchFrameStepPayload, Te as fetchFreezeState, Kr as fetchInventorySlotQuantity, Oe as fetchIsBoardMember, we as fetchOuState, ci as fetchOuVaultInfo, en as fetchProposal, De as fetchProposalConfig, Gr as fetchSsuOwnerInfo, mr as fetchTradingCustody, ki as fetchTreasuryCoinBalance, Oi as fetchTreasuryCoinBalances, Ce as fetchTypeSlots, fi as fetchVaultBalance, S as findCreatedObject, Ki as findNodeAcross, Ur as findOwnedItemReceipts, Xr as findOwnedTradingAccountCaps, Bi as flattenOrg, ps as formatCoinPrice, Sr as fromBase, A as genericTypeKey, zr as getObjectRef, ti as getPoolTradingFees, Zr as getTradingAccountAllowList, Vo as getTradingAccountCoinBalance, Vr as getTradingAccountCurrencyBalance, Hr as getTradingAccountItemBalance, Br as getWalletCurrencyBalance, _e as governanceFromSlots, bi as grantEditOuTx, yi as grantTx, ie as hasPermissions, gi as initializeOuVaultTx, tn as isDeletable, nn as isExecutable, Zo as isSuiCoinType, Jl as iterateDiscovery, Xl as iterateFills, eu as iterateHubLocations, tu as iterateItemLocations, Ql as iterateOpenOrders, nu as iterateOrgDirectory, $l as iterateRecentTrades, Zl as iterateTrades, Er as marketBuyRoundingBuffer, Wl as midPrice, Qi as mintAllowanceAction, na as mintAllowanceBypassTx, Zi as mintCoinAction, B as nodeById, ee as normalizeExecuteResult, w as normalizeMoveType, oe as packageAliases, an as parseCapabilityVault, ge as parseFreezeState, $t as parseLiveProposal, h as parseMoveAbort, he as parseOuState, Zt as parseProposalConfigJson, me as parseTypeSlot, yn as passedProposalAction, Nt as pauseSubOuAction, Qt as payloadTypeOf, re as permissionFloor, ir as placeLimitOrderAction, sr as placeLimitOrderCoinAction, ar as placeMarketOrderAction, J as prepareCoinInput, G as prepareWalletCoinInput, z as principalVec, mn as proposeUpgradeAction, Lt as reclaimCapFromSubOuAction, ae as remapPackages, At as removeMemberAction, Ot as removeMembersAction, Ro as resolveCoinPoolId, Jn as resolveExecutionPlan, ai as resolveOuVaultId, Ne as resolvePackageIds, Wi as resolveSeat, ea as returnCurrencyCapAction, xi as revokeTx, Ri as roleForDepth, hi as roleVec, Vi as rootNode, Ui as seatsFor, Pn as selectStrategy, Ni as sendCoinAction, Pi as sendCoinToOuAction, gt as sendCoinToOuTypeKey, ht as sendCoinTypeKey, Fi as sendSmallPaymentAction, jt as setBoardAction, $n as setupTradingAccountAction, Io as simulateReturnValues, ve as singleVoteExecutable, T as slotForType, so as sourceItemsIntoTradingAccount, wi as sourceWalletReceipts, Vt as spawnOuAction, zt as spinOutSubOuAction, hn as splitMoveType, Gl as spread, k as subOuControlType, lr as sweepCoinToTreasuryAction, ur as sweepMulticoinToOuVaultAction, xr as toBase, Rr as toSsuObjectId, ii as toStorageUnitId, Ei as toTypeNameKey, Yr as tradingAccountCapType, Hi as tradingNode, Xn as tradingProposalTypes, vt as tradingTypeEntries, Ca as tradingTypeInits, Ea as transactions, Ht as transferAssetsAction, It as transferCapToSubOuAction, Wt as transferFreezeAdminAction, qi as treasuryCapType, Gt as unfreezeProposalTypeAction, m as unpackAbortCode, Pt as unpauseSubOuAction, ru as untilIndexed, Kt as updateFreezeConfigAction, qt as updateFreezeExemptTypesAction, Mt as updateMetadataAction, wt as updateProposalConfigAction, Si as updateRegistryKeyTx, ql as vwap, gr as withEnabledTypeKey, vi as withdrawReceiptTx };
11645
+ export { Uc as BLUEPRINT_KINDS, ne as BYPASS_FORBIDDEN_PERMISSIONS, Ae as CLOCK_ID, rs as COIN_MAX_FILLS, ts as COIN_MAX_PRICE, es as COIN_MIN_PRICE, Mo as COIN_ORDER_STATUS, ns as COIN_POOL_CREATION_FEE, $o as COIN_PRICE_SCALING, mt as COMPOSITE_TYPE_CONFIG, Ln as COMPOSITE_TYPE_KEY, ko as CoinBalancesBcs, jo as CoinFeeScheduleBcs, Do as CoinOrderBcs, Oo as CoinOrderPageBcs, Ao as CoinPoolAccountBcs, vs as CoinsApi, _s as CoinsReadApi, ke as DEFAULT_INDEXER_URL, _t as DEFAULT_SLOT_TYPES, gs as DEFAULT_SWAP_SLIPPAGE_BPS, kc as DISPLAY_PRICE_TIERS, yr as FEE_RATE_SCALING, dt as GOVERNANCE_TYPE_CONFIG, br as GTC_EXPIRE, Rt as HIERARCHY_TYPE_CONFIG, te as HIGH_IMPACT_PERMISSIONS, kl as IndexerClient, Yc as JUMP_TYPES, vl as MAX_BATCH_IDS, In as MAX_COMPOSITE_STEPS, f as MOVE_ABORT_CATALOG, vr as MULTICOIN_PRICE_SCALING, Me as NETWORK_PRESETS, vc as ORDER_STATUSES, yc as ORDER_TYPES, la as OrgHandle, yl as OrgQueries, wa as OrgsApi, Ta as OrgsWriteApi, C as PERMISSIONS, ro as POOL_CREATION_FEE, Jc as ROUTE_OPTIMIZATIONS, Ul as ReadOnlyClient, je as STILLNESS_PACKAGE_IDS, O as TRADING_TYPE_CONFIG, ft as TREASURY_TYPE_CONFIG, _r as TRIEX_PRICE_SCALING, Al as TriexClient, y as TriexClientError, v as TriexError, dn as UPGRADE_POLICY, ni as VaultKeyBcs, pt as WHOLE_BOARD_TYPE_CONFIG, kt as addMemberAction, Dt as addMembersAction, Yi as adoptCurrencyAction, Wl as aggregateLevels, dr as appendClaimSettled, fr as appendClaimSettledCoin, Vn as appendPlanActions, Ut as appendTransferAssets, pn as appendUpgradeExecution, Pe as armatureTransactions, Kl as bestAsk, Gl as bestBid, Un as buildBatchPlanTx, Wn as buildCompositeSubmitTx, Kn as buildExecuteCompositeTx, Gn as buildExecutePassedTx, Hn as buildPlanTx, $i as burnCoinAction, Rn as canComposite, or as cancelOrderAction, cr as cancelOrderCoinAction, sn as capTypeOf, Fn as capabilitiesFor, Mi as claimTreasuryCoinsTx, os as coinMinOrderQuantity, Zn as coinPairProposalTypes, ds as coinPriceDecimals, fs as coinPriceToRaw, as as coinQuoteFee, is as coinQuoteForBase, ls as coinSellNet, co as coinTransactions, xn as compositeStepExecutor, Tr as computeAskProceeds, wr as computeBidQuoteDeposit, ss as computeCoinBidDeposit, Cr as computeItemQuote, I as computeQuoteFee, pe as configFromBcs, ta as configureMintAllowanceAction, cs as conservativeBidFeeRate, ye as cooldownEndsAt, nr as createMulticoinPoolAction, Qn as createMulticoinPoolProposalType, Bt as createSubOuAction, Sa as createTribeTx, Ji as currencyTypeEntries, vn as defaultSlotType, Ci as deinitializeOuVaultTx, Qo as depositCoinDeficit, er as depositCoinToBookAction, tr as depositFromOuVaultToBookAction, _i as depositReceiptTx, ji as depositToTreasuryTx, Yl as depth, Et as disableBypassTypeAction, yt as disableProposalTypeAction, Yo as dryRunCoinQuantityOut, Tt as enableBypassTypeAction, St as enableCompositeAction, j as enableProposalTypeAction, bt as enableSendCoinAction, xt as enableSendCoinToOuAction, Ct as enableTradingActions, us as estimateCoinMarketOrder, Or as estimateMarketBuyCost, kr as estimateMarketSellProceeds, An as evaluatePaths, Gi as execContextFor, x as executeAndNormalize, _n as executorForPayload, b as explainMoveAbort, _ as explainMoveAbortDetailed, qn as extractCreatedProposalId, hr as extractCreatedTradingCustody, on as fetchCapabilityVault, Wr as fetchCharacterInfo, qo as fetchCoinAccountOrders, Wo as fetchCoinBookSide, Ko as fetchCoinPoolAccount, zo as fetchCoinPoolTypes, Jo as fetchCoinTradeParams, Ee as fetchDaoGovernance, ln as fetchEncryptedEntries, un as fetchFrameStepPayload, Te as fetchFreezeState, Kr as fetchInventorySlotQuantity, Oe as fetchIsBoardMember, we as fetchOuState, ci as fetchOuVaultInfo, en as fetchProposal, De as fetchProposalConfig, Gr as fetchSsuOwnerInfo, mr as fetchTradingCustody, ki as fetchTreasuryCoinBalance, Oi as fetchTreasuryCoinBalances, Ce as fetchTypeSlots, fi as fetchVaultBalance, S as findCreatedObject, Ki as findNodeAcross, Ur as findOwnedItemReceipts, Xr as findOwnedTradingAccountCaps, Bi as flattenOrg, ps as formatCoinPrice, Sr as fromBase, A as genericTypeKey, zr as getObjectRef, ti as getPoolTradingFees, Zr as getTradingAccountAllowList, Vo as getTradingAccountCoinBalance, Vr as getTradingAccountCurrencyBalance, Hr as getTradingAccountItemBalance, Br as getWalletCurrencyBalance, _e as governanceFromSlots, bi as grantEditOuTx, yi as grantTx, ie as hasPermissions, gi as initializeOuVaultTx, tn as isDeletable, nn as isExecutable, Zo as isSuiCoinType, Zl as iterateDiscovery, $l as iterateFills, ru as iterateHubLocations, iu as iterateItemLocations, tu as iterateOpenOrders, au as iterateOrgDirectory, nu as iterateRecentTrades, eu as iterateTrades, Er as marketBuyRoundingBuffer, ql as midPrice, Qi as mintAllowanceAction, na as mintAllowanceBypassTx, Zi as mintCoinAction, B as nodeById, ee as normalizeExecuteResult, w as normalizeMoveType, oe as packageAliases, an as parseCapabilityVault, ge as parseFreezeState, $t as parseLiveProposal, h as parseMoveAbort, he as parseOuState, Zt as parseProposalConfigJson, me as parseTypeSlot, yn as passedProposalAction, Nt as pauseSubOuAction, Qt as payloadTypeOf, re as permissionFloor, ir as placeLimitOrderAction, sr as placeLimitOrderCoinAction, ar as placeMarketOrderAction, J as prepareCoinInput, G as prepareWalletCoinInput, z as principalVec, mn as proposeUpgradeAction, Lt as reclaimCapFromSubOuAction, ae as remapPackages, At as removeMemberAction, Ot as removeMembersAction, Ro as resolveCoinPoolId, Jn as resolveExecutionPlan, ai as resolveOuVaultId, Ne as resolvePackageIds, Wi as resolveSeat, ea as returnCurrencyCapAction, xi as revokeTx, Ri as roleForDepth, hi as roleVec, Vi as rootNode, Ui as seatsFor, Pn as selectStrategy, Ni as sendCoinAction, Pi as sendCoinToOuAction, gt as sendCoinToOuTypeKey, ht as sendCoinTypeKey, Fi as sendSmallPaymentAction, jt as setBoardAction, $n as setupTradingAccountAction, Io as simulateReturnValues, ve as singleVoteExecutable, T as slotForType, so as sourceItemsIntoTradingAccount, wi as sourceWalletReceipts, Vt as spawnOuAction, zt as spinOutSubOuAction, hn as splitMoveType, Jl as spread, k as subOuControlType, lr as sweepCoinToTreasuryAction, ur as sweepMulticoinToOuVaultAction, xr as toBase, Rr as toSsuObjectId, ii as toStorageUnitId, Ei as toTypeNameKey, Yr as tradingAccountCapType, Hi as tradingNode, Xn as tradingProposalTypes, vt as tradingTypeEntries, Ca as tradingTypeInits, Ea as transactions, Ht as transferAssetsAction, It as transferCapToSubOuAction, Wt as transferFreezeAdminAction, qi as treasuryCapType, Gt as unfreezeProposalTypeAction, m as unpackAbortCode, Pt as unpauseSubOuAction, ou as untilIndexed, Kt as updateFreezeConfigAction, qt as updateFreezeExemptTypesAction, Mt as updateMetadataAction, wt as updateProposalConfigAction, Si as updateRegistryKeyTx, Xl as vwap, gr as withEnabledTypeKey, vi as withdrawReceiptTx };