@arkiv-network/sdk 0.8.0-advanced.2 → 0.8.0-dev.2

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.
Files changed (178) hide show
  1. package/README.md +0 -42
  2. package/dist/attr/index.cjs +33 -34
  3. package/dist/attr/index.d.cts +1 -1
  4. package/dist/attr/index.d.ts +1 -2
  5. package/dist/attr/index.js +1 -2
  6. package/dist/{attributes-Df9IsCVs.cjs → attr-BXTkpnoc.cjs} +13 -3
  7. package/dist/{attributes-BhY5DwJp.js → attr-tmyREHtw.js} +14 -4
  8. package/dist/attr-tmyREHtw.js.map +1 -0
  9. package/dist/chains/index.cjs +1 -1
  10. package/dist/chains/index.d.cts +3 -0
  11. package/dist/chains/index.d.cts.map +1 -1
  12. package/dist/chains/index.d.ts +3 -0
  13. package/dist/chains/index.d.ts.map +1 -1
  14. package/dist/chains/index.js +1 -1
  15. package/dist/{chains-BYRTTipa.cjs → chains-BfNQliHU.cjs} +3 -0
  16. package/dist/{chains-BJrZs6sG.js → chains-Du8tql7I.js} +4 -1
  17. package/dist/chains-Du8tql7I.js.map +1 -0
  18. package/dist/{arkivTransactions-NtGD6uk5.d.ts → changeOwnership-B0ar96ub.d.ts} +74 -123
  19. package/dist/changeOwnership-B0ar96ub.d.ts.map +1 -0
  20. package/dist/{arkivTransactions-D74gERHG.d.cts → changeOwnership-BofkLnXJ.d.cts} +74 -123
  21. package/dist/changeOwnership-BofkLnXJ.d.cts.map +1 -0
  22. package/dist/entity/index.cjs +9 -9
  23. package/dist/entity/index.d.cts +3 -3
  24. package/dist/entity/index.d.ts +4 -5
  25. package/dist/entity/index.js +5 -6
  26. package/dist/{entity-BYQR1uoe.js → entity-BIp_df9u.js} +1 -1
  27. package/dist/{entity-BYQR1uoe.js.map → entity-BIp_df9u.js.map} +1 -1
  28. package/dist/{key-D1Bh7MF0.js → entity-CniBgBSd.js} +31 -19
  29. package/dist/entity-CniBgBSd.js.map +1 -0
  30. package/dist/{key-WKhXnXuU.cjs → entity-DJ0Gml9c.cjs} +37 -19
  31. package/dist/{errors-LTe7bOYS.js → errors-D2E1GRjw.js} +2 -2
  32. package/dist/errors-D2E1GRjw.js.map +1 -0
  33. package/dist/{errors-BVbjKVMN.cjs → errors-DhV00966.cjs} +1 -1
  34. package/dist/{expiry-nDbCgZX4.d.ts → expiry-BxOlvVWC.d.ts} +1 -1
  35. package/dist/{expiry-nDbCgZX4.d.ts.map → expiry-BxOlvVWC.d.ts.map} +1 -1
  36. package/dist/{expiry-BELY2Kpw.cjs → expiry-CG9GhVXv.cjs} +1 -1
  37. package/dist/{expiry-BjpxZZQU.js → expiry-Cgdb_dbq.js} +2 -2
  38. package/dist/expiry-Cgdb_dbq.js.map +1 -0
  39. package/dist/expiry-DRV29F1r.d.cts.map +1 -1
  40. package/dist/{flags-CRjPpoh3.d.cts → flags-0Vl5rrHq.d.cts} +1 -1
  41. package/dist/{flags-CRjPpoh3.d.cts.map → flags-0Vl5rrHq.d.cts.map} +1 -1
  42. package/dist/{flags-kr276q6i.cjs → flags-DCD26uhe.cjs} +1 -1
  43. package/dist/{flags-DFBs2J94.js → flags-DUT2gHEU.js} +2 -2
  44. package/dist/{flags-DFBs2J94.js.map → flags-DUT2gHEU.js.map} +1 -1
  45. package/dist/{flags-5dTNRnow.d.ts → flags-wmcMoAnN.d.ts} +1 -1
  46. package/dist/{flags-5dTNRnow.d.ts.map → flags-wmcMoAnN.d.ts.map} +1 -1
  47. package/dist/{index-fX_XyqLp.d.ts → index-BGp2plHs.d.cts} +15 -13
  48. package/dist/index-BGp2plHs.d.cts.map +1 -0
  49. package/dist/{index-DHDud2hC.d.ts → index-BKB875Um.d.ts} +5 -7
  50. package/dist/{index-DHDud2hC.d.ts.map → index-BKB875Um.d.ts.map} +1 -1
  51. package/dist/{index-DvYvrkdk.d.ts → index-CIcHPx2j.d.cts} +110 -6
  52. package/dist/index-CIcHPx2j.d.cts.map +1 -0
  53. package/dist/{index-CV5zCdpa.d.cts → index-Cd2aaWme.d.ts} +13 -6
  54. package/dist/index-Cd2aaWme.d.ts.map +1 -0
  55. package/dist/{index-CA4V7Pdh.d.cts → index-ezMZ2-JH.d.ts} +15 -13
  56. package/dist/index-ezMZ2-JH.d.ts.map +1 -0
  57. package/dist/{index-BF7Mq9Is.d.cts → index-rINthNuU.d.cts} +5 -7
  58. package/dist/{index-BF7Mq9Is.d.cts.map → index-rINthNuU.d.cts.map} +1 -1
  59. package/dist/index.cjs +433 -139
  60. package/dist/index.d.cts +58 -164
  61. package/dist/index.d.cts.map +1 -1
  62. package/dist/index.d.ts +59 -166
  63. package/dist/index.d.ts.map +1 -1
  64. package/dist/index.js +376 -75
  65. package/dist/index.js.map +1 -1
  66. package/dist/{payload-CcUj85ys.d.ts → payload-CGvVPZQX.d.ts} +61 -2
  67. package/dist/payload-CGvVPZQX.d.ts.map +1 -0
  68. package/dist/{payload-Bz6651ax.js → payload-DE7wMztL.js} +28 -3
  69. package/dist/payload-DE7wMztL.js.map +1 -0
  70. package/dist/{payload-BNoud2KZ.d.cts → payload-Dfu30njp.d.cts} +60 -1
  71. package/dist/payload-Dfu30njp.d.cts.map +1 -0
  72. package/dist/{payload-KC14SDlN.cjs → payload-DqFweqiO.cjs} +27 -2
  73. package/dist/query/index.cjs +5 -7
  74. package/dist/query/index.d.cts +4 -4
  75. package/dist/query/index.d.ts +4 -5
  76. package/dist/query/index.js +5 -7
  77. package/dist/{queryBuilder-DM6AWCBa.js → queryBuilder-wvA8sn--.js} +169 -23
  78. package/dist/queryBuilder-wvA8sn--.js.map +1 -0
  79. package/dist/{queryBuilder-DbUMEZln.cjs → queryBuilder-zHGhDmaG.cjs} +215 -33
  80. package/dist/{selection-DPg0uyJf.d.cts → selection-Bv8_o-7i.d.cts} +76 -68
  81. package/dist/selection-Bv8_o-7i.d.cts.map +1 -0
  82. package/dist/{selection-C4UhsMOO.d.ts → selection-ox7zdtVm.d.ts} +76 -69
  83. package/dist/selection-ox7zdtVm.d.ts.map +1 -0
  84. package/dist/types/index.cjs +2 -2
  85. package/dist/types/index.d.cts +6 -6
  86. package/dist/types/index.d.ts +7 -8
  87. package/dist/types/index.js +2 -2
  88. package/dist/utils/index.cjs +3 -3
  89. package/dist/utils/index.d.cts +1 -1
  90. package/dist/utils/index.d.ts +2 -2
  91. package/dist/utils/index.js +3 -3
  92. package/package.json +1 -5
  93. package/src/actions/public/getEntity.ts +1 -0
  94. package/src/actions/public/predictEntityKeys.test.ts +17 -1
  95. package/src/actions/public/predictEntityKeys.ts +28 -14
  96. package/src/actions/public/query.ts +1 -5
  97. package/src/actions/wallet/createEntity.ts +7 -6
  98. package/src/actions/wallet/{mutateEntities.test.ts → executeBatch.test.ts} +7 -7
  99. package/src/actions/wallet/{mutateEntities.ts → executeBatch.ts} +26 -11
  100. package/src/actions/wallet/extendEntity.ts +1 -0
  101. package/src/actions/wallet/patchEntity.ts +3 -3
  102. package/src/attr/attributes.ts +8 -2
  103. package/src/attr/errors.ts +2 -2
  104. package/src/attr/types.ts +3 -3
  105. package/src/attr/values.ts +5 -1
  106. package/src/chains/localhost.ts +3 -0
  107. package/src/clients/createPublicClient.test.ts +1 -1
  108. package/src/clients/createPublicClient.ts +5 -5
  109. package/src/clients/createWalletClient.test.ts +2 -2
  110. package/src/clients/createWalletClient.ts +3 -5
  111. package/src/clients/decorators/arkivPublic.ts +13 -24
  112. package/src/clients/decorators/arkivWallet.ts +40 -47
  113. package/src/entity/create.test.ts +20 -1
  114. package/src/entity/errors.ts +4 -3
  115. package/src/entity/expiry.ts +1 -0
  116. package/src/entity/index.ts +2 -2
  117. package/src/entity/key.ts +23 -3
  118. package/src/entity/operations.ts +1 -0
  119. package/src/index.ts +0 -13
  120. package/src/query/engine.ts +0 -11
  121. package/src/query/errors.ts +1 -1
  122. package/src/query/expression.ts +14 -7
  123. package/src/query/queryBuilder.test.ts +1 -21
  124. package/src/query/queryBuilder.ts +3 -10
  125. package/src/types/index.ts +4 -4
  126. package/src/types/rpcSchema.ts +1 -0
  127. package/src/types/txParams.ts +8 -0
  128. package/src/utils/arkivTransactions.test.ts +7 -1
  129. package/src/utils/arkivTransactions.ts +114 -254
  130. package/src/utils/expirationTime.ts +39 -0
  131. package/src/utils/payload.ts +25 -0
  132. package/dist/actions/advanced/index.cjs +0 -13
  133. package/dist/actions/advanced/index.d.cts +0 -8
  134. package/dist/actions/advanced/index.d.ts +0 -9
  135. package/dist/actions/advanced/index.js +0 -9
  136. package/dist/advanced-8ZPTmmaN.js +0 -598
  137. package/dist/advanced-8ZPTmmaN.js.map +0 -1
  138. package/dist/advanced-fPImL6lW.cjs +0 -656
  139. package/dist/arkivTransactions-D74gERHG.d.cts.map +0 -1
  140. package/dist/arkivTransactions-NtGD6uk5.d.ts.map +0 -1
  141. package/dist/attributes-BhY5DwJp.js.map +0 -1
  142. package/dist/chains-BJrZs6sG.js.map +0 -1
  143. package/dist/codec-Car3KkFF.d.ts +0 -102
  144. package/dist/codec-Car3KkFF.d.ts.map +0 -1
  145. package/dist/entity-B7G8q_Eo.cjs +0 -0
  146. package/dist/entity-CD_qFF2M.js +0 -0
  147. package/dist/errors-LTe7bOYS.js.map +0 -1
  148. package/dist/expiry-BjpxZZQU.js.map +0 -1
  149. package/dist/index-B5j76711.d.ts +0 -184
  150. package/dist/index-B5j76711.d.ts.map +0 -1
  151. package/dist/index-CA4V7Pdh.d.cts.map +0 -1
  152. package/dist/index-CV5zCdpa.d.cts.map +0 -1
  153. package/dist/index-DvYvrkdk.d.ts.map +0 -1
  154. package/dist/index-EeUO0nnJ.d.cts +0 -184
  155. package/dist/index-EeUO0nnJ.d.cts.map +0 -1
  156. package/dist/index-fX_XyqLp.d.ts.map +0 -1
  157. package/dist/key-D1Bh7MF0.js.map +0 -1
  158. package/dist/logger-CVpvU8ik.js +0 -153
  159. package/dist/logger-CVpvU8ik.js.map +0 -1
  160. package/dist/logger-Cr15lPAQ.cjs +0 -188
  161. package/dist/payload-BNoud2KZ.d.cts.map +0 -1
  162. package/dist/payload-Bz6651ax.js.map +0 -1
  163. package/dist/payload-CcUj85ys.d.ts.map +0 -1
  164. package/dist/queryBuilder-DM6AWCBa.js.map +0 -1
  165. package/dist/selection-C4UhsMOO.d.ts.map +0 -1
  166. package/dist/selection-DPg0uyJf.d.cts.map +0 -1
  167. package/dist/types-Bu_ZwMbZ.js +0 -0
  168. package/dist/types-NRqymi6S.cjs +0 -0
  169. package/src/actions/advanced/advanced.test.ts +0 -258
  170. package/src/actions/advanced/buildMutation.ts +0 -104
  171. package/src/actions/advanced/getMutationResult.ts +0 -112
  172. package/src/actions/advanced/index.ts +0 -21
  173. package/src/actions/advanced/pingTransaction.ts +0 -43
  174. package/src/actions/advanced/sendMutation.ts +0 -59
  175. package/src/clients/decorators/arkivAdvanced.ts +0 -144
  176. /package/dist/{entity-B00Li04j.cjs → entity-B0t6sN7F.cjs} +0 -0
  177. /package/dist/{attr-DlmErkvR.cjs → types-Bx1EKe0v.js} +0 -0
  178. /package/dist/{attr-GcQKatub.js → types-CKPddlfS.cjs} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,115 +1,27 @@
1
- import { F as RpcCreationFlags, I as RpcEntity, L as RpcQueryOptions, M as ArkivRpcSchema, N as RpcAttribute, P as RpcAttributeSchemaEntry, R as RpcSelect, c as EntityFields, i as SelectArg, j as ArkivClient, n as FullEntity, p as Expression, r as ProjectedEntity, s as Entity, t as EntitySelection } from "./selection-C4UhsMOO.js";
2
- import { a as Bytes32Value, c as I32Value, d as TypeTag, f as U256Value, h as isArkivValue, i as BoolValue, l as KeyValue, m as UserTypeTag, n as AnyArkivValue, o as BytesValue, p as U64Value, r as ArkivValue, s as DecValue, t as AddrValue, u as StrValue } from "./codec-Car3KkFF.js";
3
- import { a as ResolvedExpiry, i as Lifetime, n as Expiry, o as resolveExpiry, r as ExpiryContext, s as toBlocks, t as EncodedExpiry } from "./expiry-nDbCgZX4.js";
4
- import { a as randomSalt, c as InvalidCreationFlagsError, d as NoRandomSourceError, f as Operation, i as predictEntityKey, l as InvalidExpiryError, n as OperationType, o as ENTITY_EVENTS_ABI, r as MAX_SALT, s as EntityEventName, t as MAX_EXPIRES_AT, u as InvalidSaltError } from "./index-fX_XyqLp.js";
5
- import { A as PredictEntityKeysParameters, C as EntityEvent, D as OwnershipTransferredEvent, E as ExpiryExtendedEvent, M as PredictedEntityKey, N as GetBlockTimingReturnType, O as QueryOptions, S as EntityDeletedEvent, T as EntityPatchedEvent, _ as DeleteEntityReturnType, a as mutationNeedsBlockNumber, b as WatchEntityEventsParameters, c as TxParams, d as PatchEntityReturnType, f as MutateEntitiesParameters, g as DeleteEntityParameters, h as ExtendEntityReturnType, i as collectMutationEvents, j as PredictEntityKeysReturnType, k as QueryReturnType, l as MimeType, m as ExtendEntityParameters, n as MutationEvents, o as ChangeOwnershipParameters, p as MutateEntitiesReturnType, r as buildEntityOperations, s as ChangeOwnershipReturnType, t as EntityMutationOps, u as PatchEntityParameters, v as CreateEntityParameters, w as EntityEventContext, x as EntityCreatedEvent, y as CreateEntityReturnType } from "./arkivTransactions-NtGD6uk5.js";
6
- import { A as i32, C as ValueInput, D as dec, E as bytes32, F as u64, M as str, N as toValue, O as decFromUnits, P as u256, S as U64_MAX, T as bool, _ as MAX_PAYLOAD_BYTES, a as InvalidAttributeNameError, b as MAX_STRING_BYTES, c as TooManyAttributesError, d as DECIMAL_SCALE, f as DECIMAL_UNIT, g as MAX_ATTRIBUTES, h as Attributes, i as ConflictingMutationError, j as key, k as decUnits, l as UnknownAttributeTypeError, m as AttributeSchema, n as isValidAttributeName, o as InvalidValueError, p as AttributeInputs, r as validateAttributeName, s as MissingValueError, t as MAX_NAME_BYTES, u as UntypedValueError, v as I32_MAX, w as addr, x as U256_MAX, y as I32_MIN } from "./index-DvYvrkdk.js";
7
- import { i as encodeCreationFlags, n as ResolvedCreationFlags, r as decodeCreationFlags, t as CreationFlags } from "./flags-5dTNRnow.js";
8
- import { a as pingTransaction, c as decodeMutationResult, d as BuildMutationReturnType, f as buildMutation, i as PingTransactionReturnType, l as getMutationResult, n as SendMutationReturnType, o as GetMutationResultReturnType, r as sendMutation, s as MutationResult, t as SendMutationOptions, u as BuildMutationOptions } from "./index-B5j76711.js";
9
- import { t as SelectQueryBuilder } from "./index-DHDud2hC.js";
10
- import { i as ExpirationTime, n as stringToPayload, r as DeadlineOptions, t as jsonToPayload } from "./payload-CcUj85ys.js";
11
- import { Account, Address, Chain, Client, Hash, Hex, ParseAccount, Prettify, PublicActions, PublicClientConfig, RpcSchema, TransactionReceipt, Transport, WalletActions, WalletClientConfig } from "viem";
1
+ import { A as i32, B as Bytes32Value, C as ValueInput, D as dec, E as bytes32, F as u64, G as StrValue, H as DecValue, I as AddrValue, J as U64Value, K as TypeTag, L as AnyArkivValue, M as str, N as toValue, O as decFromUnits, P as u256, R as ArkivValue, S as U64_MAX, T as bool, U as I32Value, V as BytesValue, W as KeyValue, X as isArkivValue, Y as UserTypeTag, _ as MAX_PAYLOAD_BYTES, a as InvalidAttributeNameError, b as MAX_STRING_BYTES, c as TooManyAttributesError, d as DECIMAL_SCALE, f as DECIMAL_UNIT, g as MAX_ATTRIBUTES, h as Attributes, i as ConflictingMutationError, j as key, k as decUnits, l as UnknownAttributeTypeError, m as AttributeSchema, n as isValidAttributeName, o as InvalidValueError, p as AttributeInputs, q as U256Value, r as validateAttributeName, s as MissingValueError, t as MAX_NAME_BYTES, u as UntypedValueError, v as I32_MAX, w as addr, x as U256_MAX, y as I32_MIN, z as BoolValue } from "./index-Cd2aaWme.js";
2
+ import { a as SaltInput, c as ENTITY_EVENTS_ABI, d as InvalidExpiryError, f as InvalidSaltError, i as NO_SALT, l as EntityEventName, n as OperationType, o as predictEntityKey, p as NoRandomSourceError, r as MAX_SALT, s as randomSalt, t as MAX_EXPIRES_AT, u as InvalidCreationFlagsError } from "./index-ezMZ2-JH.js";
3
+ import { a as ResolvedExpiry, i as Lifetime, n as Expiry, o as resolveExpiry, r as ExpiryContext, s as toBlocks, t as EncodedExpiry } from "./expiry-BxOlvVWC.js";
4
+ import { i as encodeCreationFlags, n as ResolvedCreationFlags, r as decodeCreationFlags, t as CreationFlags } from "./flags-wmcMoAnN.js";
5
+ import { A as EntityFields, F as RpcCreationFlags, I as RpcEntity, L as RpcQueryOptions, M as ArkivRpcSchema, N as RpcAttribute, P as RpcAttributeSchemaEntry, R as RpcSelect, d as Expression, i as SelectArg, j as ArkivClient, k as Entity, n as FullEntity, r as ProjectedEntity, t as EntitySelection } from "./selection-ox7zdtVm.js";
6
+ import { t as SelectQueryBuilder } from "./index-BKB875Um.js";
7
+ import { C as QueryOptions, D as PredictedEntityKey, E as PredictEntityKeysReturnType, O as GetBlockTimingReturnType, S as OwnershipTransferredEvent, T as PredictEntityKeysParameters, _ as EntityDeletedEvent, a as ExecuteBatchParameters, b as EntityPatchedEvent, c as PatchEntityReturnType, d as DeleteEntityParameters, f as DeleteEntityReturnType, g as EntityCreatedEvent, h as WatchEntityEventsParameters, i as MimeType, l as ExtendEntityParameters, m as CreateEntityReturnType, n as ChangeOwnershipReturnType, o as ExecuteBatchReturnType, p as CreateEntityParameters, r as TxParams, s as PatchEntityParameters, t as ChangeOwnershipParameters, u as ExtendEntityReturnType, v as EntityEvent, w as QueryReturnType, x as ExpiryExtendedEvent, y as EntityEventContext } from "./changeOwnership-B0ar96ub.js";
8
+ import { i as ExpirationTime, n as stringToPayload, r as DeadlineOptions, t as jsonToPayload } from "./payload-CGvVPZQX.js";
9
+ import { Account, Address, Chain, Client, Hex, ParseAccount, Prettify, PublicActions, PublicClientConfig, RpcSchema, Transport, WalletActions, WalletClientConfig } from "viem";
12
10
 
13
- //#region src/clients/decorators/arkivAdvanced.d.ts
14
- /**
15
- * The read-only half of the advanced path — checking on a transaction and decoding its result —
16
- * which needs no account, so a Public Client carries it too.
17
- *
18
- * Every action here costs at most one RPC call, and says exactly which.
19
- */
20
- type PublicAdvancedActions = {
21
- /**
22
- * Asks the chain — once — whether a transaction has landed. Exactly one
23
- * `eth_getTransactionReceipt`, never a poll: an unmined transaction comes back as
24
- * `{ status: "pending" }` and the schedule stays yours.
25
- *
26
- * @param txHash - The transaction hash returned by `sendMutation` (or any other send)
27
- * @returns `{ status: "pending" }`, or `{ status: "success" | "reverted", blockNumber }`
28
- *
29
- * @example
30
- * const { status } = await client.advanced.pingTransaction(txHash)
31
- * if (status === "pending") scheduleAnotherPing()
32
- */
33
- pingTransaction: (txHash: Hash) => Promise<PingTransactionReturnType>;
34
- /**
35
- * Fetches a transaction's receipt — once — and decodes what the mutation did: created keys and
36
- * expiries, plus the keys of everything patched, deleted, extended or handed over. One
37
- * `eth_getTransactionReceipt`; `{ status: "pending" }` if not mined yet. No revert diagnosis is
38
- * run on a `reverted` result — that extra call is yours to spend or skip.
39
- *
40
- * @param txHash - The transaction hash
41
- * @returns The decoded {@link MutationResult}, or `{ status: "pending" }`
42
- *
43
- * @example
44
- * const result = await client.advanced.getMutationResult(txHash)
45
- * if (result.status === "success") console.log(result.createdEntities)
46
- */
47
- getMutationResult: (txHash: Hash) => Promise<GetMutationResultReturnType>;
48
- /**
49
- * Decodes a receipt you already hold into a {@link MutationResult}. **Zero RPC calls** — for
50
- * receipts that reached you through your own `waitForTransactionReceipt`, a block watcher, or a
51
- * webhook.
52
- *
53
- * @param receipt - The transaction receipt
54
- * @returns The decoded {@link MutationResult}
55
- */
56
- decodeMutationResult: (receipt: TransactionReceipt) => MutationResult;
57
- };
58
- /**
59
- * The advanced path on a Wallet Client: build, send, ping and read results as separate steps, each
60
- * costing the minimum number of RPC calls — down to one per transaction when you supply what the
61
- * SDK would otherwise look up.
62
- *
63
- * The everyday actions (`createEntity`, `mutateEntities`, …) bundle send + wait + decode and are
64
- * the right default. This namespace unbundles them for callers optimising their RPC budget.
65
- *
66
- * @example Minimal-call flow: one send, one ping, done.
67
- * const { txHash } = await client.advanced.sendMutation(
68
- * { creates: [{ payload, contentType: "application/json", expires }] },
69
- * { currentBlock, txParams: { nonce, gas: 1_000_000n, maxFeePerGas, maxPriorityFeePerGas } },
70
- * ) // exactly 1 RPC call: eth_sendRawTransaction
71
- * // ... later, on your own schedule:
72
- * const result = await client.advanced.getMutationResult(txHash) // 1 RPC call
73
- * if (result.status === "success") console.log(result.createdEntities)
74
- */
75
- type WalletAdvancedActions = PublicAdvancedActions & {
76
- /**
77
- * Encodes a mutation batch without sending anything: zero RPC calls with `currentBlock` supplied
78
- * (or when no expiry is relative), at most one `eth_blockNumber` otherwise. Returns the
79
- * operations for `writeContract`, and the `{ to, data }` calldata for offline signing.
80
- *
81
- * @param data - The batch (creates, patches, deletes, extensions, ownershipChanges)
82
- * @param options - Optional `currentBlock` to avoid the `eth_blockNumber` lookup
83
- */
84
- buildMutation: (data: EntityMutationOps, options?: BuildMutationOptions) => Promise<BuildMutationReturnType>;
85
- /**
86
- * Signs and sends a mutation batch, returning the hash as soon as the transaction is submitted —
87
- * no waiting, no polling, no revert diagnosis. With `currentBlock` and full `txParams` (nonce,
88
- * gas, fees) supplied this is exactly one `eth_sendRawTransaction`; each omitted piece adds only
89
- * the lookup viem needs to fill it.
90
- *
91
- * @param data - The batch (creates, patches, deletes, extensions, ownershipChanges)
92
- * @param options - Optional `currentBlock` and `txParams`
93
- * @returns The transaction hash and the batch's per-kind operation counts
94
- *
95
- * @example
96
- * const { txHash } = await client.advanced.sendMutation({
97
- * creates: [{ payload, contentType: "application/json", expires: ExpirationTime.atBlock(1_200_000n) }],
98
- * })
99
- */
100
- sendMutation: (data: EntityMutationOps, options?: SendMutationOptions) => Promise<SendMutationReturnType>;
101
- };
102
- //#endregion
103
11
  //#region src/clients/decorators/arkivPublic.d.ts
104
12
  type PublicArkivActions<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined> = Pick<PublicActions<transport, chain, account>, "getBalance" | "getBlock" | "getBlockNumber" | "getChainId" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "waitForTransactionReceipt" | "watchEvent"> & {
105
13
  /**
106
14
  * Returns the entity with the given key.
107
15
  *
108
- * - Docs: https://docs.arkiv.network/ts-sdk/actions/public/getEntity
16
+ * - JSON-RPC Methods: `arkiv_query`
109
17
  *
110
18
  * @param key - The entity key (hex string)
111
19
  * @returns The entity with the given key, with every field populated. {@link FullEntity}
112
20
  *
21
+ * @throws {InvalidValueError} If the key is not 32 bytes.
22
+ * @throws {NoEntityFoundError} If no live entity has that key — it never existed, or it was
23
+ * deleted or has expired.
24
+ *
113
25
  * @example
114
26
  * import { createPublicClient } from "@arkiv-network/sdk"
115
27
  * import { cheesecake } from "@arkiv-network/sdk/chains"
@@ -135,7 +47,7 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
135
47
  * read entities. You declare up front which parts of an entity you want returned, so results
136
48
  * always contain exactly the data you asked for.
137
49
  *
138
- * - Docs: https://docs.arkiv.network/ts-sdk/actions/public/query
50
+ * - JSON-RPC Methods: `arkiv_query`
139
51
  *
140
52
  * @param selection - What to include in the results. Omit it (or pass `"*"`) to select everything,
141
53
  * or pass an object to select specific parts (at least one field is required). Every part is
@@ -195,7 +107,7 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
195
107
  /**
196
108
  * Runs one query and returns one page, with no builder in between.
197
109
  *
198
- * Use {@link select} for anything typed — this returns full {@link Entity} objects whatever the
110
+ * Use {@link PublicArkivActions.select} for anything typed — this returns full {@link Entity} objects whatever the
199
111
  * selection, and takes a raw string as an escape hatch for a query built elsewhere. A raw string
200
112
  * goes to the node exactly as written, with none of the name, type or operator checks the
201
113
  * expression combinators apply.
@@ -286,7 +198,7 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
286
198
  * import { key } from "@arkiv-network/sdk/attr"
287
199
  *
288
200
  * const [parent, child] = await client.predictEntityKeys({ owner: account.address, count: 2 })
289
- * await wallet.mutateEntities({
201
+ * await wallet.executeBatch({
290
202
  * creates: [
291
203
  * { payload, contentType, expires, salt: parent.salt },
292
204
  * {
@@ -299,7 +211,7 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
299
211
  * ],
300
212
  * })
301
213
  */
302
- predictEntityKeys: <const TCount extends number = number, const TSalts extends readonly bigint[] | undefined = undefined>(parameters: PredictEntityKeysParameters<TCount, TSalts>) => Promise<PredictEntityKeysReturnType<TCount, TSalts>>;
214
+ predictEntityKeys: <const TCount extends number = number, const TSalts extends readonly SaltInput[] | undefined = undefined>(parameters: PredictEntityKeysParameters<TCount, TSalts>) => Promise<PredictEntityKeysReturnType<TCount, TSalts>>;
303
215
  /**
304
216
  * Returns the current block timing.
305
217
  * @returns The current block timing. {@link GetBlockTimingReturnType}
@@ -320,11 +232,7 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
320
232
  * // blockDuration: 2, // in seconds
321
233
  * // }
322
234
  */
323
- getBlockTiming: () => Promise<{
324
- currentBlock: bigint;
325
- currentBlockTime: number;
326
- blockDuration: number;
327
- }>;
235
+ getBlockTiming: () => Promise<GetBlockTimingReturnType>;
328
236
  /**
329
237
  * Watches entity events, calling the handlers you pass as they arrive.
330
238
  *
@@ -352,28 +260,19 @@ type PublicArkivActions<transport extends Transport = Transport, chain extends C
352
260
  * unwatch() // stop watching
353
261
  */
354
262
  watchEntityEvents: (parameters: WatchEntityEventsParameters) => () => void;
355
- /**
356
- * The read-only half of the advanced path: check on a transaction and decode its result with at
357
- * most one RPC call per action — so a process that holds nothing but a transaction hash can
358
- * follow it without a wallet. {@link PublicAdvancedActions}
359
- *
360
- * @example
361
- * const { status } = await client.advanced.pingTransaction(txHash) // 1 eth_getTransactionReceipt
362
- */
363
- advanced: PublicAdvancedActions;
364
263
  };
365
264
  //#endregion
366
265
  //#region src/clients/createPublicClient.d.ts
367
266
  type PublicArkivClient<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, accountOrAddress extends Account | undefined = undefined, rpcSchema extends RpcSchema | undefined = ArkivRpcSchema> = Prettify<Client<transport, chain, accountOrAddress, rpcSchema, PublicArkivActions<transport, chain>>>;
368
267
  /**
369
- * Creates a Public Client with a given [Transport](https://viem.sh/docs/clients/intro) configured for a [Chain](https://viem.sh/docs/clients/chains).
370
- *
371
- * - Docs: https://docs.arkiv.network/ts-sdk/clients/public
268
+ * Creates a Public Client with a given [Transport](https://viem.sh/docs/clients/intro) configured for a [Chain](https://viem.sh/docs/chains/introduction).
372
269
  *
373
- * A Public Client is an interface to "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/), [Arkiv JSON-RPC API](https://docs.arkiv.network/json-rpc/), and [Cheesecake JSON-RPC API](https://rpc.cheesecake.db-chain.devnet.gobas.me) methods such as retrieving block numbers, transactions, reading from smart contracts, etc through [Public Actions](/docs/actions/public/introduction).
270
+ * A Public Client is an interface to the "public" [Ethereum JSON-RPC API](https://ethereum.org/en/developers/docs/apis/json-rpc/)
271
+ * and the Arkiv JSON-RPC API — retrieving block numbers and transactions, reading from
272
+ * contracts, and querying entities — through {@link PublicArkivActions}.
374
273
  *
375
274
  * @param parameters - Configuration object for the public client (chain, transport, etc.)
376
- * @returns A Arkiv Public Client. {@link PublicArkivClient}
275
+ * @returns An Arkiv Public Client. {@link PublicArkivClient}
377
276
  *
378
277
  * @example
379
278
  * import { createPublicClient } from "@arkiv-network/sdk"
@@ -392,12 +291,12 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
392
291
  /**
393
292
  * Creates a new entity.
394
293
  *
395
- * - Docs: https://docs.arkiv.network/ts-sdk/actions/wallet/createEntity
396
- * - JSON-RPC Methods: [`eth_sendRawTransaction`](https://docs.arkiv.network/dev/json-rpc-api/#mutateEntities)
294
+ * - JSON-RPC Methods: `eth_sendRawTransaction`
397
295
  *
398
296
  * @param data - The entity creation parameters
399
297
  * @param txParams - Optional transaction parameters
400
- * @returns The created entity with transaction hash
298
+ * @returns The new entity's key, the transaction hash, and the block it is expected to
299
+ * expire at. {@link CreateEntityReturnType}
401
300
  *
402
301
  * @throws {InvalidExpiryError} If the expiry exceeds a protocol bound or would leave the
403
302
  * entity dead on arrival.
@@ -409,8 +308,10 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
409
308
  * import { i32 } from "@arkiv-network/sdk/attr"
410
309
  * import { cheesecake } from "@arkiv-network/sdk/chains"
411
310
  * import { http } from "viem"
311
+ * import { privateKeyToAccount } from "viem/accounts"
412
312
  *
413
313
  * const client = createWalletClient({
314
+ * account: privateKeyToAccount("0x..."),
414
315
  * chain: cheesecake,
415
316
  * transport: http(),
416
317
  * })
@@ -426,12 +327,11 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
426
327
  * Applies a patch to the entity with the given key: sets some fields, unsets others, and leaves
427
328
  * everything it does not name alone.
428
329
  *
429
- * - Docs: https://docs.arkiv.network/ts-sdk/actions/wallet/patchEntity
430
- * - JSON-RPC Methods: [`eth_sendRawTransaction`](https://docs.arkiv.network/dev/json-rpc-api/#mutateEntities)
330
+ * - JSON-RPC Methods: `eth_sendRawTransaction`
431
331
  *
432
332
  * @param data - The entity key and the mutations to apply
433
333
  * @param txParams - Optional transaction parameters
434
- * @returns The entity key and the transaction hash
334
+ * @returns The patched entity's key and the transaction hash. {@link PatchEntityReturnType}
435
335
  *
436
336
  * @throws {EmptyPatchError} If the patch has nothing to apply.
437
337
  * @throws {ConflictingMutationError} If a name appears in both `set` and `unset`.
@@ -443,8 +343,10 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
443
343
  * import { i32 } from "@arkiv-network/sdk/attr"
444
344
  * import { cheesecake } from "@arkiv-network/sdk/chains"
445
345
  * import { http } from "viem"
346
+ * import { privateKeyToAccount } from "viem/accounts"
446
347
  *
447
348
  * const client = createWalletClient({
349
+ * account: privateKeyToAccount("0x..."),
448
350
  * chain: cheesecake,
449
351
  * transport: http(),
450
352
  * })
@@ -460,19 +362,20 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
460
362
  /**
461
363
  * Deletes the entity with the given key.
462
364
  *
463
- * - Docs: https://docs.arkiv.network/ts-sdk/actions/wallet/deleteEntity
464
- * - JSON-RPC Methods: [`eth_sendRawTransaction`](https://docs.arkiv.network/dev/json-rpc-api/#mutateEntities)
365
+ * - JSON-RPC Methods: `eth_sendRawTransaction`
465
366
  *
466
367
  * @param data - The entity deletion parameters
467
368
  * @param txParams - Optional transaction parameters
468
- * @returns The deleted entity with transaction hash
369
+ * @returns The deleted entity's key and the transaction hash. {@link DeleteEntityReturnType}
469
370
  *
470
371
  * @example
471
372
  * import { createWalletClient } from "@arkiv-network/sdk"
472
373
  * import { cheesecake } from "@arkiv-network/sdk/chains"
473
374
  * import { http } from "viem"
375
+ * import { privateKeyToAccount } from "viem/accounts"
474
376
  *
475
377
  * const client = createWalletClient({
378
+ * account: privateKeyToAccount("0x..."),
476
379
  * chain: cheesecake,
477
380
  * transport: http(),
478
381
  * })
@@ -487,12 +390,12 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
487
390
  * than adding to what the entity has left, and `atBlock` / `atDate` pin an absolute deadline.
488
391
  * The engine rejects an extension that would not move the expiry later.
489
392
  *
490
- * - Docs: https://docs.arkiv.network/ts-sdk/actions/wallet/extendEntity
491
- * - JSON-RPC Methods: [`eth_sendRawTransaction`](https://docs.arkiv.network/dev/json-rpc-api/#mutateEntities)
393
+ * - JSON-RPC Methods: `eth_sendRawTransaction`
492
394
  *
493
395
  * @param data - The entity key and its new lifetime
494
396
  * @param txParams - Optional transaction parameters
495
- * @returns The entity key, transaction hash, and the block it is now expected to expire at
397
+ * @returns The entity's key, the transaction hash, and the block it is now expected to expire
398
+ * at. {@link ExtendEntityReturnType}
496
399
  *
497
400
  * @throws {InvalidExpiryError} If the expiry is malformed, exceeds a protocol bound, or would
498
401
  * leave the entity dead on arrival.
@@ -501,8 +404,10 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
501
404
  * import { createWalletClient, ExpirationTime } from "@arkiv-network/sdk"
502
405
  * import { cheesecake } from "@arkiv-network/sdk/chains"
503
406
  * import { http } from "viem"
407
+ * import { privateKeyToAccount } from "viem/accounts"
504
408
  *
505
409
  * const client = createWalletClient({
410
+ * account: privateKeyToAccount("0x..."),
506
411
  * chain: cheesecake,
507
412
  * transport: http(),
508
413
  * })
@@ -513,28 +418,28 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
513
418
  */
514
419
  extendEntity: (data: ExtendEntityParameters, txParams?: TxParams) => Promise<ExtendEntityReturnType>;
515
420
  /**
516
- * Changes the ownership of the entity with the given address.
421
+ * Hands the entity with the given key to a new owner.
517
422
  *
518
- * - Docs: https://docs.arkiv.network/ts-sdk/actions/wallet/changeOwnership
519
- * - JSON-RPC Methods: [`eth_sendRawTransaction`](https://docs.arkiv.network/dev/json-rpc-api/#mutateEntities)
423
+ * - JSON-RPC Methods: `eth_sendRawTransaction`
520
424
  *
521
425
  * @param data - The ownership change parameters
522
426
  * @param txParams - Optional transaction parameters
523
- * @returns The entity with updated ownership and transaction hash
427
+ * @returns The entity's key and the transaction hash. {@link ChangeOwnershipReturnType}
524
428
  */
525
429
  changeOwnership: (data: ChangeOwnershipParameters, txParams?: TxParams) => Promise<ChangeOwnershipReturnType>;
526
430
  /**
527
- * Mutates the entities with the given keys.
431
+ * Applies a batch of entity operations — creates, patches, deletes, extensions and ownership
432
+ * transfers — in one transaction.
528
433
  *
529
- * - Docs: https://docs.arkiv.network/ts-sdk/actions/wallet/mutateEntities
530
- * - JSON-RPC Methods: [`eth_sendRawTransaction`](https://docs.arkiv.network/dev/json-rpc-api/#mutateEntities)
434
+ * - JSON-RPC Methods: `eth_sendRawTransaction`
531
435
  *
532
436
  * Every operation lands in one transaction, so the whole batch applies or none of it does.
533
437
  * At least one operation is required.
534
438
  *
535
- * @param data - The mutation parameters (creates, patches, deletes, extensions, ownershipChanges)
439
+ * @param data - The batch parameters (creates, patches, deletes, extensions, ownershipChanges)
536
440
  * @param txParams - Optional transaction parameters
537
- * @returns The mutation result with transaction hash
441
+ * @returns The transaction hash, plus the keys touched by each kind of operation.
442
+ * {@link ExecuteBatchReturnType}
538
443
  *
539
444
  * @throws {InvalidExpiryError} If an expiry exceeds a protocol bound or would leave the entity
540
445
  * dead on arrival.
@@ -544,12 +449,14 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
544
449
  * import { createWalletClient, ExpirationTime, jsonToPayload } from "@arkiv-network/sdk"
545
450
  * import { cheesecake } from "@arkiv-network/sdk/chains"
546
451
  * import { http } from "viem"
452
+ * import { privateKeyToAccount } from "viem/accounts"
547
453
  *
548
454
  * const client = createWalletClient({
455
+ * account: privateKeyToAccount("0x..."),
549
456
  * chain: cheesecake,
550
457
  * transport: http(),
551
458
  * })
552
- * const { txHash, createdEntities } = await client.mutateEntities({
459
+ * const { txHash, createdEntities } = await client.executeBatch({
553
460
  * creates: [{
554
461
  * payload: jsonToPayload({ entityType: "testType", entityId: "testId" }),
555
462
  * contentType: "application/json",
@@ -565,35 +472,21 @@ type WalletArkivActions<transport extends Transport = Transport, chain extends C
565
472
  * ownershipChanges: [{ entityKey: keyToHandOver, newOwner }],
566
473
  * })
567
474
  */
568
- mutateEntities: (data: MutateEntitiesParameters, txParams?: TxParams) => Promise<MutateEntitiesReturnType>;
569
- /**
570
- * The advanced path: build, send, ping and read mutation results as separate steps, each
571
- * costing the minimum number of RPC calls. Use it when you are optimising your RPC budget;
572
- * the everyday actions above remain the right default. {@link WalletAdvancedActions}
573
- *
574
- * @example
575
- * const { txHash } = await client.advanced.sendMutation({ creates: [entity] }) // no waiting
576
- * // ... later, one eth_getTransactionReceipt on your own schedule:
577
- * const result = await client.advanced.getMutationResult(txHash)
578
- * if (result.status === "success") console.log(result.createdEntities)
579
- */
580
- advanced: WalletAdvancedActions;
475
+ executeBatch: (data: ExecuteBatchParameters, txParams?: TxParams) => Promise<ExecuteBatchReturnType>;
581
476
  };
582
477
  //#endregion
583
478
  //#region src/clients/createWalletClient.d.ts
584
479
  type WalletArkivClient<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined, rpcSchema extends RpcSchema | undefined = ArkivRpcSchema> = Prettify<Client<transport, chain, account, rpcSchema, WalletArkivActions<transport, chain, account>>>;
585
480
  /**
586
481
  * Creates a Wallet Client with a given [Transport](https://viem.sh/docs/clients/intro) configured
587
- * for a [Chain](https://viem.sh/docs/clients/chains) and an account.
588
- *
589
- * - Docs: https://docs.arkiv.network/ts-sdk/clients/wallet
482
+ * for a [Chain](https://viem.sh/docs/chains/introduction) and an account.
590
483
  *
591
484
  * A Wallet Client signs and sends transactions, so it carries an `account` and exposes everything
592
485
  * that mutates state — `createEntity`, `patchEntity`, `deleteEntity`, `extendEntity`,
593
- * `changeOwnership` and `mutateEntities` — on top of the read actions a Public Client has.
486
+ * `changeOwnership` and `executeBatch` — on top of the read actions a Public Client has.
594
487
  *
595
488
  * @param parameters - Configuration object for the wallet client (chain, transport, account, etc.)
596
- * @returns A Arkiv Wallet Client. {@link WalletArkivClient}
489
+ * @returns An Arkiv Wallet Client. {@link WalletArkivClient}
597
490
  *
598
491
  * @example
599
492
  * import { createWalletClient } from "@arkiv-network/sdk"
@@ -640,5 +533,5 @@ declare class InvalidContentTypeError extends Error {
640
533
  */
641
534
  declare function chainFromName(name: string): Chain;
642
535
  //#endregion
643
- export { AddrValue, AnyArkivValue, type ArkivClient, ArkivRpcSchema, ArkivValue, AttributeInputs, AttributeSchema, Attributes, BoolValue, BuildMutationOptions, BuildMutationReturnType, Bytes32Value, BytesValue, ChangeOwnershipParameters, ChangeOwnershipReturnType, ConflictingMutationError, CreateEntityParameters, CreateEntityReturnType, CreationFlags, DECIMAL_SCALE, DECIMAL_UNIT, type DeadlineOptions, DecValue, DeleteEntityParameters, DeleteEntityReturnType, ENTITY_EVENTS_ABI, EmptyPatchError, EncodedExpiry, Entity, EntityCreatedEvent, EntityDeletedEvent, EntityEvent, EntityEventContext, EntityEventName, EntityFields, EntityMutationError, type EntityMutationOps, EntityPatchedEvent, ExpirationTime, Expiry, ExpiryContext, ExpiryExtendedEvent, ExtendEntityParameters, ExtendEntityReturnType, GetBlockTimingReturnType, GetMutationResultReturnType, I32Value, I32_MAX, I32_MIN, InvalidAttributeNameError, InvalidContentTypeError, InvalidCreationFlagsError, InvalidExpiryError, InvalidSaltError, InvalidValueError, KeyValue, Lifetime, MAX_ATTRIBUTES, MAX_EXPIRES_AT, MAX_NAME_BYTES, MAX_PAYLOAD_BYTES, MAX_SALT, MAX_STRING_BYTES, MimeType, MissingValueError, MutateEntitiesParameters, MutateEntitiesReturnType, type MutationEvents, MutationResult, NoEntityFoundError, NoMoreResultsError, NoRandomSourceError, Operation, OperationType, OwnershipTransferredEvent, PatchEntityParameters, PatchEntityReturnType, PingTransactionReturnType, PredictEntityKeysParameters, PredictEntityKeysReturnType, PredictedEntityKey, type PublicAdvancedActions, type PublicArkivActions, type PublicArkivClient, QueryOptions, QueryReturnType, ResolvedCreationFlags, ResolvedExpiry, RpcAttribute, RpcAttributeSchemaEntry, RpcCreationFlags, RpcEntity, RpcQueryOptions, RpcSelect, SendMutationOptions, SendMutationReturnType, StrValue, TooManyAttributesError, TxParams, TypeTag, U256Value, U256_MAX, U64Value, U64_MAX, UnknownAttributeTypeError, UntypedValueError, UserTypeTag, ValueInput, type WalletAdvancedActions, type WalletArkivActions, type WalletArkivClient, WatchEntityEventsParameters, addr, bool, buildEntityOperations, buildMutation, bytes32, chainFromName, collectMutationEvents, createPublicClient, createWalletClient, dec, decFromUnits, decUnits, decodeCreationFlags, decodeMutationResult, encodeCreationFlags, getMutationResult, i32, isArkivValue, isValidAttributeName, jsonToPayload, key, mutationNeedsBlockNumber, pingTransaction, predictEntityKey, randomSalt, resolveExpiry, sendMutation, str, stringToPayload, toBlocks, toValue, u256, u64, validateAttributeName };
536
+ export { AddrValue, AnyArkivValue, type ArkivClient, ArkivRpcSchema, ArkivValue, AttributeInputs, AttributeSchema, Attributes, BoolValue, Bytes32Value, BytesValue, ChangeOwnershipParameters, ChangeOwnershipReturnType, ConflictingMutationError, CreateEntityParameters, CreateEntityReturnType, CreationFlags, DECIMAL_SCALE, DECIMAL_UNIT, type DeadlineOptions, DecValue, DeleteEntityParameters, DeleteEntityReturnType, ENTITY_EVENTS_ABI, EmptyPatchError, EncodedExpiry, Entity, EntityCreatedEvent, EntityDeletedEvent, EntityEvent, EntityEventContext, EntityEventName, EntityFields, EntityMutationError, EntityPatchedEvent, ExecuteBatchParameters, ExecuteBatchReturnType, ExpirationTime, Expiry, ExpiryContext, ExpiryExtendedEvent, ExtendEntityParameters, ExtendEntityReturnType, GetBlockTimingReturnType, I32Value, I32_MAX, I32_MIN, InvalidAttributeNameError, InvalidContentTypeError, InvalidCreationFlagsError, InvalidExpiryError, InvalidSaltError, InvalidValueError, KeyValue, Lifetime, MAX_ATTRIBUTES, MAX_EXPIRES_AT, MAX_NAME_BYTES, MAX_PAYLOAD_BYTES, MAX_SALT, MAX_STRING_BYTES, MimeType, MissingValueError, NO_SALT, NoEntityFoundError, NoMoreResultsError, NoRandomSourceError, OperationType, OwnershipTransferredEvent, PatchEntityParameters, PatchEntityReturnType, PredictEntityKeysParameters, PredictEntityKeysReturnType, PredictedEntityKey, type PublicArkivActions, type PublicArkivClient, QueryOptions, QueryReturnType, ResolvedCreationFlags, ResolvedExpiry, RpcAttribute, RpcAttributeSchemaEntry, RpcCreationFlags, RpcEntity, RpcQueryOptions, RpcSelect, SaltInput, StrValue, TooManyAttributesError, TxParams, TypeTag, U256Value, U256_MAX, U64Value, U64_MAX, UnknownAttributeTypeError, UntypedValueError, UserTypeTag, ValueInput, type WalletArkivActions, type WalletArkivClient, WatchEntityEventsParameters, addr, bool, bytes32, chainFromName, createPublicClient, createWalletClient, dec, decFromUnits, decUnits, decodeCreationFlags, encodeCreationFlags, i32, isArkivValue, isValidAttributeName, jsonToPayload, key, predictEntityKey, randomSalt, resolveExpiry, str, stringToPayload, toBlocks, toValue, u256, u64, validateAttributeName };
644
537
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/clients/decorators/arkivAdvanced.ts","../src/clients/decorators/arkivPublic.ts","../src/clients/createPublicClient.ts","../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,CAAA,IAAA,EDmOQ,wBCnOR,EAAA,QAAA,CAAA,EDoOa,QCpOb,EAAA,GDqOK,OCrOL,CDqOa,wBCrOb,CAAA;EAAQ;AA6BZ;;;;;;;;;;EAMqE,QAAA,ED+MvD,qBC/MuD;CAAvD;;;KAxCF,oCACQ,YAAY,yBAChB,oBAAoB,mCAClB,sBAAsB,uCACpB,wBAAwB,kBACxC,SACF,OAAO,WAAW,OAAO,SAAS,WAAW,mBAAmB,WAAW,OAAO;;;;;;;;;;AJKpF;;;;;;;;;;AA0DA;;;;;;AA8BU,iBIjEM,kBJiEN,CAAA,kBIhEU,SJgEV,EAAA,cI/DM,KJ+DN,GAAA,SAAA,GAAA,SAAA,EAAA,yBI9DiB,OJ8DjB,GI9D2B,OJ8D3B,GAAA,SAAA,GAAA,SAAA,EAAA,kBI7DU,SJ6DV,GAAA,SAAA,GI7DkC,cJ6DlC,CAAA,CAAA,UAAA,EI3DI,kBJ2DJ,CI3DuB,SJ2DvB,EI3DkC,KJ2DlC,EI3DyC,gBJ2DzC,EI3D2D,SJ2D3D,CAAA,CAAA,EI1DP,iBJ0DO,CI1DW,SJ0DX,EI1DsB,KJ0DtB,EI1D6B,YJ0D7B,CI1D0C,gBJ0D1C,CAAA,EI1D6D,SJ0D7D,CAAA;;;cKlHG,mBAAA,SAA4B,KAAA;;;;;cAM5B,kBAAA,SAA2B,KAAA;;;cAO3B,kBAAA,SAA2B,KAAA;;;;;ALa5B,cKGC,eAAA,SAAwB,KAAA,CLHJ;EAaL,SAAA,SAAA,EAAA,MAAA;EAAiB,WAAA,CAAA,SAAA,EAAA,MAAA;;AAef,cKZjB,uBAAA,SAAgC,KAAA,CLYf;EAAiB,WAAA,CAAA,WAAA,EAAA,MAAA;;;;;;;;;;iBM1C/B,aAAA,gBAA6B"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/clients/decorators/arkivPublic.ts","../src/clients/createPublicClient.ts","../src/clients/decorators/arkivWallet.ts","../src/clients/createWalletClient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