@aptos-labs/js-pro 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/client.d.ts +1 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/index.js +33 -33
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -28
- package/dist/index.mjs.map +1 -1
- package/dist/queries/index.d.ts +0 -1
- package/dist/queries/index.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/client.ts +0 -3
- package/src/queries/index.ts +0 -1
- package/dist/queries/fetchEvents.d.ts +0 -7
- package/dist/queries/fetchEvents.d.ts.map +0 -1
- package/src/queries/fetchEvents.ts +0 -23
package/dist/queries/index.d.ts
CHANGED
|
@@ -16,6 +16,5 @@ export * from "./fetchViewModule.js";
|
|
|
16
16
|
export * from "./fetchFungibleAssetMetadata.js";
|
|
17
17
|
export * from "./fetchAccountTransactions.js";
|
|
18
18
|
export * from "./fetchAccountTokens.js";
|
|
19
|
-
export * from "./fetchEvents.js";
|
|
20
19
|
export * from "./fetchUserTransactions.js";
|
|
21
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/queries/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/queries/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aptos-labs/js-pro",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "State management and library of utilities for Aptos applications.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/aptos-labs/js-pro.git",
|
|
8
|
+
"url": "https://github.com/aptos-labs/aptos-js-pro.git",
|
|
9
9
|
"directory": "packages/js-pro"
|
|
10
10
|
},
|
|
11
|
+
"homepage": "https://js-pro.aptos.dev/",
|
|
11
12
|
"main": "./dist/index.js",
|
|
12
13
|
"module": "./dist/index.mjs",
|
|
13
14
|
"types": "./dist/index.d.ts",
|
package/src/client.ts
CHANGED
|
@@ -30,7 +30,6 @@ import {
|
|
|
30
30
|
fetchAccountCollections,
|
|
31
31
|
fetchViewModule,
|
|
32
32
|
fetchLedgerInfo,
|
|
33
|
-
fetchEvents,
|
|
34
33
|
fetchAccountTransactions,
|
|
35
34
|
fetchAccountTokens,
|
|
36
35
|
fetchUserTransactions,
|
|
@@ -324,8 +323,6 @@ export class AptosJSProClient {
|
|
|
324
323
|
|
|
325
324
|
fetchViewModule = fetchViewModule;
|
|
326
325
|
|
|
327
|
-
fetchEvents = fetchEvents;
|
|
328
|
-
|
|
329
326
|
fetchUserTransactions = fetchUserTransactions;
|
|
330
327
|
|
|
331
328
|
//* Client Mutations
|
package/src/queries/index.ts
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Aptos, GetEventsResponse } from "@aptos-labs/ts-sdk";
|
|
2
|
-
import { AptosJSProClient } from "../client.js";
|
|
3
|
-
import { WithNetwork } from "../types/parameters.js";
|
|
4
|
-
export type FetchEventsParameters = WithNetwork<Parameters<Aptos["getEvents"]>[0]>;
|
|
5
|
-
export type FetchEventsResult = GetEventsResponse;
|
|
6
|
-
export declare function fetchEvents(this: AptosJSProClient, { network, ...params }?: FetchEventsParameters): Promise<FetchEventsResult>;
|
|
7
|
-
//# sourceMappingURL=fetchEvents.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetchEvents.d.ts","sourceRoot":"","sources":["../../src/queries/fetchEvents.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,WAAW,CAC7C,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAClC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;AAElD,wBAAsB,WAAW,CAC/B,IAAI,EAAE,gBAAgB,EACtB,EAAE,OAAO,EAAE,GAAG,MAAM,EAAE,GAAE,qBAA0B,GACjD,OAAO,CAAC,iBAAiB,CAAC,CAM5B"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// Copyright © Aptos
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
4
|
-
import { Aptos, GetEventsResponse } from "@aptos-labs/ts-sdk";
|
|
5
|
-
import { AptosJSProClient } from "../client.js";
|
|
6
|
-
import { WithNetwork } from "../types/parameters.js";
|
|
7
|
-
|
|
8
|
-
export type FetchEventsParameters = WithNetwork<
|
|
9
|
-
Parameters<Aptos["getEvents"]>[0]
|
|
10
|
-
>;
|
|
11
|
-
|
|
12
|
-
export type FetchEventsResult = GetEventsResponse;
|
|
13
|
-
|
|
14
|
-
export async function fetchEvents(
|
|
15
|
-
this: AptosJSProClient,
|
|
16
|
-
{ network, ...params }: FetchEventsParameters = {}
|
|
17
|
-
): Promise<FetchEventsResult> {
|
|
18
|
-
const { aptos } = this.getClients({ network });
|
|
19
|
-
|
|
20
|
-
const result = await aptos.getEvents(params);
|
|
21
|
-
|
|
22
|
-
return result;
|
|
23
|
-
}
|