@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
@@ -1,9 +1,9 @@
1
- import { i as SelectArg, s as Entity } from "./selection-C4UhsMOO.js";
2
- import { n as Expiry, r as ExpiryContext } from "./expiry-nDbCgZX4.js";
3
- import { f as Operation } from "./index-fX_XyqLp.js";
4
- import { p as AttributeInputs } from "./index-DvYvrkdk.js";
5
- import { n as ResolvedCreationFlags, t as CreationFlags } from "./flags-5dTNRnow.js";
6
- import { Address, Hash, Hex, TransactionReceipt } from "viem";
1
+ import { p as AttributeInputs } from "./index-Cd2aaWme.js";
2
+ import { a as SaltInput } from "./index-ezMZ2-JH.js";
3
+ import { n as Expiry } from "./expiry-BxOlvVWC.js";
4
+ import { n as ResolvedCreationFlags, t as CreationFlags } from "./flags-wmcMoAnN.js";
5
+ import { i as SelectArg, k as Entity } from "./selection-ox7zdtVm.js";
6
+ import { Address, Hash, Hex } from "viem";
7
7
 
8
8
  //#region src/actions/public/getBlockTiming.d.ts
9
9
  type GetBlockTimingReturnType = {
@@ -22,11 +22,15 @@ type GetBlockTimingReturnType = {
22
22
  type PredictedEntityKey = {
23
23
  /** The key the create will be given. */
24
24
  key: Hex;
25
- /** The salt the create must carry for its key to come out as {@link PredictedEntityKey.key}. */
25
+ /**
26
+ * The salt the create must carry for its key to come out as {@link PredictedEntityKey.key}.
27
+ * Always a plain `uint128` — a requested {@link NO_SALT} comes back as the `0n` it resolves to,
28
+ * which a create accepts just the same.
29
+ */
26
30
  salt: bigint;
27
31
  };
28
- /** Parameters for {@link predictEntityKeys}. */
29
- type PredictEntityKeysParameters<TCount extends number = number, TSalts extends readonly bigint[] | undefined = readonly bigint[] | undefined> = {
32
+ /** Parameters for `client.predictEntityKeys`. */
33
+ type PredictEntityKeysParameters<TCount extends number = number, TSalts extends readonly SaltInput[] | undefined = readonly SaltInput[] | undefined> = {
30
34
  /** The account that will sign the creates. Its nonce is what the keys are derived from. */
31
35
  owner: Address;
32
36
  /**
@@ -39,7 +43,8 @@ type PredictEntityKeysParameters<TCount extends number = number, TSalts extends
39
43
  count?: TCount | undefined;
40
44
  /**
41
45
  * The salt each create will carry, in batch order. Defaults to `count` fresh random salts —
42
- * either way each key comes back paired with the salt that mints it.
46
+ * either way each key comes back paired with the salt that mints it. Pass {@link NO_SALT} in a
47
+ * slot whose create opts out of salting.
43
48
  */
44
49
  salts?: TSalts;
45
50
  };
@@ -50,10 +55,10 @@ type PredictEntityKeysParameters<TCount extends number = number, TSalts extends
50
55
  * tuple, gives a fixed-length tuple; a count computed at runtime gives a plain array.
51
56
  *
52
57
  * `TSalts` is wrapped in a tuple to stop the conditional distributing over it. Left naked, the
53
- * `readonly bigint[] | undefined` default would take both branches and union a tuple with an array,
54
- * which widens the length straight back to `number`.
58
+ * `readonly SaltInput[] | undefined` default would take both branches and union a tuple with an
59
+ * array, which widens the length straight back to `number`.
55
60
  */
56
- type PredictEntityKeysReturnType<TCount extends number = number, TSalts extends readonly bigint[] | undefined = readonly bigint[] | undefined> = [TSalts] extends [readonly bigint[]] ? { -readonly [Index in keyof TSalts]: PredictedEntityKey } : Repeat<PredictedEntityKey, TCount>;
61
+ type PredictEntityKeysReturnType<TCount extends number = number, TSalts extends readonly SaltInput[] | undefined = readonly SaltInput[] | undefined> = [TSalts] extends [readonly SaltInput[]] ? { -readonly [Index in keyof TSalts]: PredictedEntityKey } : Repeat<PredictedEntityKey, TCount>;
57
62
  /**
58
63
  * A tuple of `TLength` × `T`, or a plain array when the length is only known at runtime.
59
64
  *
@@ -72,7 +77,7 @@ type Repeat<T, TLength extends number, TAcc extends T[] = []> = number extends T
72
77
  *
73
78
  * The prediction is valid only while nothing else from this owner is in flight. Every create that
74
79
  * lands first takes the nonce with it and moves these keys. For a key you can rely on
75
- * unconditionally, read it back from the create instead — `createEntity` and `mutateEntities`
80
+ * unconditionally, read it back from the create instead — `createEntity` and `executeBatch`
76
81
  * report the keys the engine actually minted.
77
82
  *
78
83
  * @param parameters - Owner, and either a count or the salts. {@link PredictEntityKeysParameters}
@@ -82,7 +87,7 @@ type Repeat<T, TLength extends number, TAcc extends T[] = []> = number extends T
82
87
  * import { key } from "@arkiv-network/sdk/attr"
83
88
  *
84
89
  * const [parent, child] = await client.predictEntityKeys({ owner: account.address, count: 2 })
85
- * await wallet.mutateEntities({
90
+ * await client.executeBatch({
86
91
  * creates: [
87
92
  * { payload, contentType, expires, salt: parent.salt },
88
93
  * {
@@ -104,11 +109,7 @@ type QueryOptions = {
104
109
  atBlock?: bigint | undefined;
105
110
  /** Page size, up to the node maximum of 200. */
106
111
  limit?: number | undefined;
107
- /**
108
- * Cursor from a previous page. Requires that page's `blockNumber` as {@link atBlock} alongside
109
- * it — the cursor is bound to the block it was issued at, so persist the two together. A cursor
110
- * without a block is rejected locally rather than left to fail whenever a block lands mid-walk.
111
- */
112
+ /** Cursor from a previous page. */
112
113
  cursor?: string | undefined;
113
114
  };
114
115
  type QueryReturnType = {
@@ -278,8 +279,8 @@ type CreateEntityParameters = {
278
279
  contentType: MimeType | (string & {});
279
280
  /**
280
281
  * The entity's queryable attributes, keyed by name. Values are the tagged constructors from
281
- * `@arkiv-network/sdk/attr` — `i32`, `u256`, `dec`, `str`, `addr`, `key`, `bytes32`, `bool` — or
282
- * a bare `boolean`, `number`, `bigint` or `string` where the type is unambiguous.
282
+ * `@arkiv-network/sdk/attr` — `i32`, `u64`, `u256`, `dec`, `str`, `addr`, `key`, `bytes32`,
283
+ * `bool` — or a bare `boolean`, `number`, `bigint` or `string` where the type is unambiguous.
283
284
  *
284
285
  * @throws {InvalidAttributeNameError} If a name violates the attribute-name grammar.
285
286
  * @throws {InvalidValueError} If a value does not fit the type it names or defaults to.
@@ -294,10 +295,10 @@ type CreateEntityParameters = {
294
295
  * The salt mixed into the entity key. Defaults to 128 random bits, which makes the key
295
296
  * unpredictable to everyone but the creator.
296
297
  *
297
- * Pass `0n` for a key derived from the owner and nonce alone — predictable by anyone, which is
298
- * what you want only when a third party must be able to compute the key in advance.
298
+ * Pass {@link NO_SALT} for a key derived from the owner and nonce alone — predictable by anyone,
299
+ * which is what you want only when a third party must be able to compute the key in advance.
299
300
  */
300
- salt?: bigint | undefined;
301
+ salt?: SaltInput | undefined;
301
302
  };
302
303
  /**
303
304
  * The result of creating an entity.
@@ -370,31 +371,6 @@ type ExtendEntityReturnType = {
370
371
  expiresAt: bigint;
371
372
  };
372
373
  //#endregion
373
- //#region src/actions/wallet/mutateEntities.d.ts
374
- /**
375
- * Parameters for the mutateEntities function — the same batch shape the advanced path takes
376
- * ({@link EntityMutationOps}), so the two surfaces cannot drift apart.
377
- *
378
- * At least one operation is required; a batch with nothing in it throws rather than spending gas on
379
- * an empty transaction.
380
- */
381
- type MutateEntitiesParameters = EntityMutationOps;
382
- /** Return type for the mutateEntities function. */
383
- type MutateEntitiesReturnType = {
384
- /** The transaction hash. */
385
- txHash: Hash;
386
- /** The keys of the created entities, in batch order. */
387
- createdEntities: Hex[];
388
- /** The keys of the patched entities. */
389
- patchedEntities: Hex[];
390
- /** The keys of the deleted entities. */
391
- deletedEntities: Hex[];
392
- /** The keys of the extended entities. */
393
- extendedEntities: Hex[];
394
- /** The keys of the entities handed to a new owner. */
395
- ownershipChanges: Hex[];
396
- };
397
- //#endregion
398
374
  //#region src/actions/wallet/patchEntity.d.ts
399
375
  /**
400
376
  * Parameters for patching an entity.
@@ -427,9 +403,9 @@ type PatchEntityParameters = {
427
403
  * Attributes to write, keyed by name. An existing attribute is overwritten — including with a
428
404
  * different type — and a name the entity does not carry yet is added.
429
405
  *
430
- * Values are the tagged constructors from `@arkiv-network/sdk/attr` — `i32`, `u256`, `dec`, `str`,
431
- * `addr`, `key`, `bytes32`, `bool` — or a bare `boolean`, `number`, `bigint` or `string` where the
432
- * type is unambiguous.
406
+ * Values are the tagged constructors from `@arkiv-network/sdk/attr` — `i32`, `u64`, `u256`,
407
+ * `dec`, `str`, `addr`, `key`, `bytes32`, `bool` — or a bare `boolean`, `number`, `bigint` or
408
+ * `string` where the type is unambiguous.
433
409
  *
434
410
  * @throws {InvalidAttributeNameError} If a name violates the attribute-name grammar.
435
411
  * @throws {InvalidValueError} If a value does not fit the type it names or defaults to.
@@ -461,10 +437,53 @@ type PatchEntityReturnType = {
461
437
  txHash: Hash;
462
438
  };
463
439
  //#endregion
440
+ //#region src/actions/wallet/executeBatch.d.ts
441
+ /**
442
+ * Parameters for the executeBatch function.
443
+ *
444
+ * At least one operation is required; a batch with nothing in it throws rather than spending gas on
445
+ * an empty transaction.
446
+ */
447
+ type ExecuteBatchParameters = {
448
+ /** The entities to create. */
449
+ creates?: CreateEntityParameters[];
450
+ /** The patches to apply. */
451
+ patches?: PatchEntityParameters[];
452
+ /** The entities to delete. */
453
+ deletes?: DeleteEntityParameters[];
454
+ /** The expiries to set. */
455
+ extensions?: ExtendEntityParameters[];
456
+ /** The ownership transfers to perform. */
457
+ ownershipChanges?: ChangeOwnershipParameters[];
458
+ };
459
+ /** Return type for the executeBatch function. */
460
+ type ExecuteBatchReturnType = {
461
+ /** The transaction hash. */
462
+ txHash: Hash;
463
+ /** The keys of the created entities, in batch order. */
464
+ createdEntities: Hex[];
465
+ /** The keys of the patched entities. */
466
+ patchedEntities: Hex[];
467
+ /** The keys of the deleted entities. */
468
+ deletedEntities: Hex[];
469
+ /** The keys of the extended entities. */
470
+ extendedEntities: Hex[];
471
+ /** The keys of the entities handed to a new owner. */
472
+ ownershipChanges: Hex[];
473
+ };
474
+ //#endregion
464
475
  //#region src/types/mimeTypes.d.ts
465
476
  type MimeType = "text/plain" | "text/html" | "text/css" | "text/csv" | "text/xml" | "text/javascript" | "application/json" | "application/xml" | "application/pdf" | "application/zip" | "application/gzip" | "application/octet-stream" | "application/javascript" | "application/x-www-form-urlencoded" | "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/svg+xml" | "audio/mpeg" | "audio/wav" | "audio/ogg" | "video/mp4" | "video/webm" | "video/ogg" | "multipart/form-data";
466
477
  //#endregion
467
478
  //#region src/types/txParams.d.ts
479
+ /**
480
+ * Transaction fields a write action passes through to the wallet, for the cases where the defaults
481
+ * are not what you want.
482
+ *
483
+ * Fee style is either/or: give `gasPrice` for a legacy transaction, or `maxFeePerGas` /
484
+ * `maxPriorityFeePerGas` for an EIP-1559 one. Mixing the two does not typecheck. Anything left out
485
+ * is estimated.
486
+ */
468
487
  type TxParams = {
469
488
  gas?: bigint;
470
489
  nonce?: number;
@@ -499,73 +518,5 @@ type ChangeOwnershipReturnType = {
499
518
  txHash: Hash;
500
519
  };
501
520
  //#endregion
502
- //#region src/utils/arkivTransactions.d.ts
503
-
504
- /** The five kinds of entity operation one Arkiv transaction can batch. */
505
- type EntityMutationOps = {
506
- /** The entities to create. */
507
- creates?: CreateEntityParameters[];
508
- /** The patches to apply. */
509
- patches?: PatchEntityParameters[];
510
- /** The entities to delete. */
511
- deletes?: DeleteEntityParameters[];
512
- /** The expiries to set. */
513
- extensions?: ExtendEntityParameters[];
514
- /** The ownership transfers to perform. */
515
- ownershipChanges?: ChangeOwnershipParameters[];
516
- };
517
- /**
518
- * Whether encoding the batch actually requires the chain head.
519
- *
520
- * Only a relative lifetime (`minLifetime > 0`) or a wall-clock deadline (a `Date`) is measured
521
- * from the current block. A purely absolute `atBlock(n)` expiry encodes the same bytes whatever
522
- * the head is, so a batch of those — or one with no expiries at all — needs no `eth_blockNumber`.
523
- */
524
- declare function mutationNeedsBlockNumber(ops: EntityMutationOps): boolean;
525
- /**
526
- * Encodes a batch into the `execute` operations, in the order the engine applies them: creates,
527
- * patches, deletes, extensions, ownership transfers.
528
- *
529
- * Pure — every check here is local (content types, salts, expiry bounds, non-empty patches and a
530
- * non-empty batch), so the only chain input is `context.currentBlock`. Callers that carry no
531
- * relative expiry (see {@link mutationNeedsBlockNumber}) can pass `0n`, which disables the
532
- * dead-on-arrival pre-check and leaves that to the engine.
533
- */
534
- declare function buildEntityOperations(ops: EntityMutationOps, context: ExpiryContext): Operation[];
535
- /** Everything the batch's events say happened, one entry per applied operation, per kind. */
536
- type MutationEvents = {
537
- created: {
538
- entityKey: Hex;
539
- owner: Address;
540
- expiresAt: bigint;
541
- }[];
542
- patched: {
543
- entityKey: Hex;
544
- owner: Address;
545
- }[];
546
- deleted: {
547
- entityKey: Hex;
548
- owner: Address;
549
- }[];
550
- extended: {
551
- entityKey: Hex;
552
- owner: Address;
553
- expiresAt: bigint;
554
- }[];
555
- ownershipTransferred: {
556
- entityKey: Hex;
557
- previousOwner: Address;
558
- newOwner: Address;
559
- }[];
560
- };
561
- /**
562
- * Reads the entity events out of a receipt's logs, exactly as they were emitted.
563
- *
564
- * Lenient by design: it reports what the events say and nothing else — no counting against what
565
- * was asked for (the caller may not have the request at hand) and no error for a receipt with no
566
- * entity events at all. Logs from other contracts and events this SDK has no name for are skipped.
567
- */
568
- declare function collectMutationEvents(logs: TransactionReceipt["logs"]): MutationEvents;
569
- //#endregion
570
- export { PredictEntityKeysParameters as A, EntityEvent as C, OwnershipTransferredEvent as D, ExpiryExtendedEvent as E, PredictedEntityKey as M, GetBlockTimingReturnType as N, QueryOptions as O, EntityDeletedEvent as S, EntityPatchedEvent as T, DeleteEntityReturnType as _, mutationNeedsBlockNumber as a, WatchEntityEventsParameters as b, TxParams as c, PatchEntityReturnType as d, MutateEntitiesParameters as f, DeleteEntityParameters as g, ExtendEntityReturnType as h, collectMutationEvents as i, PredictEntityKeysReturnType as j, QueryReturnType as k, MimeType as l, ExtendEntityParameters as m, MutationEvents as n, ChangeOwnershipParameters as o, MutateEntitiesReturnType as p, buildEntityOperations as r, ChangeOwnershipReturnType as s, EntityMutationOps as t, PatchEntityParameters as u, CreateEntityParameters as v, EntityEventContext as w, EntityCreatedEvent as x, CreateEntityReturnType as y };
571
- //# sourceMappingURL=arkivTransactions-NtGD6uk5.d.ts.map
521
+ export { QueryOptions as C, PredictedEntityKey as D, PredictEntityKeysReturnType as E, GetBlockTimingReturnType as O, OwnershipTransferredEvent as S, PredictEntityKeysParameters as T, EntityDeletedEvent as _, ExecuteBatchParameters as a, EntityPatchedEvent as b, PatchEntityReturnType as c, DeleteEntityParameters as d, DeleteEntityReturnType as f, EntityCreatedEvent as g, WatchEntityEventsParameters as h, MimeType as i, ExtendEntityParameters as l, CreateEntityReturnType as m, ChangeOwnershipReturnType as n, ExecuteBatchReturnType as o, CreateEntityParameters as p, TxParams as r, PatchEntityParameters as s, ChangeOwnershipParameters as t, ExtendEntityReturnType as u, EntityEvent as v, QueryReturnType as w, ExpiryExtendedEvent as x, EntityEventContext as y };
522
+ //# sourceMappingURL=changeOwnership-B0ar96ub.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changeOwnership-B0ar96ub.d.ts","names":[],"sources":["../src/actions/public/getBlockTiming.ts","../src/actions/public/predictEntityKeys.ts","../src/actions/public/query.ts","../src/types/events.ts","../src/actions/public/watchEntityEvents.ts","../src/actions/wallet/createEntity.ts","../src/actions/wallet/deleteEntity.ts","../src/actions/wallet/extendEntity.ts","../src/actions/wallet/patchEntity.ts","../src/actions/wallet/executeBatch.ts","../src/types/mimeTypes.ts","../src/types/txParams.ts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AA,GXHA;;;;ECaA,YAAA,CAAA,EAAA,KAAA;EAYA,oBAAA,CAAA,EAAA,KAAA;CAEc,GAAA;EAAmC,GAAA,CAAA,EAAA,MAAA;EAGpD,KAAA,CAAA,EAAA,MAAA;EAQC,YAAA,CAAA,EAAA,MAAA;EAMA,oBAAA,CAAA,EAAA,MAAA;EAAM,QAAA,CAAA,EAAA,KAAA;AAahB,CAAA;;;;;;;;ADzDY,KYQA,yBAAA,GZRwB;aYSvB;YACD;;AXGZ;AAYA;;;;AAaU,KWpBE,yBAAA,GXoBF;EAMA,SAAA,EWzBG,GXyBH;EAAM,MAAA,EWxBN,IXwBM;AAahB,CAAA"}
@@ -1,9 +1,9 @@
1
- import { i as SelectArg, s as Entity } from "./selection-DPg0uyJf.cjs";
2
- import { p as AttributeInputs } from "./index-CV5zCdpa.cjs";
3
- import { n as Expiry, r as ExpiryContext } from "./expiry-DRV29F1r.cjs";
4
- import { f as Operation } from "./index-CA4V7Pdh.cjs";
5
- import { n as ResolvedCreationFlags, t as CreationFlags } from "./flags-CRjPpoh3.cjs";
6
- import { Address, Hash, Hex, TransactionReceipt } from "viem";
1
+ import { p as AttributeInputs } from "./index-CIcHPx2j.cjs";
2
+ import { a as SaltInput } from "./index-BGp2plHs.cjs";
3
+ import { n as Expiry } from "./expiry-DRV29F1r.cjs";
4
+ import { n as ResolvedCreationFlags, t as CreationFlags } from "./flags-0Vl5rrHq.cjs";
5
+ import { i as SelectArg, k as Entity } from "./selection-Bv8_o-7i.cjs";
6
+ import { Address, Hash, Hex } from "viem";
7
7
 
8
8
  //#region src/actions/public/getBlockTiming.d.ts
9
9
  type GetBlockTimingReturnType = {
@@ -22,11 +22,15 @@ type GetBlockTimingReturnType = {
22
22
  type PredictedEntityKey = {
23
23
  /** The key the create will be given. */
24
24
  key: Hex;
25
- /** The salt the create must carry for its key to come out as {@link PredictedEntityKey.key}. */
25
+ /**
26
+ * The salt the create must carry for its key to come out as {@link PredictedEntityKey.key}.
27
+ * Always a plain `uint128` — a requested {@link NO_SALT} comes back as the `0n` it resolves to,
28
+ * which a create accepts just the same.
29
+ */
26
30
  salt: bigint;
27
31
  };
28
- /** Parameters for {@link predictEntityKeys}. */
29
- type PredictEntityKeysParameters<TCount extends number = number, TSalts extends readonly bigint[] | undefined = readonly bigint[] | undefined> = {
32
+ /** Parameters for `client.predictEntityKeys`. */
33
+ type PredictEntityKeysParameters<TCount extends number = number, TSalts extends readonly SaltInput[] | undefined = readonly SaltInput[] | undefined> = {
30
34
  /** The account that will sign the creates. Its nonce is what the keys are derived from. */
31
35
  owner: Address;
32
36
  /**
@@ -39,7 +43,8 @@ type PredictEntityKeysParameters<TCount extends number = number, TSalts extends
39
43
  count?: TCount | undefined;
40
44
  /**
41
45
  * The salt each create will carry, in batch order. Defaults to `count` fresh random salts —
42
- * either way each key comes back paired with the salt that mints it.
46
+ * either way each key comes back paired with the salt that mints it. Pass {@link NO_SALT} in a
47
+ * slot whose create opts out of salting.
43
48
  */
44
49
  salts?: TSalts;
45
50
  };
@@ -50,10 +55,10 @@ type PredictEntityKeysParameters<TCount extends number = number, TSalts extends
50
55
  * tuple, gives a fixed-length tuple; a count computed at runtime gives a plain array.
51
56
  *
52
57
  * `TSalts` is wrapped in a tuple to stop the conditional distributing over it. Left naked, the
53
- * `readonly bigint[] | undefined` default would take both branches and union a tuple with an array,
54
- * which widens the length straight back to `number`.
58
+ * `readonly SaltInput[] | undefined` default would take both branches and union a tuple with an
59
+ * array, which widens the length straight back to `number`.
55
60
  */
56
- type PredictEntityKeysReturnType<TCount extends number = number, TSalts extends readonly bigint[] | undefined = readonly bigint[] | undefined> = [TSalts] extends [readonly bigint[]] ? { -readonly [Index in keyof TSalts]: PredictedEntityKey } : Repeat<PredictedEntityKey, TCount>;
61
+ type PredictEntityKeysReturnType<TCount extends number = number, TSalts extends readonly SaltInput[] | undefined = readonly SaltInput[] | undefined> = [TSalts] extends [readonly SaltInput[]] ? { -readonly [Index in keyof TSalts]: PredictedEntityKey } : Repeat<PredictedEntityKey, TCount>;
57
62
  /**
58
63
  * A tuple of `TLength` × `T`, or a plain array when the length is only known at runtime.
59
64
  *
@@ -72,7 +77,7 @@ type Repeat<T, TLength extends number, TAcc extends T[] = []> = number extends T
72
77
  *
73
78
  * The prediction is valid only while nothing else from this owner is in flight. Every create that
74
79
  * lands first takes the nonce with it and moves these keys. For a key you can rely on
75
- * unconditionally, read it back from the create instead — `createEntity` and `mutateEntities`
80
+ * unconditionally, read it back from the create instead — `createEntity` and `executeBatch`
76
81
  * report the keys the engine actually minted.
77
82
  *
78
83
  * @param parameters - Owner, and either a count or the salts. {@link PredictEntityKeysParameters}
@@ -82,7 +87,7 @@ type Repeat<T, TLength extends number, TAcc extends T[] = []> = number extends T
82
87
  * import { key } from "@arkiv-network/sdk/attr"
83
88
  *
84
89
  * const [parent, child] = await client.predictEntityKeys({ owner: account.address, count: 2 })
85
- * await wallet.mutateEntities({
90
+ * await client.executeBatch({
86
91
  * creates: [
87
92
  * { payload, contentType, expires, salt: parent.salt },
88
93
  * {
@@ -104,11 +109,7 @@ type QueryOptions = {
104
109
  atBlock?: bigint | undefined;
105
110
  /** Page size, up to the node maximum of 200. */
106
111
  limit?: number | undefined;
107
- /**
108
- * Cursor from a previous page. Requires that page's `blockNumber` as {@link atBlock} alongside
109
- * it — the cursor is bound to the block it was issued at, so persist the two together. A cursor
110
- * without a block is rejected locally rather than left to fail whenever a block lands mid-walk.
111
- */
112
+ /** Cursor from a previous page. */
112
113
  cursor?: string | undefined;
113
114
  };
114
115
  type QueryReturnType = {
@@ -278,8 +279,8 @@ type CreateEntityParameters = {
278
279
  contentType: MimeType | (string & {});
279
280
  /**
280
281
  * The entity's queryable attributes, keyed by name. Values are the tagged constructors from
281
- * `@arkiv-network/sdk/attr` — `i32`, `u256`, `dec`, `str`, `addr`, `key`, `bytes32`, `bool` — or
282
- * a bare `boolean`, `number`, `bigint` or `string` where the type is unambiguous.
282
+ * `@arkiv-network/sdk/attr` — `i32`, `u64`, `u256`, `dec`, `str`, `addr`, `key`, `bytes32`,
283
+ * `bool` — or a bare `boolean`, `number`, `bigint` or `string` where the type is unambiguous.
283
284
  *
284
285
  * @throws {InvalidAttributeNameError} If a name violates the attribute-name grammar.
285
286
  * @throws {InvalidValueError} If a value does not fit the type it names or defaults to.
@@ -294,10 +295,10 @@ type CreateEntityParameters = {
294
295
  * The salt mixed into the entity key. Defaults to 128 random bits, which makes the key
295
296
  * unpredictable to everyone but the creator.
296
297
  *
297
- * Pass `0n` for a key derived from the owner and nonce alone — predictable by anyone, which is
298
- * what you want only when a third party must be able to compute the key in advance.
298
+ * Pass {@link NO_SALT} for a key derived from the owner and nonce alone — predictable by anyone,
299
+ * which is what you want only when a third party must be able to compute the key in advance.
299
300
  */
300
- salt?: bigint | undefined;
301
+ salt?: SaltInput | undefined;
301
302
  };
302
303
  /**
303
304
  * The result of creating an entity.
@@ -370,31 +371,6 @@ type ExtendEntityReturnType = {
370
371
  expiresAt: bigint;
371
372
  };
372
373
  //#endregion
373
- //#region src/actions/wallet/mutateEntities.d.ts
374
- /**
375
- * Parameters for the mutateEntities function — the same batch shape the advanced path takes
376
- * ({@link EntityMutationOps}), so the two surfaces cannot drift apart.
377
- *
378
- * At least one operation is required; a batch with nothing in it throws rather than spending gas on
379
- * an empty transaction.
380
- */
381
- type MutateEntitiesParameters = EntityMutationOps;
382
- /** Return type for the mutateEntities function. */
383
- type MutateEntitiesReturnType = {
384
- /** The transaction hash. */
385
- txHash: Hash;
386
- /** The keys of the created entities, in batch order. */
387
- createdEntities: Hex[];
388
- /** The keys of the patched entities. */
389
- patchedEntities: Hex[];
390
- /** The keys of the deleted entities. */
391
- deletedEntities: Hex[];
392
- /** The keys of the extended entities. */
393
- extendedEntities: Hex[];
394
- /** The keys of the entities handed to a new owner. */
395
- ownershipChanges: Hex[];
396
- };
397
- //#endregion
398
374
  //#region src/actions/wallet/patchEntity.d.ts
399
375
  /**
400
376
  * Parameters for patching an entity.
@@ -427,9 +403,9 @@ type PatchEntityParameters = {
427
403
  * Attributes to write, keyed by name. An existing attribute is overwritten — including with a
428
404
  * different type — and a name the entity does not carry yet is added.
429
405
  *
430
- * Values are the tagged constructors from `@arkiv-network/sdk/attr` — `i32`, `u256`, `dec`, `str`,
431
- * `addr`, `key`, `bytes32`, `bool` — or a bare `boolean`, `number`, `bigint` or `string` where the
432
- * type is unambiguous.
406
+ * Values are the tagged constructors from `@arkiv-network/sdk/attr` — `i32`, `u64`, `u256`,
407
+ * `dec`, `str`, `addr`, `key`, `bytes32`, `bool` — or a bare `boolean`, `number`, `bigint` or
408
+ * `string` where the type is unambiguous.
433
409
  *
434
410
  * @throws {InvalidAttributeNameError} If a name violates the attribute-name grammar.
435
411
  * @throws {InvalidValueError} If a value does not fit the type it names or defaults to.
@@ -461,10 +437,53 @@ type PatchEntityReturnType = {
461
437
  txHash: Hash;
462
438
  };
463
439
  //#endregion
440
+ //#region src/actions/wallet/executeBatch.d.ts
441
+ /**
442
+ * Parameters for the executeBatch function.
443
+ *
444
+ * At least one operation is required; a batch with nothing in it throws rather than spending gas on
445
+ * an empty transaction.
446
+ */
447
+ type ExecuteBatchParameters = {
448
+ /** The entities to create. */
449
+ creates?: CreateEntityParameters[];
450
+ /** The patches to apply. */
451
+ patches?: PatchEntityParameters[];
452
+ /** The entities to delete. */
453
+ deletes?: DeleteEntityParameters[];
454
+ /** The expiries to set. */
455
+ extensions?: ExtendEntityParameters[];
456
+ /** The ownership transfers to perform. */
457
+ ownershipChanges?: ChangeOwnershipParameters[];
458
+ };
459
+ /** Return type for the executeBatch function. */
460
+ type ExecuteBatchReturnType = {
461
+ /** The transaction hash. */
462
+ txHash: Hash;
463
+ /** The keys of the created entities, in batch order. */
464
+ createdEntities: Hex[];
465
+ /** The keys of the patched entities. */
466
+ patchedEntities: Hex[];
467
+ /** The keys of the deleted entities. */
468
+ deletedEntities: Hex[];
469
+ /** The keys of the extended entities. */
470
+ extendedEntities: Hex[];
471
+ /** The keys of the entities handed to a new owner. */
472
+ ownershipChanges: Hex[];
473
+ };
474
+ //#endregion
464
475
  //#region src/types/mimeTypes.d.ts
465
476
  type MimeType = "text/plain" | "text/html" | "text/css" | "text/csv" | "text/xml" | "text/javascript" | "application/json" | "application/xml" | "application/pdf" | "application/zip" | "application/gzip" | "application/octet-stream" | "application/javascript" | "application/x-www-form-urlencoded" | "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/svg+xml" | "audio/mpeg" | "audio/wav" | "audio/ogg" | "video/mp4" | "video/webm" | "video/ogg" | "multipart/form-data";
466
477
  //#endregion
467
478
  //#region src/types/txParams.d.ts
479
+ /**
480
+ * Transaction fields a write action passes through to the wallet, for the cases where the defaults
481
+ * are not what you want.
482
+ *
483
+ * Fee style is either/or: give `gasPrice` for a legacy transaction, or `maxFeePerGas` /
484
+ * `maxPriorityFeePerGas` for an EIP-1559 one. Mixing the two does not typecheck. Anything left out
485
+ * is estimated.
486
+ */
468
487
  type TxParams = {
469
488
  gas?: bigint;
470
489
  nonce?: number;
@@ -499,73 +518,5 @@ type ChangeOwnershipReturnType = {
499
518
  txHash: Hash;
500
519
  };
501
520
  //#endregion
502
- //#region src/utils/arkivTransactions.d.ts
503
-
504
- /** The five kinds of entity operation one Arkiv transaction can batch. */
505
- type EntityMutationOps = {
506
- /** The entities to create. */
507
- creates?: CreateEntityParameters[];
508
- /** The patches to apply. */
509
- patches?: PatchEntityParameters[];
510
- /** The entities to delete. */
511
- deletes?: DeleteEntityParameters[];
512
- /** The expiries to set. */
513
- extensions?: ExtendEntityParameters[];
514
- /** The ownership transfers to perform. */
515
- ownershipChanges?: ChangeOwnershipParameters[];
516
- };
517
- /**
518
- * Whether encoding the batch actually requires the chain head.
519
- *
520
- * Only a relative lifetime (`minLifetime > 0`) or a wall-clock deadline (a `Date`) is measured
521
- * from the current block. A purely absolute `atBlock(n)` expiry encodes the same bytes whatever
522
- * the head is, so a batch of those — or one with no expiries at all — needs no `eth_blockNumber`.
523
- */
524
- declare function mutationNeedsBlockNumber(ops: EntityMutationOps): boolean;
525
- /**
526
- * Encodes a batch into the `execute` operations, in the order the engine applies them: creates,
527
- * patches, deletes, extensions, ownership transfers.
528
- *
529
- * Pure — every check here is local (content types, salts, expiry bounds, non-empty patches and a
530
- * non-empty batch), so the only chain input is `context.currentBlock`. Callers that carry no
531
- * relative expiry (see {@link mutationNeedsBlockNumber}) can pass `0n`, which disables the
532
- * dead-on-arrival pre-check and leaves that to the engine.
533
- */
534
- declare function buildEntityOperations(ops: EntityMutationOps, context: ExpiryContext): Operation[];
535
- /** Everything the batch's events say happened, one entry per applied operation, per kind. */
536
- type MutationEvents = {
537
- created: {
538
- entityKey: Hex;
539
- owner: Address;
540
- expiresAt: bigint;
541
- }[];
542
- patched: {
543
- entityKey: Hex;
544
- owner: Address;
545
- }[];
546
- deleted: {
547
- entityKey: Hex;
548
- owner: Address;
549
- }[];
550
- extended: {
551
- entityKey: Hex;
552
- owner: Address;
553
- expiresAt: bigint;
554
- }[];
555
- ownershipTransferred: {
556
- entityKey: Hex;
557
- previousOwner: Address;
558
- newOwner: Address;
559
- }[];
560
- };
561
- /**
562
- * Reads the entity events out of a receipt's logs, exactly as they were emitted.
563
- *
564
- * Lenient by design: it reports what the events say and nothing else — no counting against what
565
- * was asked for (the caller may not have the request at hand) and no error for a receipt with no
566
- * entity events at all. Logs from other contracts and events this SDK has no name for are skipped.
567
- */
568
- declare function collectMutationEvents(logs: TransactionReceipt["logs"]): MutationEvents;
569
- //#endregion
570
- export { PredictEntityKeysParameters as A, EntityEvent as C, OwnershipTransferredEvent as D, ExpiryExtendedEvent as E, PredictedEntityKey as M, GetBlockTimingReturnType as N, QueryOptions as O, EntityDeletedEvent as S, EntityPatchedEvent as T, DeleteEntityReturnType as _, mutationNeedsBlockNumber as a, WatchEntityEventsParameters as b, TxParams as c, PatchEntityReturnType as d, MutateEntitiesParameters as f, DeleteEntityParameters as g, ExtendEntityReturnType as h, collectMutationEvents as i, PredictEntityKeysReturnType as j, QueryReturnType as k, MimeType as l, ExtendEntityParameters as m, MutationEvents as n, ChangeOwnershipParameters as o, MutateEntitiesReturnType as p, buildEntityOperations as r, ChangeOwnershipReturnType as s, EntityMutationOps as t, PatchEntityParameters as u, CreateEntityParameters as v, EntityEventContext as w, EntityCreatedEvent as x, CreateEntityReturnType as y };
571
- //# sourceMappingURL=arkivTransactions-D74gERHG.d.cts.map
521
+ export { QueryOptions as C, PredictedEntityKey as D, PredictEntityKeysReturnType as E, GetBlockTimingReturnType as O, OwnershipTransferredEvent as S, PredictEntityKeysParameters as T, EntityDeletedEvent as _, ExecuteBatchParameters as a, EntityPatchedEvent as b, PatchEntityReturnType as c, DeleteEntityParameters as d, DeleteEntityReturnType as f, EntityCreatedEvent as g, WatchEntityEventsParameters as h, MimeType as i, ExtendEntityParameters as l, CreateEntityReturnType as m, ChangeOwnershipReturnType as n, ExecuteBatchReturnType as o, CreateEntityParameters as p, TxParams as r, PatchEntityParameters as s, ChangeOwnershipParameters as t, ExtendEntityReturnType as u, EntityEvent as v, QueryReturnType as w, ExpiryExtendedEvent as x, EntityEventContext as y };
522
+ //# sourceMappingURL=changeOwnership-BofkLnXJ.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changeOwnership-BofkLnXJ.d.cts","names":[],"sources":["../src/actions/public/getBlockTiming.ts","../src/actions/public/predictEntityKeys.ts","../src/actions/public/query.ts","../src/types/events.ts","../src/actions/public/watchEntityEvents.ts","../src/actions/wallet/createEntity.ts","../src/actions/wallet/deleteEntity.ts","../src/actions/wallet/extendEntity.ts","../src/actions/wallet/patchEntity.ts","../src/actions/wallet/executeBatch.ts","../src/types/mimeTypes.ts","../src/types/txParams.ts","../src/actions/wallet/changeOwnership.ts"],"sourcesContent":[],"mappings":";;;;;;;;KAKY,wBAAA;;;;;;;;;;;;AAAZ;KCaY,kBAAA;;OAEL;EAFK;AAYZ;;;;EAaU,IAAA,EAAA,MAAA;CAMA;;AAaE,KAhCA,2BAgC2B,CAAA,eAAA,MAAA,GAAA,M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MAAA;EAAM,QAAA,CAAA,EAAA,KAAA;AAahB,CAAA;;;;;;;;ADzDY,KYQA,yBAAA,GZRwB;aYSvB;YACD;;AXGZ;AAYA;;;;AAaU,KWpBE,yBAAA,GXoBF;EAMA,SAAA,EWzBG,GXyBH;EAAM,MAAA,EWxBN,IXwBM;AAahB,CAAA"}
@@ -1,20 +1,20 @@
1
- const require_expiry = require('../expiry-BELY2Kpw.cjs');
2
- const require_key = require('../key-WKhXnXuU.cjs');
3
- const require_errors = require('../errors-BVbjKVMN.cjs');
4
- const require_flags = require('../flags-kr276q6i.cjs');
5
- require('../entity-B7G8q_Eo.cjs');
1
+ const require_errors = require('../errors-DhV00966.cjs');
2
+ const require_flags = require('../flags-DCD26uhe.cjs');
3
+ const require_expiry = require('../expiry-CG9GhVXv.cjs');
4
+ const require_entity = require('../entity-DJ0Gml9c.cjs');
6
5
 
7
- exports.ENTITY_EVENTS_ABI = require_key.ENTITY_EVENTS_ABI;
6
+ exports.ENTITY_EVENTS_ABI = require_entity.ENTITY_EVENTS_ABI;
8
7
  exports.InvalidCreationFlagsError = require_errors.InvalidCreationFlagsError;
9
8
  exports.InvalidExpiryError = require_errors.InvalidExpiryError;
10
9
  exports.InvalidSaltError = require_errors.InvalidSaltError;
11
10
  exports.MAX_EXPIRES_AT = require_expiry.MAX_EXPIRES_AT;
12
- exports.MAX_SALT = require_key.MAX_SALT;
11
+ exports.MAX_SALT = require_entity.MAX_SALT;
12
+ exports.NO_SALT = require_entity.NO_SALT;
13
13
  exports.NoRandomSourceError = require_errors.NoRandomSourceError;
14
14
  exports.OperationType = require_expiry.OperationType;
15
15
  exports.decodeCreationFlags = require_flags.decodeCreationFlags;
16
16
  exports.encodeCreationFlags = require_flags.encodeCreationFlags;
17
- exports.predictEntityKey = require_key.predictEntityKey;
18
- exports.randomSalt = require_key.randomSalt;
17
+ exports.predictEntityKey = require_entity.predictEntityKey;
18
+ exports.randomSalt = require_entity.randomSalt;
19
19
  exports.resolveExpiry = require_expiry.resolveExpiry;
20
20
  exports.toBlocks = require_expiry.toBlocks;
@@ -1,4 +1,4 @@
1
+ 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-BGp2plHs.cjs";
1
2
  import { a as ResolvedExpiry, i as Lifetime, n as Expiry, o as resolveExpiry, r as ExpiryContext, s as toBlocks, t as EncodedExpiry } from "../expiry-DRV29F1r.cjs";
2
- 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-CA4V7Pdh.cjs";
3
- import { i as encodeCreationFlags, n as ResolvedCreationFlags, r as decodeCreationFlags, t as CreationFlags } from "../flags-CRjPpoh3.cjs";
4
- export { CreationFlags, ENTITY_EVENTS_ABI, EncodedExpiry, EntityEventName, Expiry, ExpiryContext, InvalidCreationFlagsError, InvalidExpiryError, InvalidSaltError, Lifetime, MAX_EXPIRES_AT, MAX_SALT, NoRandomSourceError, Operation, OperationType, ResolvedCreationFlags, ResolvedExpiry, decodeCreationFlags, encodeCreationFlags, predictEntityKey, randomSalt, resolveExpiry, toBlocks };
3
+ import { i as encodeCreationFlags, n as ResolvedCreationFlags, r as decodeCreationFlags, t as CreationFlags } from "../flags-0Vl5rrHq.cjs";
4
+ export { CreationFlags, ENTITY_EVENTS_ABI, EncodedExpiry, EntityEventName, Expiry, ExpiryContext, InvalidCreationFlagsError, InvalidExpiryError, InvalidSaltError, Lifetime, MAX_EXPIRES_AT, MAX_SALT, NO_SALT, NoRandomSourceError, OperationType, ResolvedCreationFlags, ResolvedExpiry, SaltInput, decodeCreationFlags, encodeCreationFlags, predictEntityKey, randomSalt, resolveExpiry, toBlocks };