@arkiv-network/sdk 0.7.0-dev.1 → 0.8.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -16
- package/dist/attr/index.cjs +34 -0
- package/dist/attr/index.d.cts +2 -0
- package/dist/attr/index.d.ts +2 -0
- package/dist/attr/index.js +3 -0
- package/dist/attr-BDZ-APg5.js +809 -0
- package/dist/attr-BDZ-APg5.js.map +1 -0
- package/dist/attr-BvxHN99W.cjs +1029 -0
- package/dist/chains/index.cjs +2 -3
- package/dist/chains/index.d.cts +22 -60
- package/dist/chains/index.d.cts.map +1 -1
- package/dist/chains/index.d.ts +22 -60
- package/dist/chains/index.d.ts.map +1 -1
- package/dist/chains/index.js +2 -2
- package/dist/chains-BJrZs6sG.js +57 -0
- package/dist/chains-BJrZs6sG.js.map +1 -0
- package/dist/chains-BYRTTipa.cjs +73 -0
- package/dist/changeOwnership-B7bEgla4.d.cts +509 -0
- package/dist/changeOwnership-B7bEgla4.d.cts.map +1 -0
- package/dist/changeOwnership-DwgtdSFc.d.ts +509 -0
- package/dist/changeOwnership-DwgtdSFc.d.ts.map +1 -0
- package/dist/entity/index.cjs +19 -0
- package/dist/entity/index.d.cts +4 -0
- package/dist/entity/index.d.ts +4 -0
- package/dist/entity/index.js +6 -0
- package/dist/entity-B0t6sN7F.cjs +71 -0
- package/dist/entity-BIp_df9u.js +67 -0
- package/dist/entity-BIp_df9u.js.map +1 -0
- package/dist/entity-CFhbAv0R.js +70 -0
- package/dist/entity-CFhbAv0R.js.map +1 -0
- package/dist/entity-wfBnZd91.cjs +98 -0
- package/dist/errors-D-eJkGVc.cjs +56 -0
- package/dist/errors-DGB8AgT2.js +33 -0
- package/dist/errors-DGB8AgT2.js.map +1 -0
- package/dist/expiry-BUYIXTGb.cjs +135 -0
- package/dist/expiry-BxOlvVWC.d.ts +79 -0
- package/dist/expiry-BxOlvVWC.d.ts.map +1 -0
- package/dist/expiry-DGRzrSan.js +95 -0
- package/dist/expiry-DGRzrSan.js.map +1 -0
- package/dist/expiry-DRV29F1r.d.cts +79 -0
- package/dist/expiry-DRV29F1r.d.cts.map +1 -0
- package/dist/flags-0Vl5rrHq.d.cts +41 -0
- package/dist/flags-0Vl5rrHq.d.cts.map +1 -0
- package/dist/flags-Ct8k0gpB.cjs +43 -0
- package/dist/flags-ZtlvOIIk.js +33 -0
- package/dist/flags-ZtlvOIIk.js.map +1 -0
- package/dist/flags-wmcMoAnN.d.ts +41 -0
- package/dist/flags-wmcMoAnN.d.ts.map +1 -0
- package/dist/index-Cgw1u5aY.d.cts +278 -0
- package/dist/index-Cgw1u5aY.d.cts.map +1 -0
- package/dist/index-ClgIuxJ8.d.ts +159 -0
- package/dist/index-ClgIuxJ8.d.ts.map +1 -0
- package/dist/index-D0CmtiWT.d.cts +159 -0
- package/dist/index-D0CmtiWT.d.cts.map +1 -0
- package/dist/index-D8LZt-3J.d.cts +417 -0
- package/dist/index-D8LZt-3J.d.cts.map +1 -0
- package/dist/index-DVYFaXNV.d.ts +417 -0
- package/dist/index-DVYFaXNV.d.ts.map +1 -0
- package/dist/index-VCqgn29D.d.ts +278 -0
- package/dist/index-VCqgn29D.d.ts.map +1 -0
- package/dist/index.cjs +676 -375
- package/dist/index.d.cts +247 -208
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +247 -208
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +626 -368
- package/dist/index.js.map +1 -1
- package/dist/payload-Bnw1hrvb.cjs +83 -0
- package/dist/payload-CIxSn_DW.js +67 -0
- package/dist/payload-CIxSn_DW.js.map +1 -0
- package/dist/payload-Dgx3PQeK.d.ts +94 -0
- package/dist/payload-Dgx3PQeK.d.ts.map +1 -0
- package/dist/payload-P0nWyjLg.d.cts +94 -0
- package/dist/payload-P0nWyjLg.d.cts.map +1 -0
- package/dist/query/index.cjs +24 -150
- package/dist/query/index.d.cts +5 -3
- package/dist/query/index.d.ts +5 -3
- package/dist/query/index.js +6 -138
- package/dist/queryBuilder-BXDvX1K_.cjs +1123 -0
- package/dist/queryBuilder-CbLL4pG5.js +963 -0
- package/dist/queryBuilder-CbLL4pG5.js.map +1 -0
- package/dist/selection-BvK6yX0g.d.cts +433 -0
- package/dist/selection-BvK6yX0g.d.cts.map +1 -0
- package/dist/selection-fpmI3ADQ.d.ts +433 -0
- package/dist/selection-fpmI3ADQ.d.ts.map +1 -0
- package/dist/types/index.cjs +3 -3
- package/dist/types/index.d.cts +7 -2
- package/dist/types/index.d.ts +7 -2
- package/dist/types/index.js +3 -3
- package/dist/utils/index.cjs +4 -17
- package/dist/utils/index.d.cts +3 -17
- package/dist/utils/index.d.ts +3 -17
- package/dist/utils/index.js +4 -18
- package/package.json +26 -5
- package/src/actions/public/getEntity.ts +27 -43
- package/src/actions/public/getEntityNonce.ts +30 -0
- package/src/actions/public/predictEntityKeys.test.ts +143 -0
- package/src/actions/public/predictEntityKeys.ts +138 -0
- package/src/actions/public/query.ts +33 -69
- package/src/actions/public/watchEntityEvents.test.ts +414 -0
- package/src/actions/public/watchEntityEvents.ts +225 -0
- package/src/actions/wallet/changeOwnership.ts +2 -2
- package/src/actions/wallet/createEntity.ts +99 -24
- package/src/actions/wallet/extendEntity.ts +37 -13
- package/src/actions/wallet/mutateEntities.test.ts +76 -0
- package/src/actions/wallet/mutateEntities.ts +19 -21
- package/src/actions/wallet/patchEntity.ts +90 -0
- package/src/attr/attributes.test.ts +120 -0
- package/src/attr/attributes.ts +190 -0
- package/src/attr/codec.test.ts +162 -0
- package/src/attr/codec.ts +220 -0
- package/src/attr/decimal.ts +86 -0
- package/src/attr/errors.ts +145 -0
- package/src/attr/index.ts +50 -0
- package/src/attr/names.ts +106 -0
- package/src/attr/types.ts +150 -0
- package/src/attr/values.test.ts +271 -0
- package/src/attr/values.ts +502 -0
- package/src/chains/cheesecake.ts +22 -0
- package/src/chains/index.ts +1 -2
- package/src/clients/createPublicClient.test.ts +3 -5
- package/src/clients/createPublicClient.ts +5 -4
- package/src/clients/createWalletClient.test.ts +2 -2
- package/src/clients/createWalletClient.ts +13 -7
- package/src/clients/decorators/arkivPublic.ts +160 -139
- package/src/clients/decorators/arkivWallet.ts +86 -94
- package/src/entity/create.test.ts +184 -0
- package/src/entity/errors.ts +38 -0
- package/src/entity/events.ts +16 -0
- package/src/entity/expiry.test.ts +195 -0
- package/src/entity/expiry.ts +181 -0
- package/src/entity/flags.ts +65 -0
- package/src/entity/index.ts +14 -0
- package/src/entity/key.ts +68 -0
- package/src/entity/operations.ts +134 -0
- package/src/entity/params.ts +15 -0
- package/src/errors.ts +26 -49
- package/src/index.ts +6 -0
- package/src/query/engine.ts +59 -139
- package/src/query/errors.ts +151 -0
- package/src/query/expression.test.ts +286 -0
- package/src/query/expression.ts +493 -0
- package/src/query/index.ts +40 -4
- package/src/query/injection.test.ts +151 -0
- package/src/query/queryBuilder.test.ts +322 -637
- package/src/query/queryBuilder.ts +126 -359
- package/src/query/queryResult.ts +54 -51
- package/src/query/selection.test.ts +48 -98
- package/src/query/selection.ts +77 -65
- package/src/types/entity.test.ts +44 -155
- package/src/types/entity.ts +60 -52
- package/src/types/events.ts +59 -16
- package/src/types/index.ts +20 -17
- package/src/types/rpcSchema.ts +69 -37
- package/src/utils/arkivTransactions.test.ts +600 -155
- package/src/utils/arkivTransactions.ts +181 -190
- package/src/utils/chains.test.ts +21 -24
- package/src/utils/compression.ts +1 -1
- package/src/utils/entities.test.ts +62 -0
- package/src/utils/entities.ts +109 -37
- package/src/utils/expirationTime.ts +114 -10
- package/src/utils/logger.ts +2 -2
- package/src/utils/revert.test.ts +99 -0
- package/src/utils/revert.ts +145 -0
- package/dist/chains-BifaY04V.cjs +0 -108
- package/dist/chains-CrtkVbBh.js +0 -86
- package/dist/chains-CrtkVbBh.js.map +0 -1
- package/dist/consts-Bz0LZQZY.js +0 -7
- package/dist/consts-Bz0LZQZY.js.map +0 -1
- package/dist/consts-CxT1-RXU.cjs +0 -18
- package/dist/entity-BhSXaB23.cjs +0 -81
- package/dist/entity-CN41IOrq.d.cts +0 -401
- package/dist/entity-CN41IOrq.d.cts.map +0 -1
- package/dist/entity-DGfVyB-a.js +0 -71
- package/dist/entity-DGfVyB-a.js.map +0 -1
- package/dist/entity-NnEVlePN.d.ts +0 -401
- package/dist/entity-NnEVlePN.d.ts.map +0 -1
- package/dist/index-ClkpS6s_.d.ts +0 -481
- package/dist/index-ClkpS6s_.d.ts.map +0 -1
- package/dist/index-w4qop0Pe.d.cts +0 -481
- package/dist/index-w4qop0Pe.d.cts.map +0 -1
- package/dist/payload-BpNUPOnY.js +0 -13
- package/dist/payload-BpNUPOnY.js.map +0 -1
- package/dist/payload-C2KHOUoj.d.ts +0 -6
- package/dist/payload-C2KHOUoj.d.ts.map +0 -1
- package/dist/payload-CJN8fTvX.d.cts +0 -6
- package/dist/payload-CJN8fTvX.d.cts.map +0 -1
- package/dist/payload-D8YLKcJj.cjs +0 -23
- package/dist/query/index.js.map +0 -1
- package/dist/queryBuilder-BE_XhLLa.js +0 -735
- package/dist/queryBuilder-BE_XhLLa.js.map +0 -1
- package/dist/queryBuilder-J37buGCi.cjs +0 -865
- package/dist/utils/index.d.cts.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js.map +0 -1
- package/src/actions/public/buildQuery.ts +0 -10
- package/src/actions/public/subscribeEntityEvents.ts +0 -93
- package/src/actions/wallet/updateEntity.ts +0 -59
- package/src/chains/braga.ts +0 -26
- package/src/chains/kaolin.ts +0 -29
- package/src/query/engine.test.ts +0 -571
- package/src/query/predicate.test.ts +0 -461
- package/src/query/predicate.ts +0 -144
- package/src/query/queryResult.test.ts +0 -270
- package/src/query/selectQueryBuilder.test.ts +0 -213
- package/src/types/attributes.ts +0 -28
- package/src/utils/validation.test.ts +0 -106
- package/src/utils/validation.ts +0 -80
- /package/dist/{types-Ci4BRClw.js → types-Bx1EKe0v.js} +0 -0
- /package/dist/{types-a8gm_IaQ.cjs → types-CKPddlfS.cjs} +0 -0
package/dist/entity-DGfVyB-a.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { bytesToString } from "viem";
|
|
2
|
-
|
|
3
|
-
//#region src/types/entity.ts
|
|
4
|
-
let EntityOperationType = /* @__PURE__ */ function(EntityOperationType$1) {
|
|
5
|
-
EntityOperationType$1[EntityOperationType$1["Create"] = 1] = "Create";
|
|
6
|
-
EntityOperationType$1[EntityOperationType$1["Update"] = 2] = "Update";
|
|
7
|
-
EntityOperationType$1[EntityOperationType$1["Extend"] = 3] = "Extend";
|
|
8
|
-
EntityOperationType$1[EntityOperationType$1["Transfer"] = 4] = "Transfer";
|
|
9
|
-
EntityOperationType$1[EntityOperationType$1["Delete"] = 5] = "Delete";
|
|
10
|
-
EntityOperationType$1[EntityOperationType$1["Expire"] = 6] = "Expire";
|
|
11
|
-
return EntityOperationType$1;
|
|
12
|
-
}({});
|
|
13
|
-
var Entity = class {
|
|
14
|
-
key;
|
|
15
|
-
contentType;
|
|
16
|
-
owner;
|
|
17
|
-
creator;
|
|
18
|
-
expiresAtBlock;
|
|
19
|
-
createdAtBlock;
|
|
20
|
-
lastModifiedAtBlock;
|
|
21
|
-
transactionIndexInBlock;
|
|
22
|
-
operationIndexInTransaction;
|
|
23
|
-
payload;
|
|
24
|
-
attributes;
|
|
25
|
-
constructor(key, contentType = void 0, owner = void 0, creator = void 0, expiresAtBlock = void 0, createdAtBlock = void 0, lastModifiedAtBlock = void 0, transactionIndexInBlock = void 0, operationIndexInTransaction = void 0, payload = void 0, attributes) {
|
|
26
|
-
this.key = key;
|
|
27
|
-
this.owner = owner;
|
|
28
|
-
this.creator = creator;
|
|
29
|
-
this.expiresAtBlock = expiresAtBlock;
|
|
30
|
-
this.createdAtBlock = createdAtBlock;
|
|
31
|
-
this.lastModifiedAtBlock = lastModifiedAtBlock;
|
|
32
|
-
this.transactionIndexInBlock = transactionIndexInBlock;
|
|
33
|
-
this.operationIndexInTransaction = operationIndexInTransaction;
|
|
34
|
-
this.payload = payload;
|
|
35
|
-
this.attributes = attributes;
|
|
36
|
-
this.contentType = contentType;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Converts the entity payload from bytes to a string and returns it.
|
|
40
|
-
* Throws an error if the payload is undefined, which may occur if the entity was not queried with the withPayload option.
|
|
41
|
-
* Throws an error if the conversion from bytes to string fails.
|
|
42
|
-
* @returns The entity payload as a string.
|
|
43
|
-
*/
|
|
44
|
-
toText() {
|
|
45
|
-
if (this.payload === void 0) throw new Error("Entity has no payload – it was probably queried without withPayload(true) via QueryBuilder");
|
|
46
|
-
try {
|
|
47
|
-
return bytesToString(this.payload);
|
|
48
|
-
} catch (e) {
|
|
49
|
-
throw new Error(`Failed to convert entity payload to text: ${e instanceof Error ? e.message : String(e)}`, { cause: e });
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Parses the entity payload as JSON and returns the resulting object.
|
|
54
|
-
* Throws an error if the payload is undefined, which may occur if the entity was not queried with the withPayload option.
|
|
55
|
-
* Throws an error if the payload is empty or cannot be parsed as JSON.
|
|
56
|
-
* @returns The parsed JSON object from the entity payload.
|
|
57
|
-
*/
|
|
58
|
-
toJson() {
|
|
59
|
-
const text = this.toText();
|
|
60
|
-
if (!text) throw new Error("Entity has empty payload, cannot parse as JSON");
|
|
61
|
-
try {
|
|
62
|
-
return JSON.parse(text);
|
|
63
|
-
} catch (e) {
|
|
64
|
-
throw new Error(`Failed to parse entity payload as JSON: ${e instanceof Error ? e.message : String(e)}`, { cause: e });
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
//#endregion
|
|
70
|
-
export { EntityOperationType as n, Entity as t };
|
|
71
|
-
//# sourceMappingURL=entity-DGfVyB-a.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity-DGfVyB-a.js","names":[],"sources":["../src/types/entity.ts"],"sourcesContent":["import { bytesToString, type Hex } from \"viem\"\n\nexport enum EntityOperationType {\n Create = 1,\n Update = 2,\n Extend = 3,\n Transfer = 4,\n Delete = 5,\n Expire = 6,\n}\n\nimport type { MimeType } from \"../types\"\nimport type { Attribute } from \"./attributes\"\n\nexport class Entity {\n key: Hex\n contentType: MimeType | `${string}/${string}` | undefined\n owner: Hex | undefined\n creator: Hex | undefined\n expiresAtBlock: bigint | undefined\n createdAtBlock: bigint | undefined\n lastModifiedAtBlock: bigint | undefined\n transactionIndexInBlock: bigint | undefined\n operationIndexInTransaction: bigint | undefined\n payload: Uint8Array | undefined\n attributes: Attribute[]\n\n constructor(\n key: Hex,\n contentType: MimeType | `${string}/${string}` | undefined = undefined,\n owner: Hex | undefined = undefined,\n creator: Hex | undefined = undefined,\n expiresAtBlock: bigint | undefined = undefined,\n createdAtBlock: bigint | undefined = undefined,\n lastModifiedAtBlock: bigint | undefined = undefined,\n transactionIndexInBlock: bigint | undefined = undefined,\n operationIndexInTransaction: bigint | undefined = undefined,\n payload: Uint8Array | undefined = undefined,\n attributes: Attribute[],\n ) {\n this.key = key\n this.owner = owner\n this.creator = creator\n this.expiresAtBlock = expiresAtBlock\n this.createdAtBlock = createdAtBlock\n this.lastModifiedAtBlock = lastModifiedAtBlock\n this.transactionIndexInBlock = transactionIndexInBlock\n this.operationIndexInTransaction = operationIndexInTransaction\n this.payload = payload\n this.attributes = attributes\n this.contentType = contentType\n }\n\n /**\n * Converts the entity payload from bytes to a string and returns it.\n * Throws an error if the payload is undefined, which may occur if the entity was not queried with the withPayload option.\n * Throws an error if the conversion from bytes to string fails.\n * @returns The entity payload as a string.\n */\n toText(): string {\n if (this.payload === undefined) {\n throw new Error(\n \"Entity has no payload – it was probably queried without withPayload(true) via QueryBuilder\",\n )\n }\n try {\n return bytesToString(this.payload)\n } catch (e) {\n throw new Error(\n `Failed to convert entity payload to text: ${e instanceof Error ? e.message : String(e)}`,\n { cause: e },\n )\n }\n }\n\n /**\n * Parses the entity payload as JSON and returns the resulting object.\n * Throws an error if the payload is undefined, which may occur if the entity was not queried with the withPayload option.\n * Throws an error if the payload is empty or cannot be parsed as JSON.\n * @returns The parsed JSON object from the entity payload.\n */\n toJson(): any {\n const text = this.toText()\n if (!text) {\n throw new Error(\"Entity has empty payload, cannot parse as JSON\")\n }\n try {\n return JSON.parse(text)\n } catch (e) {\n throw new Error(\n `Failed to parse entity payload as JSON: ${e instanceof Error ? e.message : String(e)}`,\n { cause: e },\n )\n }\n }\n}\n"],"mappings":";;;AAEA,IAAY,sEAAL;AACL;AACA;AACA;AACA;AACA;AACA;;;AAMF,IAAa,SAAb,MAAoB;CAClB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA,YACE,KACA,cAA4D,QAC5D,QAAyB,QACzB,UAA2B,QAC3B,iBAAqC,QACrC,iBAAqC,QACrC,sBAA0C,QAC1C,0BAA8C,QAC9C,8BAAkD,QAClD,UAAkC,QAClC,YACA;AACA,OAAK,MAAM;AACX,OAAK,QAAQ;AACb,OAAK,UAAU;AACf,OAAK,iBAAiB;AACtB,OAAK,iBAAiB;AACtB,OAAK,sBAAsB;AAC3B,OAAK,0BAA0B;AAC/B,OAAK,8BAA8B;AACnC,OAAK,UAAU;AACf,OAAK,aAAa;AAClB,OAAK,cAAc;;;;;;;;CASrB,SAAiB;AACf,MAAI,KAAK,YAAY,OACnB,OAAM,IAAI,MACR,6FACD;AAEH,MAAI;AACF,UAAO,cAAc,KAAK,QAAQ;WAC3B,GAAG;AACV,SAAM,IAAI,MACR,6CAA6C,aAAa,QAAQ,EAAE,UAAU,OAAO,EAAE,IACvF,EAAE,OAAO,GAAG,CACb;;;;;;;;;CAUL,SAAc;EACZ,MAAM,OAAO,KAAK,QAAQ;AAC1B,MAAI,CAAC,KACH,OAAM,IAAI,MAAM,iDAAiD;AAEnE,MAAI;AACF,UAAO,KAAK,MAAM,KAAK;WAChB,GAAG;AACV,SAAM,IAAI,MACR,2CAA2C,aAAa,QAAQ,EAAE,UAAU,OAAO,EAAE,IACrF,EAAE,OAAO,GAAG,CACb"}
|
|
@@ -1,401 +0,0 @@
|
|
|
1
|
-
import { Account, Address, Chain, Client, Hash, Hex, RpcSchema, Transport } from "viem";
|
|
2
|
-
|
|
3
|
-
//#region src/types/mimeTypes.d.ts
|
|
4
|
-
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";
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region src/types/rpcSchema.d.ts
|
|
7
|
-
type RpcEntity = {
|
|
8
|
-
key: Hex;
|
|
9
|
-
contentType: MimeType;
|
|
10
|
-
value: string;
|
|
11
|
-
expiresAt: Hex;
|
|
12
|
-
createdAtBlock: Hex;
|
|
13
|
-
lastModifiedAtBlock: Hex;
|
|
14
|
-
transactionIndexInBlock: Hex;
|
|
15
|
-
operationIndexInTransaction: Hex;
|
|
16
|
-
owner: Hex;
|
|
17
|
-
creator: Hex;
|
|
18
|
-
attributes?: {
|
|
19
|
-
key: string;
|
|
20
|
-
value: string;
|
|
21
|
-
valueType: RpcAttributeValueType;
|
|
22
|
-
}[];
|
|
23
|
-
};
|
|
24
|
-
declare enum RpcAttributeValueType {
|
|
25
|
-
Uint = 1,
|
|
26
|
-
String = 2,
|
|
27
|
-
EntityKey = 3,
|
|
28
|
-
}
|
|
29
|
-
type RpcOrderByAttribute = {
|
|
30
|
-
name: string;
|
|
31
|
-
type: "string" | "numeric";
|
|
32
|
-
desc: boolean;
|
|
33
|
-
};
|
|
34
|
-
type RpcQueryOptions = {
|
|
35
|
-
atBlock?: Hex;
|
|
36
|
-
includeData?: RpcIncludeData;
|
|
37
|
-
orderBy?: RpcOrderByAttribute[];
|
|
38
|
-
resultsPerPage?: Hex;
|
|
39
|
-
cursor?: string;
|
|
40
|
-
};
|
|
41
|
-
type RpcIncludeData = {
|
|
42
|
-
key?: boolean;
|
|
43
|
-
attributes?: boolean;
|
|
44
|
-
payload?: boolean;
|
|
45
|
-
contentType?: boolean;
|
|
46
|
-
expiration?: boolean;
|
|
47
|
-
owner?: boolean;
|
|
48
|
-
creator?: boolean;
|
|
49
|
-
createdAtBlock?: boolean;
|
|
50
|
-
lastModifiedAtBlock?: boolean;
|
|
51
|
-
transactionIndexInBlock?: boolean;
|
|
52
|
-
operationIndexInTransaction?: boolean;
|
|
53
|
-
};
|
|
54
|
-
type ArkivRpcSchema = [{
|
|
55
|
-
Method: "arkiv_query";
|
|
56
|
-
Parameters?: [query: string, queryOptions?: RpcQueryOptions];
|
|
57
|
-
ReturnType: {
|
|
58
|
-
data: RpcEntity[];
|
|
59
|
-
blockNumber: Hex;
|
|
60
|
-
cursor: string;
|
|
61
|
-
};
|
|
62
|
-
}, {
|
|
63
|
-
Method: "arkiv_getBlockTiming";
|
|
64
|
-
Parameters?: [];
|
|
65
|
-
ReturnType: {
|
|
66
|
-
current_block: bigint;
|
|
67
|
-
current_block_time: number;
|
|
68
|
-
duration: number;
|
|
69
|
-
};
|
|
70
|
-
}, {
|
|
71
|
-
Method: "arkiv_getEntityCount";
|
|
72
|
-
Parameters?: [];
|
|
73
|
-
ReturnType: number;
|
|
74
|
-
}];
|
|
75
|
-
//#endregion
|
|
76
|
-
//#region src/clients/baseClient.d.ts
|
|
77
|
-
type ArkivClient<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, accountOrAddress extends Account | undefined = Account | undefined, rpcSchema extends RpcSchema | undefined = ArkivRpcSchema> = Client<transport, chain, accountOrAddress, rpcSchema>;
|
|
78
|
-
//#endregion
|
|
79
|
-
//#region src/actions/public/getBlockTiming.d.ts
|
|
80
|
-
type GetBlockTimingReturnType = {
|
|
81
|
-
currentBlock: bigint;
|
|
82
|
-
currentBlockTime: number;
|
|
83
|
-
blockDuration: number;
|
|
84
|
-
};
|
|
85
|
-
//#endregion
|
|
86
|
-
//#region src/actions/public/query.d.ts
|
|
87
|
-
type QueryOptionsIncludeData = {
|
|
88
|
-
attributes?: boolean;
|
|
89
|
-
payload?: boolean;
|
|
90
|
-
metadata?: boolean;
|
|
91
|
-
};
|
|
92
|
-
/**
|
|
93
|
-
* @deprecated Server-side ordering is not supported by the network. Sort the fetched
|
|
94
|
-
* entities in JavaScript instead (e.g. `entities.sort(...)`). This type will be removed
|
|
95
|
-
* in a future release.
|
|
96
|
-
*/
|
|
97
|
-
type QueryOptionsOrderBy = {
|
|
98
|
-
name: string;
|
|
99
|
-
type: "string" | "numeric";
|
|
100
|
-
desc: "asc" | "desc";
|
|
101
|
-
};
|
|
102
|
-
type QueryOptions = {
|
|
103
|
-
includeData?: QueryOptionsIncludeData;
|
|
104
|
-
atBlock?: bigint;
|
|
105
|
-
/**
|
|
106
|
-
* @deprecated Server-side ordering is not supported by the network, so this option has no
|
|
107
|
-
* effect on the returned order. Sort the fetched entities in JavaScript instead
|
|
108
|
-
* (e.g. `entities.sort(...)`). This option will be removed in a future release.
|
|
109
|
-
*/
|
|
110
|
-
orderBy?: QueryOptionsOrderBy[];
|
|
111
|
-
resultsPerPage?: number | undefined;
|
|
112
|
-
cursor?: string | undefined;
|
|
113
|
-
};
|
|
114
|
-
type QueryReturnType = {
|
|
115
|
-
entities: Entity[];
|
|
116
|
-
cursor: string | undefined;
|
|
117
|
-
blockNumber: bigint | undefined;
|
|
118
|
-
};
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region src/actions/wallet/changeOwnership.d.ts
|
|
121
|
-
/**
|
|
122
|
-
* Parameters for the changeOwnership function.
|
|
123
|
-
* - entityKey: The key of the entity.
|
|
124
|
-
* - newOwner: The address of the new owner.
|
|
125
|
-
*/
|
|
126
|
-
type ChangeOwnershipParameters = {
|
|
127
|
-
entityKey: Hex;
|
|
128
|
-
newOwner: Hex;
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* Return type for the changeOwnership function.
|
|
132
|
-
* - entityKey: The key of the entity.
|
|
133
|
-
* - txHash: The transaction hash.
|
|
134
|
-
*/
|
|
135
|
-
type ChangeOwnershipReturnType = {
|
|
136
|
-
entityKey: Hex;
|
|
137
|
-
txHash: string;
|
|
138
|
-
};
|
|
139
|
-
//#endregion
|
|
140
|
-
//#region src/actions/wallet/createEntity.d.ts
|
|
141
|
-
/**
|
|
142
|
-
* Parameters for the createEntity function.
|
|
143
|
-
* - payload: The payload of the entity.
|
|
144
|
-
* - attributes: The attributes of the entity. Attribute values may be strings
|
|
145
|
-
* or numbers, but numeric values **must be integers**. To store a non-integer,
|
|
146
|
-
* scale it to an integer (e.g. `1.5` -> `1500`) to preserve numeric ordering,
|
|
147
|
-
* or pass it as a string (e.g. `"1.5"`). A non-integer numeric value throws an
|
|
148
|
-
* {@link InvalidAttributeError}.
|
|
149
|
-
* - contentType: The content type of the entity.
|
|
150
|
-
* - expiresIn: How long until the entity expires, in seconds. Because Arkiv
|
|
151
|
-
* measures expiration in blocks (1 block = 2 seconds), this **must be a
|
|
152
|
-
* positive integer and a multiple of the block time (2 seconds)**
|
|
153
|
-
* Invalid values throw an {@link InvalidExpirationError}.
|
|
154
|
-
*/
|
|
155
|
-
type CreateEntityParameters = {
|
|
156
|
-
payload: Uint8Array;
|
|
157
|
-
/** Entity attributes. Numeric values must be integers (scale non-integers, e.g. `1.5` -> `1500`, or use a string). Throws {@link InvalidAttributeError} otherwise. */
|
|
158
|
-
attributes: Attribute[];
|
|
159
|
-
contentType: MimeType | string;
|
|
160
|
-
/** Seconds until expiry. Must be a positive integer and a multiple of the 2s block time.
|
|
161
|
-
* Throws {@link InvalidExpirationError} otherwise. */
|
|
162
|
-
expiresIn: number;
|
|
163
|
-
};
|
|
164
|
-
/**
|
|
165
|
-
* Return type for the createEntity function.
|
|
166
|
-
* - entityKey: The key of the entity.
|
|
167
|
-
* - txHash: The transaction hash.
|
|
168
|
-
*/
|
|
169
|
-
type CreateEntityReturnType = {
|
|
170
|
-
entityKey: Hex;
|
|
171
|
-
txHash: Hash;
|
|
172
|
-
};
|
|
173
|
-
//#endregion
|
|
174
|
-
//#region src/actions/wallet/deleteEntity.d.ts
|
|
175
|
-
/**
|
|
176
|
-
* Parameters for the deleteEntity function.
|
|
177
|
-
* - entityKey: The key of the entity to delete.
|
|
178
|
-
*/
|
|
179
|
-
type DeleteEntityParameters = {
|
|
180
|
-
entityKey: Hex;
|
|
181
|
-
};
|
|
182
|
-
/**
|
|
183
|
-
* Return type for the deleteEntity function.
|
|
184
|
-
* - entityKey: The key of the entity.
|
|
185
|
-
* - txHash: The transaction hash.
|
|
186
|
-
*/
|
|
187
|
-
type DeleteEntityReturnType = {
|
|
188
|
-
entityKey: Hex;
|
|
189
|
-
txHash: Hash;
|
|
190
|
-
};
|
|
191
|
-
//#endregion
|
|
192
|
-
//#region src/actions/wallet/extendEntity.d.ts
|
|
193
|
-
/**
|
|
194
|
-
* Parameters for the extendEntity function.
|
|
195
|
-
* - entityKey: The key of the entity to extend.
|
|
196
|
-
* - expiresIn: How long to extend the entity by, in seconds. Because Arkiv
|
|
197
|
-
* measures expiration in blocks (1 block = 2 seconds), this **must be a
|
|
198
|
-
* positive integer and a multiple of the block time (2 seconds)**.
|
|
199
|
-
* Invalid values throw an {@link InvalidExpirationError}.
|
|
200
|
-
*/
|
|
201
|
-
type ExtendEntityParameters = {
|
|
202
|
-
entityKey: Hex;
|
|
203
|
-
/** Seconds to extend by. Must be a positive integer and a multiple of the 2s block time.
|
|
204
|
-
* Throws {@link InvalidExpirationError} otherwise. */
|
|
205
|
-
expiresIn: number;
|
|
206
|
-
};
|
|
207
|
-
/**
|
|
208
|
-
* Return type for the extendEntity function.
|
|
209
|
-
* - entityKey: The key of the entity.
|
|
210
|
-
* - txHash: The transaction hash.
|
|
211
|
-
*/
|
|
212
|
-
type ExtendEntityReturnType = {
|
|
213
|
-
entityKey: Hex;
|
|
214
|
-
txHash: Hash;
|
|
215
|
-
};
|
|
216
|
-
//#endregion
|
|
217
|
-
//#region src/actions/wallet/updateEntity.d.ts
|
|
218
|
-
/**
|
|
219
|
-
* Parameters for the updateEntity function.
|
|
220
|
-
* - entityKey: The key of the entity to update.
|
|
221
|
-
* - payload: The payload of the entity.
|
|
222
|
-
* - attributes: The attributes of the entity. Attribute values may be strings
|
|
223
|
-
* or numbers, but numeric values **must be integers**. To store a non-integer,
|
|
224
|
-
* scale it to an integer (e.g. `1.5` -> `1500`) to preserve numeric ordering,
|
|
225
|
-
* or pass it as a string (e.g. `"1.5"`). A non-integer numeric value throws an
|
|
226
|
-
* {@link InvalidAttributeError}.
|
|
227
|
-
* - contentType: The content type of the entity.
|
|
228
|
-
* - expiresIn: How long until the entity expires, in seconds. Because Arkiv
|
|
229
|
-
* measures expiration in blocks (1 block = 2 seconds), this **must be a
|
|
230
|
-
* positive integer and a multiple of the block time (2 seconds)**.
|
|
231
|
-
* Invalid values throw an {@link InvalidExpirationError}.
|
|
232
|
-
*/
|
|
233
|
-
type UpdateEntityParameters = {
|
|
234
|
-
entityKey: Hex;
|
|
235
|
-
payload: Uint8Array;
|
|
236
|
-
/** Entity attributes. Numeric values must be integers (scale non-integers, e.g. `1.5` -> `1500`, or use a string). Throws {@link InvalidAttributeError} otherwise. */
|
|
237
|
-
attributes: Attribute[];
|
|
238
|
-
contentType: MimeType | string;
|
|
239
|
-
/** Seconds until expiry. Must be a positive integer and a multiple of the 2s block time.
|
|
240
|
-
* Throws {@link InvalidExpirationError} otherwise. */
|
|
241
|
-
expiresIn: number;
|
|
242
|
-
};
|
|
243
|
-
/**
|
|
244
|
-
* Return type for the updateEntity function.
|
|
245
|
-
* - entityKey: The key of the entity.
|
|
246
|
-
* - txHash: The transaction hash.
|
|
247
|
-
*/
|
|
248
|
-
type UpdateEntityReturnType = {
|
|
249
|
-
entityKey: Hex;
|
|
250
|
-
txHash: Hash;
|
|
251
|
-
};
|
|
252
|
-
//#endregion
|
|
253
|
-
//#region src/actions/wallet/mutateEntities.d.ts
|
|
254
|
-
/**
|
|
255
|
-
* Parameters for the mutateEntities function.
|
|
256
|
-
* - creates: The creates to perform.
|
|
257
|
-
* - updates: The updates to perform.
|
|
258
|
-
* - deletes: The deletes to perform.
|
|
259
|
-
* - extensions: The extensions to perform.
|
|
260
|
-
*/
|
|
261
|
-
type MutateEntitiesParameters = {
|
|
262
|
-
creates?: CreateEntityParameters[];
|
|
263
|
-
updates?: UpdateEntityParameters[];
|
|
264
|
-
deletes?: DeleteEntityParameters[];
|
|
265
|
-
extensions?: ExtendEntityParameters[];
|
|
266
|
-
ownershipChanges?: ChangeOwnershipParameters[];
|
|
267
|
-
};
|
|
268
|
-
/**
|
|
269
|
-
* Return type for the mutateEntities function.
|
|
270
|
-
* - txHash: The transaction hash.
|
|
271
|
-
* - createdEntities: The keys of the created entities.
|
|
272
|
-
* - updatedEntities: The keys of the updated entities.
|
|
273
|
-
* - deletedEntities: The keys of the deleted entities.
|
|
274
|
-
* - extendedEntities: The keys of the extended entities.
|
|
275
|
-
* - ownershipChanges: The keys of the ownership changes.
|
|
276
|
-
*/
|
|
277
|
-
type MutateEntitiesReturnType = {
|
|
278
|
-
txHash: Hash;
|
|
279
|
-
createdEntities: Hex[];
|
|
280
|
-
updatedEntities: Hex[];
|
|
281
|
-
deletedEntities: Hex[];
|
|
282
|
-
extendedEntities: Hex[];
|
|
283
|
-
ownershipChanges: Hex[];
|
|
284
|
-
};
|
|
285
|
-
//#endregion
|
|
286
|
-
//#region src/types/attributes.d.ts
|
|
287
|
-
/**
|
|
288
|
-
* An entity attribute (key/value pair).
|
|
289
|
-
*
|
|
290
|
-
* Arkiv supports string, Hex and number values.
|
|
291
|
-
*
|
|
292
|
-
* Hex values are stored as the on-chain `EntityKey` type **only when they are
|
|
293
|
-
* exactly 32 bytes** (66 characters, e.g. an entity key). Hex-looking strings
|
|
294
|
-
* of any other length are stored as plain strings: they round-trip unchanged
|
|
295
|
-
* and compare lexicographically, not as hex.
|
|
296
|
-
*
|
|
297
|
-
* Numeric values **must be non-negative integers** (they are stored on-chain
|
|
298
|
-
* as unsigned 256-bit) — passing a non-integer (e.g. `1.5`) or negative number
|
|
299
|
-
* throws an {@link InvalidAttributeError} at mutation time. To store a
|
|
300
|
-
* non-integer value:
|
|
301
|
-
* - Scale it to an integer (e.g. `1.5` -> `1500`, dividing by the same factor on
|
|
302
|
-
* read) to keep numeric ordering and range queries working.
|
|
303
|
-
* - Or pass it as a string (e.g. `"1.5"`), which sorts lexicographically and so
|
|
304
|
-
* does not support numeric comparisons.
|
|
305
|
-
*
|
|
306
|
-
* To store a negative value, offset it into the non-negative range (subtracting
|
|
307
|
-
* the offset on read) or store it as a string.
|
|
308
|
-
*/
|
|
309
|
-
type Attribute = {
|
|
310
|
-
key: string;
|
|
311
|
-
value: number | string | Hex;
|
|
312
|
-
};
|
|
313
|
-
//#endregion
|
|
314
|
-
//#region src/types/events.d.ts
|
|
315
|
-
type OnEntityCreatedEvent = {
|
|
316
|
-
entityKey: Hex;
|
|
317
|
-
owner: Address;
|
|
318
|
-
expiresAt: number;
|
|
319
|
-
entityHash: Hex;
|
|
320
|
-
};
|
|
321
|
-
type OnEntityUpdatedEvent = {
|
|
322
|
-
entityKey: Hex;
|
|
323
|
-
owner: Address;
|
|
324
|
-
expiresAt: number;
|
|
325
|
-
entityHash: Hex;
|
|
326
|
-
};
|
|
327
|
-
type OnEntityDeletedEvent = {
|
|
328
|
-
entityKey: Hex;
|
|
329
|
-
owner: Address;
|
|
330
|
-
};
|
|
331
|
-
type OnEntityExpiredEvent = {
|
|
332
|
-
entityKey: Hex;
|
|
333
|
-
owner: Address;
|
|
334
|
-
};
|
|
335
|
-
type OnEntityExpiresInExtendedEvent = {
|
|
336
|
-
entityKey: Hex;
|
|
337
|
-
owner: Address;
|
|
338
|
-
expiresAt: number;
|
|
339
|
-
entityHash: Hex;
|
|
340
|
-
};
|
|
341
|
-
type OnEntityOwnerChangedEvent = {
|
|
342
|
-
entityKey: Hex;
|
|
343
|
-
owner: Address;
|
|
344
|
-
entityHash: Hex;
|
|
345
|
-
};
|
|
346
|
-
//#endregion
|
|
347
|
-
//#region src/types/txParams.d.ts
|
|
348
|
-
type TxParams = {
|
|
349
|
-
gas?: bigint;
|
|
350
|
-
nonce?: number;
|
|
351
|
-
gasPrice?: bigint;
|
|
352
|
-
maxFeePerGas?: never;
|
|
353
|
-
maxPriorityFeePerGas?: never;
|
|
354
|
-
} | {
|
|
355
|
-
gas?: bigint;
|
|
356
|
-
nonce?: number;
|
|
357
|
-
maxFeePerGas?: bigint;
|
|
358
|
-
maxPriorityFeePerGas?: bigint;
|
|
359
|
-
gasPrice?: never;
|
|
360
|
-
};
|
|
361
|
-
//#endregion
|
|
362
|
-
//#region src/types/entity.d.ts
|
|
363
|
-
declare enum EntityOperationType {
|
|
364
|
-
Create = 1,
|
|
365
|
-
Update = 2,
|
|
366
|
-
Extend = 3,
|
|
367
|
-
Transfer = 4,
|
|
368
|
-
Delete = 5,
|
|
369
|
-
Expire = 6,
|
|
370
|
-
}
|
|
371
|
-
declare class Entity {
|
|
372
|
-
key: Hex;
|
|
373
|
-
contentType: MimeType | `${string}/${string}` | undefined;
|
|
374
|
-
owner: Hex | undefined;
|
|
375
|
-
creator: Hex | undefined;
|
|
376
|
-
expiresAtBlock: bigint | undefined;
|
|
377
|
-
createdAtBlock: bigint | undefined;
|
|
378
|
-
lastModifiedAtBlock: bigint | undefined;
|
|
379
|
-
transactionIndexInBlock: bigint | undefined;
|
|
380
|
-
operationIndexInTransaction: bigint | undefined;
|
|
381
|
-
payload: Uint8Array | undefined;
|
|
382
|
-
attributes: Attribute[];
|
|
383
|
-
constructor(key: Hex, contentType: MimeType | `${string}/${string}` | undefined, owner: Hex | undefined, creator: Hex | undefined, expiresAtBlock: bigint | undefined, createdAtBlock: bigint | undefined, lastModifiedAtBlock: bigint | undefined, transactionIndexInBlock: bigint | undefined, operationIndexInTransaction: bigint | undefined, payload: Uint8Array | undefined, attributes: Attribute[]);
|
|
384
|
-
/**
|
|
385
|
-
* Converts the entity payload from bytes to a string and returns it.
|
|
386
|
-
* Throws an error if the payload is undefined, which may occur if the entity was not queried with the withPayload option.
|
|
387
|
-
* Throws an error if the conversion from bytes to string fails.
|
|
388
|
-
* @returns The entity payload as a string.
|
|
389
|
-
*/
|
|
390
|
-
toText(): string;
|
|
391
|
-
/**
|
|
392
|
-
* Parses the entity payload as JSON and returns the resulting object.
|
|
393
|
-
* Throws an error if the payload is undefined, which may occur if the entity was not queried with the withPayload option.
|
|
394
|
-
* Throws an error if the payload is empty or cannot be parsed as JSON.
|
|
395
|
-
* @returns The parsed JSON object from the entity payload.
|
|
396
|
-
*/
|
|
397
|
-
toJson(): any;
|
|
398
|
-
}
|
|
399
|
-
//#endregion
|
|
400
|
-
export { RpcEntity as A, QueryOptions as C, GetBlockTimingReturnType as D, QueryReturnType as E, RpcOrderByAttribute as M, RpcQueryOptions as N, ArkivClient as O, MimeType as P, ChangeOwnershipReturnType as S, QueryOptionsOrderBy as T, DeleteEntityParameters as _, OnEntityDeletedEvent as a, CreateEntityReturnType as b, OnEntityOwnerChangedEvent as c, MutateEntitiesParameters as d, MutateEntitiesReturnType as f, ExtendEntityReturnType as g, ExtendEntityParameters as h, OnEntityCreatedEvent as i, RpcIncludeData as j, ArkivRpcSchema as k, OnEntityUpdatedEvent as l, UpdateEntityReturnType as m, EntityOperationType as n, OnEntityExpiredEvent as o, UpdateEntityParameters as p, TxParams as r, OnEntityExpiresInExtendedEvent as s, Entity as t, Attribute as u, DeleteEntityReturnType as v, QueryOptionsIncludeData as w, ChangeOwnershipParameters as x, CreateEntityParameters as y };
|
|
401
|
-
//# sourceMappingURL=entity-NnEVlePN.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity-NnEVlePN.d.ts","names":[],"sources":["../src/types/mimeTypes.ts","../src/types/rpcSchema.ts","../src/clients/baseClient.ts","../src/actions/public/getBlockTiming.ts","../src/actions/public/query.ts","../src/actions/wallet/changeOwnership.ts","../src/actions/wallet/createEntity.ts","../src/actions/wallet/deleteEntity.ts","../src/actions/wallet/extendEntity.ts","../src/actions/wallet/updateEntity.ts","../src/actions/wallet/mutateEntities.ts","../src/types/attributes.ts","../src/types/events.ts","../src/types/txParams.ts","../src/types/entity.ts"],"sourcesContent":[],"mappings":";;;KAAY,QAAA;;;KCGA,SAAA;EDHA,GAAA,ECIL,GDJK;eCKG;;aAEF;EAJD,cAAS,EAKH,GALG;EACd,mBAAA,EAKgB,GALhB;EACQ,uBAAA,EAKY,GALZ;EAEF,2BAAA,EAIkB,GAJlB;EACK,KAAA,EAIT,GAJS;EACK,OAAA,EAIZ,GAJY;EACI,UAAA,CAAA,EAAA;IACI,GAAA,EAAA,MAAA;IACtB,KAAA,EAAA,MAAA;IACE,SAAA,EAC6C,qBAD7C;EAC6C,CAAA,EAAA;CAAqB;AAGjE,aAAA,qBAAA;EAMA,IAAA,GAAA,CAAA;EAMA,MAAA,GAAA,CAAA;EACA,SAAA,GAAA,CAAA;;AAEA,KATA,mBAAA,GASA;EACO,IAAA,EAAA,MAAA;EAAG,IAAA,EAAA,QAAA,GAAA,SAAA;EAIV,IAAA,EAAA,OAAA;AAcZ,CAAA;AAGgD,KAzBpC,eAAA,GAyBoC;EAEpC,OAAA,CAAA,EA1BA,GA0BA;EACO,WAAA,CAAA,EA1BH,cA0BG;EAAG,OAAA,CAAA,EAzBV,mBAyBU,EAAA;mBAxBH;;;AC9BP,KDkCA,cAAA,GClCW;EACH,GAAA,CAAA,EAAA,OAAA;EAAY,UAAA,CAAA,EAAA,OAAA;EAChB,OAAA,CAAA,EAAA,OAAA;EAAoB,WAAA,CAAA,EAAA,OAAA;EACT,UAAA,CAAA,EAAA,OAAA;EAAsB,KAAA,CAAA,EAAA,OAAA;EAC7B,OAAA,CAAA,EAAA,OAAA;EAAwB,cAAA,CAAA,EAAA,OAAA;EACjC,mBAAA,CAAA,EAAA,OAAA;EAAW,u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