@arkiv-network/sdk 0.7.0-dev.1 → 0.8.0-advanced.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 (237) hide show
  1. package/README.md +71 -16
  2. package/dist/actions/advanced/index.cjs +13 -0
  3. package/dist/actions/advanced/index.d.cts +8 -0
  4. package/dist/actions/advanced/index.d.ts +9 -0
  5. package/dist/actions/advanced/index.js +9 -0
  6. package/dist/advanced-8ZPTmmaN.js +598 -0
  7. package/dist/advanced-8ZPTmmaN.js.map +1 -0
  8. package/dist/advanced-fPImL6lW.cjs +656 -0
  9. package/dist/arkivTransactions-D74gERHG.d.cts +571 -0
  10. package/dist/arkivTransactions-D74gERHG.d.cts.map +1 -0
  11. package/dist/arkivTransactions-NtGD6uk5.d.ts +571 -0
  12. package/dist/arkivTransactions-NtGD6uk5.d.ts.map +1 -0
  13. package/dist/attr/index.cjs +35 -0
  14. package/dist/attr/index.d.cts +2 -0
  15. package/dist/attr/index.d.ts +3 -0
  16. package/dist/attr/index.js +4 -0
  17. package/dist/attributes-BhY5DwJp.js +809 -0
  18. package/dist/attributes-BhY5DwJp.js.map +1 -0
  19. package/dist/attributes-Df9IsCVs.cjs +1029 -0
  20. package/dist/chains/index.cjs +2 -3
  21. package/dist/chains/index.d.cts +22 -60
  22. package/dist/chains/index.d.cts.map +1 -1
  23. package/dist/chains/index.d.ts +22 -60
  24. package/dist/chains/index.d.ts.map +1 -1
  25. package/dist/chains/index.js +2 -2
  26. package/dist/chains-BJrZs6sG.js +57 -0
  27. package/dist/chains-BJrZs6sG.js.map +1 -0
  28. package/dist/chains-BYRTTipa.cjs +73 -0
  29. package/dist/codec-Car3KkFF.d.ts +102 -0
  30. package/dist/codec-Car3KkFF.d.ts.map +1 -0
  31. package/dist/entity/index.cjs +20 -0
  32. package/dist/entity/index.d.cts +4 -0
  33. package/dist/entity/index.d.ts +5 -0
  34. package/dist/entity/index.js +7 -0
  35. package/dist/entity-B00Li04j.cjs +71 -0
  36. package/dist/entity-B7G8q_Eo.cjs +0 -0
  37. package/dist/entity-BYQR1uoe.js +67 -0
  38. package/dist/entity-BYQR1uoe.js.map +1 -0
  39. package/dist/entity-CD_qFF2M.js +0 -0
  40. package/dist/errors-BVbjKVMN.cjs +56 -0
  41. package/dist/errors-LTe7bOYS.js +33 -0
  42. package/dist/errors-LTe7bOYS.js.map +1 -0
  43. package/dist/expiry-BELY2Kpw.cjs +135 -0
  44. package/dist/expiry-BjpxZZQU.js +95 -0
  45. package/dist/expiry-BjpxZZQU.js.map +1 -0
  46. package/dist/expiry-DRV29F1r.d.cts +79 -0
  47. package/dist/expiry-DRV29F1r.d.cts.map +1 -0
  48. package/dist/expiry-nDbCgZX4.d.ts +79 -0
  49. package/dist/expiry-nDbCgZX4.d.ts.map +1 -0
  50. package/dist/flags-5dTNRnow.d.ts +41 -0
  51. package/dist/flags-5dTNRnow.d.ts.map +1 -0
  52. package/dist/flags-CRjPpoh3.d.cts +41 -0
  53. package/dist/flags-CRjPpoh3.d.cts.map +1 -0
  54. package/dist/flags-DFBs2J94.js +33 -0
  55. package/dist/flags-DFBs2J94.js.map +1 -0
  56. package/dist/flags-kr276q6i.cjs +43 -0
  57. package/dist/index-B5j76711.d.ts +184 -0
  58. package/dist/index-B5j76711.d.ts.map +1 -0
  59. package/dist/index-BF7Mq9Is.d.cts +280 -0
  60. package/dist/index-BF7Mq9Is.d.cts.map +1 -0
  61. package/dist/index-CA4V7Pdh.d.cts +167 -0
  62. package/dist/index-CA4V7Pdh.d.cts.map +1 -0
  63. package/dist/index-CV5zCdpa.d.cts +417 -0
  64. package/dist/index-CV5zCdpa.d.cts.map +1 -0
  65. package/dist/index-DHDud2hC.d.ts +280 -0
  66. package/dist/index-DHDud2hC.d.ts.map +1 -0
  67. package/dist/index-DvYvrkdk.d.ts +320 -0
  68. package/dist/index-DvYvrkdk.d.ts.map +1 -0
  69. package/dist/index-EeUO0nnJ.d.cts +184 -0
  70. package/dist/index-EeUO0nnJ.d.cts.map +1 -0
  71. package/dist/index-fX_XyqLp.d.ts +167 -0
  72. package/dist/index-fX_XyqLp.d.ts.map +1 -0
  73. package/dist/index.cjs +411 -405
  74. package/dist/index.d.cts +360 -209
  75. package/dist/index.d.cts.map +1 -1
  76. package/dist/index.d.ts +361 -209
  77. package/dist/index.d.ts.map +1 -1
  78. package/dist/index.js +342 -387
  79. package/dist/index.js.map +1 -1
  80. package/dist/key-D1Bh7MF0.js +70 -0
  81. package/dist/key-D1Bh7MF0.js.map +1 -0
  82. package/dist/key-WKhXnXuU.cjs +98 -0
  83. package/dist/logger-CVpvU8ik.js +153 -0
  84. package/dist/logger-CVpvU8ik.js.map +1 -0
  85. package/dist/logger-Cr15lPAQ.cjs +188 -0
  86. package/dist/payload-BNoud2KZ.d.cts +94 -0
  87. package/dist/payload-BNoud2KZ.d.cts.map +1 -0
  88. package/dist/payload-Bz6651ax.js +67 -0
  89. package/dist/payload-Bz6651ax.js.map +1 -0
  90. package/dist/payload-CcUj85ys.d.ts +94 -0
  91. package/dist/payload-CcUj85ys.d.ts.map +1 -0
  92. package/dist/payload-KC14SDlN.cjs +83 -0
  93. package/dist/query/index.cjs +26 -150
  94. package/dist/query/index.d.cts +5 -3
  95. package/dist/query/index.d.ts +6 -3
  96. package/dist/query/index.js +8 -138
  97. package/dist/queryBuilder-DM6AWCBa.js +820 -0
  98. package/dist/queryBuilder-DM6AWCBa.js.map +1 -0
  99. package/dist/queryBuilder-DbUMEZln.cjs +944 -0
  100. package/dist/selection-C4UhsMOO.d.ts +434 -0
  101. package/dist/selection-C4UhsMOO.d.ts.map +1 -0
  102. package/dist/selection-DPg0uyJf.d.cts +433 -0
  103. package/dist/selection-DPg0uyJf.d.cts.map +1 -0
  104. package/dist/types/index.cjs +3 -3
  105. package/dist/types/index.d.cts +7 -2
  106. package/dist/types/index.d.ts +8 -2
  107. package/dist/types/index.js +3 -3
  108. package/dist/types-Bu_ZwMbZ.js +0 -0
  109. package/dist/types-NRqymi6S.cjs +0 -0
  110. package/dist/utils/index.cjs +4 -17
  111. package/dist/utils/index.d.cts +3 -17
  112. package/dist/utils/index.d.ts +3 -17
  113. package/dist/utils/index.js +4 -18
  114. package/package.json +26 -5
  115. package/src/actions/advanced/advanced.test.ts +258 -0
  116. package/src/actions/advanced/buildMutation.ts +104 -0
  117. package/src/actions/advanced/getMutationResult.ts +112 -0
  118. package/src/actions/advanced/index.ts +21 -0
  119. package/src/actions/advanced/pingTransaction.ts +43 -0
  120. package/src/actions/advanced/sendMutation.ts +59 -0
  121. package/src/actions/public/getEntity.ts +27 -43
  122. package/src/actions/public/getEntityNonce.ts +30 -0
  123. package/src/actions/public/predictEntityKeys.test.ts +143 -0
  124. package/src/actions/public/predictEntityKeys.ts +138 -0
  125. package/src/actions/public/query.ts +35 -67
  126. package/src/actions/public/watchEntityEvents.test.ts +414 -0
  127. package/src/actions/public/watchEntityEvents.ts +225 -0
  128. package/src/actions/wallet/changeOwnership.ts +2 -2
  129. package/src/actions/wallet/createEntity.ts +99 -24
  130. package/src/actions/wallet/extendEntity.ts +37 -13
  131. package/src/actions/wallet/mutateEntities.test.ts +76 -0
  132. package/src/actions/wallet/mutateEntities.ts +16 -33
  133. package/src/actions/wallet/patchEntity.ts +90 -0
  134. package/src/attr/attributes.test.ts +120 -0
  135. package/src/attr/attributes.ts +190 -0
  136. package/src/attr/codec.test.ts +162 -0
  137. package/src/attr/codec.ts +220 -0
  138. package/src/attr/decimal.ts +86 -0
  139. package/src/attr/errors.ts +145 -0
  140. package/src/attr/index.ts +50 -0
  141. package/src/attr/names.ts +106 -0
  142. package/src/attr/types.ts +150 -0
  143. package/src/attr/values.test.ts +271 -0
  144. package/src/attr/values.ts +502 -0
  145. package/src/chains/cheesecake.ts +22 -0
  146. package/src/chains/index.ts +1 -2
  147. package/src/clients/createPublicClient.test.ts +3 -5
  148. package/src/clients/createPublicClient.ts +5 -4
  149. package/src/clients/createWalletClient.test.ts +2 -2
  150. package/src/clients/createWalletClient.ts +13 -7
  151. package/src/clients/decorators/arkivAdvanced.ts +144 -0
  152. package/src/clients/decorators/arkivPublic.ts +172 -139
  153. package/src/clients/decorators/arkivWallet.ts +101 -94
  154. package/src/entity/create.test.ts +184 -0
  155. package/src/entity/errors.ts +38 -0
  156. package/src/entity/events.ts +16 -0
  157. package/src/entity/expiry.test.ts +195 -0
  158. package/src/entity/expiry.ts +181 -0
  159. package/src/entity/flags.ts +65 -0
  160. package/src/entity/index.ts +15 -0
  161. package/src/entity/key.ts +68 -0
  162. package/src/entity/operations.ts +134 -0
  163. package/src/entity/params.ts +15 -0
  164. package/src/errors.ts +26 -49
  165. package/src/index.ts +19 -0
  166. package/src/query/engine.ts +68 -137
  167. package/src/query/errors.ts +151 -0
  168. package/src/query/expression.test.ts +286 -0
  169. package/src/query/expression.ts +493 -0
  170. package/src/query/index.ts +40 -4
  171. package/src/query/injection.test.ts +151 -0
  172. package/src/query/queryBuilder.test.ts +342 -637
  173. package/src/query/queryBuilder.ts +133 -359
  174. package/src/query/queryResult.ts +54 -51
  175. package/src/query/selection.test.ts +48 -98
  176. package/src/query/selection.ts +77 -65
  177. package/src/types/entity.test.ts +44 -155
  178. package/src/types/entity.ts +60 -52
  179. package/src/types/events.ts +59 -16
  180. package/src/types/index.ts +20 -17
  181. package/src/types/rpcSchema.ts +69 -37
  182. package/src/utils/arkivTransactions.test.ts +600 -155
  183. package/src/utils/arkivTransactions.ts +350 -219
  184. package/src/utils/chains.test.ts +21 -24
  185. package/src/utils/compression.ts +1 -1
  186. package/src/utils/entities.test.ts +62 -0
  187. package/src/utils/entities.ts +109 -37
  188. package/src/utils/expirationTime.ts +114 -10
  189. package/src/utils/logger.ts +2 -2
  190. package/src/utils/revert.test.ts +99 -0
  191. package/src/utils/revert.ts +145 -0
  192. package/dist/chains-BifaY04V.cjs +0 -108
  193. package/dist/chains-CrtkVbBh.js +0 -86
  194. package/dist/chains-CrtkVbBh.js.map +0 -1
  195. package/dist/consts-Bz0LZQZY.js +0 -7
  196. package/dist/consts-Bz0LZQZY.js.map +0 -1
  197. package/dist/consts-CxT1-RXU.cjs +0 -18
  198. package/dist/entity-BhSXaB23.cjs +0 -81
  199. package/dist/entity-CN41IOrq.d.cts +0 -401
  200. package/dist/entity-CN41IOrq.d.cts.map +0 -1
  201. package/dist/entity-DGfVyB-a.js +0 -71
  202. package/dist/entity-DGfVyB-a.js.map +0 -1
  203. package/dist/entity-NnEVlePN.d.ts +0 -401
  204. package/dist/entity-NnEVlePN.d.ts.map +0 -1
  205. package/dist/index-ClkpS6s_.d.ts +0 -481
  206. package/dist/index-ClkpS6s_.d.ts.map +0 -1
  207. package/dist/index-w4qop0Pe.d.cts +0 -481
  208. package/dist/index-w4qop0Pe.d.cts.map +0 -1
  209. package/dist/payload-BpNUPOnY.js +0 -13
  210. package/dist/payload-BpNUPOnY.js.map +0 -1
  211. package/dist/payload-C2KHOUoj.d.ts +0 -6
  212. package/dist/payload-C2KHOUoj.d.ts.map +0 -1
  213. package/dist/payload-CJN8fTvX.d.cts +0 -6
  214. package/dist/payload-CJN8fTvX.d.cts.map +0 -1
  215. package/dist/payload-D8YLKcJj.cjs +0 -23
  216. package/dist/query/index.js.map +0 -1
  217. package/dist/queryBuilder-BE_XhLLa.js +0 -735
  218. package/dist/queryBuilder-BE_XhLLa.js.map +0 -1
  219. package/dist/queryBuilder-J37buGCi.cjs +0 -865
  220. package/dist/utils/index.d.cts.map +0 -1
  221. package/dist/utils/index.d.ts.map +0 -1
  222. package/dist/utils/index.js.map +0 -1
  223. package/src/actions/public/buildQuery.ts +0 -10
  224. package/src/actions/public/subscribeEntityEvents.ts +0 -93
  225. package/src/actions/wallet/updateEntity.ts +0 -59
  226. package/src/chains/braga.ts +0 -26
  227. package/src/chains/kaolin.ts +0 -29
  228. package/src/query/engine.test.ts +0 -571
  229. package/src/query/predicate.test.ts +0 -461
  230. package/src/query/predicate.ts +0 -144
  231. package/src/query/queryResult.test.ts +0 -270
  232. package/src/query/selectQueryBuilder.test.ts +0 -213
  233. package/src/types/attributes.ts +0 -28
  234. package/src/utils/validation.test.ts +0 -106
  235. package/src/utils/validation.ts +0 -80
  236. /package/dist/{types-Ci4BRClw.js → attr-DlmErkvR.cjs} +0 -0
  237. /package/dist/{types-a8gm_IaQ.cjs → attr-GcQKatub.js} +0 -0
@@ -0,0 +1,571 @@
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";
7
+
8
+ //#region src/actions/public/getBlockTiming.d.ts
9
+ type GetBlockTimingReturnType = {
10
+ currentBlock: bigint;
11
+ currentBlockTime: number;
12
+ blockDuration: number;
13
+ };
14
+ //#endregion
15
+ //#region src/actions/public/predictEntityKeys.d.ts
16
+ /**
17
+ * A key a create will be given, together with the salt that mints it.
18
+ *
19
+ * The two travel as a pair because neither is any use alone: a create defaults to a *random* salt,
20
+ * so the key only comes out as predicted if that same create carries this salt.
21
+ */
22
+ type PredictedEntityKey = {
23
+ /** The key the create will be given. */
24
+ key: Hex;
25
+ /** The salt the create must carry for its key to come out as {@link PredictedEntityKey.key}. */
26
+ salt: bigint;
27
+ };
28
+ /** Parameters for {@link predictEntityKeys}. */
29
+ type PredictEntityKeysParameters<TCount extends number = number, TSalts extends readonly bigint[] | undefined = readonly bigint[] | undefined> = {
30
+ /** The account that will sign the creates. Its nonce is what the keys are derived from. */
31
+ owner: Address;
32
+ /**
33
+ * How many creates the batch will carry. Ignored when `salts` is given, which already says how
34
+ * many there are.
35
+ *
36
+ * A literal count comes back as a fixed-length tuple, so `count: 2` destructures into two named
37
+ * pairs without a cast.
38
+ */
39
+ count?: TCount | undefined;
40
+ /**
41
+ * 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.
43
+ */
44
+ salts?: TSalts;
45
+ };
46
+ /**
47
+ * The keys a batch would mint, in batch order, each paired with its salt.
48
+ *
49
+ * The length follows the request whenever it is known statically: a literal `count`, or a `salts`
50
+ * tuple, gives a fixed-length tuple; a count computed at runtime gives a plain array.
51
+ *
52
+ * `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`.
55
+ */
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>;
57
+ /**
58
+ * A tuple of `TLength` × `T`, or a plain array when the length is only known at runtime.
59
+ *
60
+ * Written tail-recursively so TypeScript can build the batch sizes anyone would actually send.
61
+ */
62
+ type Repeat<T, TLength extends number, TAcc extends T[] = []> = number extends TLength ? T[] : TAcc["length"] extends TLength ? TAcc : Repeat<T, TLength, [...TAcc, T]>;
63
+ /**
64
+ * Works out the keys an account's next creates will be given, before sending them.
65
+ *
66
+ * A key is `keccak256(chainId ++ registry ++ owner ++ nonce ++ salt)`. Everything but the nonce is
67
+ * known to the caller, and the nonce is read here — so a batch can reference a key it is about to
68
+ * mint, storing it as a `key` attribute on a sibling entity created in the same transaction.
69
+ *
70
+ * Each key arrives paired with its salt, and the create must be given that salt: a create left to
71
+ * pick its own salt picks a random one, which mints a different key.
72
+ *
73
+ * The prediction is valid only while nothing else from this owner is in flight. Every create that
74
+ * 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`
76
+ * report the keys the engine actually minted.
77
+ *
78
+ * @param parameters - Owner, and either a count or the salts. {@link PredictEntityKeysParameters}
79
+ * @returns One `{ key, salt }` pair per create, in batch order. {@link PredictEntityKeysReturnType}
80
+ *
81
+ * @example A batch whose second entity points at its first.
82
+ * import { key } from "@arkiv-network/sdk/attr"
83
+ *
84
+ * const [parent, child] = await client.predictEntityKeys({ owner: account.address, count: 2 })
85
+ * await wallet.mutateEntities({
86
+ * creates: [
87
+ * { payload, contentType, expires, salt: parent.salt },
88
+ * {
89
+ * payload,
90
+ * contentType,
91
+ * expires,
92
+ * salt: child.salt,
93
+ * attributes: { parent: key(parent.key) },
94
+ * },
95
+ * ],
96
+ * })
97
+ */
98
+ //#endregion
99
+ //#region src/actions/public/query.d.ts
100
+ type QueryOptions = {
101
+ /** What to return. Defaults to everything. */
102
+ select?: SelectArg | undefined;
103
+ /** Block height to read at. Defaults to the head. */
104
+ atBlock?: bigint | undefined;
105
+ /** Page size, up to the node maximum of 200. */
106
+ 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?: string | undefined;
113
+ };
114
+ type QueryReturnType = {
115
+ entities: Entity[];
116
+ /** The cursor for the next page, or `undefined` when no pages remain. */
117
+ cursor: string | undefined;
118
+ /** The block the page was read at. */
119
+ blockNumber: bigint;
120
+ };
121
+ //#endregion
122
+ //#region src/types/events.d.ts
123
+ /**
124
+ * Where an event sits in the chain — carried by every on-chain entity event.
125
+ *
126
+ * Operations apply in batch order and emit one event each, so `blockNumber` and `logIndex` together
127
+ * are the order the operations were applied in. A replica that replays them in that order sees
128
+ * exactly what the engine did.
129
+ */
130
+ type EntityEventContext = {
131
+ /** The block the operation was applied in. */
132
+ blockNumber: bigint;
133
+ /** The transaction the operation was part of. */
134
+ transactionHash: Hex;
135
+ /** The event's position within its block. */
136
+ logIndex: number;
137
+ };
138
+ /** An entity was created. */
139
+ type EntityCreatedEvent = EntityEventContext & {
140
+ type: "EntityCreated";
141
+ entityKey: Hex;
142
+ owner: Address;
143
+ /** The block the entity is set to expire at. */
144
+ expiresAt: bigint;
145
+ /**
146
+ * The immutable properties the entity was created with, decoded from its `creationFlags` byte.
147
+ */
148
+ creationFlags: ResolvedCreationFlags;
149
+ };
150
+ /**
151
+ * An entity's attributes or payload changed.
152
+ *
153
+ * The event says *that* it changed, not what to — read the entity to see the new state.
154
+ */
155
+ type EntityPatchedEvent = EntityEventContext & {
156
+ type: "EntityPatched";
157
+ entityKey: Hex;
158
+ owner: Address;
159
+ };
160
+ /** An entity's expiry moved further out. */
161
+ type ExpiryExtendedEvent = EntityEventContext & {
162
+ type: "ExpiryExtended";
163
+ entityKey: Hex;
164
+ /**
165
+ * The entity's owner — **not** whoever extended it. An entity created with
166
+ * `permissionlessExtension` can be extended by anyone, and the event does not say by whom; read
167
+ * the transaction's sender if you need that.
168
+ */
169
+ owner: Address;
170
+ /** The block the entity is now set to expire at. */
171
+ expiresAt: bigint;
172
+ };
173
+ /** An entity changed hands. */
174
+ type OwnershipTransferredEvent = EntityEventContext & {
175
+ type: "OwnershipTransferred";
176
+ entityKey: Hex;
177
+ previousOwner: Address;
178
+ newOwner: Address;
179
+ };
180
+ /** An entity was deleted by its owner, before its expiry. */
181
+ type EntityDeletedEvent = EntityEventContext & {
182
+ type: "EntityDeleted";
183
+ entityKey: Hex;
184
+ owner: Address;
185
+ };
186
+ /**
187
+ * Every event the engine emits, discriminated by `type`.
188
+ */
189
+ type EntityEvent = EntityCreatedEvent | EntityPatchedEvent | ExpiryExtendedEvent | OwnershipTransferredEvent | EntityDeletedEvent;
190
+ //#endregion
191
+ //#region src/actions/public/watchEntityEvents.d.ts
192
+ /**
193
+ * Handlers and options for `client.watchEntityEvents`. Every handler is optional; the watcher does
194
+ * the work for the ones you pass.
195
+ */
196
+ type WatchEntityEventsParameters = {
197
+ onEntityCreated?: ((event: EntityCreatedEvent) => void) | undefined;
198
+ onEntityPatched?: ((event: EntityPatchedEvent) => void) | undefined;
199
+ onExpiryExtended?: ((event: ExpiryExtendedEvent) => void) | undefined;
200
+ onOwnershipTransferred?: ((event: OwnershipTransferredEvent) => void) | undefined;
201
+ onEntityDeleted?: ((event: EntityDeletedEvent) => void) | undefined;
202
+ /**
203
+ * Every event, in application order, whatever its type. Runs *before* the per-event handler for
204
+ * the same event.
205
+ *
206
+ * This is the replay seam: operations apply in batch order and emit one event each, so an
207
+ * off-chain replica that consumes this in order sees exactly what the engine did.
208
+ */
209
+ onEvent?: ((event: EntityEvent) => void) | undefined;
210
+ /**
211
+ * Transport failures, logs that will not decode, and anything one of your own handlers throws.
212
+ *
213
+ * Defaults to `console.error`. A watcher whose filter the node dropped otherwise just goes quiet,
214
+ * and a quiet watcher is indistinguishable from a quiet chain.
215
+ */
216
+ onError?: ((error: Error) => void) | undefined;
217
+ /** Replay from this block before following the head. Defaults to the head. */
218
+ fromBlock?: bigint | undefined;
219
+ /** How often to poll, in milliseconds. Defaults to half a block. */
220
+ pollingInterval?: number | undefined;
221
+ };
222
+ //#endregion
223
+ //#region src/actions/wallet/createEntity.d.ts
224
+ /**
225
+ * Parameters for creating an entity.
226
+ *
227
+ * An entity always carries contents and a type for them, plus a lifetime. Attributes, flags and a
228
+ * salt are optional on top of that.
229
+ *
230
+ * @example
231
+ * const { entityKey } = await client.createEntity({
232
+ * attributes: {
233
+ * level: i32(10),
234
+ * balance: u256(1_000_000n),
235
+ * score: dec("3.5"),
236
+ * name: "Bob", // bare string -> str
237
+ * flagged: true, // bare boolean -> bool
238
+ * },
239
+ * payload: jsonToPayload({ hello: "world" }),
240
+ * contentType: "application/json",
241
+ * expires: ExpirationTime.fromDays(30),
242
+ * flags: { readonly: true },
243
+ * })
244
+ *
245
+ * @example Pin an absolute deadline, but refuse to create something nearly dead:
246
+ * await client.createEntity({
247
+ * payload, contentType: "application/json",
248
+ * expires: ExpirationTime.atDate(someDeadline, {
249
+ * atLeast: ExpirationTime.fromDays(1), // ...but live at least a day regardless
250
+ * }),
251
+ * })
252
+ *
253
+ * @example An entity that is nothing but queryable attributes still declares its (empty) contents:
254
+ * await client.createEntity({
255
+ * attributes: { parent: key(parentKey), rank: i32(3) },
256
+ * payload: new Uint8Array(),
257
+ * contentType: "application/octet-stream",
258
+ * expires: ExpirationTime.fromDays(30),
259
+ * })
260
+ */
261
+ type CreateEntityParameters = {
262
+ /**
263
+ * How long the entity should live, built with {@link ExpirationTime}.
264
+ *
265
+ * `ExpirationTime.fromDays(30)` is the everyday form. `atBlock` / `atDate` pin an absolute
266
+ * deadline instead, and either can carry `{ atLeast }` to guarantee a minimum life on top of it.
267
+ */
268
+ expires: Expiry;
269
+ /**
270
+ * The entity's opaque payload. Travels to the engine as the `$payload` system attribute; on this
271
+ * surface it is just the entity's contents.
272
+ *
273
+ * Pass an empty `Uint8Array` for an entity that is nothing but queryable attributes — it is
274
+ * written as an empty payload rather than left unset, so what you pass is what is stored.
275
+ */
276
+ payload: Uint8Array;
277
+ /** The payload's MIME type, e.g. `"application/json"`. Sent as the `$contentType` cell. */
278
+ contentType: MimeType | (string & {});
279
+ /**
280
+ * 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.
283
+ *
284
+ * @throws {InvalidAttributeNameError} If a name violates the attribute-name grammar.
285
+ * @throws {InvalidValueError} If a value does not fit the type it names or defaults to.
286
+ */
287
+ attributes?: AttributeInputs | undefined;
288
+ /**
289
+ * Properties fixed at creation: `readonly` and `permissionlessExtension`. No operation changes
290
+ * them afterwards, so an entity is whatever it was created as for life. Both default to `false`.
291
+ */
292
+ flags?: CreationFlags | undefined;
293
+ /**
294
+ * The salt mixed into the entity key. Defaults to 128 random bits, which makes the key
295
+ * unpredictable to everyone but the creator.
296
+ *
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.
299
+ */
300
+ salt?: bigint | undefined;
301
+ };
302
+ /**
303
+ * The result of creating an entity.
304
+ */
305
+ type CreateEntityReturnType = {
306
+ /** The new entity's key. */
307
+ entityKey: Hex;
308
+ txHash: Hash;
309
+ /**
310
+ * The block the entity is expected to expire at, resolved against the block the transaction was
311
+ * built on.
312
+ *
313
+ * The engine resolves a duration against the block the transaction actually lands in, so for
314
+ * `ExpirationTime.fromDays(30)` and friends this is a lower bound: the real expiry is later by
315
+ * however many blocks passed between building and inclusion. An `atBlock` deadline is exact.
316
+ */
317
+ expiresAt: bigint;
318
+ };
319
+ //#endregion
320
+ //#region src/actions/wallet/deleteEntity.d.ts
321
+ /**
322
+ * Parameters for the deleteEntity function.
323
+ * - entityKey: The key of the entity to delete.
324
+ */
325
+ type DeleteEntityParameters = {
326
+ entityKey: Hex;
327
+ };
328
+ /**
329
+ * Return type for the deleteEntity function.
330
+ * - entityKey: The key of the entity.
331
+ * - txHash: The transaction hash.
332
+ */
333
+ type DeleteEntityReturnType = {
334
+ entityKey: Hex;
335
+ txHash: Hash;
336
+ };
337
+ //#endregion
338
+ //#region src/actions/wallet/extendEntity.d.ts
339
+ /**
340
+ * Parameters for extending an entity's life.
341
+ *
342
+ * An extension **sets a new expiry**; it does not add to the existing one. It is resolved exactly
343
+ * as a create's is — a duration counts from now, not from the entity's current expiry — so
344
+ * `ExpirationTime.fromDays(30)` means "alive for thirty more days from now" whatever the entity's
345
+ * remaining life happened to be.
346
+ *
347
+ * The engine rejects an extension that would not move the expiry later, so extending an entity by
348
+ * less than it already has left is an error rather than a silent shortening.
349
+ *
350
+ * @example
351
+ * await client.extendEntity({ entityKey, expires: ExpirationTime.fromDays(30) })
352
+ * await client.extendEntity({ entityKey, expires: ExpirationTime.atBlock(1_200_000n) })
353
+ */
354
+ type ExtendEntityParameters = {
355
+ entityKey: Hex;
356
+ /** The entity's new lifetime, built with {@link ExpirationTime}. */
357
+ expires: Expiry;
358
+ };
359
+ /**
360
+ * The result of extending an entity.
361
+ */
362
+ type ExtendEntityReturnType = {
363
+ entityKey: Hex;
364
+ txHash: Hash;
365
+ /**
366
+ * The block the entity is now expected to expire at, resolved against the block the transaction
367
+ * was built on. Durations are approximate, so treat this as the estimate the operation was built
368
+ * from rather than the block the engine settled on.
369
+ */
370
+ expiresAt: bigint;
371
+ };
372
+ //#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
+ //#region src/actions/wallet/patchEntity.d.ts
399
+ /**
400
+ * Parameters for patching an entity.
401
+ *
402
+ * A patch names only what changes. Attributes it does not mention keep whatever value they have, and
403
+ * the payload and content type stay as they are unless given — so a caller can change one field
404
+ * without first reading the entity to learn what the others are, and without racing anyone else who
405
+ * is changing a different field.
406
+ *
407
+ * The entity's identity is fixed: a patch never moves the key, the owner, the creation flags or the
408
+ * expiry. Use `extendEntity` for the expiry and `changeOwnership` for the owner.
409
+ *
410
+ * @example Change one attribute and remove another, leaving the payload alone:
411
+ * await client.patchEntity({
412
+ * entityKey,
413
+ * set: { status: "published", level: i32(11) },
414
+ * unset: ["draft"],
415
+ * })
416
+ *
417
+ * @example Replace the contents without touching a single attribute:
418
+ * await client.patchEntity({
419
+ * entityKey,
420
+ * payload: jsonToPayload({ hello: "again" }),
421
+ * })
422
+ */
423
+ type PatchEntityParameters = {
424
+ /** The entity to patch. */
425
+ entityKey: Hex;
426
+ /**
427
+ * Attributes to write, keyed by name. An existing attribute is overwritten — including with a
428
+ * different type — and a name the entity does not carry yet is added.
429
+ *
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.
433
+ *
434
+ * @throws {InvalidAttributeNameError} If a name violates the attribute-name grammar.
435
+ * @throws {InvalidValueError} If a value does not fit the type it names or defaults to.
436
+ */
437
+ set?: AttributeInputs | undefined;
438
+ /**
439
+ * Attribute names to remove. Naming one the entity does not carry is not an error — the outcome
440
+ * is the same either way, and a caller clearing a field should not have to know whether it was
441
+ * ever set.
442
+ *
443
+ * @throws {ConflictingMutationError} If a name also appears in `set`.
444
+ */
445
+ unset?: readonly string[] | undefined;
446
+ /**
447
+ * The entity's new payload. Omit it to leave the current contents untouched; pass an empty
448
+ * `Uint8Array` to replace them with nothing.
449
+ */
450
+ payload?: Uint8Array | undefined;
451
+ /**
452
+ * The payload's new MIME type. Omit it to keep the current one — which is what you want when the
453
+ * new payload is the same kind of thing as the old.
454
+ */
455
+ contentType?: MimeType | (string & {}) | undefined;
456
+ };
457
+ /** The result of patching an entity. */
458
+ type PatchEntityReturnType = {
459
+ /** The patched entity's key — unchanged, since a patch never moves it. */
460
+ entityKey: Hex;
461
+ txHash: Hash;
462
+ };
463
+ //#endregion
464
+ //#region src/types/mimeTypes.d.ts
465
+ 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
+ //#endregion
467
+ //#region src/types/txParams.d.ts
468
+ type TxParams = {
469
+ gas?: bigint;
470
+ nonce?: number;
471
+ gasPrice?: bigint;
472
+ maxFeePerGas?: never;
473
+ maxPriorityFeePerGas?: never;
474
+ } | {
475
+ gas?: bigint;
476
+ nonce?: number;
477
+ maxFeePerGas?: bigint;
478
+ maxPriorityFeePerGas?: bigint;
479
+ gasPrice?: never;
480
+ };
481
+ //#endregion
482
+ //#region src/actions/wallet/changeOwnership.d.ts
483
+ /**
484
+ * Parameters for the changeOwnership function.
485
+ * - entityKey: The key of the entity.
486
+ * - newOwner: The address of the new owner.
487
+ */
488
+ type ChangeOwnershipParameters = {
489
+ entityKey: Hex;
490
+ newOwner: Hex;
491
+ };
492
+ /**
493
+ * Return type for the changeOwnership function.
494
+ * - entityKey: The key of the entity.
495
+ * - txHash: The transaction hash.
496
+ */
497
+ type ChangeOwnershipReturnType = {
498
+ entityKey: Hex;
499
+ txHash: Hash;
500
+ };
501
+ //#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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arkivTransactions-NtGD6uk5.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/mutateEntities.ts","../src/actions/wallet/patchEntity.ts","../src/types/mimeTypes.ts","../src/types/txParams.ts","../src/actions/wallet/changeOwnership.ts","../src/utils/arkivTransactions.ts"],"sourcesContent":[],"mappings":";;;;;;;;KAKY,wBAAA;;;;;;;;;;;;;AAAA,KCOA,kBAAA,GDPwB;;OCS7B;;EAFK,IAAA,EAAA,MAAA;AAQZ,CAAA;;AAaU,KAbE,2BAaF,CAAA,eAAA,MAAA,GAAA,MAAA,EAAA,eAAA,SAAA,MAAA,EAAA,GAAA,SAAA,GAAA,SAAA,MAAA,EAAA,GAAA,SAAA,CAAA,GAAA;EAKA;EAAM,KAAA,EAbP,OAaO;EAaJ;;;;;;;EAKF,KAAA,CAAA,EAvBA,MAuBA,GAAA,SAAA;EAOL;;;;EAED,KAAA,CAAA,EA3BM,MA2BN;CAAuB;;;;;;;;;;;AC3Df,KD6CA,2BC3CD,CAAA,eAAS,MAAA,GAAA,MAAA,EAAA,eAAA,SAAA,MAAA,EAAA,GAAA,SAAA,GAAA,SAAA,MAAA,EAAA,GAAA,SAAA,CAAA,GAAA,CD8Cf,M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9BnE,qBAAA,GR8BmE;EAC3E;EACA,SAAA,EQ9BS,GR8BT;EAAuB;;;;;;;;;;;EC3Df,GAAA,CAAA,EOyCJ,ePzCgB,GAAA,SAEb;EAaC;;;;ACXZ;AAUA;;EAEa,KAAA,CAAA,EAAA,SAAA,MAAA,EAAA,GAAA,SAAA;EACJ;;;AAcT;EAAiC,OAAA,CAAA,EMuBrB,UNvBqB,GAAA,SAAA;EAEpB;;;AAKb;EAAkC,WAAA,CAAA,EMqBlB,QNrBkB,GAAA,CAAA,MAAA,GAAA,CAAA,CAAA,CAAA,GAAA,SAAA;CAErB;;AAMG,KMiBJ,qBAAA,GNjBI;EAMJ;EAA4B,SAAA,EMa3B,GNb2B;EAE3B,MAAA,EMYH,INZG;CACI;;;KO7DL,QAAA;;;KCAA,QAAA;;;;;;;;EXKA,KAAA,CAAA,EAAA,MAAA;;;;ACOZ,CAAA;;;;;;;;ADPY,KYQA,yBAAA,GZRwB;aYSvB;YACD;;AXHZ;AAQA;;;;AAkBgB,KWfJ,yBAAA,GXeI;EAaJ,SAAA,EW3BC,GX2BD;EAGP,MAAA,EW7BK,IX6BL;CAC2B;;;;;KY4LpB,iBAAA;;YAEA;;YAEA;;YAEA;;eAEG;;qBAEM;;;;;;;;;iBAUL,wBAAA,MAA8B;;;;;;;;;;iBAkB9B,qBAAA,MAA2B,4BAA4B,gBAAgB;;KA8F3E,cAAA;;eACY;WAAY;;;;eACZ;WAAY;;;eACZ;WAAY;;;eACX;WAAY;;;;eACA;mBAAoB;cAAmB;;;;;;;;;;iBAU5D,qBAAA,OAA4B,6BAA6B"}
@@ -0,0 +1,35 @@
1
+ const require_attributes = require('../attributes-Df9IsCVs.cjs');
2
+ require('../attr-DlmErkvR.cjs');
3
+
4
+ exports.ConflictingMutationError = require_attributes.ConflictingMutationError;
5
+ exports.DECIMAL_SCALE = require_attributes.DECIMAL_SCALE;
6
+ exports.DECIMAL_UNIT = require_attributes.DECIMAL_UNIT;
7
+ exports.I32_MAX = require_attributes.I32_MAX;
8
+ exports.I32_MIN = require_attributes.I32_MIN;
9
+ exports.InvalidAttributeNameError = require_attributes.InvalidAttributeNameError;
10
+ exports.InvalidValueError = require_attributes.InvalidValueError;
11
+ exports.MAX_ATTRIBUTES = require_attributes.MAX_ATTRIBUTES;
12
+ exports.MAX_NAME_BYTES = require_attributes.MAX_NAME_BYTES;
13
+ exports.MAX_PAYLOAD_BYTES = require_attributes.MAX_PAYLOAD_BYTES;
14
+ exports.MAX_STRING_BYTES = require_attributes.MAX_STRING_BYTES;
15
+ exports.MissingValueError = require_attributes.MissingValueError;
16
+ exports.TooManyAttributesError = require_attributes.TooManyAttributesError;
17
+ exports.U256_MAX = require_attributes.U256_MAX;
18
+ exports.U64_MAX = require_attributes.U64_MAX;
19
+ exports.UnknownAttributeTypeError = require_attributes.UnknownAttributeTypeError;
20
+ exports.UntypedValueError = require_attributes.UntypedValueError;
21
+ exports.addr = require_attributes.addr;
22
+ exports.bool = require_attributes.bool;
23
+ exports.bytes32 = require_attributes.bytes32;
24
+ exports.dec = require_attributes.dec;
25
+ exports.decFromUnits = require_attributes.decFromUnits;
26
+ exports.decUnits = require_attributes.decUnits;
27
+ exports.i32 = require_attributes.i32;
28
+ exports.isArkivValue = require_attributes.isArkivValue;
29
+ exports.isValidAttributeName = require_attributes.isValidAttributeName;
30
+ exports.key = require_attributes.key;
31
+ exports.str = require_attributes.str;
32
+ exports.toValue = require_attributes.toValue;
33
+ exports.u256 = require_attributes.u256;
34
+ exports.u64 = require_attributes.u64;
35
+ exports.validateAttributeName = require_attributes.validateAttributeName;
@@ -0,0 +1,2 @@
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-CV5zCdpa.cjs";
2
+ export { AddrValue, AnyArkivValue, ArkivValue, AttributeInputs, AttributeSchema, Attributes, BoolValue, Bytes32Value, BytesValue, ConflictingMutationError, DECIMAL_SCALE, DECIMAL_UNIT, DecValue, I32Value, I32_MAX, I32_MIN, InvalidAttributeNameError, InvalidValueError, KeyValue, MAX_ATTRIBUTES, MAX_NAME_BYTES, MAX_PAYLOAD_BYTES, MAX_STRING_BYTES, MissingValueError, StrValue, TooManyAttributesError, TypeTag, U256Value, U256_MAX, U64Value, U64_MAX, UnknownAttributeTypeError, UntypedValueError, UserTypeTag, ValueInput, addr, bool, bytes32, dec, decFromUnits, decUnits, i32, isArkivValue, isValidAttributeName, key, str, toValue, u256, u64, validateAttributeName };
@@ -0,0 +1,3 @@
1
+ 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";
2
+ 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";
3
+ export { AddrValue, AnyArkivValue, ArkivValue, AttributeInputs, AttributeSchema, Attributes, BoolValue, Bytes32Value, BytesValue, ConflictingMutationError, DECIMAL_SCALE, DECIMAL_UNIT, DecValue, I32Value, I32_MAX, I32_MIN, InvalidAttributeNameError, InvalidValueError, KeyValue, MAX_ATTRIBUTES, MAX_NAME_BYTES, MAX_PAYLOAD_BYTES, MAX_STRING_BYTES, MissingValueError, StrValue, TooManyAttributesError, TypeTag, U256Value, U256_MAX, U64Value, U64_MAX, UnknownAttributeTypeError, UntypedValueError, UserTypeTag, ValueInput, addr, bool, bytes32, dec, decFromUnits, decUnits, i32, isArkivValue, isValidAttributeName, key, str, toValue, u256, u64, validateAttributeName };
@@ -0,0 +1,4 @@
1
+ import { A as DECIMAL_UNIT, C as str, E as u64, F as TooManyAttributesError, I as UnknownAttributeTypeError, L as UntypedValueError, M as InvalidAttributeNameError, N as InvalidValueError, O as isArkivValue, P as MissingValueError, S as key, T as u256, _ as bytes32, a as MAX_NAME_BYTES, b as decUnits, d as I32_MIN, f as MAX_STRING_BYTES, g as bool, h as addr, j as ConflictingMutationError, k as DECIMAL_SCALE, m as U64_MAX, n as MAX_PAYLOAD_BYTES, o as isValidAttributeName, p as U256_MAX, s as validateAttributeName, t as MAX_ATTRIBUTES, u as I32_MAX, v as dec, w as toValue, x as i32, y as decFromUnits } from "../attributes-BhY5DwJp.js";
2
+ import "../attr-GcQKatub.js";
3
+
4
+ export { ConflictingMutationError, DECIMAL_SCALE, DECIMAL_UNIT, I32_MAX, I32_MIN, InvalidAttributeNameError, InvalidValueError, MAX_ATTRIBUTES, MAX_NAME_BYTES, MAX_PAYLOAD_BYTES, MAX_STRING_BYTES, MissingValueError, TooManyAttributesError, U256_MAX, U64_MAX, UnknownAttributeTypeError, UntypedValueError, addr, bool, bytes32, dec, decFromUnits, decUnits, i32, isArkivValue, isValidAttributeName, key, str, toValue, u256, u64, validateAttributeName };