@aptos-labs/js-pro 0.0.2-experimental.8 → 0.1.0-beta.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/CHANGELOG.md +1 -0
- package/dist/client.d.ts +133 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/constants/endpoints.d.ts +2 -0
- package/dist/constants/endpoints.d.ts.map +1 -0
- package/dist/errors/base.d.ts +11 -0
- package/dist/errors/base.d.ts.map +1 -0
- package/dist/errors/clients.d.ts +10 -0
- package/dist/errors/clients.d.ts.map +1 -0
- package/dist/errors/index.d.ts +4 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/transactions.d.ts +6 -0
- package/dist/errors/transactions.d.ts.map +1 -0
- package/dist/index.d.ts +8 -12599
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +246 -205
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +391 -0
- package/dist/index.mjs.map +1 -0
- package/dist/mutations/buildTransaction.d.ts +12 -0
- package/dist/mutations/buildTransaction.d.ts.map +1 -0
- package/dist/mutations/index.d.ts +7 -0
- package/dist/mutations/index.d.ts.map +1 -0
- package/dist/mutations/signAndSubmitTransaction.d.ts +13 -0
- package/dist/mutations/signAndSubmitTransaction.d.ts.map +1 -0
- package/dist/mutations/signTransaction.d.ts +16 -0
- package/dist/mutations/signTransaction.d.ts.map +1 -0
- package/dist/mutations/simulateTransaction.d.ts +10 -0
- package/dist/mutations/simulateTransaction.d.ts.map +1 -0
- package/dist/mutations/submitTransaction.d.ts +9 -0
- package/dist/mutations/submitTransaction.d.ts.map +1 -0
- package/dist/mutations/waitForTransaction.d.ts +9 -0
- package/dist/mutations/waitForTransaction.d.ts.map +1 -0
- package/dist/operations/generated/operations.d.ts +851 -0
- package/dist/operations/generated/operations.d.ts.map +1 -0
- package/dist/operations/generated/sdk.d.ts +51 -0
- package/dist/operations/generated/sdk.d.ts.map +1 -0
- package/dist/{index.d.cts → operations/generated/types.d.ts} +1758 -4817
- package/dist/operations/generated/types.d.ts.map +1 -0
- package/dist/operations/index.d.ts +22 -0
- package/dist/operations/index.d.ts.map +1 -0
- package/dist/operations/scalars.d.ts +18 -0
- package/dist/operations/scalars.d.ts.map +1 -0
- package/dist/queries/fetchAccountCoins.d.ts +16 -0
- package/dist/queries/fetchAccountCoins.d.ts.map +1 -0
- package/dist/queries/fetchAccountCollections.d.ts +18 -0
- package/dist/queries/fetchAccountCollections.d.ts.map +1 -0
- package/dist/queries/fetchAccountTokens.d.ts +19 -0
- package/dist/queries/fetchAccountTokens.d.ts.map +1 -0
- package/dist/queries/fetchAccountTransactions.d.ts +22 -0
- package/dist/queries/fetchAccountTransactions.d.ts.map +1 -0
- package/dist/queries/fetchAddressFromName.d.ts +10 -0
- package/dist/queries/fetchAddressFromName.d.ts.map +1 -0
- package/dist/queries/fetchAptBalance.d.ts +9 -0
- package/dist/queries/fetchAptBalance.d.ts.map +1 -0
- package/dist/queries/fetchBalance.d.ts +10 -0
- package/dist/queries/fetchBalance.d.ts.map +1 -0
- package/dist/queries/fetchEstimatedGasPrice.d.ts +10 -0
- package/dist/queries/fetchEstimatedGasPrice.d.ts.map +1 -0
- package/dist/queries/fetchFungibleAssetMetadata.d.ts +9 -0
- package/dist/queries/fetchFungibleAssetMetadata.d.ts.map +1 -0
- package/dist/queries/fetchLedgerInfo.d.ts +17 -0
- package/dist/queries/fetchLedgerInfo.d.ts.map +1 -0
- package/dist/queries/fetchNameFromAddress.d.ts +10 -0
- package/dist/queries/fetchNameFromAddress.d.ts.map +1 -0
- package/dist/queries/fetchProcessorStatus.d.ts +12 -0
- package/dist/queries/fetchProcessorStatus.d.ts.map +1 -0
- package/dist/queries/fetchResourceType.d.ts +15 -0
- package/dist/queries/fetchResourceType.d.ts.map +1 -0
- package/dist/queries/fetchResources.d.ts +7 -0
- package/dist/queries/fetchResources.d.ts.map +1 -0
- package/dist/queries/fetchTokenData.d.ts +9 -0
- package/dist/queries/fetchTokenData.d.ts.map +1 -0
- package/dist/queries/fetchTransaction.d.ts +11 -0
- package/dist/queries/fetchTransaction.d.ts.map +1 -0
- package/dist/queries/fetchViewModule.d.ts +7 -0
- package/dist/queries/fetchViewModule.d.ts.map +1 -0
- package/dist/queries/getClients.d.ts +18 -0
- package/dist/queries/getClients.d.ts.map +1 -0
- package/dist/queries/index.d.ts +19 -0
- package/dist/queries/index.d.ts.map +1 -0
- package/dist/types/accounts.d.ts +6 -0
- package/dist/types/accounts.d.ts.map +1 -0
- package/dist/types/activities.d.ts +45 -0
- package/dist/types/activities.d.ts.map +1 -0
- package/dist/types/build.d.ts +12 -0
- package/dist/types/build.d.ts.map +1 -0
- package/dist/types/fungibleAssets.d.ts +28 -0
- package/dist/types/fungibleAssets.d.ts.map +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/networks.d.ts +12 -0
- package/dist/types/networks.d.ts.map +1 -0
- package/dist/types/parameters.d.ts +5 -0
- package/dist/types/parameters.d.ts.map +1 -0
- package/dist/types/resources.d.ts +12 -0
- package/dist/types/resources.d.ts.map +1 -0
- package/dist/types/signers.d.ts +20 -0
- package/dist/types/signers.d.ts.map +1 -0
- package/dist/types/tokens.d.ts +42 -0
- package/dist/types/tokens.d.ts.map +1 -0
- package/dist/types/transactions.d.ts +13 -0
- package/dist/types/transactions.d.ts.map +1 -0
- package/dist/utils/convert.d.ts +5 -0
- package/dist/utils/convert.d.ts.map +1 -0
- package/dist/utils/explorer.d.ts +6 -0
- package/dist/utils/explorer.d.ts.map +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/lib.d.ts +7 -0
- package/dist/utils/lib.d.ts.map +1 -0
- package/dist/utils/names.d.ts +8 -0
- package/dist/utils/names.d.ts.map +1 -0
- package/dist/utils/normalize.d.ts +27 -0
- package/dist/utils/normalize.d.ts.map +1 -0
- package/dist/utils/pagination.d.ts +66 -0
- package/dist/utils/pagination.d.ts.map +1 -0
- package/dist/utils/tokens.d.ts +2 -0
- package/dist/utils/tokens.d.ts.map +1 -0
- package/dist/utils/units.d.ts +5 -0
- package/dist/utils/units.d.ts.map +1 -0
- package/package.json +44 -40
- package/src/client.ts +315 -0
- package/src/constants/endpoints.ts +3 -0
- package/src/errors/base.ts +23 -0
- package/src/errors/clients.ts +26 -0
- package/src/errors/index.ts +6 -0
- package/src/errors/transactions.ts +12 -0
- package/src/index.ts +10 -0
- package/src/mutations/buildTransaction.ts +80 -0
- package/src/mutations/index.ts +9 -0
- package/src/mutations/signAndSubmitTransaction.ts +47 -0
- package/src/mutations/signTransaction.ts +36 -0
- package/src/mutations/simulateTransaction.ts +43 -0
- package/src/mutations/submitTransaction.ts +36 -0
- package/src/mutations/waitForTransaction.ts +34 -0
- package/src/operations/generated/operations.ts +153 -0
- package/src/operations/generated/sdk.ts +477 -0
- package/src/operations/generated/types.ts +10764 -0
- package/src/operations/index.ts +17 -0
- package/src/operations/scalars.ts +18 -0
- package/src/operations/schemas/account.gql +381 -0
- package/src/operations/schemas/staking.gql +53 -0
- package/src/queries/fetchAccountCoins.ts +79 -0
- package/src/queries/fetchAccountCollections.ts +80 -0
- package/src/queries/fetchAccountTokens.ts +93 -0
- package/src/queries/fetchAccountTransactions.ts +82 -0
- package/src/queries/fetchAddressFromName.ts +28 -0
- package/src/queries/fetchAptBalance.ts +26 -0
- package/src/queries/fetchBalance.ts +32 -0
- package/src/queries/fetchEstimatedGasPrice.ts +28 -0
- package/src/queries/fetchFungibleAssetMetadata.ts +32 -0
- package/src/queries/fetchLedgerInfo.ts +41 -0
- package/src/queries/fetchNameFromAddress.ts +28 -0
- package/src/queries/fetchProcessorStatus.ts +29 -0
- package/src/queries/fetchResourceType.ts +62 -0
- package/src/queries/fetchResources.ts +27 -0
- package/src/queries/fetchTokenData.ts +40 -0
- package/src/queries/fetchTransaction.ts +34 -0
- package/src/queries/fetchViewModule.ts +23 -0
- package/src/queries/getClients.ts +41 -0
- package/src/queries/index.ts +21 -0
- package/src/types/accounts.ts +9 -0
- package/src/types/activities.ts +51 -0
- package/src/types/build.ts +17 -0
- package/src/types/fungibleAssets.ts +31 -0
- package/src/types/index.ts +9 -0
- package/src/types/networks.ts +21 -0
- package/src/types/parameters.ts +8 -0
- package/src/types/resources.ts +9 -0
- package/src/types/signers.ts +33 -0
- package/src/types/tokens.ts +48 -0
- package/src/types/transactions.ts +20 -0
- package/src/utils/convert.ts +32 -0
- package/src/utils/explorer.ts +16 -0
- package/src/utils/index.ts +7 -0
- package/src/utils/lib.ts +34 -0
- package/src/utils/names.ts +51 -0
- package/src/utils/normalize.ts +256 -0
- package/src/utils/pagination.ts +89 -0
- package/src/utils/tokens.ts +13 -0
- package/src/utils/units.ts +65 -0
- package/README.md +0 -50
- package/dist/index.cjs +0 -350
- package/dist/index.cjs.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @aptos-labs/js-pro
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { StoreApi } from "zustand/vanilla";
|
|
2
|
+
import { Aptos, AptosSettings } from "@aptos-labs/ts-sdk";
|
|
3
|
+
import { GraphQLClient } from "graphql-request";
|
|
4
|
+
import { Sdk } from "./operations/index.js";
|
|
5
|
+
import { AccountInfo, NetworkInfo, SignerClient } from "./types/index.js";
|
|
6
|
+
import { getClients, fetchAccountCoins, fetchAptBalance, fetchBalance, fetchProcessorStatus, fetchAddressFromName, fetchNameFromAddress, fetchEstimatedGasPrice, fetchTransaction, fetchResources, fetchResourceType, fetchTokenData, fetchFungibleAssetMetadata, fetchAccountCollections, fetchViewModule, fetchLedgerInfo } from "./queries/index.js";
|
|
7
|
+
import { buildTransaction, signAndSubmitTransaction, signTransaction, simulateTransaction, submitTransaction, waitForTransaction } from "./mutations/index.js";
|
|
8
|
+
import { fetchAccountTokens } from "./queries/fetchAccountTokens.js";
|
|
9
|
+
import { fetchAccountTransactions } from "./queries/fetchAccountTransactions.js";
|
|
10
|
+
type IndexerClientOptions = ConstructorParameters<typeof GraphQLClient>[1];
|
|
11
|
+
export type ClientConfigs = {
|
|
12
|
+
/**
|
|
13
|
+
* This will be included as `Authorization: Bearer <apiKey> in all requests to Aptos
|
|
14
|
+
* APIs. For the Aptos client this means settings AptosConfig.clientConfig.API_KEY.
|
|
15
|
+
* For the indexer client, we provide a custom header.
|
|
16
|
+
*
|
|
17
|
+
* This argument takes precedence over the relevant argument in the configs for
|
|
18
|
+
* `aptos` and `indexerClient`.
|
|
19
|
+
*
|
|
20
|
+
* It is okay to accept a single argument here because it is standard to use the same
|
|
21
|
+
* API key for both APIs (node and indexer APIs).
|
|
22
|
+
*/
|
|
23
|
+
apiKey?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Will override any Network settings if provided in this config.
|
|
26
|
+
*/
|
|
27
|
+
aptos?: {
|
|
28
|
+
config: AptosSettings;
|
|
29
|
+
};
|
|
30
|
+
indexerClient?: {
|
|
31
|
+
options: IndexerClientOptions;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* A function that returns the current server time in milliseconds.
|
|
35
|
+
*
|
|
36
|
+
* @default Date.now
|
|
37
|
+
* @returns The current server time in milliseconds
|
|
38
|
+
*/
|
|
39
|
+
serverTime?: () => number;
|
|
40
|
+
};
|
|
41
|
+
export type AptosJSProClientParameters = {
|
|
42
|
+
account?: AccountInfo;
|
|
43
|
+
config?: ClientConfigs;
|
|
44
|
+
network: NetworkInfo;
|
|
45
|
+
signer?: SignerClient;
|
|
46
|
+
};
|
|
47
|
+
export type AptosJSProClientState = {
|
|
48
|
+
account?: AccountInfo;
|
|
49
|
+
config?: ClientConfigs;
|
|
50
|
+
network: NetworkInfo;
|
|
51
|
+
signer?: SignerClient;
|
|
52
|
+
};
|
|
53
|
+
export declare class AptosJSProClient {
|
|
54
|
+
#private;
|
|
55
|
+
constructor(params: AptosJSProClientParameters);
|
|
56
|
+
get state(): AptosJSProClientState;
|
|
57
|
+
get store(): Omit<StoreApi<AptosJSProClientState>, "subscribe"> & {
|
|
58
|
+
subscribe: {
|
|
59
|
+
(listener: (selectedState: AptosJSProClientState, previousSelectedState: AptosJSProClientState) => void): () => void;
|
|
60
|
+
<U>(selector: (state: AptosJSProClientState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
61
|
+
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
62
|
+
fireImmediately?: boolean;
|
|
63
|
+
} | undefined): () => void;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
get signer(): import("./types/signers.js").CustomSignerClient | undefined;
|
|
67
|
+
get account(): AccountInfo | undefined;
|
|
68
|
+
get network(): NetworkInfo;
|
|
69
|
+
get aptos(): Aptos;
|
|
70
|
+
get indexer(): {
|
|
71
|
+
getAccountTokensTotal(variables: import("./operations/index.js").GetAccountTokensTotalQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<import("./operations/index.js").GetAccountTokensTotalQuery>;
|
|
72
|
+
getAccountTokenOwnerships(variables: import("./operations/index.js").GetAccountTokenOwnershipsQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<import("./operations/index.js").GetAccountTokenOwnershipsQuery>;
|
|
73
|
+
getCurrentTokenData(variables: import("./operations/index.js").GetCurrentTokenDataQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<import("./operations/index.js").GetCurrentTokenDataQuery>;
|
|
74
|
+
getAccountCollections(variables: import("./operations/index.js").GetAccountCollectionsQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<import("./operations/index.js").GetAccountCollectionsQuery>;
|
|
75
|
+
getTokenData(variables: import("./operations/index.js").GetTokenDataQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<import("./operations/index.js").GetTokenDataQuery>;
|
|
76
|
+
getActivitiesAggregate(variables: import("./operations/index.js").GetActivitiesAggregateQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<import("./operations/index.js").GetActivitiesAggregateQuery>;
|
|
77
|
+
getTokenActivities(variables: import("./operations/index.js").GetTokenActivitiesQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<import("./operations/index.js").GetTokenActivitiesQuery>;
|
|
78
|
+
getTokenAcquisitionActivity(variables: import("./operations/index.js").GetTokenAcquisitionActivityQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<import("./operations/index.js").GetTokenAcquisitionActivityQuery>;
|
|
79
|
+
getAccountTransactions(variables: import("./operations/index.js").GetAccountTransactionsQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<import("./operations/index.js").GetAccountTransactionsQuery>;
|
|
80
|
+
getFungibleAssetMetadata(variables: import("./operations/index.js").GetFungibleAssetMetadataQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<import("./operations/index.js").GetFungibleAssetMetadataQuery>;
|
|
81
|
+
getFungibleAssetBalances(variables?: import("./operations/index.js").GetFungibleAssetBalancesQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<import("./operations/index.js").GetFungibleAssetBalancesQuery>;
|
|
82
|
+
getDelegatedStakingRoyalties(variables: import("./operations/index.js").GetDelegatedStakingRoyaltiesQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<import("./operations/index.js").GetDelegatedStakingRoyaltiesQuery>;
|
|
83
|
+
getDelegatedStaking(variables: import("./operations/index.js").GetDelegatedStakingQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<import("./operations/index.js").GetDelegatedStakingQuery>;
|
|
84
|
+
getDelegationPools(variables?: import("./operations/index.js").GetDelegationPoolsQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<import("./operations/index.js").GetDelegationPoolsQuery>;
|
|
85
|
+
getNumberOfDelegators(variables?: import("./operations/index.js").GetNumberOfDelegatorsQueryVariables, requestHeaders?: HeadersInit | undefined): Promise<import("./operations/index.js").GetNumberOfDelegatorsQuery>;
|
|
86
|
+
} | undefined;
|
|
87
|
+
getServerTime: () => number;
|
|
88
|
+
getServerDate: () => Date;
|
|
89
|
+
setAccount: (account: AccountInfo | undefined) => void;
|
|
90
|
+
setNetwork: (network: NetworkInfo) => void;
|
|
91
|
+
setSigner: (signer: SignerClient | undefined) => void;
|
|
92
|
+
setConfig: (config: ClientConfigs) => void;
|
|
93
|
+
onAccountChange: (callback: (account?: AccountInfo) => void) => () => void;
|
|
94
|
+
onNetworkChange: (callback: (network: NetworkInfo) => void) => () => void;
|
|
95
|
+
onSignerChange: (callback: (signer?: SignerClient) => void) => () => void;
|
|
96
|
+
onConfigChange: (callback: (config?: ClientConfigs) => void) => () => void;
|
|
97
|
+
onChange: (callback: (state: AptosJSProClientState) => void) => () => void;
|
|
98
|
+
createNetworkConfig: (network?: NetworkInfo) => AptosSettings;
|
|
99
|
+
/**
|
|
100
|
+
* To support V1 networks, we are case insensitive when matching the network name.
|
|
101
|
+
*
|
|
102
|
+
* @returns An Aptos instance
|
|
103
|
+
*/
|
|
104
|
+
createAptos: (clientConfig?: AptosSettings, network?: NetworkInfo) => Aptos;
|
|
105
|
+
createIndexer: (clientConfig?: AptosSettings, network?: NetworkInfo) => Sdk | undefined;
|
|
106
|
+
private refreshClients;
|
|
107
|
+
getClients: typeof getClients;
|
|
108
|
+
fetchAccountTransactions: typeof fetchAccountTransactions;
|
|
109
|
+
fetchAccountCollections: typeof fetchAccountCollections;
|
|
110
|
+
fetchAccountCoins: typeof fetchAccountCoins;
|
|
111
|
+
fetchAccountTokens: typeof fetchAccountTokens;
|
|
112
|
+
fetchTransaction: typeof fetchTransaction;
|
|
113
|
+
fetchResources: typeof fetchResources;
|
|
114
|
+
fetchResourceType: typeof fetchResourceType;
|
|
115
|
+
fetchProcessorStatus: typeof fetchProcessorStatus;
|
|
116
|
+
fetchTokenData: typeof fetchTokenData;
|
|
117
|
+
fetchFungibleAssetMetadata: typeof fetchFungibleAssetMetadata;
|
|
118
|
+
fetchLedgerInfo: typeof fetchLedgerInfo;
|
|
119
|
+
fetchAddressFromName: typeof fetchAddressFromName;
|
|
120
|
+
fetchNameFromAddress: typeof fetchNameFromAddress;
|
|
121
|
+
fetchAptBalance: typeof fetchAptBalance;
|
|
122
|
+
fetchBalance: typeof fetchBalance;
|
|
123
|
+
fetchEstimatedGasPrice: typeof fetchEstimatedGasPrice;
|
|
124
|
+
fetchViewModule: typeof fetchViewModule;
|
|
125
|
+
submitTransaction: typeof submitTransaction;
|
|
126
|
+
waitForTransaction: typeof waitForTransaction;
|
|
127
|
+
simulateTransaction: typeof simulateTransaction;
|
|
128
|
+
signTransaction: typeof signTransaction;
|
|
129
|
+
signAndSubmitTransaction: typeof signAndSubmitTransaction;
|
|
130
|
+
buildTransaction: typeof buildTransaction;
|
|
131
|
+
}
|
|
132
|
+
export {};
|
|
133
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAIA,OAAO,EAAuB,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,KAAK,EAAe,aAAa,EAAW,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,GAAG,EAAuB,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,0BAA0B,EAC1B,uBAAuB,EACvB,eAAe,EACf,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAA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
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/constants/endpoints.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface AptosBaseErrorOptions {
|
|
2
|
+
longMessage?: string;
|
|
3
|
+
}
|
|
4
|
+
export declare class AptosBaseError extends Error {
|
|
5
|
+
shortMessage: string;
|
|
6
|
+
longMessage?: string;
|
|
7
|
+
docsBaseUrl: string;
|
|
8
|
+
name: string;
|
|
9
|
+
constructor(shortMessage: string, options?: AptosBaseErrorOptions);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/errors/base.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,qBAAqB;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,cAAe,SAAQ,KAAK;IACvC,YAAY,EAAE,MAAM,CAAC;IAErB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,WAAW,SAAqC;IAEvC,IAAI,SAAqB;gBAEtB,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB;CAMlE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AptosBaseError } from "./base.js";
|
|
2
|
+
export declare class IndexerNotInitializedError extends AptosBaseError {
|
|
3
|
+
name: string;
|
|
4
|
+
constructor();
|
|
5
|
+
}
|
|
6
|
+
export declare class SignerNotFoundError extends AptosBaseError {
|
|
7
|
+
name: string;
|
|
8
|
+
constructor();
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=clients.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clients.d.ts","sourceRoot":"","sources":["../../src/errors/clients.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,qBAAa,0BAA2B,SAAQ,cAAc;IACnD,IAAI,SAAgC;;CAQ9C;AAED,qBAAa,mBAAoB,SAAQ,cAAc;IAC5C,IAAI,SAAyB;;CAQvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAGA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions.d.ts","sourceRoot":"","sources":["../../src/errors/transactions.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,qBAAa,mBAAoB,SAAQ,cAAc;IAC5C,IAAI,SAAyB;;CAKvC"}
|