@functionland/react-native-fula 1.37.0 → 1.39.1

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.
@@ -6,413 +6,412 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.votePoolJoinRequest = exports.transferToFula = exports.removeStorer = exports.removeStoredReplication = exports.removeReplicationRequest = exports.newStoreRequest = exports.newReplicationRequest = exports.listPools = exports.listPoolJoinRequests = exports.listAvailableReplicationRequests = exports.leavePool = exports.joinPool = exports.getAccount = exports.createPool = exports.createAccount = exports.checkAccountExists = exports.cancelPoolJoin = exports.bloxFreeSpace = exports.assetsBalance = void 0;
7
7
  var _fulaNativeModule = _interopRequireDefault(require("../interfaces/fulaNativeModule"));
8
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
- /*
10
- createAccount: This function takes a seed argument, which is used to create an account. The seed must start with "/". The function returns a promise of an object that contains the seed and the account that was created.
9
+ /*
10
+ createAccount: This function takes a seed argument, which is used to create an account. The seed must start with "/". The function returns a promise of an object that contains the seed and the account that was created.
11
11
  */
12
12
  const createAccount = seed => {
13
13
  console.log('createAccount in react-native started', seed);
14
- let res = _fulaNativeModule.default.createAccount(seed).then(res => {
14
+ let res1 = _fulaNativeModule.default.createAccount(seed).then(res => {
15
15
  try {
16
16
  let jsonRes = JSON.parse(res);
17
17
  return jsonRes;
18
18
  } catch (e) {
19
19
  try {
20
20
  return JSON.parse(res);
21
- } catch (e) {
21
+ } catch (e2) {
22
22
  return res;
23
23
  }
24
24
  }
25
25
  }).catch(err => {
26
26
  return err;
27
27
  });
28
- return res;
28
+ return res1;
29
29
  };
30
30
 
31
- /*
32
- checkAccountExists: This function takes an account argument, and returns a promise of an object that contains the account and a boolean exists flag. If exists is true, it means the account exists, otherwise, the account does not exist
31
+ /*
32
+ checkAccountExists: This function takes an account argument, and returns a promise of an object that contains the account and a boolean exists flag. If exists is true, it means the account exists, otherwise, the account does not exist
33
33
  */
34
34
  exports.createAccount = createAccount;
35
35
  const checkAccountExists = account => {
36
36
  console.log('checkAccountExists in react-native started', account);
37
- let res = _fulaNativeModule.default.checkAccountExists(account).then(res => {
37
+ let res1 = _fulaNativeModule.default.checkAccountExists(account).then(res => {
38
38
  try {
39
39
  let jsonRes = JSON.parse(res);
40
40
  return jsonRes;
41
41
  } catch (e) {
42
42
  try {
43
43
  return JSON.parse(res);
44
- } catch (e) {
44
+ } catch (e2) {
45
45
  return res;
46
46
  }
47
47
  }
48
48
  }).catch(err => {
49
49
  return err;
50
50
  });
51
- return res;
51
+ return res1;
52
52
  };
53
53
 
54
- /*
55
- createPool: This function takes two arguments: seed and poolName. The seed is used to identify the account that is creating the pool, and the poolName is the name of the pool being created. The function returns a promise of an object that contains the owner of the pool and the poolID of the created pool.
54
+ /*
55
+ createPool: This function takes two arguments: seed and poolName. The seed is used to identify the account that is creating the pool, and the poolName is the name of the pool being created. The function returns a promise of an object that contains the owner of the pool and the poolID of the created pool.
56
56
  */
57
57
  exports.checkAccountExists = checkAccountExists;
58
58
  const createPool = (seed, poolName) => {
59
59
  console.log('createPool in react-native started', seed, poolName);
60
- let res = _fulaNativeModule.default.createPool(seed, poolName).then(res => {
60
+ let res1 = _fulaNativeModule.default.createPool(seed, poolName).then(res => {
61
61
  try {
62
62
  let jsonRes = JSON.parse(res);
63
63
  return jsonRes;
64
64
  } catch (e) {
65
65
  try {
66
66
  return JSON.parse(res);
67
- } catch (e) {
67
+ } catch (e2) {
68
68
  return res;
69
69
  }
70
70
  }
71
71
  }).catch(err => {
72
72
  return err;
73
73
  });
74
- return res;
74
+ return res1;
75
75
  };
76
76
 
77
- /*
78
- listPools: This function takes no arguments and returns a promise of an object that contains a list of pools. Each pool in the list contains the poolID, owner, poolName, parent, and participants of the pool
77
+ /*
78
+ listPools: This function takes no arguments and returns a promise of an object that contains a list of pools. Each pool in the list contains the poolID, owner, poolName, parent, and participants of the pool
79
79
  */
80
80
  exports.createPool = createPool;
81
81
  const listPools = () => {
82
82
  console.log('listPools in react-native started');
83
- let res = _fulaNativeModule.default.listPools().then(res => {
83
+ let res1 = _fulaNativeModule.default.listPools().then(res => {
84
84
  try {
85
85
  let jsonRes = JSON.parse(res);
86
86
  return jsonRes;
87
87
  } catch (e) {
88
88
  try {
89
89
  return JSON.parse(res);
90
- } catch (e) {
90
+ } catch (e2) {
91
91
  return res;
92
92
  }
93
93
  }
94
94
  }).catch(err => {
95
95
  return err;
96
96
  });
97
- return res;
97
+ return res1;
98
98
  };
99
99
 
100
- /*
101
- joinPool: This function takes two arguments: seed and poolID. The seed is used to identify the account that is joining the pool, and the poolID is the ID of the pool the account is joining. The function returns a promise of an object that contains the account joining the pool and the poolID of the joined pool.
100
+ /*
101
+ joinPool: This function takes two arguments: seed and poolID. The seed is used to identify the account that is joining the pool, and the poolID is the ID of the pool the account is joining. The function returns a promise of an object that contains the account joining the pool and the poolID of the joined pool.
102
102
  */
103
103
  exports.listPools = listPools;
104
104
  const joinPool = poolID => {
105
105
  console.log('joinPool in react-native started', poolID);
106
- let res = _fulaNativeModule.default.joinPool(poolID.toString()).then(res => {
106
+ let res1 = _fulaNativeModule.default.joinPool(poolID.toString()).then(res => {
107
107
  try {
108
108
  let jsonRes = JSON.parse(res);
109
109
  return jsonRes;
110
110
  } catch (e) {
111
111
  try {
112
112
  return JSON.parse(res);
113
- } catch (e) {
113
+ } catch (e2) {
114
114
  console.error('Error parsing res in joining pool:', e);
115
- throw e; // Rethrow the error to maintain the rejection state
115
+ return res; // Rethrow the error to maintain the rejection state
116
116
  }
117
117
  }
118
118
  }).catch(err => {
119
119
  console.error('Error joining pool:', err);
120
120
  throw err; // Rethrow the error to maintain the rejection state
121
121
  });
122
-
123
- return res;
122
+ return res1;
124
123
  };
125
124
 
126
- /*
127
- leavePool: This function takes two arguments: seed and poolID. The seed is used to identify the account that is leaving the pool, and the poolID is the ID of the pool the account is leaving. The function returns a promise of an object that contains the `
125
+ /*
126
+ leavePool: This function takes two arguments: seed and poolID. The seed is used to identify the account that is leaving the pool, and the poolID is the ID of the pool the account is leaving. The function returns a promise of an object that contains the `
128
127
  */
129
128
  exports.joinPool = joinPool;
130
129
  const leavePool = poolID => {
131
130
  console.log('leavePool in react-native started', poolID);
132
- let res = _fulaNativeModule.default.leavePool(poolID).then(res => {
131
+ let res1 = _fulaNativeModule.default.leavePool(poolID).then(res => {
133
132
  try {
134
133
  let jsonRes = JSON.parse(res);
135
134
  return jsonRes;
136
135
  } catch (e) {
137
136
  try {
138
137
  return JSON.parse(res);
139
- } catch (e) {
138
+ } catch (e2) {
140
139
  return res;
141
140
  }
142
141
  }
143
142
  }).catch(err => {
144
143
  return err;
145
144
  });
146
- return res;
145
+ return res1;
147
146
  };
148
147
  exports.leavePool = leavePool;
149
148
  const cancelPoolJoin = poolID => {
150
149
  console.log('cancelPoolJoin in react-native started', poolID);
151
- let res = _fulaNativeModule.default.cancelPoolJoin(poolID).then(res => {
150
+ let res1 = _fulaNativeModule.default.cancelPoolJoin(poolID).then(res => {
152
151
  try {
153
152
  let jsonRes = JSON.parse(res);
154
153
  return jsonRes;
155
154
  } catch (e) {
156
155
  try {
157
156
  return JSON.parse(res);
158
- } catch (e) {
157
+ } catch (e2) {
159
158
  return res;
160
159
  }
161
160
  }
162
161
  }).catch(err => {
163
162
  return err;
164
163
  });
165
- return res;
164
+ return res1;
166
165
  };
167
166
  exports.cancelPoolJoin = cancelPoolJoin;
168
167
  const listPoolJoinRequests = poolID => {
169
168
  console.log('listPoolJoinRequests in react-native started', poolID);
170
- let res = _fulaNativeModule.default.listPoolJoinRequests(poolID).then(res => {
169
+ let res1 = _fulaNativeModule.default.listPoolJoinRequests(poolID).then(res => {
171
170
  try {
172
171
  let jsonRes = JSON.parse(res);
173
172
  return jsonRes;
174
173
  } catch (e) {
175
174
  try {
176
175
  return JSON.parse(res);
177
- } catch (e) {
176
+ } catch (e2) {
178
177
  return res;
179
178
  }
180
179
  }
181
180
  }).catch(err => {
182
181
  return err;
183
182
  });
184
- return res;
183
+ return res1;
185
184
  };
186
185
 
187
- /*
188
- seed is used to authorize the request.
189
- poolID is the ID of the pool in which the account is requesting to join.
190
- account is the account that is requesting to join the pool.
191
- accept is a boolean value that indicates whether to accept or reject the join request.
192
- It returns a promise of BType.PoolVoteResponse which includes the account and poolID
186
+ /*
187
+ seed is used to authorize the request.
188
+ poolID is the ID of the pool in which the account is requesting to join.
189
+ account is the account that is requesting to join the pool.
190
+ accept is a boolean value that indicates whether to accept or reject the join request.
191
+ It returns a promise of BType.PoolVoteResponse which includes the account and poolID
193
192
  */
194
193
  exports.listPoolJoinRequests = listPoolJoinRequests;
195
194
  const votePoolJoinRequest = (seed, poolID, account, accept) => {
196
195
  console.log('votePoolJoinRequest in react-native started', seed, poolID, account, accept);
197
- let res = _fulaNativeModule.default.votePoolJoinRequest(seed, poolID, account, accept).then(res => {
196
+ let res1 = _fulaNativeModule.default.votePoolJoinRequest(seed, poolID, account, accept).then(res => {
198
197
  try {
199
198
  let jsonRes = JSON.parse(res);
200
199
  return jsonRes;
201
200
  } catch (e) {
202
201
  try {
203
202
  return JSON.parse(res);
204
- } catch (e) {
203
+ } catch (e2) {
205
204
  return res;
206
205
  }
207
206
  }
208
207
  }).catch(err => {
209
208
  return err;
210
209
  });
211
- return res;
210
+ return res1;
212
211
  };
213
212
 
214
- /*
215
- It takes four arguments:
216
-
217
- seed is used to authorize the request.
218
- poolID is the ID of the pool in which the replication request is made.
219
- replicationFactor is the number of copies of the content to be stored.
220
- cid is the content identifier of the content to be replicated.
221
- It returns a promise of BType.ManifestUploadResponse which includes the uploader, storage, ManifestMetadata, and poolID
213
+ /*
214
+ It takes four arguments:
215
+
216
+ seed is used to authorize the request.
217
+ poolID is the ID of the pool in which the replication request is made.
218
+ replicationFactor is the number of copies of the content to be stored.
219
+ cid is the content identifier of the content to be replicated.
220
+ It returns a promise of BType.ManifestUploadResponse which includes the uploader, storage, ManifestMetadata, and poolID
222
221
  */
223
222
  exports.votePoolJoinRequest = votePoolJoinRequest;
224
223
  const newReplicationRequest = (seed, poolID, replicationFactor, cid) => {
225
224
  console.log('newReplicationRequest in react-native started', seed, poolID, replicationFactor, cid);
226
- let res = _fulaNativeModule.default.newReplicationRequest(seed, poolID, replicationFactor, cid).then(res => {
225
+ let res1 = _fulaNativeModule.default.newReplicationRequest(seed, poolID, replicationFactor, cid).then(res => {
227
226
  try {
228
227
  let jsonRes = JSON.parse(res);
229
228
  return jsonRes;
230
229
  } catch (e) {
231
230
  try {
232
231
  return JSON.parse(res);
233
- } catch (e) {
232
+ } catch (e2) {
234
233
  return res;
235
234
  }
236
235
  }
237
236
  }).catch(err => {
238
237
  return err;
239
238
  });
240
- return res;
239
+ return res1;
241
240
  };
242
241
 
243
- /*
244
- It takes four arguments:
245
-
246
- seed is used to authorize the request.
247
- poolID is the ID of the pool in which the replication request is made.
248
- uploader is the account of the user making the request
249
- cid is the content identifier of the content to be stored.
250
- It returns a promise of BType.ManifestUploadResponse which includes the uploader, storage, ManifestMetadata, and poolID
242
+ /*
243
+ It takes four arguments:
244
+
245
+ seed is used to authorize the request.
246
+ poolID is the ID of the pool in which the replication request is made.
247
+ uploader is the account of the user making the request
248
+ cid is the content identifier of the content to be stored.
249
+ It returns a promise of BType.ManifestUploadResponse which includes the uploader, storage, ManifestMetadata, and poolID
251
250
  */
252
251
  exports.newReplicationRequest = newReplicationRequest;
253
252
  const newStoreRequest = (seed, poolID, uploader, cid) => {
254
253
  console.log('newStoreRequest in react-native started', seed, poolID, uploader, cid);
255
- let res = _fulaNativeModule.default.newStoreRequest(seed, poolID, uploader, cid).then(res => {
254
+ let res1 = _fulaNativeModule.default.newStoreRequest(seed, poolID, uploader, cid).then(res => {
256
255
  try {
257
256
  let jsonRes = JSON.parse(res);
258
257
  return jsonRes;
259
258
  } catch (e) {
260
259
  try {
261
260
  return JSON.parse(res);
262
- } catch (e) {
261
+ } catch (e2) {
263
262
  return res;
264
263
  }
265
264
  }
266
265
  }).catch(err => {
267
266
  return err;
268
267
  });
269
- return res;
268
+ return res1;
270
269
  };
271
270
 
272
- /*
273
- It takes one argument:
274
-
275
- poolID is the ID of the pool for which the replication requests are listed
276
- It returns a promise of BType.ManifestUploadResponse[] which is an array of the replication requests, including the uploader, storage, ManifestMetadata, and poolID
271
+ /*
272
+ It takes one argument:
273
+
274
+ poolID is the ID of the pool for which the replication requests are listed
275
+ It returns a promise of BType.ManifestUploadResponse[] which is an array of the replication requests, including the uploader, storage, ManifestMetadata, and poolID
277
276
  */
278
277
  exports.newStoreRequest = newStoreRequest;
279
278
  const listAvailableReplicationRequests = poolID => {
280
279
  console.log('listAvailableReplicationRequests in react-native started', poolID);
281
- let res = _fulaNativeModule.default.listAvailableReplicationRequests(poolID).then(res => {
280
+ let res1 = _fulaNativeModule.default.listAvailableReplicationRequests(poolID).then(res => {
282
281
  try {
283
282
  let jsonRes = JSON.parse(res);
284
283
  return jsonRes;
285
284
  } catch (e) {
286
285
  try {
287
286
  return JSON.parse(res);
288
- } catch (e) {
287
+ } catch (e2) {
289
288
  return res;
290
289
  }
291
290
  }
292
291
  }).catch(err => {
293
292
  return err;
294
293
  });
295
- return res;
294
+ return res1;
296
295
  };
297
296
 
298
- /*
299
- It takes three arguments:
300
-
301
- seed is the seed of the account that is removing the replication request
302
- poolID is the ID of the pool for which the replication request is being removed
303
- cid is the content ID of the replication request being removed
304
- It returns a promise of BType.ManifestUploadResponse which is the removed replication request, including the uploader, storage, ManifestMetadata, and poolID
297
+ /*
298
+ It takes three arguments:
299
+
300
+ seed is the seed of the account that is removing the replication request
301
+ poolID is the ID of the pool for which the replication request is being removed
302
+ cid is the content ID of the replication request being removed
303
+ It returns a promise of BType.ManifestUploadResponse which is the removed replication request, including the uploader, storage, ManifestMetadata, and poolID
305
304
  */
306
305
  exports.listAvailableReplicationRequests = listAvailableReplicationRequests;
307
306
  const removeReplicationRequest = (seed, poolID, cid) => {
308
307
  console.log('removeReplicationRequest in react-native started', seed, poolID, cid);
309
- let res = _fulaNativeModule.default.removeReplicationRequest(seed, poolID, cid).then(res => {
308
+ let res1 = _fulaNativeModule.default.removeReplicationRequest(seed, poolID, cid).then(res => {
310
309
  try {
311
310
  let jsonRes = JSON.parse(res);
312
311
  return jsonRes;
313
312
  } catch (e) {
314
313
  try {
315
314
  return JSON.parse(res);
316
- } catch (e) {
315
+ } catch (e2) {
317
316
  return res;
318
317
  }
319
318
  }
320
319
  }).catch(err => {
321
320
  return err;
322
321
  });
323
- return res;
322
+ return res1;
324
323
  };
325
324
 
326
- /*
327
- It takes four arguments:
328
-
329
- seed is the seed of the account that is removing the storer
330
- storer is the address of the storer that is being removed
331
- poolID is the ID of the pool for which the storer is being removed
332
- cid is the content ID of the replication request for which the storer is being removed
333
- It returns a promise of BType.ManifestUploadResponse which is the replication request, including the uploader, storage, ManifestMetadata, and poolID after the storer has been removed.
325
+ /*
326
+ It takes four arguments:
327
+
328
+ seed is the seed of the account that is removing the storer
329
+ storer is the address of the storer that is being removed
330
+ poolID is the ID of the pool for which the storer is being removed
331
+ cid is the content ID of the replication request for which the storer is being removed
332
+ It returns a promise of BType.ManifestUploadResponse which is the replication request, including the uploader, storage, ManifestMetadata, and poolID after the storer has been removed.
334
333
  */
335
334
  exports.removeReplicationRequest = removeReplicationRequest;
336
335
  const removeStorer = (seed, storer, poolID, cid) => {
337
336
  console.log('removeStorer in react-native started', seed, storer, poolID, cid);
338
- let res = _fulaNativeModule.default.removeStorer(seed, storer, poolID, cid).then(res => {
337
+ let res1 = _fulaNativeModule.default.removeStorer(seed, storer, poolID, cid).then(res => {
339
338
  try {
340
339
  let jsonRes = JSON.parse(res);
341
340
  return jsonRes;
342
341
  } catch (e) {
343
342
  try {
344
343
  return JSON.parse(res);
345
- } catch (e) {
344
+ } catch (e2) {
346
345
  return res;
347
346
  }
348
347
  }
349
348
  }).catch(err => {
350
349
  return err;
351
350
  });
352
- return res;
351
+ return res1;
353
352
  };
354
353
 
355
- /*
356
- It takes four arguments:
357
-
358
- seed is the seed of the account that is removing the stored replication
359
- uploader is the address of the uploader that is being removed
360
- poolID is the ID of the pool for which the stored replication is being removed
361
- cid is the content ID of the replication request for which the stored replication is being removed
362
- It returns a promise of BType.ManifestUploadResponse which is the replication request, including the uploader, storage, ManifestMetadata, and poolID after the stored replication has been removed.
354
+ /*
355
+ It takes four arguments:
356
+
357
+ seed is the seed of the account that is removing the stored replication
358
+ uploader is the address of the uploader that is being removed
359
+ poolID is the ID of the pool for which the stored replication is being removed
360
+ cid is the content ID of the replication request for which the stored replication is being removed
361
+ It returns a promise of BType.ManifestUploadResponse which is the replication request, including the uploader, storage, ManifestMetadata, and poolID after the stored replication has been removed.
363
362
  */
364
363
  exports.removeStorer = removeStorer;
365
364
  const removeStoredReplication = (seed, uploader, poolID, cid) => {
366
365
  console.log('removeStoredReplication in react-native started', seed, uploader, poolID, cid);
367
- let res = _fulaNativeModule.default.removeStoredReplication(seed, uploader, poolID, cid).then(res => {
366
+ let res1 = _fulaNativeModule.default.removeStoredReplication(seed, uploader, poolID, cid).then(res => {
368
367
  try {
369
368
  let jsonRes = JSON.parse(res);
370
369
  return jsonRes;
371
370
  } catch (e) {
372
371
  try {
373
372
  return JSON.parse(res);
374
- } catch (e) {
373
+ } catch (e2) {
375
374
  return res;
376
375
  }
377
376
  }
378
377
  }).catch(err => {
379
378
  return err;
380
379
  });
381
- return res;
380
+ return res1;
382
381
  };
383
382
 
384
- /*
385
- bloxFreeSpace: This function takes no arguments and returns a promise of an object that contains the blox free space information.
383
+ /*
384
+ bloxFreeSpace: This function takes no arguments and returns a promise of an object that contains the blox free space information.
386
385
  */
387
386
  exports.removeStoredReplication = removeStoredReplication;
388
387
  const bloxFreeSpace = () => {
389
388
  console.log('bloxFreeSpace in react-native started');
390
- let res = _fulaNativeModule.default.bloxFreeSpace().then(res => {
389
+ let res1 = _fulaNativeModule.default.bloxFreeSpace().then(res => {
391
390
  try {
392
391
  let jsonRes = JSON.parse(res);
393
392
  return jsonRes;
394
393
  } catch (e) {
395
394
  try {
396
395
  return JSON.parse(res);
397
- } catch (e) {
396
+ } catch (e2) {
398
397
  return res;
399
398
  }
400
399
  }
401
400
  }).catch(err => {
402
401
  return err;
403
402
  });
404
- return res;
403
+ return res1;
405
404
  };
406
405
  exports.bloxFreeSpace = bloxFreeSpace;
407
406
  const getAccount = () => {
408
407
  console.log('getAccount in react-native started');
409
- let res = _fulaNativeModule.default.getAccount().then(res => {
408
+ let res = _fulaNativeModule.default.getAccount().then(res1 => {
410
409
  try {
411
- let jsonRes = JSON.parse(res);
410
+ let jsonRes = JSON.parse(res1);
412
411
  return jsonRes;
413
412
  } catch (e) {
414
413
  try {
415
- return JSON.parse(res);
414
+ return JSON.parse(res1);
416
415
  } catch (e1) {
417
416
  console.error('Error parsing res in get account:', e1);
418
417
  throw e1; // Rethrow the error to maintain the rejection state
@@ -422,19 +421,18 @@ const getAccount = () => {
422
421
  console.error('Error getting account:', err);
423
422
  throw err; // Rethrow the error to maintain the rejection state
424
423
  });
425
-
426
424
  return res;
427
425
  };
428
426
  exports.getAccount = getAccount;
429
427
  const assetsBalance = (account, assetId, classId) => {
430
428
  console.log('assetsBalance in react-native started');
431
- let res = _fulaNativeModule.default.assetsBalance(account, assetId, classId).then(res => {
429
+ let res = _fulaNativeModule.default.assetsBalance(account, assetId, classId).then(res1 => {
432
430
  try {
433
- let jsonRes = JSON.parse(res);
431
+ let jsonRes = JSON.parse(res1);
434
432
  return jsonRes;
435
433
  } catch (e) {
436
434
  try {
437
- return JSON.parse(res);
435
+ return JSON.parse(res1);
438
436
  } catch (e1) {
439
437
  console.error('Error parsing res in get asset balance:', e1);
440
438
  throw e1; // Rethrow the error to maintain the rejection state
@@ -444,19 +442,18 @@ const assetsBalance = (account, assetId, classId) => {
444
442
  console.error('Error getting asset balance:', err);
445
443
  throw err; // Rethrow the error to maintain the rejection state
446
444
  });
447
-
448
445
  return res;
449
446
  };
450
447
  exports.assetsBalance = assetsBalance;
451
448
  const transferToFula = (amount, wallet, chain) => {
452
449
  console.log('transferToFula in react-native started');
453
- let res = _fulaNativeModule.default.transferToFula(amount, wallet, chain).then(res => {
450
+ let res = _fulaNativeModule.default.transferToFula(amount, wallet, chain).then(res1 => {
454
451
  try {
455
- let jsonRes = JSON.parse(res);
452
+ let jsonRes = JSON.parse(res1);
456
453
  return jsonRes;
457
454
  } catch (e) {
458
455
  try {
459
- return JSON.parse(res);
456
+ return JSON.parse(res1);
460
457
  } catch (e1) {
461
458
  console.error('Error parsing res in transferToFula:', e1);
462
459
  throw e1; // Rethrow the error to maintain the rejection state
@@ -466,7 +463,6 @@ const transferToFula = (amount, wallet, chain) => {
466
463
  console.error('Error getting transferToFula:', err);
467
464
  throw err; // Rethrow the error to maintain the rejection state
468
465
  });
469
-
470
466
  return res;
471
467
  };
472
468
  exports.transferToFula = transferToFula;
@@ -1 +1 @@
1
- {"version":3,"names":["_fulaNativeModule","_interopRequireDefault","require","obj","__esModule","default","createAccount","seed","console","log","res","Fula","then","jsonRes","JSON","parse","e","catch","err","exports","checkAccountExists","account","createPool","poolName","listPools","joinPool","poolID","toString","error","leavePool","cancelPoolJoin","listPoolJoinRequests","votePoolJoinRequest","accept","newReplicationRequest","replicationFactor","cid","newStoreRequest","uploader","listAvailableReplicationRequests","removeReplicationRequest","removeStorer","storer","removeStoredReplication","bloxFreeSpace","getAccount","e1","assetsBalance","assetId","classId","transferToFula","amount","wallet","chain"],"sourceRoot":"..\\..\\..\\src","sources":["protocols/blockchain.ts"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAkD,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAGlD;AACA;AACA;AACO,MAAMG,aAAa,GACxBC,IAAY,IACsB;EAClCC,OAAO,CAACC,GAAG,CAAC,uCAAuC,EAAEF,IAAI,CAAC;EAC1D,IAAIG,GAAG,GAAGC,yBAAI,CAACL,aAAa,CAACC,IAAI,CAAC,C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BAA8B,EAAEV,GAAG,CAAC;IAClD,MAAMA,GAAG,CAAC,CAAC;EACb,CAAC,CAAC;;EACJ,OAAOR,GAAG;AACZ,CAAC;AAACS,OAAA,CAAA4B,aAAA,GAAAA,aAAA;AAEK,MAAMG,cAAc,GAAGA,CAC5BC,MAAc,EACdC,MAAc,EACdC,KAAa,KAC6B;EAC1C7C,OAAO,CAACC,GAAG,CAAC,wCAAwC,CAAC;EACrD,IAAIC,GAAG,GAAGC,yBAAI,CAACuC,cAAc,CAACC,MAAM,EAAEC,MAAM,EAAEC,KAAK,CAAC,CACjDzC,IAAI,CAAEF,GAAG,IAAK;IACb,IAAI;MACF,IAAIG,OAAqC,GAAGC,IAAI,CAACC,KAAK,CAACL,GAAG,CAAC;MAC3D,OAAOG,OAAO;IAChB,CAAC,CAAC,OAAOG,CAAC,EAAE;MACV,IAAI;QACF,OAAOF,IAAI,CAACC,KAAK,CAACL,GAAG,CAAC;MACxB,CAAC,CAAC,OAAOoC,EAAE,EAAE;QACXtC,OAAO,CAACoB,KAAK,CAAC,sCAAsC,EAAEkB,EAAE,CAAC;QACzD,MAAMA,EAAE,CAAC,CAAC;MACZ;IACF;EACF,CAAC,CAAC,CACD7B,KAAK,CAAEC,GAAG,IAAK;IACdV,OAAO,CAACoB,KAAK,CAAC,+BAA+B,EAAEV,GAAG,CAAC;IACnD,MAAMA,GAAG,CAAC,CAAC;EACb,CAAC,CAAC;;EACJ,OAAOR,GAAG;AACZ,CAAC;AAACS,OAAA,CAAA+B,cAAA,GAAAA,cAAA"}
1
+ {"version":3,"names":["_fulaNativeModule","_interopRequireDefault","require","obj","__esModule","default","createAccount","seed","console","log","res1","Fula","then","res","jsonRes","JSON","parse","e","e2","catch","err","exports","checkAccountExists","account","createPool","poolName","listPools","joinPool","poolID","toString","error","leavePool","cancelPoolJoin","listPoolJoinRequests","votePoolJoinRequest","accept","newReplicationRequest","replicationFactor","cid","newStoreRequest","uploader","listAvailableReplicationRequests","removeReplicationRequest","removeStorer","storer","removeStoredReplication","bloxFreeSpace","getAccount","e1","assetsBalance","assetId","classId","transferToFula","amount","wallet","chain"],"sourceRoot":"..\\..\\..\\src","sources":["protocols/blockchain.ts"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAkD,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAGlD;AACA;AACA;AACO,MAAMG,aAAa,GACxBC,IAAY,IACsB;EAClCC,OAAO,CAACC,GAAG,CAAC,uCAAuC,EAAEF,IAAI,CAAC;EAC1D,IAAIG,IAAI,GAAGC,yBAAI,CAACL,aAAa,CAACC,IAAI,CAAC,CAChCK,IAAI,CAAEC,GAAG,IAAK;IACb,IAAI;MACF,IAAIC,OAA6B,GAAGC,IAAI,CAACC,KAAK,CAACH,GAAG,CAAC;MACnD,OAAOC,OAAO;IAChB,CAAC,CAAC,OAAOG,CAAC,EAAE;MACV,IAAI;QACF,OAAOF,IAAI,CAACC,KAAK,CAACH,GAAG,CAAC;MACxB,CAAC,CAAC,OAAOK,EAAE,EAAE;QACX,OAAOL,GAAG;MACZ;IACF;EACF,CAAC,CAAC,CACDM,KAAK,CAAEC,GAAG,IAAK;IACd,OAAOA,GAAG;EACZ,CAAC,CAAC;EACJ,OAAOV,IAAI;AACb,CAAC;;AAED;AACA;AACA;AAFAW,OAAA,CAAAf,aAAA,GAAAA,aAAA;AAGO,MAAMgB,kBAAkB,GAC7BC,OAAe,IAC0B;EACzCf,OAAO,CAACC,GAAG,CAAC,4CAA4C,EAAEc,OAAO,CAAC;EAClE,IAAIb,IAAI,GAAGC,yBAAI,CAACW,kBAAkB,CAACC,OAAO,CAAC,CACxCX,IAAI,CAAEC,GAAG,IAAK;IACb,IAAI;MACF,IAAIC,OAAoC,GAAGC,IAAI,CAACC,KAAK,CAACH,GAAG,CAAC;MAC1D,OAAOC,OAAO;IAChB,CAAC,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