@0xobelisk/sui-client 1.2.0-pre.7 → 1.2.0-pre.71
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/dubhe.d.ts +2 -73
- package/dist/index.d.ts +0 -2
- package/dist/index.js +269 -598
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +267 -602
- package/dist/index.mjs.map +1 -1
- package/dist/libs/suiTxBuilder/index.d.ts +2 -2
- package/dist/types/index.d.ts +0 -19
- package/package.json +14 -18
- package/src/dubhe.ts +281 -286
- package/src/index.ts +0 -12
- package/src/types/index.ts +0 -21
- package/dist/libs/http/errors.d.ts +0 -28
- package/dist/libs/http/http.d.ts +0 -22
- package/dist/libs/http/index.d.ts +0 -4
- package/dist/libs/http/types.d.ts +0 -1
- package/dist/libs/http/ws-adapter.d.ts +0 -6
- package/dist/libs/suiIndexerClient/index.d.ts +0 -121
- package/dist/libs/suiIndexerClient/types.d.ts +0 -0
- package/dist/libs/suiIndexerClient/utils.d.ts +0 -2
- package/src/libs/http/errors.ts +0 -126
- package/src/libs/http/http.ts +0 -151
- package/src/libs/http/index.ts +0 -4
- package/src/libs/http/types.ts +0 -1
- package/src/libs/http/ws-adapter.ts +0 -36
- package/src/libs/suiIndexerClient/index.ts +0 -333
- package/src/libs/suiIndexerClient/types.ts +0 -0
- package/src/libs/suiIndexerClient/utils.ts +0 -49
package/dist/dubhe.d.ts
CHANGED
|
@@ -7,9 +7,7 @@ import { MapObjectStruct } from './types';
|
|
|
7
7
|
import { SuiContractFactory } from './libs/suiContractFactory';
|
|
8
8
|
import { SuiMoveMoudleFuncType } from './libs/suiContractFactory/types';
|
|
9
9
|
import { NetworkConfig } from './libs/suiInteractor';
|
|
10
|
-
import { DerivePathParams, FaucetNetworkType, MapMoudleFuncQuery, MapMoudleFuncTx, DubheParams, SuiTxArg, SuiObjectArg, SuiVecTxArg
|
|
11
|
-
import { ConnectionResponse, IndexerTransaction, IndexerEvent, IndexerSchema, SuiIndexerClient, StorageResponse, StorageItemResponse, JsonPathOrder } from './libs/suiIndexerClient';
|
|
12
|
-
import { Http } from './libs/http';
|
|
10
|
+
import { DerivePathParams, FaucetNetworkType, MapMoudleFuncQuery, MapMoudleFuncTx, DubheParams, SuiTxArg, SuiObjectArg, SuiVecTxArg } from './types';
|
|
13
11
|
export declare function isUndefined(value?: unknown): value is undefined;
|
|
14
12
|
export declare function withMeta<T extends {
|
|
15
13
|
meta: SuiMoveMoudleFuncType;
|
|
@@ -20,10 +18,8 @@ export declare function withMeta<T extends {
|
|
|
20
18
|
*/
|
|
21
19
|
export declare class Dubhe {
|
|
22
20
|
#private;
|
|
23
|
-
http: Http;
|
|
24
21
|
accountManager: SuiAccountManager;
|
|
25
22
|
suiInteractor: SuiInteractor;
|
|
26
|
-
suiIndexerClient: SuiIndexerClient;
|
|
27
23
|
contractFactory: SuiContractFactory;
|
|
28
24
|
packageId: string | undefined;
|
|
29
25
|
metadata: SuiMoveNormalizedModules | undefined;
|
|
@@ -40,7 +36,7 @@ export declare class Dubhe {
|
|
|
40
36
|
* @param fullnodeUrl, the fullnode url, default is the preconfig fullnode url for the given network type
|
|
41
37
|
* @param packageId
|
|
42
38
|
*/
|
|
43
|
-
constructor({ mnemonics, secretKey, networkType, fullnodeUrls, packageId, metadata,
|
|
39
|
+
constructor({ mnemonics, secretKey, networkType, fullnodeUrls, packageId, metadata, }?: DubheParams);
|
|
44
40
|
get query(): MapMoudleFuncQuery;
|
|
45
41
|
get tx(): MapMoudleFuncTx;
|
|
46
42
|
get object(): MapObjectStruct;
|
|
@@ -58,72 +54,6 @@ export declare class Dubhe {
|
|
|
58
54
|
params: any[];
|
|
59
55
|
customModuleName?: string;
|
|
60
56
|
}): Promise<any[] | undefined>;
|
|
61
|
-
getTransactions({ first, after, sender, digest, checkpoint, orderBy, }: {
|
|
62
|
-
first?: number;
|
|
63
|
-
after?: string;
|
|
64
|
-
sender?: string;
|
|
65
|
-
digest?: string;
|
|
66
|
-
checkpoint?: number;
|
|
67
|
-
orderBy?: string[];
|
|
68
|
-
}): Promise<ConnectionResponse<IndexerTransaction>>;
|
|
69
|
-
getTransaction(digest: string): Promise<IndexerTransaction | undefined>;
|
|
70
|
-
/**
|
|
71
|
-
* Wait for the transaction to be processed by the indexer and return all transaction-related data
|
|
72
|
-
* @param digest transaction digest
|
|
73
|
-
* @param options option parameters
|
|
74
|
-
* @returns result object containing transaction, events and schema data
|
|
75
|
-
*/
|
|
76
|
-
waitForIndexerTransaction(digest: string, options?: {
|
|
77
|
-
checkInterval?: number;
|
|
78
|
-
timeout?: number;
|
|
79
|
-
maxRetries?: number;
|
|
80
|
-
pageSize?: number;
|
|
81
|
-
}): Promise<IndexerTransactionResult>;
|
|
82
|
-
getEvents({ first, after, name, sender, digest, checkpoint, orderBy, }: {
|
|
83
|
-
first?: number;
|
|
84
|
-
after?: string;
|
|
85
|
-
name?: string;
|
|
86
|
-
sender?: string;
|
|
87
|
-
digest?: string;
|
|
88
|
-
checkpoint?: string;
|
|
89
|
-
orderBy?: string[];
|
|
90
|
-
}): Promise<ConnectionResponse<IndexerEvent>>;
|
|
91
|
-
getSchemas({ name, key1, key2, is_removed, last_update_checkpoint, last_update_digest, value, first, after, orderBy, jsonOrderBy, }: {
|
|
92
|
-
name?: string;
|
|
93
|
-
key1?: any;
|
|
94
|
-
key2?: any;
|
|
95
|
-
is_removed?: boolean;
|
|
96
|
-
last_update_checkpoint?: string;
|
|
97
|
-
last_update_digest?: string;
|
|
98
|
-
value?: any;
|
|
99
|
-
first?: number;
|
|
100
|
-
after?: string;
|
|
101
|
-
orderBy?: string[];
|
|
102
|
-
jsonOrderBy?: JsonPathOrder[];
|
|
103
|
-
}): Promise<ConnectionResponse<IndexerSchema>>;
|
|
104
|
-
getStorage({ name, key1, key2, is_removed, last_update_checkpoint, last_update_digest, value, first, after, orderBy, jsonOrderBy, }: {
|
|
105
|
-
name?: string;
|
|
106
|
-
key1?: any;
|
|
107
|
-
key2?: any;
|
|
108
|
-
is_removed?: boolean;
|
|
109
|
-
last_update_checkpoint?: string;
|
|
110
|
-
last_update_digest?: string;
|
|
111
|
-
value?: any;
|
|
112
|
-
first?: number;
|
|
113
|
-
after?: string;
|
|
114
|
-
orderBy?: string[];
|
|
115
|
-
jsonOrderBy?: JsonPathOrder[];
|
|
116
|
-
}): Promise<StorageResponse<IndexerSchema>>;
|
|
117
|
-
getStorageItem({ name, key1, key2, is_removed, last_update_checkpoint, last_update_digest, value, }: {
|
|
118
|
-
name: string;
|
|
119
|
-
key1?: any;
|
|
120
|
-
key2?: any;
|
|
121
|
-
is_removed?: boolean;
|
|
122
|
-
last_update_checkpoint?: string;
|
|
123
|
-
last_update_digest?: string;
|
|
124
|
-
value?: any;
|
|
125
|
-
}): Promise<StorageItemResponse<IndexerSchema> | undefined>;
|
|
126
|
-
subscribe(types: SubscribableType[], handleData: (data: any) => void): Promise<WebSocket>;
|
|
127
57
|
/**
|
|
128
58
|
* else:
|
|
129
59
|
* it will generate signer from the mnemonic with the given derivePathParams.
|
|
@@ -156,7 +86,6 @@ export declare class Dubhe {
|
|
|
156
86
|
getBalance(coinType?: string, derivePathParams?: DerivePathParams): Promise<import("@mysten/sui/client").CoinBalance>;
|
|
157
87
|
balanceOf(accountAddress?: string, coinType?: string, derivePathParams?: DerivePathParams): Promise<import("@mysten/sui/client").CoinBalance>;
|
|
158
88
|
client(): import("@mysten/sui/client").SuiClient;
|
|
159
|
-
indexerClient(): SuiIndexerClient;
|
|
160
89
|
getObject(objectId: string): Promise<SuiObjectData>;
|
|
161
90
|
getObjects(objectIds: string[]): Promise<SuiObjectData[]>;
|
|
162
91
|
signTxn(tx: Uint8Array | Transaction | SuiTx, derivePathParams?: DerivePathParams): Promise<import("@mysten/sui/dist/cjs/cryptography").SignatureWithBytes>;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,5 @@ export { SuiAccountManager } from './libs/suiAccountManager';
|
|
|
11
11
|
export { SuiTx } from './libs/suiTxBuilder';
|
|
12
12
|
export { MultiSigClient } from './libs/multiSig';
|
|
13
13
|
export { SuiContractFactory } from './libs/suiContractFactory';
|
|
14
|
-
export { SubscriptionKind } from './libs/suiIndexerClient';
|
|
15
14
|
export { loadMetadata } from './metadata';
|
|
16
15
|
export type * from './types';
|
|
17
|
-
export type { IndexerEvent, IndexerSchema, IndexerTransaction, ConnectionResponse, StorageResponse, StorageItemResponse, PageInfo, JsonPathOrder, JsonValueType, } from './libs/suiIndexerClient';
|