suidouble 0.0.33 → 0.0.34
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 +11 -7
- package/lib/SuiTransaction.js +1 -1
- package/package.json +1 -1
- package/test/sui_master_basic.test.js +0 -18
package/lib/SuiMaster.js
CHANGED
|
@@ -288,19 +288,23 @@ class SuiMaster extends SuiCommonMethods {
|
|
|
288
288
|
// showBalanceChanges: optional(boolean()),
|
|
289
289
|
async fetchTransactions(params = {}) {
|
|
290
290
|
const filter = {};
|
|
291
|
-
if (params.
|
|
292
|
-
filter.
|
|
291
|
+
if (params.fromAddress) {
|
|
292
|
+
filter.FromAddress = params.fromAddress;
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
const queryParams = {
|
|
296
296
|
descending_order: false,
|
|
297
|
-
|
|
297
|
+
filter: filter,
|
|
298
298
|
options: {
|
|
299
|
-
showInput: true,
|
|
299
|
+
// showInput: true,
|
|
300
300
|
showEffects: true,
|
|
301
|
-
showEvents: true,
|
|
302
|
-
showObjectChanges: true,
|
|
303
|
-
showBalanceChanges: true,
|
|
301
|
+
// showEvents: true,
|
|
302
|
+
// showObjectChanges: true,
|
|
303
|
+
// showBalanceChanges: true,
|
|
304
|
+
// showType: true,
|
|
305
|
+
// showContent: true,
|
|
306
|
+
// showOwner: true,
|
|
307
|
+
// showDisplay: true,
|
|
304
308
|
},
|
|
305
309
|
limit: params.limit || 50,
|
|
306
310
|
};
|
package/lib/SuiTransaction.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "suidouble",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.34",
|
|
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": {
|
|
@@ -89,21 +89,3 @@ test('connecting to different chains', async t => {
|
|
|
89
89
|
|
|
90
90
|
t.equal(suiMaster4.connectedChain, 'sui:localnet');
|
|
91
91
|
});
|
|
92
|
-
|
|
93
|
-
// test('get transactions', async t => {
|
|
94
|
-
// const suiMaster = new SuiMaster({provider: 'main', as: 'somebody'});
|
|
95
|
-
// await suiMaster.initialize();
|
|
96
|
-
|
|
97
|
-
// const paginatedResponse = await suiMaster.fetchTransactions({
|
|
98
|
-
// fromOrToAddress: '0xffc5bc3732f201892df5d2839b86957abcf42dfe66dc79383fe107f6548bc2bf',
|
|
99
|
-
// });
|
|
100
|
-
|
|
101
|
-
// await paginatedResponse.forEach((suiTransaction)=>{
|
|
102
|
-
// // console.log(suiTransaction.results);
|
|
103
|
-
// const objects = suiTransaction.results.objects;
|
|
104
|
-
// for (const o of objects) {
|
|
105
|
-
// // console.log(o.id, o.typeName, o.version);
|
|
106
|
-
// }
|
|
107
|
-
// }, 10);
|
|
108
|
-
|
|
109
|
-
// });
|