suidouble 0.0.44 → 0.0.45
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/lib/SuiMaster.js +22 -0
- package/package.json +1 -1
package/lib/SuiMaster.js
CHANGED
|
@@ -266,6 +266,28 @@ class SuiMaster extends SuiCommonMethods {
|
|
|
266
266
|
return await (suiCoin.getBalance(queryingBalanceOf));
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
+
async fetchEvents(params = {}) {
|
|
270
|
+
let query = params.query;
|
|
271
|
+
|
|
272
|
+
const queryParams = {
|
|
273
|
+
descending_order: params.descending_order || false,
|
|
274
|
+
query: query,
|
|
275
|
+
limit: params.limit || 50,
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
const paginatedResponse = new SuiPaginatedResponse({
|
|
279
|
+
debug: this._debug,
|
|
280
|
+
suiMaster: this,
|
|
281
|
+
params: queryParams,
|
|
282
|
+
method: 'queryEvents',
|
|
283
|
+
order: params.order,
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
await paginatedResponse.fetch();
|
|
287
|
+
|
|
288
|
+
return paginatedResponse;
|
|
289
|
+
}
|
|
290
|
+
|
|
269
291
|
// export type TransactionFilter =
|
|
270
292
|
// | { FromOrToAddress: { addr: string } }
|
|
271
293
|
// | { Checkpoint: string }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "suidouble",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.45",
|
|
4
4
|
"description": "Set of provider, package and object classes for javascript representation of Sui Move smart contracts. Use same code for publishing, upgrading, integration testing, interaction with smart contracts and integration in browser web3 dapps",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|