@functionland/react-native-fula 1.37.0 → 1.39.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/android/build.gradle +1 -1
- package/android/src/main/java/land/fx/fula/FulaModule.java +1537 -1537
- package/lib/commonjs/protocols/blockchain.js +122 -122
- package/lib/commonjs/protocols/blockchain.js.map +1 -1
- package/lib/module/protocols/blockchain.js +122 -122
- package/lib/module/protocols/blockchain.js.map +1 -1
- package/lib/typescript/interfaces/fulaNativeModule.d.ts +1 -1
- package/lib/typescript/protocols/blockchain.d.ts +1 -1
- package/package.json +1 -1
- package/src/interfaces/fulaNativeModule.ts +141 -141
- package/src/protocols/blockchain.ts +576 -576
|
@@ -6,113 +6,113 @@ 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
|
|
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 (
|
|
21
|
+
} catch (e2) {
|
|
22
22
|
return res;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}).catch(err => {
|
|
26
26
|
return err;
|
|
27
27
|
});
|
|
28
|
-
return
|
|
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
|
|
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 (
|
|
44
|
+
} catch (e2) {
|
|
45
45
|
return res;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}).catch(err => {
|
|
49
49
|
return err;
|
|
50
50
|
});
|
|
51
|
-
return
|
|
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
|
|
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 (
|
|
67
|
+
} catch (e2) {
|
|
68
68
|
return res;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
}).catch(err => {
|
|
72
72
|
return err;
|
|
73
73
|
});
|
|
74
|
-
return
|
|
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
|
|
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 (
|
|
90
|
+
} catch (e2) {
|
|
91
91
|
return res;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
}).catch(err => {
|
|
95
95
|
return err;
|
|
96
96
|
});
|
|
97
|
-
return
|
|
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
|
|
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 (
|
|
113
|
+
} catch (e2) {
|
|
114
114
|
console.error('Error parsing res in joining pool:', e);
|
|
115
|
-
|
|
115
|
+
return res; // Rethrow the error to maintain the rejection state
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
}).catch(err => {
|
|
@@ -120,299 +120,299 @@ const joinPool = poolID => {
|
|
|
120
120
|
throw err; // Rethrow the error to maintain the rejection state
|
|
121
121
|
});
|
|
122
122
|
|
|
123
|
-
return
|
|
123
|
+
return res1;
|
|
124
124
|
};
|
|
125
125
|
|
|
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 `
|
|
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 `
|
|
128
128
|
*/
|
|
129
129
|
exports.joinPool = joinPool;
|
|
130
130
|
const leavePool = poolID => {
|
|
131
131
|
console.log('leavePool in react-native started', poolID);
|
|
132
|
-
let
|
|
132
|
+
let res1 = _fulaNativeModule.default.leavePool(poolID).then(res => {
|
|
133
133
|
try {
|
|
134
134
|
let jsonRes = JSON.parse(res);
|
|
135
135
|
return jsonRes;
|
|
136
136
|
} catch (e) {
|
|
137
137
|
try {
|
|
138
138
|
return JSON.parse(res);
|
|
139
|
-
} catch (
|
|
139
|
+
} catch (e2) {
|
|
140
140
|
return res;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}).catch(err => {
|
|
144
144
|
return err;
|
|
145
145
|
});
|
|
146
|
-
return
|
|
146
|
+
return res1;
|
|
147
147
|
};
|
|
148
148
|
exports.leavePool = leavePool;
|
|
149
149
|
const cancelPoolJoin = poolID => {
|
|
150
150
|
console.log('cancelPoolJoin in react-native started', poolID);
|
|
151
|
-
let
|
|
151
|
+
let res1 = _fulaNativeModule.default.cancelPoolJoin(poolID).then(res => {
|
|
152
152
|
try {
|
|
153
153
|
let jsonRes = JSON.parse(res);
|
|
154
154
|
return jsonRes;
|
|
155
155
|
} catch (e) {
|
|
156
156
|
try {
|
|
157
157
|
return JSON.parse(res);
|
|
158
|
-
} catch (
|
|
158
|
+
} catch (e2) {
|
|
159
159
|
return res;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
}).catch(err => {
|
|
163
163
|
return err;
|
|
164
164
|
});
|
|
165
|
-
return
|
|
165
|
+
return res1;
|
|
166
166
|
};
|
|
167
167
|
exports.cancelPoolJoin = cancelPoolJoin;
|
|
168
168
|
const listPoolJoinRequests = poolID => {
|
|
169
169
|
console.log('listPoolJoinRequests in react-native started', poolID);
|
|
170
|
-
let
|
|
170
|
+
let res1 = _fulaNativeModule.default.listPoolJoinRequests(poolID).then(res => {
|
|
171
171
|
try {
|
|
172
172
|
let jsonRes = JSON.parse(res);
|
|
173
173
|
return jsonRes;
|
|
174
174
|
} catch (e) {
|
|
175
175
|
try {
|
|
176
176
|
return JSON.parse(res);
|
|
177
|
-
} catch (
|
|
177
|
+
} catch (e2) {
|
|
178
178
|
return res;
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
}).catch(err => {
|
|
182
182
|
return err;
|
|
183
183
|
});
|
|
184
|
-
return
|
|
184
|
+
return res1;
|
|
185
185
|
};
|
|
186
186
|
|
|
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
|
|
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
|
|
193
193
|
*/
|
|
194
194
|
exports.listPoolJoinRequests = listPoolJoinRequests;
|
|
195
195
|
const votePoolJoinRequest = (seed, poolID, account, accept) => {
|
|
196
196
|
console.log('votePoolJoinRequest in react-native started', seed, poolID, account, accept);
|
|
197
|
-
let
|
|
197
|
+
let res1 = _fulaNativeModule.default.votePoolJoinRequest(seed, poolID, account, accept).then(res => {
|
|
198
198
|
try {
|
|
199
199
|
let jsonRes = JSON.parse(res);
|
|
200
200
|
return jsonRes;
|
|
201
201
|
} catch (e) {
|
|
202
202
|
try {
|
|
203
203
|
return JSON.parse(res);
|
|
204
|
-
} catch (
|
|
204
|
+
} catch (e2) {
|
|
205
205
|
return res;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
}).catch(err => {
|
|
209
209
|
return err;
|
|
210
210
|
});
|
|
211
|
-
return
|
|
211
|
+
return res1;
|
|
212
212
|
};
|
|
213
213
|
|
|
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
|
|
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
|
|
222
222
|
*/
|
|
223
223
|
exports.votePoolJoinRequest = votePoolJoinRequest;
|
|
224
224
|
const newReplicationRequest = (seed, poolID, replicationFactor, cid) => {
|
|
225
225
|
console.log('newReplicationRequest in react-native started', seed, poolID, replicationFactor, cid);
|
|
226
|
-
let
|
|
226
|
+
let res1 = _fulaNativeModule.default.newReplicationRequest(seed, poolID, replicationFactor, cid).then(res => {
|
|
227
227
|
try {
|
|
228
228
|
let jsonRes = JSON.parse(res);
|
|
229
229
|
return jsonRes;
|
|
230
230
|
} catch (e) {
|
|
231
231
|
try {
|
|
232
232
|
return JSON.parse(res);
|
|
233
|
-
} catch (
|
|
233
|
+
} catch (e2) {
|
|
234
234
|
return res;
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
}).catch(err => {
|
|
238
238
|
return err;
|
|
239
239
|
});
|
|
240
|
-
return
|
|
240
|
+
return res1;
|
|
241
241
|
};
|
|
242
242
|
|
|
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
|
|
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
|
|
251
251
|
*/
|
|
252
252
|
exports.newReplicationRequest = newReplicationRequest;
|
|
253
253
|
const newStoreRequest = (seed, poolID, uploader, cid) => {
|
|
254
254
|
console.log('newStoreRequest in react-native started', seed, poolID, uploader, cid);
|
|
255
|
-
let
|
|
255
|
+
let res1 = _fulaNativeModule.default.newStoreRequest(seed, poolID, uploader, cid).then(res => {
|
|
256
256
|
try {
|
|
257
257
|
let jsonRes = JSON.parse(res);
|
|
258
258
|
return jsonRes;
|
|
259
259
|
} catch (e) {
|
|
260
260
|
try {
|
|
261
261
|
return JSON.parse(res);
|
|
262
|
-
} catch (
|
|
262
|
+
} catch (e2) {
|
|
263
263
|
return res;
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
}).catch(err => {
|
|
267
267
|
return err;
|
|
268
268
|
});
|
|
269
|
-
return
|
|
269
|
+
return res1;
|
|
270
270
|
};
|
|
271
271
|
|
|
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
|
|
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
|
|
277
277
|
*/
|
|
278
278
|
exports.newStoreRequest = newStoreRequest;
|
|
279
279
|
const listAvailableReplicationRequests = poolID => {
|
|
280
280
|
console.log('listAvailableReplicationRequests in react-native started', poolID);
|
|
281
|
-
let
|
|
281
|
+
let res1 = _fulaNativeModule.default.listAvailableReplicationRequests(poolID).then(res => {
|
|
282
282
|
try {
|
|
283
283
|
let jsonRes = JSON.parse(res);
|
|
284
284
|
return jsonRes;
|
|
285
285
|
} catch (e) {
|
|
286
286
|
try {
|
|
287
287
|
return JSON.parse(res);
|
|
288
|
-
} catch (
|
|
288
|
+
} catch (e2) {
|
|
289
289
|
return res;
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
}).catch(err => {
|
|
293
293
|
return err;
|
|
294
294
|
});
|
|
295
|
-
return
|
|
295
|
+
return res1;
|
|
296
296
|
};
|
|
297
297
|
|
|
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
|
|
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
|
|
305
305
|
*/
|
|
306
306
|
exports.listAvailableReplicationRequests = listAvailableReplicationRequests;
|
|
307
307
|
const removeReplicationRequest = (seed, poolID, cid) => {
|
|
308
308
|
console.log('removeReplicationRequest in react-native started', seed, poolID, cid);
|
|
309
|
-
let
|
|
309
|
+
let res1 = _fulaNativeModule.default.removeReplicationRequest(seed, poolID, cid).then(res => {
|
|
310
310
|
try {
|
|
311
311
|
let jsonRes = JSON.parse(res);
|
|
312
312
|
return jsonRes;
|
|
313
313
|
} catch (e) {
|
|
314
314
|
try {
|
|
315
315
|
return JSON.parse(res);
|
|
316
|
-
} catch (
|
|
316
|
+
} catch (e2) {
|
|
317
317
|
return res;
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
}).catch(err => {
|
|
321
321
|
return err;
|
|
322
322
|
});
|
|
323
|
-
return
|
|
323
|
+
return res1;
|
|
324
324
|
};
|
|
325
325
|
|
|
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.
|
|
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.
|
|
334
334
|
*/
|
|
335
335
|
exports.removeReplicationRequest = removeReplicationRequest;
|
|
336
336
|
const removeStorer = (seed, storer, poolID, cid) => {
|
|
337
337
|
console.log('removeStorer in react-native started', seed, storer, poolID, cid);
|
|
338
|
-
let
|
|
338
|
+
let res1 = _fulaNativeModule.default.removeStorer(seed, storer, poolID, cid).then(res => {
|
|
339
339
|
try {
|
|
340
340
|
let jsonRes = JSON.parse(res);
|
|
341
341
|
return jsonRes;
|
|
342
342
|
} catch (e) {
|
|
343
343
|
try {
|
|
344
344
|
return JSON.parse(res);
|
|
345
|
-
} catch (
|
|
345
|
+
} catch (e2) {
|
|
346
346
|
return res;
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}).catch(err => {
|
|
350
350
|
return err;
|
|
351
351
|
});
|
|
352
|
-
return
|
|
352
|
+
return res1;
|
|
353
353
|
};
|
|
354
354
|
|
|
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.
|
|
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.
|
|
363
363
|
*/
|
|
364
364
|
exports.removeStorer = removeStorer;
|
|
365
365
|
const removeStoredReplication = (seed, uploader, poolID, cid) => {
|
|
366
366
|
console.log('removeStoredReplication in react-native started', seed, uploader, poolID, cid);
|
|
367
|
-
let
|
|
367
|
+
let res1 = _fulaNativeModule.default.removeStoredReplication(seed, uploader, poolID, cid).then(res => {
|
|
368
368
|
try {
|
|
369
369
|
let jsonRes = JSON.parse(res);
|
|
370
370
|
return jsonRes;
|
|
371
371
|
} catch (e) {
|
|
372
372
|
try {
|
|
373
373
|
return JSON.parse(res);
|
|
374
|
-
} catch (
|
|
374
|
+
} catch (e2) {
|
|
375
375
|
return res;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
}).catch(err => {
|
|
379
379
|
return err;
|
|
380
380
|
});
|
|
381
|
-
return
|
|
381
|
+
return res1;
|
|
382
382
|
};
|
|
383
383
|
|
|
384
|
-
/*
|
|
385
|
-
bloxFreeSpace: This function takes no arguments and returns a promise of an object that contains the blox free space information.
|
|
384
|
+
/*
|
|
385
|
+
bloxFreeSpace: This function takes no arguments and returns a promise of an object that contains the blox free space information.
|
|
386
386
|
*/
|
|
387
387
|
exports.removeStoredReplication = removeStoredReplication;
|
|
388
388
|
const bloxFreeSpace = () => {
|
|
389
389
|
console.log('bloxFreeSpace in react-native started');
|
|
390
|
-
let
|
|
390
|
+
let res1 = _fulaNativeModule.default.bloxFreeSpace().then(res => {
|
|
391
391
|
try {
|
|
392
392
|
let jsonRes = JSON.parse(res);
|
|
393
393
|
return jsonRes;
|
|
394
394
|
} catch (e) {
|
|
395
395
|
try {
|
|
396
396
|
return JSON.parse(res);
|
|
397
|
-
} catch (
|
|
397
|
+
} catch (e2) {
|
|
398
398
|
return res;
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
}).catch(err => {
|
|
402
402
|
return err;
|
|
403
403
|
});
|
|
404
|
-
return
|
|
404
|
+
return res1;
|
|
405
405
|
};
|
|
406
406
|
exports.bloxFreeSpace = bloxFreeSpace;
|
|
407
407
|
const getAccount = () => {
|
|
408
408
|
console.log('getAccount in react-native started');
|
|
409
|
-
let res = _fulaNativeModule.default.getAccount().then(
|
|
409
|
+
let res = _fulaNativeModule.default.getAccount().then(res1 => {
|
|
410
410
|
try {
|
|
411
|
-
let jsonRes = JSON.parse(
|
|
411
|
+
let jsonRes = JSON.parse(res1);
|
|
412
412
|
return jsonRes;
|
|
413
413
|
} catch (e) {
|
|
414
414
|
try {
|
|
415
|
-
return JSON.parse(
|
|
415
|
+
return JSON.parse(res1);
|
|
416
416
|
} catch (e1) {
|
|
417
417
|
console.error('Error parsing res in get account:', e1);
|
|
418
418
|
throw e1; // Rethrow the error to maintain the rejection state
|
|
@@ -428,13 +428,13 @@ const getAccount = () => {
|
|
|
428
428
|
exports.getAccount = getAccount;
|
|
429
429
|
const assetsBalance = (account, assetId, classId) => {
|
|
430
430
|
console.log('assetsBalance in react-native started');
|
|
431
|
-
let res = _fulaNativeModule.default.assetsBalance(account, assetId, classId).then(
|
|
431
|
+
let res = _fulaNativeModule.default.assetsBalance(account, assetId, classId).then(res1 => {
|
|
432
432
|
try {
|
|
433
|
-
let jsonRes = JSON.parse(
|
|
433
|
+
let jsonRes = JSON.parse(res1);
|
|
434
434
|
return jsonRes;
|
|
435
435
|
} catch (e) {
|
|
436
436
|
try {
|
|
437
|
-
return JSON.parse(
|
|
437
|
+
return JSON.parse(res1);
|
|
438
438
|
} catch (e1) {
|
|
439
439
|
console.error('Error parsing res in get asset balance:', e1);
|
|
440
440
|
throw e1; // Rethrow the error to maintain the rejection state
|
|
@@ -450,13 +450,13 @@ const assetsBalance = (account, assetId, classId) => {
|
|
|
450
450
|
exports.assetsBalance = assetsBalance;
|
|
451
451
|
const transferToFula = (amount, wallet, chain) => {
|
|
452
452
|
console.log('transferToFula in react-native started');
|
|
453
|
-
let res = _fulaNativeModule.default.transferToFula(amount, wallet, chain).then(
|
|
453
|
+
let res = _fulaNativeModule.default.transferToFula(amount, wallet, chain).then(res1 => {
|
|
454
454
|
try {
|
|
455
|
-
let jsonRes = JSON.parse(
|
|
455
|
+
let jsonRes = JSON.parse(res1);
|
|
456
456
|
return jsonRes;
|
|
457
457
|
} catch (e) {
|
|
458
458
|
try {
|
|
459
|
-
return JSON.parse(
|
|
459
|
+
return JSON.parse(res1);
|
|
460
460
|
} catch (e1) {
|
|
461
461
|
console.error('Error parsing res in transferToFula:', e1);
|
|
462
462
|
throw e1; // Rethrow the error to maintain the rejection state
|
|
@@ -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,CAC/BK,IAAI,CAAEF,GAAG,IAAK;IACb,IAAI;MACF,IAAIG,OAA6B,GAAGC,IAAI,CAACC,KAAK,CAACL,GAAG,CAAC;MACnD,OAAOG,OAAO;IAChB,CAAC,CAAC,OAAOG,CAAC,EAAE;MACV,IAAI;QACF,OAAOF,IAAI,CAACC,KAAK,CAACL,GAAG,CAAC;MACxB,CAAC,CAAC,OAAOM,CAAC,EAAE;QACV,OAAON,GAAG;MACZ;IACF;EACF,CAAC,CAAC,CACDO,KAAK,CAAEC,GAAG,IAAK;IACd,OAAOA,GAAG;EACZ,CAAC,CAAC;EACJ,OAAOR,GAAG;AACZ,CAAC;;AAED;AACA;AACA;AAFAS,OAAA,CAAAb,aAAA,GAAAA,aAAA;AAGO,MAAMc,kBAAkB,GAC7BC,OAAe,IAC0B;EACzCb,OAAO,CAACC,GAAG,CAAC,4CAA4C,EAAEY,OAAO,CAAC;EAClE,IAAIX,GAAG,GAAGC,yBAAI,CAACS,kBAAkB,CAACC,OAAO,CAAC,CACvCT,IAAI,CAAEF,GAAG,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,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,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