@arkiv-network/sdk 0.7.0 → 0.8.0-advanced.3
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 +71 -16
- package/dist/actions/advanced/index.cjs +13 -0
- package/dist/actions/advanced/index.d.cts +8 -0
- package/dist/actions/advanced/index.d.ts +9 -0
- package/dist/actions/advanced/index.js +9 -0
- package/dist/advanced-Ds2XRflQ.cjs +656 -0
- package/dist/advanced-FZy7WoYR.js +598 -0
- package/dist/advanced-FZy7WoYR.js.map +1 -0
- package/dist/arkivTransactions-BpARZOsH.d.cts +584 -0
- package/dist/arkivTransactions-BpARZOsH.d.cts.map +1 -0
- package/dist/arkivTransactions-DfZ_yVDD.d.ts +584 -0
- package/dist/arkivTransactions-DfZ_yVDD.d.ts.map +1 -0
- package/dist/attr/index.cjs +35 -0
- package/dist/attr/index.d.cts +2 -0
- package/dist/attr/index.d.ts +3 -0
- package/dist/attr/index.js +4 -0
- package/dist/attributes-BJGuhsqp.js +819 -0
- package/dist/attributes-BJGuhsqp.js.map +1 -0
- package/dist/attributes-CMJlp1wn.cjs +1039 -0
- package/dist/chains/index.cjs +2 -3
- package/dist/chains/index.d.cts +41 -76
- package/dist/chains/index.d.cts.map +1 -1
- package/dist/chains/index.d.ts +24 -59
- package/dist/chains/index.d.ts.map +1 -1
- package/dist/chains/index.js +2 -2
- package/dist/chains-BfNQliHU.cjs +76 -0
- package/dist/chains-Du8tql7I.js +60 -0
- package/dist/chains-Du8tql7I.js.map +1 -0
- package/dist/codec-M74UR1_0.d.ts +101 -0
- package/dist/codec-M74UR1_0.d.ts.map +1 -0
- package/dist/entity/index.cjs +21 -0
- package/dist/entity/index.d.cts +4 -0
- package/dist/entity/index.d.ts +5 -0
- package/dist/entity/index.js +7 -0
- package/dist/entity-B00Li04j.cjs +71 -0
- package/dist/entity-B7G8q_Eo.cjs +0 -0
- package/dist/entity-BYQR1uoe.js +67 -0
- package/dist/entity-BYQR1uoe.js.map +1 -0
- package/dist/entity-CD_qFF2M.js +0 -0
- package/dist/errors-51znTSB1.cjs +56 -0
- package/dist/errors-CwPJ16bn.js +33 -0
- package/dist/errors-CwPJ16bn.js.map +1 -0
- package/dist/expiry-CZErShX6.js +95 -0
- package/dist/expiry-CZErShX6.js.map +1 -0
- package/dist/expiry-DRV29F1r.d.cts +79 -0
- package/dist/expiry-DRV29F1r.d.cts.map +1 -0
- package/dist/expiry-nDbCgZX4.d.ts +79 -0
- package/dist/expiry-nDbCgZX4.d.ts.map +1 -0
- package/dist/expiry-xr6mx4f7.cjs +135 -0
- package/dist/flags-5dTNRnow.d.ts +41 -0
- package/dist/flags-5dTNRnow.d.ts.map +1 -0
- package/dist/flags-Bh0HJldY.cjs +43 -0
- package/dist/flags-CRjPpoh3.d.cts +41 -0
- package/dist/flags-CRjPpoh3.d.cts.map +1 -0
- package/dist/flags-Cr76ldwF.js +33 -0
- package/dist/flags-Cr76ldwF.js.map +1 -0
- package/dist/index-CMeD8uEq.d.cts +280 -0
- package/dist/index-CMeD8uEq.d.cts.map +1 -0
- package/dist/index-CTDI5pXZ.d.ts +184 -0
- package/dist/index-CTDI5pXZ.d.ts.map +1 -0
- package/dist/index-CekGjkRx.d.cts +184 -0
- package/dist/index-CekGjkRx.d.cts.map +1 -0
- package/dist/index-D0IzFwMX.d.ts +328 -0
- package/dist/index-D0IzFwMX.d.ts.map +1 -0
- package/dist/index-DZxwz2Ky.d.cts +177 -0
- package/dist/index-DZxwz2Ky.d.cts.map +1 -0
- package/dist/index-Dz4SkQWg.d.ts +280 -0
- package/dist/index-Dz4SkQWg.d.ts.map +1 -0
- package/dist/index-JP31fjyM.d.ts +177 -0
- package/dist/index-JP31fjyM.d.ts.map +1 -0
- package/dist/index-NbfnXxgr.d.cts +424 -0
- package/dist/index-NbfnXxgr.d.cts.map +1 -0
- package/dist/index.cjs +434 -412
- package/dist/index.d.cts +401 -235
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +402 -235
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +370 -404
- package/dist/index.js.map +1 -1
- package/dist/key-E7mv0BYf.cjs +116 -0
- package/dist/key-XQkpw2xh.js +82 -0
- package/dist/key-XQkpw2xh.js.map +1 -0
- package/dist/logger-CVpvU8ik.js +153 -0
- package/dist/logger-CVpvU8ik.js.map +1 -0
- package/dist/logger-Cr15lPAQ.cjs +188 -0
- package/dist/payload-Cvrir3Q-.cjs +108 -0
- package/dist/payload-D53ms-Mg.d.ts +153 -0
- package/dist/payload-D53ms-Mg.d.ts.map +1 -0
- package/dist/payload-DaPzUvEh.js +92 -0
- package/dist/payload-DaPzUvEh.js.map +1 -0
- package/dist/payload-hluX1rc0.d.cts +153 -0
- package/dist/payload-hluX1rc0.d.cts.map +1 -0
- package/dist/query/index.cjs +26 -149
- package/dist/query/index.d.cts +5 -3
- package/dist/query/index.d.ts +6 -3
- package/dist/query/index.js +8 -137
- package/dist/queryBuilder-BXR-HxD9.cjs +947 -0
- package/dist/queryBuilder-BwauPaGO.js +823 -0
- package/dist/queryBuilder-BwauPaGO.js.map +1 -0
- package/dist/selection-C6KeWJ7g.d.cts +441 -0
- package/dist/selection-C6KeWJ7g.d.cts.map +1 -0
- package/dist/selection-mjiiAGDO.d.ts +442 -0
- package/dist/selection-mjiiAGDO.d.ts.map +1 -0
- package/dist/types/index.cjs +4 -1
- package/dist/types/index.d.cts +7 -2
- package/dist/types/index.d.ts +8 -2
- package/dist/types/index.js +4 -1
- package/dist/types-Bu_ZwMbZ.js +0 -0
- package/dist/types-NRqymi6S.cjs +0 -0
- 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 -9
- package/src/actions/advanced/advanced.test.ts +258 -0
- package/src/actions/advanced/buildMutation.ts +104 -0
- package/src/actions/advanced/getMutationResult.ts +112 -0
- package/src/actions/advanced/index.ts +21 -0
- package/src/actions/advanced/pingTransaction.ts +43 -0
- package/src/actions/advanced/sendMutation.ts +59 -0
- package/src/actions/public/getEntity.ts +28 -43
- package/src/actions/public/getEntityNonce.ts +30 -0
- package/src/actions/public/predictEntityKeys.test.ts +159 -0
- package/src/actions/public/predictEntityKeys.ts +152 -0
- package/src/actions/public/query.ts +35 -67
- package/src/actions/public/watchEntityEvents.test.ts +414 -0
- package/src/actions/public/watchEntityEvents.ts +225 -0
- package/src/actions/wallet/changeOwnership.ts +8 -8
- package/src/actions/wallet/createEntity.ts +105 -26
- package/src/actions/wallet/deleteEntity.ts +2 -3
- package/src/actions/wallet/executeBatch.test.ts +76 -0
- package/src/actions/wallet/executeBatch.ts +51 -0
- package/src/actions/wallet/extendEntity.ts +40 -16
- package/src/actions/wallet/patchEntity.ts +90 -0
- package/src/attr/attributes.test.ts +120 -0
- package/src/attr/attributes.ts +196 -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 +506 -0
- package/src/chains/cheesecake.ts +22 -0
- package/src/chains/index.ts +1 -2
- package/src/chains/localhost.ts +3 -0
- package/src/clients/createPublicClient.test.ts +4 -6
- package/src/clients/createPublicClient.ts +9 -8
- package/src/clients/createWalletClient.test.ts +4 -4
- package/src/clients/createWalletClient.ts +13 -9
- package/src/clients/decorators/arkivAdvanced.ts +144 -0
- package/src/clients/decorators/arkivPublic.ts +181 -147
- package/src/clients/decorators/arkivWallet.ts +141 -122
- package/src/consts.ts +2 -1
- package/src/entity/create.test.ts +203 -0
- package/src/entity/errors.ts +39 -0
- package/src/entity/events.ts +16 -0
- package/src/entity/expiry.test.ts +195 -0
- package/src/entity/expiry.ts +182 -0
- package/src/entity/flags.ts +65 -0
- package/src/entity/index.ts +16 -0
- package/src/entity/key.ts +88 -0
- package/src/entity/operations.ts +135 -0
- package/src/entity/params.ts +15 -0
- package/src/errors.ts +33 -28
- package/src/index.ts +19 -0
- package/src/query/engine.ts +68 -132
- package/src/query/errors.ts +151 -0
- package/src/query/expression.test.ts +286 -0
- package/src/query/expression.ts +500 -0
- package/src/query/index.ts +40 -4
- package/src/query/injection.test.ts +151 -0
- package/src/query/queryBuilder.test.ts +342 -637
- package/src/query/queryBuilder.ts +133 -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 +62 -44
- package/src/types/events.ts +64 -23
- package/src/types/index.ts +24 -20
- package/src/types/rpcSchema.ts +71 -33
- package/src/types/txParams.ts +8 -0
- package/src/utils/arkivTransactions.test.ts +687 -38
- package/src/utils/arkivTransactions.ts +400 -115
- 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 +111 -29
- package/src/utils/expirationTime.ts +153 -10
- package/src/utils/logger.ts +2 -2
- package/src/utils/payload.ts +29 -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-AUoL-v42.cjs +0 -18
- package/dist/consts-BV4PR-de.js +0 -7
- package/dist/consts-BV4PR-de.js.map +0 -1
- package/dist/entity-B6g_EPm1.d.cts +0 -382
- package/dist/entity-B6g_EPm1.d.cts.map +0 -1
- package/dist/entity-qoLMAuuk.d.ts +0 -382
- package/dist/entity-qoLMAuuk.d.ts.map +0 -1
- package/dist/index-DdspxNAA.d.ts +0 -481
- package/dist/index-DdspxNAA.d.ts.map +0 -1
- package/dist/index-Ds9dwqb5.d.cts +0 -481
- package/dist/index-Ds9dwqb5.d.cts.map +0 -1
- package/dist/payload-B2kFJyah.d.ts +0 -6
- package/dist/payload-B2kFJyah.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-Claf2jUO.js +0 -13
- package/dist/payload-Claf2jUO.js.map +0 -1
- package/dist/payload-DpA5PA-w.cjs +0 -23
- package/dist/query/index.js.map +0 -1
- package/dist/queryBuilder-D2uwP9jI.js +0 -704
- package/dist/queryBuilder-D2uwP9jI.js.map +0 -1
- package/dist/queryBuilder-UW2MCaX4.cjs +0 -792
- 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 -119
- package/src/actions/wallet/mutateEntities.ts +0 -111
- package/src/actions/wallet/updateEntity.ts +0 -60
- package/src/chains/braga.ts +0 -26
- package/src/chains/kaolin.ts +0 -29
- package/src/query/engine.test.ts +0 -526
- 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 -210
- package/src/types/attributes.ts +0 -16
- package/src/utils/validation.test.ts +0 -60
- package/src/utils/validation.ts +0 -32
- /package/dist/{types-H-TSmRpm.js → attr-DlmErkvR.cjs} +0 -0
- /package/dist/{types-o3zWarRp.cjs → attr-GcQKatub.js} +0 -0
package/dist/chains/index.cjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const require_chains = require('../chains-
|
|
1
|
+
const require_chains = require('../chains-BfNQliHU.cjs');
|
|
2
2
|
|
|
3
|
-
exports.
|
|
4
|
-
exports.kaolin = require_chains.kaolin;
|
|
3
|
+
exports.cheesecake = require_chains.cheesecake;
|
|
5
4
|
exports.localhost = require_chains.localhost;
|
package/dist/chains/index.d.cts
CHANGED
|
@@ -1,27 +1,35 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as viem8 from "viem";
|
|
2
2
|
|
|
3
|
-
//#region src/chains/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
//#region src/chains/cheesecake.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Cheesecake is Arkiv's testnet.
|
|
6
|
+
*/
|
|
7
|
+
declare const cheesecake: {
|
|
8
|
+
blockExplorers?: {
|
|
9
|
+
[key: string]: {
|
|
10
|
+
name: string;
|
|
11
|
+
url: string;
|
|
12
|
+
apiUrl?: string | undefined;
|
|
10
13
|
};
|
|
11
|
-
|
|
14
|
+
default: {
|
|
15
|
+
name: string;
|
|
16
|
+
url: string;
|
|
17
|
+
apiUrl?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
} | undefined | undefined;
|
|
12
20
|
blockTime?: number | undefined | undefined;
|
|
13
21
|
contracts?: {
|
|
14
|
-
[x: string]:
|
|
15
|
-
[sourceId: number]:
|
|
22
|
+
[x: string]: viem8.ChainContract | {
|
|
23
|
+
[sourceId: number]: viem8.ChainContract | undefined;
|
|
16
24
|
} | undefined;
|
|
17
|
-
ensRegistry?:
|
|
18
|
-
ensUniversalResolver?:
|
|
19
|
-
multicall3?:
|
|
20
|
-
erc6492Verifier?:
|
|
25
|
+
ensRegistry?: viem8.ChainContract | undefined;
|
|
26
|
+
ensUniversalResolver?: viem8.ChainContract | undefined;
|
|
27
|
+
multicall3?: viem8.ChainContract | undefined;
|
|
28
|
+
erc6492Verifier?: viem8.ChainContract | undefined;
|
|
21
29
|
} | undefined;
|
|
22
30
|
ensTlds?: readonly string[] | undefined;
|
|
23
|
-
id:
|
|
24
|
-
name: "
|
|
31
|
+
id: 7733102;
|
|
32
|
+
name: "Cheesecake";
|
|
25
33
|
nativeCurrency: {
|
|
26
34
|
readonly name: "Golem";
|
|
27
35
|
readonly symbol: "GLM";
|
|
@@ -30,66 +38,23 @@ declare const braga: {
|
|
|
30
38
|
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
31
39
|
rpcUrls: {
|
|
32
40
|
readonly default: {
|
|
33
|
-
readonly http: readonly ["https://
|
|
34
|
-
readonly webSocket: readonly ["wss://
|
|
41
|
+
readonly http: readonly ["https://rpc.cheesecake.db-chain.devnet.gobas.me"];
|
|
42
|
+
readonly webSocket: readonly ["wss://rpc.cheesecake.db-chain.devnet.gobas.me"];
|
|
35
43
|
};
|
|
36
44
|
};
|
|
37
45
|
sourceId?: number | undefined | undefined;
|
|
38
46
|
testnet: true;
|
|
39
47
|
custom?: Record<string, unknown> | undefined;
|
|
40
|
-
fees?:
|
|
48
|
+
fees?: viem8.ChainFees<undefined> | undefined;
|
|
41
49
|
formatters?: undefined;
|
|
42
|
-
serializers?:
|
|
43
|
-
readonly network: "
|
|
50
|
+
serializers?: viem8.ChainSerializers<undefined, viem8.TransactionSerializable> | undefined;
|
|
51
|
+
readonly network: "cheesecake";
|
|
44
52
|
};
|
|
45
53
|
//#endregion
|
|
46
|
-
//#region src/chains/
|
|
54
|
+
//#region src/chains/localhost.d.ts
|
|
47
55
|
/**
|
|
48
|
-
*
|
|
56
|
+
* A node running on the local machine
|
|
49
57
|
*/
|
|
50
|
-
declare const kaolin: {
|
|
51
|
-
blockExplorers: {
|
|
52
|
-
readonly default: {
|
|
53
|
-
readonly name: "Kaolin Arkiv Explorer";
|
|
54
|
-
readonly url: "https://explorer.kaolin.hoodi.arkiv.network";
|
|
55
|
-
readonly apiUrl: "https://explorer.kaolin.hoodi.arkiv.network/api";
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
blockTime?: number | undefined | undefined;
|
|
59
|
-
contracts?: {
|
|
60
|
-
[x: string]: viem0.ChainContract | {
|
|
61
|
-
[sourceId: number]: viem0.ChainContract | undefined;
|
|
62
|
-
} | undefined;
|
|
63
|
-
ensRegistry?: viem0.ChainContract | undefined;
|
|
64
|
-
ensUniversalResolver?: viem0.ChainContract | undefined;
|
|
65
|
-
multicall3?: viem0.ChainContract | undefined;
|
|
66
|
-
erc6492Verifier?: viem0.ChainContract | undefined;
|
|
67
|
-
} | undefined;
|
|
68
|
-
ensTlds?: readonly string[] | undefined;
|
|
69
|
-
id: 60138453025;
|
|
70
|
-
name: "Kaolin";
|
|
71
|
-
nativeCurrency: {
|
|
72
|
-
readonly name: "Ethereum";
|
|
73
|
-
readonly symbol: "ETH";
|
|
74
|
-
readonly decimals: 18;
|
|
75
|
-
};
|
|
76
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
77
|
-
rpcUrls: {
|
|
78
|
-
readonly default: {
|
|
79
|
-
readonly http: readonly ["https://kaolin.hoodi.arkiv.network/rpc"];
|
|
80
|
-
readonly webSocket: readonly ["wss://kaolin.hoodi.arkiv.network/rpc/ws"];
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
sourceId?: number | undefined | undefined;
|
|
84
|
-
testnet: true;
|
|
85
|
-
custom?: Record<string, unknown> | undefined;
|
|
86
|
-
fees?: viem0.ChainFees<undefined> | undefined;
|
|
87
|
-
formatters?: undefined;
|
|
88
|
-
serializers?: viem0.ChainSerializers<undefined, viem0.TransactionSerializable> | undefined;
|
|
89
|
-
readonly network: "kaolin";
|
|
90
|
-
};
|
|
91
|
-
//#endregion
|
|
92
|
-
//#region src/chains/localhost.d.ts
|
|
93
58
|
declare const localhost: {
|
|
94
59
|
blockExplorers?: {
|
|
95
60
|
[key: string]: {
|
|
@@ -105,13 +70,13 @@ declare const localhost: {
|
|
|
105
70
|
} | undefined | undefined;
|
|
106
71
|
blockTime?: number | undefined | undefined;
|
|
107
72
|
contracts?: {
|
|
108
|
-
[x: string]:
|
|
109
|
-
[sourceId: number]:
|
|
73
|
+
[x: string]: viem8.ChainContract | {
|
|
74
|
+
[sourceId: number]: viem8.ChainContract | undefined;
|
|
110
75
|
} | undefined;
|
|
111
|
-
ensRegistry?:
|
|
112
|
-
ensUniversalResolver?:
|
|
113
|
-
multicall3?:
|
|
114
|
-
erc6492Verifier?:
|
|
76
|
+
ensRegistry?: viem8.ChainContract | undefined;
|
|
77
|
+
ensUniversalResolver?: viem8.ChainContract | undefined;
|
|
78
|
+
multicall3?: viem8.ChainContract | undefined;
|
|
79
|
+
erc6492Verifier?: viem8.ChainContract | undefined;
|
|
115
80
|
} | undefined;
|
|
116
81
|
ensTlds?: readonly string[] | undefined;
|
|
117
82
|
id: 1337;
|
|
@@ -130,10 +95,10 @@ declare const localhost: {
|
|
|
130
95
|
sourceId?: number | undefined | undefined;
|
|
131
96
|
testnet?: boolean | undefined | undefined;
|
|
132
97
|
custom?: Record<string, unknown> | undefined;
|
|
133
|
-
fees?:
|
|
98
|
+
fees?: viem8.ChainFees<undefined> | undefined;
|
|
134
99
|
formatters?: undefined;
|
|
135
|
-
serializers?:
|
|
100
|
+
serializers?: viem8.ChainSerializers<undefined, viem8.TransactionSerializable> | undefined;
|
|
136
101
|
};
|
|
137
102
|
//#endregion
|
|
138
|
-
export {
|
|
103
|
+
export { cheesecake, localhost };
|
|
139
104
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/chains/
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/chains/cheesecake.ts","../../src/chains/localhost.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,UAgBX,EAAA;EAAA,cAAA,CAAA,EAAA;;;;;;;;;;;;;;IChBW,CAAA,CAAA,EAAA,MAWX,CAAA,EDKA,KAAA,CAAA,aAAA,GCLA;MAAA,CAAA,QAAA,EAAA,MAAA,CAAA,wBAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ADXW,cCAA,SDgBX,EAAA;EAAA,cAAA,CAAA,EAAA;;;;;;;;;;;;;;IChBW,CAAA,CAAA,EAAA,MAWX,CAAA,EAAA,KAAA,CAAA,aAAA,GAAA;MAAA,CAAA,QAAA,EAAA,MAAA,CAAA,wBAAA,SAAA"}
|
package/dist/chains/index.d.ts
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import * as viem8 from "viem";
|
|
2
2
|
|
|
3
|
-
//#region src/chains/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
//#region src/chains/cheesecake.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Cheesecake is Arkiv's testnet.
|
|
6
|
+
*/
|
|
7
|
+
declare const cheesecake: {
|
|
8
|
+
blockExplorers?: {
|
|
9
|
+
[key: string]: {
|
|
10
|
+
name: string;
|
|
11
|
+
url: string;
|
|
12
|
+
apiUrl?: string | undefined;
|
|
10
13
|
};
|
|
11
|
-
|
|
14
|
+
default: {
|
|
15
|
+
name: string;
|
|
16
|
+
url: string;
|
|
17
|
+
apiUrl?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
} | undefined | undefined;
|
|
12
20
|
blockTime?: number | undefined | undefined;
|
|
13
21
|
contracts?: {
|
|
14
22
|
[x: string]: viem8.ChainContract | {
|
|
@@ -20,8 +28,8 @@ declare const braga: {
|
|
|
20
28
|
erc6492Verifier?: viem8.ChainContract | undefined;
|
|
21
29
|
} | undefined;
|
|
22
30
|
ensTlds?: readonly string[] | undefined;
|
|
23
|
-
id:
|
|
24
|
-
name: "
|
|
31
|
+
id: 7733102;
|
|
32
|
+
name: "Cheesecake";
|
|
25
33
|
nativeCurrency: {
|
|
26
34
|
readonly name: "Golem";
|
|
27
35
|
readonly symbol: "GLM";
|
|
@@ -30,8 +38,8 @@ declare const braga: {
|
|
|
30
38
|
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
31
39
|
rpcUrls: {
|
|
32
40
|
readonly default: {
|
|
33
|
-
readonly http: readonly ["https://
|
|
34
|
-
readonly webSocket: readonly ["wss://
|
|
41
|
+
readonly http: readonly ["https://rpc.cheesecake.db-chain.devnet.gobas.me"];
|
|
42
|
+
readonly webSocket: readonly ["wss://rpc.cheesecake.db-chain.devnet.gobas.me"];
|
|
35
43
|
};
|
|
36
44
|
};
|
|
37
45
|
sourceId?: number | undefined | undefined;
|
|
@@ -40,56 +48,13 @@ declare const braga: {
|
|
|
40
48
|
fees?: viem8.ChainFees<undefined> | undefined;
|
|
41
49
|
formatters?: undefined;
|
|
42
50
|
serializers?: viem8.ChainSerializers<undefined, viem8.TransactionSerializable> | undefined;
|
|
43
|
-
readonly network: "
|
|
51
|
+
readonly network: "cheesecake";
|
|
44
52
|
};
|
|
45
53
|
//#endregion
|
|
46
|
-
//#region src/chains/
|
|
54
|
+
//#region src/chains/localhost.d.ts
|
|
47
55
|
/**
|
|
48
|
-
*
|
|
56
|
+
* A node running on the local machine
|
|
49
57
|
*/
|
|
50
|
-
declare const kaolin: {
|
|
51
|
-
blockExplorers: {
|
|
52
|
-
readonly default: {
|
|
53
|
-
readonly name: "Kaolin Arkiv Explorer";
|
|
54
|
-
readonly url: "https://explorer.kaolin.hoodi.arkiv.network";
|
|
55
|
-
readonly apiUrl: "https://explorer.kaolin.hoodi.arkiv.network/api";
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
blockTime?: number | undefined | undefined;
|
|
59
|
-
contracts?: {
|
|
60
|
-
[x: string]: viem8.ChainContract | {
|
|
61
|
-
[sourceId: number]: viem8.ChainContract | undefined;
|
|
62
|
-
} | undefined;
|
|
63
|
-
ensRegistry?: viem8.ChainContract | undefined;
|
|
64
|
-
ensUniversalResolver?: viem8.ChainContract | undefined;
|
|
65
|
-
multicall3?: viem8.ChainContract | undefined;
|
|
66
|
-
erc6492Verifier?: viem8.ChainContract | undefined;
|
|
67
|
-
} | undefined;
|
|
68
|
-
ensTlds?: readonly string[] | undefined;
|
|
69
|
-
id: 60138453025;
|
|
70
|
-
name: "Kaolin";
|
|
71
|
-
nativeCurrency: {
|
|
72
|
-
readonly name: "Ethereum";
|
|
73
|
-
readonly symbol: "ETH";
|
|
74
|
-
readonly decimals: 18;
|
|
75
|
-
};
|
|
76
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
77
|
-
rpcUrls: {
|
|
78
|
-
readonly default: {
|
|
79
|
-
readonly http: readonly ["https://kaolin.hoodi.arkiv.network/rpc"];
|
|
80
|
-
readonly webSocket: readonly ["wss://kaolin.hoodi.arkiv.network/rpc/ws"];
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
sourceId?: number | undefined | undefined;
|
|
84
|
-
testnet: true;
|
|
85
|
-
custom?: Record<string, unknown> | undefined;
|
|
86
|
-
fees?: viem8.ChainFees<undefined> | undefined;
|
|
87
|
-
formatters?: undefined;
|
|
88
|
-
serializers?: viem8.ChainSerializers<undefined, viem8.TransactionSerializable> | undefined;
|
|
89
|
-
readonly network: "kaolin";
|
|
90
|
-
};
|
|
91
|
-
//#endregion
|
|
92
|
-
//#region src/chains/localhost.d.ts
|
|
93
58
|
declare const localhost: {
|
|
94
59
|
blockExplorers?: {
|
|
95
60
|
[key: string]: {
|
|
@@ -135,5 +100,5 @@ declare const localhost: {
|
|
|
135
100
|
serializers?: viem8.ChainSerializers<undefined, viem8.TransactionSerializable> | undefined;
|
|
136
101
|
};
|
|
137
102
|
//#endregion
|
|
138
|
-
export {
|
|
103
|
+
export { cheesecake, localhost };
|
|
139
104
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/chains/
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/chains/cheesecake.ts","../../src/chains/localhost.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,UAgBX,EAAA;EAAA,cAAA,CAAA,EAAA;;;;;;;;;;;;;;IChBW,CAAA,CAAA,EAAA,MAWX,CAAA,EDKA,KAAA,CAAA,aAAA,GCLA;MAAA,CAAA,QAAA,EAAA,MAAA,CAAA,wBAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ADXW,cCAA,SDgBX,EAAA;EAAA,cAAA,CAAA,EAAA;;;;;;;;;;;;;;IChBW,CAAA,CAAA,EAAA,MAWX,CAAA,EAAA,KAAA,CAAA,aAAA,GAAA;MAAA,CAAA,QAAA,EAAA,MAAA,CAAA,wBAAA,SAAA"}
|
package/dist/chains/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as localhost, r as cheesecake } from "../chains-Du8tql7I.js";
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { cheesecake, localhost };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __export = (all) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
return target;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
let viem = require("viem");
|
|
14
|
+
|
|
15
|
+
//#region src/chains/cheesecake.ts
|
|
16
|
+
/**
|
|
17
|
+
* Cheesecake is Arkiv's testnet.
|
|
18
|
+
*/
|
|
19
|
+
const cheesecake = (0, viem.defineChain)({
|
|
20
|
+
id: 7733102,
|
|
21
|
+
name: "Cheesecake",
|
|
22
|
+
network: "cheesecake",
|
|
23
|
+
nativeCurrency: {
|
|
24
|
+
name: "Golem",
|
|
25
|
+
symbol: "GLM",
|
|
26
|
+
decimals: 18
|
|
27
|
+
},
|
|
28
|
+
rpcUrls: { default: {
|
|
29
|
+
http: ["https://rpc.cheesecake.db-chain.devnet.gobas.me"],
|
|
30
|
+
webSocket: ["wss://rpc.cheesecake.db-chain.devnet.gobas.me"]
|
|
31
|
+
} },
|
|
32
|
+
testnet: true
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/chains/localhost.ts
|
|
37
|
+
/**
|
|
38
|
+
* A node running on the local machine
|
|
39
|
+
*/
|
|
40
|
+
const localhost = (0, viem.defineChain)({
|
|
41
|
+
id: 1337,
|
|
42
|
+
name: "Localhost",
|
|
43
|
+
nativeCurrency: {
|
|
44
|
+
decimals: 18,
|
|
45
|
+
name: "Ether",
|
|
46
|
+
symbol: "ETH"
|
|
47
|
+
},
|
|
48
|
+
rpcUrls: { default: { http: ["http://127.0.0.1:8545"] } }
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/chains/index.ts
|
|
53
|
+
var chains_exports = /* @__PURE__ */ __export({
|
|
54
|
+
cheesecake: () => cheesecake,
|
|
55
|
+
localhost: () => localhost
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
//#endregion
|
|
59
|
+
Object.defineProperty(exports, 'chains_exports', {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function () {
|
|
62
|
+
return chains_exports;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
Object.defineProperty(exports, 'cheesecake', {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () {
|
|
68
|
+
return cheesecake;
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(exports, 'localhost', {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function () {
|
|
74
|
+
return localhost;
|
|
75
|
+
}
|
|
76
|
+
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineChain } from "viem";
|
|
2
|
+
|
|
3
|
+
//#region rolldown:runtime
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __export = (all) => {
|
|
6
|
+
let target = {};
|
|
7
|
+
for (var name in all) __defProp(target, name, {
|
|
8
|
+
get: all[name],
|
|
9
|
+
enumerable: true
|
|
10
|
+
});
|
|
11
|
+
return target;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/chains/cheesecake.ts
|
|
16
|
+
/**
|
|
17
|
+
* Cheesecake is Arkiv's testnet.
|
|
18
|
+
*/
|
|
19
|
+
const cheesecake = defineChain({
|
|
20
|
+
id: 7733102,
|
|
21
|
+
name: "Cheesecake",
|
|
22
|
+
network: "cheesecake",
|
|
23
|
+
nativeCurrency: {
|
|
24
|
+
name: "Golem",
|
|
25
|
+
symbol: "GLM",
|
|
26
|
+
decimals: 18
|
|
27
|
+
},
|
|
28
|
+
rpcUrls: { default: {
|
|
29
|
+
http: ["https://rpc.cheesecake.db-chain.devnet.gobas.me"],
|
|
30
|
+
webSocket: ["wss://rpc.cheesecake.db-chain.devnet.gobas.me"]
|
|
31
|
+
} },
|
|
32
|
+
testnet: true
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/chains/localhost.ts
|
|
37
|
+
/**
|
|
38
|
+
* A node running on the local machine
|
|
39
|
+
*/
|
|
40
|
+
const localhost = defineChain({
|
|
41
|
+
id: 1337,
|
|
42
|
+
name: "Localhost",
|
|
43
|
+
nativeCurrency: {
|
|
44
|
+
decimals: 18,
|
|
45
|
+
name: "Ether",
|
|
46
|
+
symbol: "ETH"
|
|
47
|
+
},
|
|
48
|
+
rpcUrls: { default: { http: ["http://127.0.0.1:8545"] } }
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/chains/index.ts
|
|
53
|
+
var chains_exports = /* @__PURE__ */ __export({
|
|
54
|
+
cheesecake: () => cheesecake,
|
|
55
|
+
localhost: () => localhost
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
//#endregion
|
|
59
|
+
export { localhost as n, cheesecake as r, chains_exports as t };
|
|
60
|
+
//# sourceMappingURL=chains-Du8tql7I.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chains-Du8tql7I.js","names":[],"sources":["../src/chains/cheesecake.ts","../src/chains/localhost.ts","../src/chains/index.ts"],"sourcesContent":["import { defineChain } from \"viem\"\n\n/**\n * Cheesecake is Arkiv's testnet.\n */\nexport const cheesecake = defineChain({\n id: 7733102,\n name: \"Cheesecake\",\n network: \"cheesecake\",\n nativeCurrency: {\n name: \"Golem\",\n symbol: \"GLM\",\n decimals: 18,\n },\n rpcUrls: {\n default: {\n http: [\"https://rpc.cheesecake.db-chain.devnet.gobas.me\"],\n webSocket: [\"wss://rpc.cheesecake.db-chain.devnet.gobas.me\"],\n },\n },\n testnet: true,\n})\n","import { defineChain } from \"viem\"\n\n/**\n * A node running on the local machine\n */\nexport const localhost = defineChain({\n id: 1337,\n name: \"Localhost\",\n nativeCurrency: {\n decimals: 18,\n name: \"Ether\",\n symbol: \"ETH\",\n },\n rpcUrls: {\n default: { http: [\"http://127.0.0.1:8545\"] },\n },\n})\n","export { cheesecake } from \"./cheesecake\"\nexport { localhost } from \"./localhost\"\n"],"mappings":";;;;;;;;;;;;;;;;;;AAKA,MAAa,aAAa,YAAY;CACpC,IAAI;CACJ,MAAM;CACN,SAAS;CACT,gBAAgB;EACd,MAAM;EACN,QAAQ;EACR,UAAU;EACX;CACD,SAAS,EACP,SAAS;EACP,MAAM,CAAC,kDAAkD;EACzD,WAAW,CAAC,gDAAgD;EAC7D,EACF;CACD,SAAS;CACV,CAAC;;;;;;;AChBF,MAAa,YAAY,YAAY;CACnC,IAAI;CACJ,MAAM;CACN,gBAAgB;EACd,UAAU;EACV,MAAM;EACN,QAAQ;EACT;CACD,SAAS,EACP,SAAS,EAAE,MAAM,CAAC,wBAAwB,EAAE,EAC7C;CACF,CAAC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Address, Hex } from "viem";
|
|
2
|
+
|
|
3
|
+
//#region src/attr/types.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The protocol's attribute type vocabulary, mapping each short **tag** (the name used by the
|
|
7
|
+
* client, the query language and this SDK) to its **typeId** (the byte carried on the wire and in
|
|
8
|
+
* the entity record).
|
|
9
|
+
*
|
|
10
|
+
* The typeIds are consensus-critical: they are written into entity records and mixed into index
|
|
11
|
+
* keys, so this table must never drift from the node's `AttributeType`.
|
|
12
|
+
*
|
|
13
|
+
* | tag | typeId | ABI wire type | indexing |
|
|
14
|
+
* | --------- | ------ | ------------------- | ----------------- |
|
|
15
|
+
* | `bool` | 1 | `bool` | equality |
|
|
16
|
+
* | `i32` | 2 | `int32` | equality + range |
|
|
17
|
+
* | `u64` | 3 | `uint64` | equality + range |
|
|
18
|
+
* | `u256` | 4 | `uint256` | equality + range |
|
|
19
|
+
* | `dec` | 5 | `int256` (18 dp) | equality + range |
|
|
20
|
+
* | `bytes32` | 6 | `bytes32` | equality |
|
|
21
|
+
* | `bytes` | 7 | `bytes` | none — system-only |
|
|
22
|
+
* | `str` | 8 | `string` (<= 128 B) | equality + prefix |
|
|
23
|
+
* | `addr` | 9 | `address` | equality |
|
|
24
|
+
* | `key` | 10 | `bytes32` | equality |
|
|
25
|
+
*/
|
|
26
|
+
declare const TYPE_IDS: {
|
|
27
|
+
readonly bool: 1;
|
|
28
|
+
readonly i32: 2;
|
|
29
|
+
readonly u64: 3;
|
|
30
|
+
readonly u256: 4;
|
|
31
|
+
readonly dec: 5;
|
|
32
|
+
readonly bytes32: 6;
|
|
33
|
+
readonly bytes: 7;
|
|
34
|
+
readonly str: 8;
|
|
35
|
+
readonly addr: 9;
|
|
36
|
+
readonly key: 10;
|
|
37
|
+
};
|
|
38
|
+
/** Every type tag, including the system-only `bytes`. */
|
|
39
|
+
type TypeTag = keyof typeof TYPE_IDS;
|
|
40
|
+
/**
|
|
41
|
+
* The tags a client may set on an attribute. `bytes` is excluded: it backs the system `$payload`
|
|
42
|
+
* cell, which travels in its own operation field and is never carried in an attribute array.
|
|
43
|
+
*/
|
|
44
|
+
type UserTypeTag = Exclude<TypeTag, "bytes">;
|
|
45
|
+
/**
|
|
46
|
+
* Marks a value as having passed its constructor's validation. The symbol is module-private, so a
|
|
47
|
+
* hand-written object literal is not assignable to {@link ArkivValue} — every value crossing the
|
|
48
|
+
* wire has been range-, length- and format-checked by `i32`, `u256`, `dec`, and friends.
|
|
49
|
+
*/
|
|
50
|
+
declare const validated: unique symbol;
|
|
51
|
+
/**
|
|
52
|
+
* A typed attribute value: the tag it was created with, plus the JavaScript representation of that
|
|
53
|
+
* type. Constructed only by the tagged constructors in `@arkiv-network/sdk/attr`.
|
|
54
|
+
*
|
|
55
|
+
* @typeParam tag - The type tag, which also discriminates the {@link ArkivValue} union.
|
|
56
|
+
* @typeParam value - The decoded JavaScript representation.
|
|
57
|
+
*/
|
|
58
|
+
type Value<tag extends TypeTag, value> = {
|
|
59
|
+
readonly type: tag;
|
|
60
|
+
readonly value: value;
|
|
61
|
+
readonly [validated]: tag;
|
|
62
|
+
};
|
|
63
|
+
/** A boolean. */
|
|
64
|
+
type BoolValue = Value<"bool", boolean>;
|
|
65
|
+
/** A 32-bit signed integer — the default for an untagged number. */
|
|
66
|
+
type I32Value = Value<"i32", number>;
|
|
67
|
+
/**
|
|
68
|
+
* A 64-bit unsigned integer — block heights, the
|
|
69
|
+
* entity-nonce and `$expiresAt` are all `u64` */
|
|
70
|
+
type U64Value = Value<"u64", bigint>;
|
|
71
|
+
/** A 256-bit unsigned integer. */
|
|
72
|
+
type U256Value = Value<"u256", bigint>;
|
|
73
|
+
/**
|
|
74
|
+
* A fixed-point decimal with 18 decimal places, held as its canonical decimal string (`"3.5"`).
|
|
75
|
+
* Use {@link decUnits} for the exact scaled integer when you need to do arithmetic.
|
|
76
|
+
*/
|
|
77
|
+
type DecValue = Value<"dec", string>;
|
|
78
|
+
/** 32 opaque bytes, as lowercase `0x` hex. */
|
|
79
|
+
type Bytes32Value = Value<"bytes32", Hex>;
|
|
80
|
+
/** A UTF-8 string of at most 128 bytes, free of C0 control characters and DEL. */
|
|
81
|
+
type StrValue = Value<"str", string>;
|
|
82
|
+
/** A 20-byte Ethereum address, as EIP-55 checksummed hex. */
|
|
83
|
+
type AddrValue = Value<"addr", Address>;
|
|
84
|
+
/** A reference to another entity. Weak by spec: dangling references are permitted. */
|
|
85
|
+
type KeyValue = Value<"key", Hex>;
|
|
86
|
+
/**
|
|
87
|
+
* Opaque variable-length bytes, as lowercase `0x` hex. System-only — it backs `$payload` and is
|
|
88
|
+
* never settable as an attribute, so it is produced by decoding but has no constructor.
|
|
89
|
+
*/
|
|
90
|
+
type BytesValue = Value<"bytes", Hex>;
|
|
91
|
+
/** Any value a client may set on an attribute. */
|
|
92
|
+
type ArkivValue = BoolValue | I32Value | U64Value | U256Value | DecValue | Bytes32Value | StrValue | AddrValue | KeyValue;
|
|
93
|
+
/** Any value that can come back from the node, including the system-only `bytes`. */
|
|
94
|
+
type AnyArkivValue = ArkivValue | BytesValue;
|
|
95
|
+
/**
|
|
96
|
+
* Whether `input` has the *shape* of an {@link ArkivValue} — a known type tag and a value.
|
|
97
|
+
*/
|
|
98
|
+
declare function isArkivValue(input: unknown): input is AnyArkivValue;
|
|
99
|
+
//#endregion
|
|
100
|
+
export { Bytes32Value as a, I32Value as c, TypeTag as d, U256Value as f, isArkivValue as h, BoolValue as i, KeyValue as l, UserTypeTag as m, AnyArkivValue as n, BytesValue as o, U64Value as p, ArkivValue as r, DecValue as s, AddrValue as t, StrValue as u };
|
|
101
|
+
//# sourceMappingURL=codec-M74UR1_0.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec-M74UR1_0.d.ts","names":[],"sources":["../src/attr/types.ts"],"sourcesContent":[],"mappings":";;;;;;AAwBA;AAcA;AASA;AAKC;AAgBD;;;;;;;AAOA;AAEA;AAIA;AAEA;AAKA;AAEA;AAEA;AAEA;AAEY,cAxEC,QAwEuB,EAAA;EAKxB,SAAA,IAAU,EAAA,CAAA;EAGV,SAAA,GAAA,EAAU,CAAA;EAClB,SAAA,GAAA,EAAA,CAAA;EACA,SAAA,IAAA,EAAA,CAAA;EACA,SAAA,GAAA,EAAA,CAAA;EACA,SAAA,OAAA,EAAA,CAAA;EACA,SAAA,KAAA,EAAA,CAAA;EACA,SAAA,GAAA,EAAA,CAAA;EACA,SAAA,IAAA,EAAA,CAAA;EACA,SAAA,GAAA,EAAA,EAAA;CACA;;AAGQ,KA9EA,OAAA,GA8Ea,MAAA,OA9EU,QA8EP;;;;;KArEhB,WAAA,GAAc,QAAQ;;;;;;cAYpB;;;;;;;;KASF,kBAAkB;iBACb;kBACC;YACN,SAAA,GAAY;;;KAIZ,SAAA,GAAY;;KAEZ,QAAA,GAAW;;;;KAIX,QAAA,GAAW;;KAEX,SAAA,GAAY;;;;;KAKZ,QAAA,GAAW;;KAEX,YAAA,GAAe,iBAAiB;;KAEhC,QAAA,GAAW;;KAEX,SAAA,GAAY,cAAc;;KAE1B,QAAA,GAAW,aAAa;;;;;KAKxB,UAAA,GAAa,eAAe;;KAG5B,UAAA,GACR,YACA,WACA,WACA,YACA,WACA,eACA,WACA,YACA;;KAGQ,aAAA,GAAgB,aAAa;;;;iBAsBzB,YAAA,2BAAuC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_expiry = require('../expiry-xr6mx4f7.cjs');
|
|
2
|
+
const require_key = require('../key-E7mv0BYf.cjs');
|
|
3
|
+
const require_errors = require('../errors-51znTSB1.cjs');
|
|
4
|
+
const require_flags = require('../flags-Bh0HJldY.cjs');
|
|
5
|
+
require('../entity-B7G8q_Eo.cjs');
|
|
6
|
+
|
|
7
|
+
exports.ENTITY_EVENTS_ABI = require_key.ENTITY_EVENTS_ABI;
|
|
8
|
+
exports.InvalidCreationFlagsError = require_errors.InvalidCreationFlagsError;
|
|
9
|
+
exports.InvalidExpiryError = require_errors.InvalidExpiryError;
|
|
10
|
+
exports.InvalidSaltError = require_errors.InvalidSaltError;
|
|
11
|
+
exports.MAX_EXPIRES_AT = require_expiry.MAX_EXPIRES_AT;
|
|
12
|
+
exports.MAX_SALT = require_key.MAX_SALT;
|
|
13
|
+
exports.NO_SALT = require_key.NO_SALT;
|
|
14
|
+
exports.NoRandomSourceError = require_errors.NoRandomSourceError;
|
|
15
|
+
exports.OperationType = require_expiry.OperationType;
|
|
16
|
+
exports.decodeCreationFlags = require_flags.decodeCreationFlags;
|
|
17
|
+
exports.encodeCreationFlags = require_flags.encodeCreationFlags;
|
|
18
|
+
exports.predictEntityKey = require_key.predictEntityKey;
|
|
19
|
+
exports.randomSalt = require_key.randomSalt;
|
|
20
|
+
exports.resolveExpiry = require_expiry.resolveExpiry;
|
|
21
|
+
exports.toBlocks = require_expiry.toBlocks;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
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 InvalidCreationFlagsError, c as NoRandomSourceError, d as SaltInput, f as predictEntityKey, i as EntityEventName, l as MAX_SALT, m as Operation, n as OperationType, o as InvalidExpiryError, p as randomSalt, r as ENTITY_EVENTS_ABI, s as InvalidSaltError, t as MAX_EXPIRES_AT, u as NO_SALT } from "../index-DZxwz2Ky.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, NO_SALT, NoRandomSourceError, Operation, OperationType, ResolvedCreationFlags, ResolvedExpiry, SaltInput, decodeCreationFlags, encodeCreationFlags, predictEntityKey, randomSalt, resolveExpiry, toBlocks };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "../codec-M74UR1_0.js";
|
|
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-nDbCgZX4.js";
|
|
3
|
+
import { a as InvalidCreationFlagsError, c as NoRandomSourceError, d as SaltInput, f as predictEntityKey, i as EntityEventName, l as MAX_SALT, m as Operation, n as OperationType, o as InvalidExpiryError, p as randomSalt, r as ENTITY_EVENTS_ABI, s as InvalidSaltError, t as MAX_EXPIRES_AT, u as NO_SALT } from "../index-JP31fjyM.js";
|
|
4
|
+
import { i as encodeCreationFlags, n as ResolvedCreationFlags, r as decodeCreationFlags, t as CreationFlags } from "../flags-5dTNRnow.js";
|
|
5
|
+
export { CreationFlags, ENTITY_EVENTS_ABI, EncodedExpiry, EntityEventName, Expiry, ExpiryContext, InvalidCreationFlagsError, InvalidExpiryError, InvalidSaltError, Lifetime, MAX_EXPIRES_AT, MAX_SALT, NO_SALT, NoRandomSourceError, Operation, OperationType, ResolvedCreationFlags, ResolvedExpiry, SaltInput, decodeCreationFlags, encodeCreationFlags, predictEntityKey, randomSalt, resolveExpiry, toBlocks };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { a as OperationType, i as MAX_EXPIRES_AT, n as resolveExpiry, r as toBlocks } from "../expiry-CZErShX6.js";
|
|
2
|
+
import { i as randomSalt, n as NO_SALT, o as ENTITY_EVENTS_ABI, r as predictEntityKey, t as MAX_SALT } from "../key-XQkpw2xh.js";
|
|
3
|
+
import { i as NoRandomSourceError, n as InvalidExpiryError, r as InvalidSaltError, t as InvalidCreationFlagsError } from "../errors-CwPJ16bn.js";
|
|
4
|
+
import { n as encodeCreationFlags, t as decodeCreationFlags } from "../flags-Cr76ldwF.js";
|
|
5
|
+
import "../entity-CD_qFF2M.js";
|
|
6
|
+
|
|
7
|
+
export { ENTITY_EVENTS_ABI, InvalidCreationFlagsError, InvalidExpiryError, InvalidSaltError, MAX_EXPIRES_AT, MAX_SALT, NO_SALT, NoRandomSourceError, OperationType, decodeCreationFlags, encodeCreationFlags, predictEntityKey, randomSalt, resolveExpiry, toBlocks };
|