@arkiv-network/sdk 0.3.1-dev.0 → 0.3.2-dev.0
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/dist/chains/index.d.ts +25 -25
- package/dist/chains/index.d.ts.map +1 -1
- package/dist/entity-OY78HYxA.d.cts +240 -0
- package/dist/entity-OY78HYxA.d.cts.map +1 -0
- package/dist/entity-o4fwHXKf.d.ts +240 -0
- package/dist/entity-o4fwHXKf.d.ts.map +1 -0
- package/dist/index.d.cts +3 -143
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +3 -143
- package/dist/index.d.ts.map +1 -1
- package/dist/query/index.d.cts +2 -2
- package/dist/query/index.d.ts +2 -2
- package/dist/{queryBuilder-D38MYG7o.d.ts → queryBuilder-Bm1zGqKA.d.cts} +4 -63
- package/dist/queryBuilder-Bm1zGqKA.d.cts.map +1 -0
- package/dist/{queryBuilder-DU4RQa7H.d.cts → queryBuilder-CboWSREN.d.ts} +4 -63
- package/dist/queryBuilder-CboWSREN.d.ts.map +1 -0
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/index.d.cts.map +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +28 -6
- package/src/types/index.ts +13 -0
- package/dist/entity-CMRcjXBK.d.ts +0 -41
- package/dist/entity-CMRcjXBK.d.ts.map +0 -1
- package/dist/entity-Dgf1SSpi.d.cts +0 -41
- package/dist/entity-Dgf1SSpi.d.cts.map +0 -1
- package/dist/queryBuilder-D38MYG7o.d.ts.map +0 -1
- package/dist/queryBuilder-DU4RQa7H.d.cts.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
import {
|
|
1
|
+
import { _ as ArkivRpcSchema, a as MutateEntitiesReturnType, b as RpcQueryOptions, c as ExtendEntityParameters, d as DeleteEntityReturnType, f as CreateEntityParameters, g as ArkivClient, h as ChangeOwnershipReturnType, i as MutateEntitiesParameters, l as ExtendEntityReturnType, m as ChangeOwnershipParameters, n as TxParams, o as UpdateEntityParameters, p as CreateEntityReturnType, r as Attribute, s as UpdateEntityReturnType, t as Entity, u as DeleteEntityParameters, v as RpcEntity, x as MimeType, y as RpcIncludeData } from "./entity-OY78HYxA.cjs";
|
|
2
|
+
import { t as QueryBuilder } from "./queryBuilder-Bm1zGqKA.cjs";
|
|
3
3
|
import { Account, Account as Account$1, Address, Address as Address$1, Chain, Chain as Chain$1, Client, Hex, Hex as Hex$1, ParseAccount, Prettify, PublicActions, PublicClientConfig, PublicClientConfig as PublicClientConfig$1, RpcSchema, RpcSchema as RpcSchema$1, Transport, Transport as Transport$1, WalletActions, WalletClientConfig, http, toBytes, toHex, toRlp, webSocket } from "viem";
|
|
4
4
|
|
|
5
5
|
//#region src/types/events.d.ts
|
|
@@ -173,146 +173,6 @@ type PublicArkivClient<transport extends Transport$1 = Transport$1, chain extend
|
|
|
173
173
|
*/
|
|
174
174
|
declare function createPublicClient<transport extends Transport$1, chain extends Chain$1 | undefined = undefined, accountOrAddress extends Account$1 | Address$1 | undefined = undefined, rpcSchema extends RpcSchema$1 | undefined = ArkivRpcSchema>(parameters: PublicClientConfig$1<transport, chain, accountOrAddress, rpcSchema>): PublicArkivClient<transport, chain, ParseAccount<accountOrAddress>, rpcSchema>;
|
|
175
175
|
//#endregion
|
|
176
|
-
//#region src/actions/wallet/changeOwnership.d.ts
|
|
177
|
-
/**
|
|
178
|
-
* Parameters for the deleteEntity function.
|
|
179
|
-
* - entityKey: The key of the entity to delete.
|
|
180
|
-
*/
|
|
181
|
-
type ChangeOwnershipParameters = {
|
|
182
|
-
entityKey: Hex$1;
|
|
183
|
-
newOwner: Hex$1;
|
|
184
|
-
};
|
|
185
|
-
/**
|
|
186
|
-
* Return type for the deleteEntity function.
|
|
187
|
-
* - entityKey: The key of the entity.
|
|
188
|
-
* - txHash: The transaction hash.
|
|
189
|
-
*/
|
|
190
|
-
type ChangeOwnershipReturnType = {
|
|
191
|
-
entityKey: Hex$1;
|
|
192
|
-
txHash: string;
|
|
193
|
-
};
|
|
194
|
-
//#endregion
|
|
195
|
-
//#region src/actions/wallet/createEntity.d.ts
|
|
196
|
-
/**
|
|
197
|
-
* Parameters for the createEntity function.
|
|
198
|
-
* - payload: The payload of the entity.
|
|
199
|
-
* - attributes: The attributes of the entity.
|
|
200
|
-
* - contentType: The content type of the entity.
|
|
201
|
-
* - expiresIn: The expires in of the entity in seconds.
|
|
202
|
-
*/
|
|
203
|
-
type CreateEntityParameters = {
|
|
204
|
-
payload: Uint8Array;
|
|
205
|
-
attributes: Attribute[];
|
|
206
|
-
contentType: MimeType;
|
|
207
|
-
expiresIn: number;
|
|
208
|
-
};
|
|
209
|
-
/**
|
|
210
|
-
* Return type for the createEntity function.
|
|
211
|
-
* - entityKey: The key of the entity.
|
|
212
|
-
* - txHash: The transaction hash.
|
|
213
|
-
*/
|
|
214
|
-
type CreateEntityReturnType = {
|
|
215
|
-
entityKey: Hex$1;
|
|
216
|
-
txHash: string;
|
|
217
|
-
};
|
|
218
|
-
//#endregion
|
|
219
|
-
//#region src/actions/wallet/deleteEntity.d.ts
|
|
220
|
-
/**
|
|
221
|
-
* Parameters for the deleteEntity function.
|
|
222
|
-
* - entityKey: The key of the entity to delete.
|
|
223
|
-
*/
|
|
224
|
-
type DeleteEntityParameters = {
|
|
225
|
-
entityKey: Hex$1;
|
|
226
|
-
};
|
|
227
|
-
/**
|
|
228
|
-
* Return type for the deleteEntity function.
|
|
229
|
-
* - entityKey: The key of the entity.
|
|
230
|
-
* - txHash: The transaction hash.
|
|
231
|
-
*/
|
|
232
|
-
type DeleteEntityReturnType = {
|
|
233
|
-
entityKey: Hex$1;
|
|
234
|
-
txHash: string;
|
|
235
|
-
};
|
|
236
|
-
//#endregion
|
|
237
|
-
//#region src/actions/wallet/extendEntity.d.ts
|
|
238
|
-
/**
|
|
239
|
-
* Parameters for the extendEntity function.
|
|
240
|
-
* - entityKey: The key of the entity to extend.
|
|
241
|
-
* - expiresIn: The expires in of the entity in seconds.
|
|
242
|
-
*/
|
|
243
|
-
type ExtendEntityParameters = {
|
|
244
|
-
entityKey: Hex$1;
|
|
245
|
-
expiresIn: number;
|
|
246
|
-
};
|
|
247
|
-
/**
|
|
248
|
-
* Return type for the extendEntity function.
|
|
249
|
-
* - entityKey: The key of the entity.
|
|
250
|
-
* - txHash: The transaction hash.
|
|
251
|
-
*/
|
|
252
|
-
type ExtendEntityReturnType = {
|
|
253
|
-
entityKey: Hex$1;
|
|
254
|
-
txHash: string;
|
|
255
|
-
};
|
|
256
|
-
//#endregion
|
|
257
|
-
//#region src/actions/wallet/updateEntity.d.ts
|
|
258
|
-
/**
|
|
259
|
-
* Parameters for the updateEntity function.
|
|
260
|
-
* - entityKey: The key of the entity to update.
|
|
261
|
-
* - payload: The payload of the entity.
|
|
262
|
-
* - attributes: The attributes of the entity.
|
|
263
|
-
* - contentType: The content type of the entity.
|
|
264
|
-
* - expiresIn: The expires in of the entity in seconds.
|
|
265
|
-
*/
|
|
266
|
-
type UpdateEntityParameters = {
|
|
267
|
-
entityKey: Hex$1;
|
|
268
|
-
payload: Uint8Array;
|
|
269
|
-
attributes: Attribute[];
|
|
270
|
-
contentType: MimeType;
|
|
271
|
-
expiresIn: number;
|
|
272
|
-
};
|
|
273
|
-
/**
|
|
274
|
-
* Return type for the updateEntity function.
|
|
275
|
-
* - entityKey: The key of the entity.
|
|
276
|
-
* - txHash: The transaction hash.
|
|
277
|
-
*/
|
|
278
|
-
type UpdateEntityReturnType = {
|
|
279
|
-
entityKey: Hex$1;
|
|
280
|
-
txHash: string;
|
|
281
|
-
};
|
|
282
|
-
//#endregion
|
|
283
|
-
//#region src/actions/wallet/mutateEntities.d.ts
|
|
284
|
-
/**
|
|
285
|
-
* Parameters for the mutateEntities function.
|
|
286
|
-
* - creates: The creates to perform.
|
|
287
|
-
* - updates: The updates to perform.
|
|
288
|
-
* - deletes: The deletes to perform.
|
|
289
|
-
* - extensions: The extensions to perform.
|
|
290
|
-
*/
|
|
291
|
-
type MutateEntitiesParameters = {
|
|
292
|
-
creates?: CreateEntityParameters[];
|
|
293
|
-
updates?: UpdateEntityParameters[];
|
|
294
|
-
deletes?: DeleteEntityParameters[];
|
|
295
|
-
extensions?: ExtendEntityParameters[];
|
|
296
|
-
ownershipChanges?: ChangeOwnershipParameters[];
|
|
297
|
-
};
|
|
298
|
-
/**
|
|
299
|
-
* Return type for the mutateEntities function.
|
|
300
|
-
* - txHash: The transaction hash.
|
|
301
|
-
* - createdEntities: The keys of the created entities.
|
|
302
|
-
* - updatedEntities: The keys of the updated entities.
|
|
303
|
-
* - deletedEntities: The keys of the deleted entities.
|
|
304
|
-
* - extendedEntities: The keys of the extended entities.
|
|
305
|
-
* - ownershipChanges: The keys of the ownership changes.
|
|
306
|
-
*/
|
|
307
|
-
type MutateEntitiesReturnType = {
|
|
308
|
-
txHash: string;
|
|
309
|
-
createdEntities: Hex$1[];
|
|
310
|
-
updatedEntities: Hex$1[];
|
|
311
|
-
deletedEntities: Hex$1[];
|
|
312
|
-
extendedEntities: Hex$1[];
|
|
313
|
-
ownershipChanges: Hex$1[];
|
|
314
|
-
};
|
|
315
|
-
//#endregion
|
|
316
176
|
//#region src/clients/decorators/arkivWallet.d.ts
|
|
317
177
|
type WalletArkivActions<transport extends Transport$1 = Transport$1, chain extends Chain$1 | undefined = Chain$1 | undefined, account extends Account$1 | undefined = Account$1 | undefined> = Pick<PublicActions<transport, chain, account>, "waitForTransactionReceipt"> & Pick<WalletActions<chain, account>, "addChain" | "sendTransaction" | "sendTransactionSync" | "sendRawTransaction" | "sendRawTransactionSync" | "signMessage" | "signTransaction"> & {
|
|
318
178
|
/**
|
|
@@ -497,5 +357,5 @@ type WalletArkivClient<transport extends Transport$1 = Transport$1, chain extend
|
|
|
497
357
|
*/
|
|
498
358
|
declare function createWalletClient<transport extends Transport$1, chain extends Chain$1 | undefined = undefined, accountOrAddress extends Account$1 | Address$1 | undefined = undefined, rpcSchema extends RpcSchema$1 | undefined = ArkivRpcSchema>(parameters: WalletClientConfig<transport, chain, accountOrAddress, rpcSchema>): WalletArkivClient<transport, chain, ParseAccount<accountOrAddress>, rpcSchema>;
|
|
499
359
|
//#endregion
|
|
500
|
-
export { type Account, type Address, type ArkivClient, type ArkivRpcSchema, type Attribute, type Chain, type Entity, type Hex, type PublicArkivClient, type PublicClientConfig, type RpcSchema, type Transport, type WalletArkivClient, createPublicClient, createWalletClient, http, toBytes, toHex, toRlp, webSocket };
|
|
360
|
+
export { type Account, type Address, type ArkivClient, type ArkivRpcSchema, type Attribute, type Chain, type ChangeOwnershipParameters, type ChangeOwnershipReturnType, type CreateEntityParameters, type CreateEntityReturnType, type DeleteEntityParameters, type DeleteEntityReturnType, type Entity, type ExtendEntityParameters, type ExtendEntityReturnType, type Hex, type MimeType, type MutateEntitiesParameters, type MutateEntitiesReturnType, type PublicArkivClient, type PublicClientConfig, type RpcEntity, type RpcIncludeData, type RpcQueryOptions, type RpcSchema, type Transport, type TxParams, type UpdateEntityParameters, type UpdateEntityReturnType, type WalletArkivClient, createPublicClient, createWalletClient, http, toBytes, toHex, toRlp, webSocket };
|
|
501
361
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/types/events.ts","../src/clients/decorators/arkivPublic.ts","../src/clients/createPublicClient.ts","../src/
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/types/events.ts","../src/clients/decorators/arkivPublic.ts","../src/clients/createPublicClient.ts","../src/clients/decorators/arkivWallet.ts","../src/clients/createWalletClient.ts"],"sourcesContent":[],"mappings":";;;;;KAEY,oBAAA;aACC;SACJ;;EAFG,IAAA,EAAA,MAAA;AAOZ,CAAA;AAQY,KARA,oBAAA,GAQoB;EAKpB,SAAA,EAZC,KAYD;EAKA,KAAA,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CpB,oCACQ,cAAY,2BAChB,sBAAoB,qCAClB,wBAAsB,yCACpB,0BAAwB,kBACxC,SACF,OAAO,WAAW,OAAO,SAAS,WAAW,mBAAmB,WAAW,OAAO;;AJnBpF;AAOA;AAQA;AAKA;AAKA;;;;ACXA;;;;;;;;;;AAKE,iBGsBc,kBHtBd,CAAA,kBGuBkB,WHvBlB,EAAA,cGwBc,OHxBd,GAAA,SAAA,GAAA,SAAA,EAAA,yBGyByB,SHzBzB,GGyBmC,SHzBnC,GAAA,SAAA,GAAA,SAAA,EAAA,kBG0BkB,WH1BlB,GAAA,SAAA,GG0B0C,cH1B1C,CAAA,CAAA,UAAA,EG4BY,kBH5BZ,CG4B+B,SH5B/B,EG4B0C,KH5B1C,EG4BiD,gBH5BjD,EG4BmE,SH5BnE,CAAA,CAAA,EG6BC,iBH7BD,CG6BmB,SH7BnB,EG6B8B,KH7B9B,EG6BqC,YH7BrC,CG6BkD,gBH7BlD,CAAA,EG6BqE,SH7BrE,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
import {
|
|
1
|
+
import { _ as ArkivRpcSchema, a as MutateEntitiesReturnType, b as RpcQueryOptions, c as ExtendEntityParameters, d as DeleteEntityReturnType, f as CreateEntityParameters, g as ArkivClient, h as ChangeOwnershipReturnType, i as MutateEntitiesParameters, l as ExtendEntityReturnType, m as ChangeOwnershipParameters, n as TxParams, o as UpdateEntityParameters, p as CreateEntityReturnType, r as Attribute, s as UpdateEntityReturnType, t as Entity, u as DeleteEntityParameters, v as RpcEntity, x as MimeType, y as RpcIncludeData } from "./entity-o4fwHXKf.js";
|
|
2
|
+
import { t as QueryBuilder } from "./queryBuilder-CboWSREN.js";
|
|
3
3
|
import { Account, Account as Account$1, Address, Address as Address$1, Chain, Chain as Chain$1, Client, Hex, Hex as Hex$1, ParseAccount, Prettify, PublicActions, PublicClientConfig, PublicClientConfig as PublicClientConfig$1, RpcSchema, RpcSchema as RpcSchema$1, Transport, Transport as Transport$1, WalletActions, WalletClientConfig, http, toBytes, toHex, toRlp, webSocket } from "viem";
|
|
4
4
|
|
|
5
5
|
//#region src/types/events.d.ts
|
|
@@ -173,146 +173,6 @@ type PublicArkivClient<transport extends Transport$1 = Transport$1, chain extend
|
|
|
173
173
|
*/
|
|
174
174
|
declare function createPublicClient<transport extends Transport$1, chain extends Chain$1 | undefined = undefined, accountOrAddress extends Account$1 | Address$1 | undefined = undefined, rpcSchema extends RpcSchema$1 | undefined = ArkivRpcSchema>(parameters: PublicClientConfig$1<transport, chain, accountOrAddress, rpcSchema>): PublicArkivClient<transport, chain, ParseAccount<accountOrAddress>, rpcSchema>;
|
|
175
175
|
//#endregion
|
|
176
|
-
//#region src/actions/wallet/changeOwnership.d.ts
|
|
177
|
-
/**
|
|
178
|
-
* Parameters for the deleteEntity function.
|
|
179
|
-
* - entityKey: The key of the entity to delete.
|
|
180
|
-
*/
|
|
181
|
-
type ChangeOwnershipParameters = {
|
|
182
|
-
entityKey: Hex$1;
|
|
183
|
-
newOwner: Hex$1;
|
|
184
|
-
};
|
|
185
|
-
/**
|
|
186
|
-
* Return type for the deleteEntity function.
|
|
187
|
-
* - entityKey: The key of the entity.
|
|
188
|
-
* - txHash: The transaction hash.
|
|
189
|
-
*/
|
|
190
|
-
type ChangeOwnershipReturnType = {
|
|
191
|
-
entityKey: Hex$1;
|
|
192
|
-
txHash: string;
|
|
193
|
-
};
|
|
194
|
-
//#endregion
|
|
195
|
-
//#region src/actions/wallet/createEntity.d.ts
|
|
196
|
-
/**
|
|
197
|
-
* Parameters for the createEntity function.
|
|
198
|
-
* - payload: The payload of the entity.
|
|
199
|
-
* - attributes: The attributes of the entity.
|
|
200
|
-
* - contentType: The content type of the entity.
|
|
201
|
-
* - expiresIn: The expires in of the entity in seconds.
|
|
202
|
-
*/
|
|
203
|
-
type CreateEntityParameters = {
|
|
204
|
-
payload: Uint8Array;
|
|
205
|
-
attributes: Attribute[];
|
|
206
|
-
contentType: MimeType;
|
|
207
|
-
expiresIn: number;
|
|
208
|
-
};
|
|
209
|
-
/**
|
|
210
|
-
* Return type for the createEntity function.
|
|
211
|
-
* - entityKey: The key of the entity.
|
|
212
|
-
* - txHash: The transaction hash.
|
|
213
|
-
*/
|
|
214
|
-
type CreateEntityReturnType = {
|
|
215
|
-
entityKey: Hex$1;
|
|
216
|
-
txHash: string;
|
|
217
|
-
};
|
|
218
|
-
//#endregion
|
|
219
|
-
//#region src/actions/wallet/deleteEntity.d.ts
|
|
220
|
-
/**
|
|
221
|
-
* Parameters for the deleteEntity function.
|
|
222
|
-
* - entityKey: The key of the entity to delete.
|
|
223
|
-
*/
|
|
224
|
-
type DeleteEntityParameters = {
|
|
225
|
-
entityKey: Hex$1;
|
|
226
|
-
};
|
|
227
|
-
/**
|
|
228
|
-
* Return type for the deleteEntity function.
|
|
229
|
-
* - entityKey: The key of the entity.
|
|
230
|
-
* - txHash: The transaction hash.
|
|
231
|
-
*/
|
|
232
|
-
type DeleteEntityReturnType = {
|
|
233
|
-
entityKey: Hex$1;
|
|
234
|
-
txHash: string;
|
|
235
|
-
};
|
|
236
|
-
//#endregion
|
|
237
|
-
//#region src/actions/wallet/extendEntity.d.ts
|
|
238
|
-
/**
|
|
239
|
-
* Parameters for the extendEntity function.
|
|
240
|
-
* - entityKey: The key of the entity to extend.
|
|
241
|
-
* - expiresIn: The expires in of the entity in seconds.
|
|
242
|
-
*/
|
|
243
|
-
type ExtendEntityParameters = {
|
|
244
|
-
entityKey: Hex$1;
|
|
245
|
-
expiresIn: number;
|
|
246
|
-
};
|
|
247
|
-
/**
|
|
248
|
-
* Return type for the extendEntity function.
|
|
249
|
-
* - entityKey: The key of the entity.
|
|
250
|
-
* - txHash: The transaction hash.
|
|
251
|
-
*/
|
|
252
|
-
type ExtendEntityReturnType = {
|
|
253
|
-
entityKey: Hex$1;
|
|
254
|
-
txHash: string;
|
|
255
|
-
};
|
|
256
|
-
//#endregion
|
|
257
|
-
//#region src/actions/wallet/updateEntity.d.ts
|
|
258
|
-
/**
|
|
259
|
-
* Parameters for the updateEntity function.
|
|
260
|
-
* - entityKey: The key of the entity to update.
|
|
261
|
-
* - payload: The payload of the entity.
|
|
262
|
-
* - attributes: The attributes of the entity.
|
|
263
|
-
* - contentType: The content type of the entity.
|
|
264
|
-
* - expiresIn: The expires in of the entity in seconds.
|
|
265
|
-
*/
|
|
266
|
-
type UpdateEntityParameters = {
|
|
267
|
-
entityKey: Hex$1;
|
|
268
|
-
payload: Uint8Array;
|
|
269
|
-
attributes: Attribute[];
|
|
270
|
-
contentType: MimeType;
|
|
271
|
-
expiresIn: number;
|
|
272
|
-
};
|
|
273
|
-
/**
|
|
274
|
-
* Return type for the updateEntity function.
|
|
275
|
-
* - entityKey: The key of the entity.
|
|
276
|
-
* - txHash: The transaction hash.
|
|
277
|
-
*/
|
|
278
|
-
type UpdateEntityReturnType = {
|
|
279
|
-
entityKey: Hex$1;
|
|
280
|
-
txHash: string;
|
|
281
|
-
};
|
|
282
|
-
//#endregion
|
|
283
|
-
//#region src/actions/wallet/mutateEntities.d.ts
|
|
284
|
-
/**
|
|
285
|
-
* Parameters for the mutateEntities function.
|
|
286
|
-
* - creates: The creates to perform.
|
|
287
|
-
* - updates: The updates to perform.
|
|
288
|
-
* - deletes: The deletes to perform.
|
|
289
|
-
* - extensions: The extensions to perform.
|
|
290
|
-
*/
|
|
291
|
-
type MutateEntitiesParameters = {
|
|
292
|
-
creates?: CreateEntityParameters[];
|
|
293
|
-
updates?: UpdateEntityParameters[];
|
|
294
|
-
deletes?: DeleteEntityParameters[];
|
|
295
|
-
extensions?: ExtendEntityParameters[];
|
|
296
|
-
ownershipChanges?: ChangeOwnershipParameters[];
|
|
297
|
-
};
|
|
298
|
-
/**
|
|
299
|
-
* Return type for the mutateEntities function.
|
|
300
|
-
* - txHash: The transaction hash.
|
|
301
|
-
* - createdEntities: The keys of the created entities.
|
|
302
|
-
* - updatedEntities: The keys of the updated entities.
|
|
303
|
-
* - deletedEntities: The keys of the deleted entities.
|
|
304
|
-
* - extendedEntities: The keys of the extended entities.
|
|
305
|
-
* - ownershipChanges: The keys of the ownership changes.
|
|
306
|
-
*/
|
|
307
|
-
type MutateEntitiesReturnType = {
|
|
308
|
-
txHash: string;
|
|
309
|
-
createdEntities: Hex$1[];
|
|
310
|
-
updatedEntities: Hex$1[];
|
|
311
|
-
deletedEntities: Hex$1[];
|
|
312
|
-
extendedEntities: Hex$1[];
|
|
313
|
-
ownershipChanges: Hex$1[];
|
|
314
|
-
};
|
|
315
|
-
//#endregion
|
|
316
176
|
//#region src/clients/decorators/arkivWallet.d.ts
|
|
317
177
|
type WalletArkivActions<transport extends Transport$1 = Transport$1, chain extends Chain$1 | undefined = Chain$1 | undefined, account extends Account$1 | undefined = Account$1 | undefined> = Pick<PublicActions<transport, chain, account>, "waitForTransactionReceipt"> & Pick<WalletActions<chain, account>, "addChain" | "sendTransaction" | "sendTransactionSync" | "sendRawTransaction" | "sendRawTransactionSync" | "signMessage" | "signTransaction"> & {
|
|
318
178
|
/**
|
|
@@ -497,5 +357,5 @@ type WalletArkivClient<transport extends Transport$1 = Transport$1, chain extend
|
|
|
497
357
|
*/
|
|
498
358
|
declare function createWalletClient<transport extends Transport$1, chain extends Chain$1 | undefined = undefined, accountOrAddress extends Account$1 | Address$1 | undefined = undefined, rpcSchema extends RpcSchema$1 | undefined = ArkivRpcSchema>(parameters: WalletClientConfig<transport, chain, accountOrAddress, rpcSchema>): WalletArkivClient<transport, chain, ParseAccount<accountOrAddress>, rpcSchema>;
|
|
499
359
|
//#endregion
|
|
500
|
-
export { type Account, type Address, type ArkivClient, type ArkivRpcSchema, type Attribute, type Chain, type Entity, type Hex, type PublicArkivClient, type PublicClientConfig, type RpcSchema, type Transport, type WalletArkivClient, createPublicClient, createWalletClient, http, toBytes, toHex, toRlp, webSocket };
|
|
360
|
+
export { type Account, type Address, type ArkivClient, type ArkivRpcSchema, type Attribute, type Chain, type ChangeOwnershipParameters, type ChangeOwnershipReturnType, type CreateEntityParameters, type CreateEntityReturnType, type DeleteEntityParameters, type DeleteEntityReturnType, type Entity, type ExtendEntityParameters, type ExtendEntityReturnType, type Hex, type MimeType, type MutateEntitiesParameters, type MutateEntitiesReturnType, type PublicArkivClient, type PublicClientConfig, type RpcEntity, type RpcIncludeData, type RpcQueryOptions, type RpcSchema, type Transport, type TxParams, type UpdateEntityParameters, type UpdateEntityReturnType, type WalletArkivClient, createPublicClient, createWalletClient, http, toBytes, toHex, toRlp, webSocket };
|
|
501
361
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/events.ts","../src/clients/decorators/arkivPublic.ts","../src/clients/createPublicClient.ts","../src/
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/events.ts","../src/clients/decorators/arkivPublic.ts","../src/clients/createPublicClient.ts","../src/clients/decorators/arkivWallet.ts","../src/clients/createWalletClient.ts"],"sourcesContent":[],"mappings":";;;;;KAEY,oBAAA;aACC;SACJ;;EAFG,IAAA,EAAA,MAAA;AAOZ,CAAA;AAQY,KARA,oBAAA,GAQoB;EAKpB,SAAA,EAZC,KAYD;EAKA,KAAA,EAhBH,KAgBG;;;;ACXZ,CAAA;AACoB,KDAR,oBAAA,GCAQ;EAAY,SAAA,EDCnB,KCDmB;EAChB,KAAA,EDCP,KCDO;CAAoB;AAClB,KDGN,oBAAA,GCHM;EAAsB,SAAA,EDI3B,KCJ2B;EAExB,KAAA,EDGP,KCHO;CAAW;AAAO,KDMtB,8BAAA,GCNsB;EAAhC,SAAA,EDOW,KCPX;EADE,KAAA,EDSK,KCTL;EAmCe,kBAAA,EAAA,MAAA;EAAgB,kBAAA,EAAA,MAAA;EAAR,IAAA,EAAA,MAAA;CAsBP;;;KA7DR,qCACQ,cAAY,2BAChB,sBAAoB,qCAClB,wBAAsB,yBACpC,KACF,cAA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+B,SH5B/B,EG4B0C,KH5B1C,EG4BiD,gBH5BjD,EG4BmE,SH5BnE,CAAA,CAAA,EG6BC,iBH7BD,CG6BmB,SH7BnB,EG6B8B,KH7B9B,EG6BqC,YH7BrC,CG6BkD,gBH7BlD,CAAA,EG6BqE,SH7BrE,CAAA"}
|
package/dist/query/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../entity-
|
|
2
|
-
import { a as PredicateType, c as gt, d as lte, f as neq, i as PredicateContainerType, l as gte, m as or, n as QueryResult, o as and, p as not, r as Predicate, s as eq, t as QueryBuilder, u as lt } from "../queryBuilder-
|
|
1
|
+
import "../entity-OY78HYxA.cjs";
|
|
2
|
+
import { a as PredicateType, c as gt, d as lte, f as neq, i as PredicateContainerType, l as gte, m as or, n as QueryResult, o as and, p as not, r as Predicate, s as eq, t as QueryBuilder, u as lt } from "../queryBuilder-Bm1zGqKA.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/query/errors.d.ts
|
|
5
5
|
declare class NoMoreResultsError extends Error {
|
package/dist/query/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../entity-
|
|
2
|
-
import { a as PredicateType, c as gt, d as lte, f as neq, i as PredicateContainerType, l as gte, m as or, n as QueryResult, o as and, p as not, r as Predicate, s as eq, t as QueryBuilder, u as lt } from "../queryBuilder-
|
|
1
|
+
import "../entity-o4fwHXKf.js";
|
|
2
|
+
import { a as PredicateType, c as gt, d as lte, f as neq, i as PredicateContainerType, l as gte, m as or, n as QueryResult, o as and, p as not, r as Predicate, s as eq, t as QueryBuilder, u as lt } from "../queryBuilder-CboWSREN.js";
|
|
3
3
|
|
|
4
4
|
//#region src/query/errors.d.ts
|
|
5
5
|
declare class NoMoreResultsError extends Error {
|
|
@@ -1,65 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { g as ArkivClient, t as Entity } from "./entity-OY78HYxA.cjs";
|
|
2
|
+
import { Hex } from "viem";
|
|
3
3
|
|
|
4
|
-
//#region src/types/rpcSchema.d.ts
|
|
5
|
-
type RpcEntity = {
|
|
6
|
-
key: Hex;
|
|
7
|
-
contentType: MimeType;
|
|
8
|
-
value: string;
|
|
9
|
-
expiresAt: bigint;
|
|
10
|
-
owner: Hex;
|
|
11
|
-
stringAttributes?: [{
|
|
12
|
-
key: string;
|
|
13
|
-
value: string;
|
|
14
|
-
}];
|
|
15
|
-
numericAttributes?: [{
|
|
16
|
-
key: string;
|
|
17
|
-
value: number;
|
|
18
|
-
}];
|
|
19
|
-
};
|
|
20
|
-
type RpcQueryOptions = {
|
|
21
|
-
atBlock?: number;
|
|
22
|
-
includeData?: RpcIncludeData;
|
|
23
|
-
resultsPerPage?: number;
|
|
24
|
-
cursor?: string;
|
|
25
|
-
};
|
|
26
|
-
type RpcIncludeData = {
|
|
27
|
-
key: boolean;
|
|
28
|
-
attributes: boolean;
|
|
29
|
-
payload: boolean;
|
|
30
|
-
contentType: boolean;
|
|
31
|
-
expiration: boolean;
|
|
32
|
-
owner: boolean;
|
|
33
|
-
};
|
|
34
|
-
type ArkivRpcSchema = [{
|
|
35
|
-
Method: "golembase_getStorageValue";
|
|
36
|
-
Parameters?: [entityId: Hex];
|
|
37
|
-
ReturnType: string;
|
|
38
|
-
}, {
|
|
39
|
-
Method: "arkiv_query";
|
|
40
|
-
Parameters?: [query: string, queryOptions?: RpcQueryOptions];
|
|
41
|
-
ReturnType: {
|
|
42
|
-
data: [RpcEntity];
|
|
43
|
-
blockNumber: bigint;
|
|
44
|
-
cursor: string;
|
|
45
|
-
};
|
|
46
|
-
}, {
|
|
47
|
-
Method: "arkiv_getBlockTiming";
|
|
48
|
-
Parameters?: [];
|
|
49
|
-
ReturnType: {
|
|
50
|
-
current_block: bigint;
|
|
51
|
-
current_block_time: number;
|
|
52
|
-
duration: number;
|
|
53
|
-
};
|
|
54
|
-
}, {
|
|
55
|
-
Method: "arkiv_getEntityCount";
|
|
56
|
-
Parameters?: [];
|
|
57
|
-
ReturnType: number;
|
|
58
|
-
}];
|
|
59
|
-
//#endregion
|
|
60
|
-
//#region src/clients/baseClient.d.ts
|
|
61
|
-
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>;
|
|
62
|
-
//#endregion
|
|
63
4
|
//#region src/query/predicate.d.ts
|
|
64
5
|
type PredicateType = "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "not";
|
|
65
6
|
type PredicateContainerType = "or" | "and";
|
|
@@ -316,5 +257,5 @@ declare class QueryBuilder {
|
|
|
316
257
|
count(): Promise<1>;
|
|
317
258
|
}
|
|
318
259
|
//#endregion
|
|
319
|
-
export { PredicateType as a, gt as c, lte as d, neq as f,
|
|
320
|
-
//# sourceMappingURL=queryBuilder-
|
|
260
|
+
export { PredicateType as a, gt as c, lte as d, neq as f, PredicateContainerType as i, gte as l, or as m, QueryResult as n, and as o, not as p, Predicate as r, eq as s, QueryBuilder as t, lt as u };
|
|
261
|
+
//# sourceMappingURL=queryBuilder-Bm1zGqKA.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryBuilder-Bm1zGqKA.d.cts","names":[],"sources":["../src/query/predicate.ts","../src/query/queryResult.ts","../src/query/queryBuilder.ts"],"sourcesContent":[],"mappings":";;;;KAAY,aAAA;KACA,sBAAA;KAEA,SAAA;QAEA;EALA,GAAA,EAAA,MAAA;EACA,KAAA,EAAA,MAAA,GAAA,MAAA;AAEZ,CAAA,GAAY;EAEA,IAAA,EAKA,sBALA;EAKA,UAAA,EACM,SADN,EAAA;CACM;;AAclB;AAeA;AAcA;AAcA;AAcA;AAcA;AAcA;AAcA;AAaA;;iBAhHgB,EAAA,aAAe,cAAc;;ACrB7C;;;;;;;;;;ACSa,iBF2BG,GAAA,CE3BS,UAAA,EF2BO,SE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A"}
|
|
@@ -1,65 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { g as ArkivClient, t as Entity } from "./entity-o4fwHXKf.js";
|
|
2
|
+
import { Hex } from "viem";
|
|
3
3
|
|
|
4
|
-
//#region src/types/rpcSchema.d.ts
|
|
5
|
-
type RpcEntity = {
|
|
6
|
-
key: Hex;
|
|
7
|
-
contentType: MimeType;
|
|
8
|
-
value: string;
|
|
9
|
-
expiresAt: bigint;
|
|
10
|
-
owner: Hex;
|
|
11
|
-
stringAttributes?: [{
|
|
12
|
-
key: string;
|
|
13
|
-
value: string;
|
|
14
|
-
}];
|
|
15
|
-
numericAttributes?: [{
|
|
16
|
-
key: string;
|
|
17
|
-
value: number;
|
|
18
|
-
}];
|
|
19
|
-
};
|
|
20
|
-
type RpcQueryOptions = {
|
|
21
|
-
atBlock?: number;
|
|
22
|
-
includeData?: RpcIncludeData;
|
|
23
|
-
resultsPerPage?: number;
|
|
24
|
-
cursor?: string;
|
|
25
|
-
};
|
|
26
|
-
type RpcIncludeData = {
|
|
27
|
-
key: boolean;
|
|
28
|
-
attributes: boolean;
|
|
29
|
-
payload: boolean;
|
|
30
|
-
contentType: boolean;
|
|
31
|
-
expiration: boolean;
|
|
32
|
-
owner: boolean;
|
|
33
|
-
};
|
|
34
|
-
type ArkivRpcSchema = [{
|
|
35
|
-
Method: "golembase_getStorageValue";
|
|
36
|
-
Parameters?: [entityId: Hex];
|
|
37
|
-
ReturnType: string;
|
|
38
|
-
}, {
|
|
39
|
-
Method: "arkiv_query";
|
|
40
|
-
Parameters?: [query: string, queryOptions?: RpcQueryOptions];
|
|
41
|
-
ReturnType: {
|
|
42
|
-
data: [RpcEntity];
|
|
43
|
-
blockNumber: bigint;
|
|
44
|
-
cursor: string;
|
|
45
|
-
};
|
|
46
|
-
}, {
|
|
47
|
-
Method: "arkiv_getBlockTiming";
|
|
48
|
-
Parameters?: [];
|
|
49
|
-
ReturnType: {
|
|
50
|
-
current_block: bigint;
|
|
51
|
-
current_block_time: number;
|
|
52
|
-
duration: number;
|
|
53
|
-
};
|
|
54
|
-
}, {
|
|
55
|
-
Method: "arkiv_getEntityCount";
|
|
56
|
-
Parameters?: [];
|
|
57
|
-
ReturnType: number;
|
|
58
|
-
}];
|
|
59
|
-
//#endregion
|
|
60
|
-
//#region src/clients/baseClient.d.ts
|
|
61
|
-
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>;
|
|
62
|
-
//#endregion
|
|
63
4
|
//#region src/query/predicate.d.ts
|
|
64
5
|
type PredicateType = "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "not";
|
|
65
6
|
type PredicateContainerType = "or" | "and";
|
|
@@ -316,5 +257,5 @@ declare class QueryBuilder {
|
|
|
316
257
|
count(): Promise<1>;
|
|
317
258
|
}
|
|
318
259
|
//#endregion
|
|
319
|
-
export { PredicateType as a, gt as c, lte as d, neq as f,
|
|
320
|
-
//# sourceMappingURL=queryBuilder-
|
|
260
|
+
export { PredicateType as a, gt as c, lte as d, neq as f, PredicateContainerType as i, gte as l, or as m, QueryResult as n, and as o, not as p, Predicate as r, eq as s, QueryBuilder as t, lt as u };
|
|
261
|
+
//# sourceMappingURL=queryBuilder-CboWSREN.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryBuilder-CboWSREN.d.ts","names":[],"sources":["../src/query/predicate.ts","../src/query/queryResult.ts","../src/query/queryBuilder.ts"],"sourcesContent":[],"mappings":";;;;KAAY,aAAA;KACA,sBAAA;KAEA,SAAA;QAEA;EALA,GAAA,EAAA,MAAA;EACA,KAAA,EAAA,MAAA,GAAA,MAAA;AAEZ,CAAA,GAAY;EAEA,IAAA,EAKA,sBALA;EAKA,UAAA,EACM,SADN,EAAA;CACM;;AAclB;AAeA;AAcA;AAcA;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAlDO,cAAc;;;;;;;;;;;WAmBrB,QAAA;;;;;;;;;;WA+BA"}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
export { Attribute, Entity, MimeType, TxParams };
|
|
1
|
+
import { _ as ArkivRpcSchema, a as MutateEntitiesReturnType, b as RpcQueryOptions, c as ExtendEntityParameters, d as DeleteEntityReturnType, f as CreateEntityParameters, h as ChangeOwnershipReturnType, i as MutateEntitiesParameters, l as ExtendEntityReturnType, m as ChangeOwnershipParameters, n as TxParams, o as UpdateEntityParameters, p as CreateEntityReturnType, r as Attribute, s as UpdateEntityReturnType, t as Entity, u as DeleteEntityParameters, v as RpcEntity, x as MimeType, y as RpcIncludeData } from "../entity-OY78HYxA.cjs";
|
|
2
|
+
export { ArkivRpcSchema, Attribute, ChangeOwnershipParameters, ChangeOwnershipReturnType, CreateEntityParameters, CreateEntityReturnType, DeleteEntityParameters, DeleteEntityReturnType, Entity, ExtendEntityParameters, ExtendEntityReturnType, MimeType, MutateEntitiesParameters, MutateEntitiesReturnType, RpcEntity, RpcIncludeData, RpcQueryOptions, TxParams, UpdateEntityParameters, UpdateEntityReturnType };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
export { Attribute, Entity, MimeType, TxParams };
|
|
1
|
+
import { _ as ArkivRpcSchema, a as MutateEntitiesReturnType, b as RpcQueryOptions, c as ExtendEntityParameters, d as DeleteEntityReturnType, f as CreateEntityParameters, h as ChangeOwnershipReturnType, i as MutateEntitiesParameters, l as ExtendEntityReturnType, m as ChangeOwnershipParameters, n as TxParams, o as UpdateEntityParameters, p as CreateEntityReturnType, r as Attribute, s as UpdateEntityReturnType, t as Entity, u as DeleteEntityParameters, v as RpcEntity, x as MimeType, y as RpcIncludeData } from "../entity-o4fwHXKf.js";
|
|
2
|
+
export { ArkivRpcSchema, Attribute, ChangeOwnershipParameters, ChangeOwnershipReturnType, CreateEntityParameters, CreateEntityReturnType, DeleteEntityParameters, DeleteEntityReturnType, Entity, ExtendEntityParameters, ExtendEntityReturnType, MimeType, MutateEntitiesParameters, MutateEntitiesReturnType, RpcEntity, RpcIncludeData, RpcQueryOptions, TxParams, UpdateEntityParameters, UpdateEntityReturnType };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/utils/expirationTime.ts","../../src/utils/payload.ts"],"sourcesContent":[],"mappings":";;;cAEa;;;EAAA,SAAA,EAAA,CAAA,KAUZ,EAAA,MAAA,EAAA,GADkB,MAAI;;;;ECTP,SAAA,EAAA,CAAA,KAAa,EAAA,MAAA,
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/utils/expirationTime.ts","../../src/utils/payload.ts"],"sourcesContent":[],"mappings":";;;cAEa;;;EAAA,SAAA,EAAA,CAAA,KAUZ,EAAA,MAAA,EAAA,GADkB,MAAI;;;;ECTP,SAAA,EAAA,CAAA,KAAa,EAAA,MAAA,EAAgB,GAAA,MAAA;EAI7B,UAAA,EAAA,CAAA,MAAe,EAAA,MAAA,EAAgB,GAAA,MAAA;mBDK5B;;;;iBCTH,aAAA,gBAA6B;iBAI7B,eAAA,gBAA+B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/utils/expirationTime.ts","../../src/utils/payload.ts"],"sourcesContent":[],"mappings":";;;cAEa;;;EAAA,SAAA,EAAA,CAAA,KAUZ,EAAA,MAAA,EAAA,GADkB,MAAI;;;;ECTP,SAAA,EAAA,CAAA,KAAa,EAAA,MAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/utils/expirationTime.ts","../../src/utils/payload.ts"],"sourcesContent":[],"mappings":";;;cAEa;;;EAAA,SAAA,EAAA,CAAA,KAUZ,EAAA,MAAA,EAAA,GADkB,MAAI;;;;ECTP,SAAA,EAAA,CAAA,KAAa,EAAA,MAAA,EAAgB,GAAA,MAAA;EAI7B,UAAA,EAAA,CAAA,MAAe,EAAA,MAAA,EAAgB,GAAA,MAAA;mBDK5B;;;;iBCTH,aAAA,gBAA6B;iBAI7B,eAAA,gBAA+B"}
|