@functionland/react-native-fula 1.36.4 → 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 +1 -1
- package/ios/Fula.mm +215 -215
- package/ios/Fula.swift +1334 -1334
- package/lib/commonjs/protocols/blockchain.js +122 -122
- package/lib/commonjs/protocols/blockchain.js.map +1 -1
- package/lib/commonjs/protocols/fula.js +106 -106
- package/lib/module/protocols/blockchain.js +122 -122
- package/lib/module/protocols/blockchain.js.map +1 -1
- package/lib/module/protocols/fula.js +106 -106
- 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 +2 -2
- package/src/protocols/blockchain.ts +576 -576
- package/src/protocols/fula.ts +427 -427
|
@@ -1,108 +1,108 @@
|
|
|
1
1
|
import Fula from '../interfaces/fulaNativeModule';
|
|
2
|
-
/*
|
|
3
|
-
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.
|
|
2
|
+
/*
|
|
3
|
+
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.
|
|
4
4
|
*/
|
|
5
5
|
export const createAccount = seed => {
|
|
6
6
|
console.log('createAccount in react-native started', seed);
|
|
7
|
-
let
|
|
7
|
+
let res1 = Fula.createAccount(seed).then(res => {
|
|
8
8
|
try {
|
|
9
9
|
let jsonRes = JSON.parse(res);
|
|
10
10
|
return jsonRes;
|
|
11
11
|
} catch (e) {
|
|
12
12
|
try {
|
|
13
13
|
return JSON.parse(res);
|
|
14
|
-
} catch (
|
|
14
|
+
} catch (e2) {
|
|
15
15
|
return res;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}).catch(err => {
|
|
19
19
|
return err;
|
|
20
20
|
});
|
|
21
|
-
return
|
|
21
|
+
return res1;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
/*
|
|
25
|
-
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
|
|
24
|
+
/*
|
|
25
|
+
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
|
|
26
26
|
*/
|
|
27
27
|
export const checkAccountExists = account => {
|
|
28
28
|
console.log('checkAccountExists in react-native started', account);
|
|
29
|
-
let
|
|
29
|
+
let res1 = Fula.checkAccountExists(account).then(res => {
|
|
30
30
|
try {
|
|
31
31
|
let jsonRes = JSON.parse(res);
|
|
32
32
|
return jsonRes;
|
|
33
33
|
} catch (e) {
|
|
34
34
|
try {
|
|
35
35
|
return JSON.parse(res);
|
|
36
|
-
} catch (
|
|
36
|
+
} catch (e2) {
|
|
37
37
|
return res;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}).catch(err => {
|
|
41
41
|
return err;
|
|
42
42
|
});
|
|
43
|
-
return
|
|
43
|
+
return res1;
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
/*
|
|
47
|
-
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.
|
|
46
|
+
/*
|
|
47
|
+
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.
|
|
48
48
|
*/
|
|
49
49
|
export const createPool = (seed, poolName) => {
|
|
50
50
|
console.log('createPool in react-native started', seed, poolName);
|
|
51
|
-
let
|
|
51
|
+
let res1 = Fula.createPool(seed, poolName).then(res => {
|
|
52
52
|
try {
|
|
53
53
|
let jsonRes = JSON.parse(res);
|
|
54
54
|
return jsonRes;
|
|
55
55
|
} catch (e) {
|
|
56
56
|
try {
|
|
57
57
|
return JSON.parse(res);
|
|
58
|
-
} catch (
|
|
58
|
+
} catch (e2) {
|
|
59
59
|
return res;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}).catch(err => {
|
|
63
63
|
return err;
|
|
64
64
|
});
|
|
65
|
-
return
|
|
65
|
+
return res1;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
/*
|
|
69
|
-
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
|
|
68
|
+
/*
|
|
69
|
+
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
|
|
70
70
|
*/
|
|
71
71
|
export const listPools = () => {
|
|
72
72
|
console.log('listPools in react-native started');
|
|
73
|
-
let
|
|
73
|
+
let res1 = Fula.listPools().then(res => {
|
|
74
74
|
try {
|
|
75
75
|
let jsonRes = JSON.parse(res);
|
|
76
76
|
return jsonRes;
|
|
77
77
|
} catch (e) {
|
|
78
78
|
try {
|
|
79
79
|
return JSON.parse(res);
|
|
80
|
-
} catch (
|
|
80
|
+
} catch (e2) {
|
|
81
81
|
return res;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
}).catch(err => {
|
|
85
85
|
return err;
|
|
86
86
|
});
|
|
87
|
-
return
|
|
87
|
+
return res1;
|
|
88
88
|
};
|
|
89
89
|
|
|
90
|
-
/*
|
|
91
|
-
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.
|
|
90
|
+
/*
|
|
91
|
+
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.
|
|
92
92
|
*/
|
|
93
93
|
|
|
94
94
|
export const joinPool = poolID => {
|
|
95
95
|
console.log('joinPool in react-native started', poolID);
|
|
96
|
-
let
|
|
96
|
+
let res1 = Fula.joinPool(poolID.toString()).then(res => {
|
|
97
97
|
try {
|
|
98
98
|
let jsonRes = JSON.parse(res);
|
|
99
99
|
return jsonRes;
|
|
100
100
|
} catch (e) {
|
|
101
101
|
try {
|
|
102
102
|
return JSON.parse(res);
|
|
103
|
-
} catch (
|
|
103
|
+
} catch (e2) {
|
|
104
104
|
console.error('Error parsing res in joining pool:', e);
|
|
105
|
-
|
|
105
|
+
return res; // Rethrow the error to maintain the rejection state
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
}).catch(err => {
|
|
@@ -110,288 +110,288 @@ export const joinPool = poolID => {
|
|
|
110
110
|
throw err; // Rethrow the error to maintain the rejection state
|
|
111
111
|
});
|
|
112
112
|
|
|
113
|
-
return
|
|
113
|
+
return res1;
|
|
114
114
|
};
|
|
115
115
|
|
|
116
|
-
/*
|
|
117
|
-
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 `
|
|
116
|
+
/*
|
|
117
|
+
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 `
|
|
118
118
|
*/
|
|
119
119
|
|
|
120
120
|
export const leavePool = poolID => {
|
|
121
121
|
console.log('leavePool in react-native started', poolID);
|
|
122
|
-
let
|
|
122
|
+
let res1 = Fula.leavePool(poolID).then(res => {
|
|
123
123
|
try {
|
|
124
124
|
let jsonRes = JSON.parse(res);
|
|
125
125
|
return jsonRes;
|
|
126
126
|
} catch (e) {
|
|
127
127
|
try {
|
|
128
128
|
return JSON.parse(res);
|
|
129
|
-
} catch (
|
|
129
|
+
} catch (e2) {
|
|
130
130
|
return res;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
}).catch(err => {
|
|
134
134
|
return err;
|
|
135
135
|
});
|
|
136
|
-
return
|
|
136
|
+
return res1;
|
|
137
137
|
};
|
|
138
138
|
export const cancelPoolJoin = poolID => {
|
|
139
139
|
console.log('cancelPoolJoin in react-native started', poolID);
|
|
140
|
-
let
|
|
140
|
+
let res1 = Fula.cancelPoolJoin(poolID).then(res => {
|
|
141
141
|
try {
|
|
142
142
|
let jsonRes = JSON.parse(res);
|
|
143
143
|
return jsonRes;
|
|
144
144
|
} catch (e) {
|
|
145
145
|
try {
|
|
146
146
|
return JSON.parse(res);
|
|
147
|
-
} catch (
|
|
147
|
+
} catch (e2) {
|
|
148
148
|
return res;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
}).catch(err => {
|
|
152
152
|
return err;
|
|
153
153
|
});
|
|
154
|
-
return
|
|
154
|
+
return res1;
|
|
155
155
|
};
|
|
156
156
|
export const listPoolJoinRequests = poolID => {
|
|
157
157
|
console.log('listPoolJoinRequests in react-native started', poolID);
|
|
158
|
-
let
|
|
158
|
+
let res1 = Fula.listPoolJoinRequests(poolID).then(res => {
|
|
159
159
|
try {
|
|
160
160
|
let jsonRes = JSON.parse(res);
|
|
161
161
|
return jsonRes;
|
|
162
162
|
} catch (e) {
|
|
163
163
|
try {
|
|
164
164
|
return JSON.parse(res);
|
|
165
|
-
} catch (
|
|
165
|
+
} catch (e2) {
|
|
166
166
|
return res;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
}).catch(err => {
|
|
170
170
|
return err;
|
|
171
171
|
});
|
|
172
|
-
return
|
|
172
|
+
return res1;
|
|
173
173
|
};
|
|
174
174
|
|
|
175
|
-
/*
|
|
176
|
-
seed is used to authorize the request.
|
|
177
|
-
poolID is the ID of the pool in which the account is requesting to join.
|
|
178
|
-
account is the account that is requesting to join the pool.
|
|
179
|
-
accept is a boolean value that indicates whether to accept or reject the join request.
|
|
180
|
-
It returns a promise of BType.PoolVoteResponse which includes the account and poolID
|
|
175
|
+
/*
|
|
176
|
+
seed is used to authorize the request.
|
|
177
|
+
poolID is the ID of the pool in which the account is requesting to join.
|
|
178
|
+
account is the account that is requesting to join the pool.
|
|
179
|
+
accept is a boolean value that indicates whether to accept or reject the join request.
|
|
180
|
+
It returns a promise of BType.PoolVoteResponse which includes the account and poolID
|
|
181
181
|
*/
|
|
182
182
|
export const votePoolJoinRequest = (seed, poolID, account, accept) => {
|
|
183
183
|
console.log('votePoolJoinRequest in react-native started', seed, poolID, account, accept);
|
|
184
|
-
let
|
|
184
|
+
let res1 = Fula.votePoolJoinRequest(seed, poolID, account, accept).then(res => {
|
|
185
185
|
try {
|
|
186
186
|
let jsonRes = JSON.parse(res);
|
|
187
187
|
return jsonRes;
|
|
188
188
|
} catch (e) {
|
|
189
189
|
try {
|
|
190
190
|
return JSON.parse(res);
|
|
191
|
-
} catch (
|
|
191
|
+
} catch (e2) {
|
|
192
192
|
return res;
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
}).catch(err => {
|
|
196
196
|
return err;
|
|
197
197
|
});
|
|
198
|
-
return
|
|
198
|
+
return res1;
|
|
199
199
|
};
|
|
200
200
|
|
|
201
|
-
/*
|
|
202
|
-
It takes four arguments:
|
|
203
|
-
|
|
204
|
-
seed is used to authorize the request.
|
|
205
|
-
poolID is the ID of the pool in which the replication request is made.
|
|
206
|
-
replicationFactor is the number of copies of the content to be stored.
|
|
207
|
-
cid is the content identifier of the content to be replicated.
|
|
208
|
-
It returns a promise of BType.ManifestUploadResponse which includes the uploader, storage, ManifestMetadata, and poolID
|
|
201
|
+
/*
|
|
202
|
+
It takes four arguments:
|
|
203
|
+
|
|
204
|
+
seed is used to authorize the request.
|
|
205
|
+
poolID is the ID of the pool in which the replication request is made.
|
|
206
|
+
replicationFactor is the number of copies of the content to be stored.
|
|
207
|
+
cid is the content identifier of the content to be replicated.
|
|
208
|
+
It returns a promise of BType.ManifestUploadResponse which includes the uploader, storage, ManifestMetadata, and poolID
|
|
209
209
|
*/
|
|
210
210
|
export const newReplicationRequest = (seed, poolID, replicationFactor, cid) => {
|
|
211
211
|
console.log('newReplicationRequest in react-native started', seed, poolID, replicationFactor, cid);
|
|
212
|
-
let
|
|
212
|
+
let res1 = Fula.newReplicationRequest(seed, poolID, replicationFactor, cid).then(res => {
|
|
213
213
|
try {
|
|
214
214
|
let jsonRes = JSON.parse(res);
|
|
215
215
|
return jsonRes;
|
|
216
216
|
} catch (e) {
|
|
217
217
|
try {
|
|
218
218
|
return JSON.parse(res);
|
|
219
|
-
} catch (
|
|
219
|
+
} catch (e2) {
|
|
220
220
|
return res;
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
}).catch(err => {
|
|
224
224
|
return err;
|
|
225
225
|
});
|
|
226
|
-
return
|
|
226
|
+
return res1;
|
|
227
227
|
};
|
|
228
228
|
|
|
229
|
-
/*
|
|
230
|
-
It takes four arguments:
|
|
231
|
-
|
|
232
|
-
seed is used to authorize the request.
|
|
233
|
-
poolID is the ID of the pool in which the replication request is made.
|
|
234
|
-
uploader is the account of the user making the request
|
|
235
|
-
cid is the content identifier of the content to be stored.
|
|
236
|
-
It returns a promise of BType.ManifestUploadResponse which includes the uploader, storage, ManifestMetadata, and poolID
|
|
229
|
+
/*
|
|
230
|
+
It takes four arguments:
|
|
231
|
+
|
|
232
|
+
seed is used to authorize the request.
|
|
233
|
+
poolID is the ID of the pool in which the replication request is made.
|
|
234
|
+
uploader is the account of the user making the request
|
|
235
|
+
cid is the content identifier of the content to be stored.
|
|
236
|
+
It returns a promise of BType.ManifestUploadResponse which includes the uploader, storage, ManifestMetadata, and poolID
|
|
237
237
|
*/
|
|
238
238
|
export const newStoreRequest = (seed, poolID, uploader, cid) => {
|
|
239
239
|
console.log('newStoreRequest in react-native started', seed, poolID, uploader, cid);
|
|
240
|
-
let
|
|
240
|
+
let res1 = Fula.newStoreRequest(seed, poolID, uploader, cid).then(res => {
|
|
241
241
|
try {
|
|
242
242
|
let jsonRes = JSON.parse(res);
|
|
243
243
|
return jsonRes;
|
|
244
244
|
} catch (e) {
|
|
245
245
|
try {
|
|
246
246
|
return JSON.parse(res);
|
|
247
|
-
} catch (
|
|
247
|
+
} catch (e2) {
|
|
248
248
|
return res;
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
}).catch(err => {
|
|
252
252
|
return err;
|
|
253
253
|
});
|
|
254
|
-
return
|
|
254
|
+
return res1;
|
|
255
255
|
};
|
|
256
256
|
|
|
257
|
-
/*
|
|
258
|
-
It takes one argument:
|
|
259
|
-
|
|
260
|
-
poolID is the ID of the pool for which the replication requests are listed
|
|
261
|
-
It returns a promise of BType.ManifestUploadResponse[] which is an array of the replication requests, including the uploader, storage, ManifestMetadata, and poolID
|
|
257
|
+
/*
|
|
258
|
+
It takes one argument:
|
|
259
|
+
|
|
260
|
+
poolID is the ID of the pool for which the replication requests are listed
|
|
261
|
+
It returns a promise of BType.ManifestUploadResponse[] which is an array of the replication requests, including the uploader, storage, ManifestMetadata, and poolID
|
|
262
262
|
*/
|
|
263
263
|
export const listAvailableReplicationRequests = poolID => {
|
|
264
264
|
console.log('listAvailableReplicationRequests in react-native started', poolID);
|
|
265
|
-
let
|
|
265
|
+
let res1 = Fula.listAvailableReplicationRequests(poolID).then(res => {
|
|
266
266
|
try {
|
|
267
267
|
let jsonRes = JSON.parse(res);
|
|
268
268
|
return jsonRes;
|
|
269
269
|
} catch (e) {
|
|
270
270
|
try {
|
|
271
271
|
return JSON.parse(res);
|
|
272
|
-
} catch (
|
|
272
|
+
} catch (e2) {
|
|
273
273
|
return res;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
}).catch(err => {
|
|
277
277
|
return err;
|
|
278
278
|
});
|
|
279
|
-
return
|
|
279
|
+
return res1;
|
|
280
280
|
};
|
|
281
281
|
|
|
282
|
-
/*
|
|
283
|
-
It takes three arguments:
|
|
284
|
-
|
|
285
|
-
seed is the seed of the account that is removing the replication request
|
|
286
|
-
poolID is the ID of the pool for which the replication request is being removed
|
|
287
|
-
cid is the content ID of the replication request being removed
|
|
288
|
-
It returns a promise of BType.ManifestUploadResponse which is the removed replication request, including the uploader, storage, ManifestMetadata, and poolID
|
|
282
|
+
/*
|
|
283
|
+
It takes three arguments:
|
|
284
|
+
|
|
285
|
+
seed is the seed of the account that is removing the replication request
|
|
286
|
+
poolID is the ID of the pool for which the replication request is being removed
|
|
287
|
+
cid is the content ID of the replication request being removed
|
|
288
|
+
It returns a promise of BType.ManifestUploadResponse which is the removed replication request, including the uploader, storage, ManifestMetadata, and poolID
|
|
289
289
|
*/
|
|
290
290
|
export const removeReplicationRequest = (seed, poolID, cid) => {
|
|
291
291
|
console.log('removeReplicationRequest in react-native started', seed, poolID, cid);
|
|
292
|
-
let
|
|
292
|
+
let res1 = Fula.removeReplicationRequest(seed, poolID, cid).then(res => {
|
|
293
293
|
try {
|
|
294
294
|
let jsonRes = JSON.parse(res);
|
|
295
295
|
return jsonRes;
|
|
296
296
|
} catch (e) {
|
|
297
297
|
try {
|
|
298
298
|
return JSON.parse(res);
|
|
299
|
-
} catch (
|
|
299
|
+
} catch (e2) {
|
|
300
300
|
return res;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
}).catch(err => {
|
|
304
304
|
return err;
|
|
305
305
|
});
|
|
306
|
-
return
|
|
306
|
+
return res1;
|
|
307
307
|
};
|
|
308
308
|
|
|
309
|
-
/*
|
|
310
|
-
It takes four arguments:
|
|
311
|
-
|
|
312
|
-
seed is the seed of the account that is removing the storer
|
|
313
|
-
storer is the address of the storer that is being removed
|
|
314
|
-
poolID is the ID of the pool for which the storer is being removed
|
|
315
|
-
cid is the content ID of the replication request for which the storer is being removed
|
|
316
|
-
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.
|
|
309
|
+
/*
|
|
310
|
+
It takes four arguments:
|
|
311
|
+
|
|
312
|
+
seed is the seed of the account that is removing the storer
|
|
313
|
+
storer is the address of the storer that is being removed
|
|
314
|
+
poolID is the ID of the pool for which the storer is being removed
|
|
315
|
+
cid is the content ID of the replication request for which the storer is being removed
|
|
316
|
+
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.
|
|
317
317
|
*/
|
|
318
318
|
export const removeStorer = (seed, storer, poolID, cid) => {
|
|
319
319
|
console.log('removeStorer in react-native started', seed, storer, poolID, cid);
|
|
320
|
-
let
|
|
320
|
+
let res1 = Fula.removeStorer(seed, storer, poolID, cid).then(res => {
|
|
321
321
|
try {
|
|
322
322
|
let jsonRes = JSON.parse(res);
|
|
323
323
|
return jsonRes;
|
|
324
324
|
} catch (e) {
|
|
325
325
|
try {
|
|
326
326
|
return JSON.parse(res);
|
|
327
|
-
} catch (
|
|
327
|
+
} catch (e2) {
|
|
328
328
|
return res;
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
}).catch(err => {
|
|
332
332
|
return err;
|
|
333
333
|
});
|
|
334
|
-
return
|
|
334
|
+
return res1;
|
|
335
335
|
};
|
|
336
336
|
|
|
337
|
-
/*
|
|
338
|
-
It takes four arguments:
|
|
339
|
-
|
|
340
|
-
seed is the seed of the account that is removing the stored replication
|
|
341
|
-
uploader is the address of the uploader that is being removed
|
|
342
|
-
poolID is the ID of the pool for which the stored replication is being removed
|
|
343
|
-
cid is the content ID of the replication request for which the stored replication is being removed
|
|
344
|
-
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.
|
|
337
|
+
/*
|
|
338
|
+
It takes four arguments:
|
|
339
|
+
|
|
340
|
+
seed is the seed of the account that is removing the stored replication
|
|
341
|
+
uploader is the address of the uploader that is being removed
|
|
342
|
+
poolID is the ID of the pool for which the stored replication is being removed
|
|
343
|
+
cid is the content ID of the replication request for which the stored replication is being removed
|
|
344
|
+
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.
|
|
345
345
|
*/
|
|
346
346
|
export const removeStoredReplication = (seed, uploader, poolID, cid) => {
|
|
347
347
|
console.log('removeStoredReplication in react-native started', seed, uploader, poolID, cid);
|
|
348
|
-
let
|
|
348
|
+
let res1 = Fula.removeStoredReplication(seed, uploader, poolID, cid).then(res => {
|
|
349
349
|
try {
|
|
350
350
|
let jsonRes = JSON.parse(res);
|
|
351
351
|
return jsonRes;
|
|
352
352
|
} catch (e) {
|
|
353
353
|
try {
|
|
354
354
|
return JSON.parse(res);
|
|
355
|
-
} catch (
|
|
355
|
+
} catch (e2) {
|
|
356
356
|
return res;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
}).catch(err => {
|
|
360
360
|
return err;
|
|
361
361
|
});
|
|
362
|
-
return
|
|
362
|
+
return res1;
|
|
363
363
|
};
|
|
364
364
|
|
|
365
|
-
/*
|
|
366
|
-
bloxFreeSpace: This function takes no arguments and returns a promise of an object that contains the blox free space information.
|
|
365
|
+
/*
|
|
366
|
+
bloxFreeSpace: This function takes no arguments and returns a promise of an object that contains the blox free space information.
|
|
367
367
|
*/
|
|
368
368
|
export const bloxFreeSpace = () => {
|
|
369
369
|
console.log('bloxFreeSpace in react-native started');
|
|
370
|
-
let
|
|
370
|
+
let res1 = Fula.bloxFreeSpace().then(res => {
|
|
371
371
|
try {
|
|
372
372
|
let jsonRes = JSON.parse(res);
|
|
373
373
|
return jsonRes;
|
|
374
374
|
} catch (e) {
|
|
375
375
|
try {
|
|
376
376
|
return JSON.parse(res);
|
|
377
|
-
} catch (
|
|
377
|
+
} catch (e2) {
|
|
378
378
|
return res;
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
}).catch(err => {
|
|
382
382
|
return err;
|
|
383
383
|
});
|
|
384
|
-
return
|
|
384
|
+
return res1;
|
|
385
385
|
};
|
|
386
386
|
export const getAccount = () => {
|
|
387
387
|
console.log('getAccount in react-native started');
|
|
388
|
-
let res = Fula.getAccount().then(
|
|
388
|
+
let res = Fula.getAccount().then(res1 => {
|
|
389
389
|
try {
|
|
390
|
-
let jsonRes = JSON.parse(
|
|
390
|
+
let jsonRes = JSON.parse(res1);
|
|
391
391
|
return jsonRes;
|
|
392
392
|
} catch (e) {
|
|
393
393
|
try {
|
|
394
|
-
return JSON.parse(
|
|
394
|
+
return JSON.parse(res1);
|
|
395
395
|
} catch (e1) {
|
|
396
396
|
console.error('Error parsing res in get account:', e1);
|
|
397
397
|
throw e1; // Rethrow the error to maintain the rejection state
|
|
@@ -406,13 +406,13 @@ export const getAccount = () => {
|
|
|
406
406
|
};
|
|
407
407
|
export const assetsBalance = (account, assetId, classId) => {
|
|
408
408
|
console.log('assetsBalance in react-native started');
|
|
409
|
-
let res = Fula.assetsBalance(account, assetId, classId).then(
|
|
409
|
+
let res = Fula.assetsBalance(account, assetId, classId).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 asset balance:', e1);
|
|
418
418
|
throw e1; // Rethrow the error to maintain the rejection state
|
|
@@ -427,13 +427,13 @@ export const assetsBalance = (account, assetId, classId) => {
|
|
|
427
427
|
};
|
|
428
428
|
export const transferToFula = (amount, wallet, chain) => {
|
|
429
429
|
console.log('transferToFula in react-native started');
|
|
430
|
-
let res = Fula.transferToFula(amount, wallet, chain).then(
|
|
430
|
+
let res = Fula.transferToFula(amount, wallet, chain).then(res1 => {
|
|
431
431
|
try {
|
|
432
|
-
let jsonRes = JSON.parse(
|
|
432
|
+
let jsonRes = JSON.parse(res1);
|
|
433
433
|
return jsonRes;
|
|
434
434
|
} catch (e) {
|
|
435
435
|
try {
|
|
436
|
-
return JSON.parse(
|
|
436
|
+
return JSON.parse(res1);
|
|
437
437
|
} catch (e1) {
|
|
438
438
|
console.error('Error parsing res in transferToFula:', e1);
|
|
439
439
|
throw e1; // Rethrow the error to maintain the rejection state
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Fula","createAccount","seed","console","log","res","then","jsonRes","JSON","parse","e","catch","err","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,OAAOA,IAAI,MAAM,gCAAgC;AAGjD;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GACxBC,IAAY,IACsB;EAClCC,OAAO,CAACC,GAAG,CAAC,uCAAuC,EAAEF,IAAI,CAAC;EAC1D,IAAIG,GAAG,GAAGL,IAAI,CAACC,aAAa,CAACC,IAAI,CAAC,CAC/BI,IAAI,CAAED,GAAG,IAAK;IACb,IAAI;MACF,IAAIE,OAA6B,GAAGC,IAAI,CAACC,KAAK,CAACJ,GAAG,CAAC;MACnD,OAAOE,OAAO;IAChB,CAAC,CAAC,OAAOG,CAAC,EAAE;MACV,IAAI;QACF,OAAOF,IAAI,CAACC,KAAK,CAACJ,GAAG,CAAC;MACxB,CAAC,CAAC,OAAOK,CAAC,EAAE;QACV,OAAOL,GAAG;MACZ;IACF;EACF,CAAC,CAAC,CACDM,KAAK,CAAEC,GAAG,IAAK;IACd,OAAOA,GAAG;EACZ,CAAC,CAAC;EACJ,OAAOP,GAAG;AACZ,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMQ,kBAAkB,GAC7BC,OAAe,IAC0B;EACzCX,OAAO,CAACC,GAAG,CAAC,4CAA4C,EAAEU,OAAO,CAAC;EAClE,IAAIT,GAAG,GAAGL,IAAI,CAACa,kBAAkB,CAACC,OAAO,CAAC,CACvCR,IA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AAEC,GAAG,IAAK;IACdT,OAAO,CAACkB,KAAK,CAAC,8BAA8B,EAAET,GAAG,CAAC;IAClD,MAAMA,GAAG,CAAC,CAAC;EACb,CAAC,CAAC;;EACJ,OAAOP,GAAG;AACZ,CAAC;AAED,OAAO,MAAMsC,cAAc,GAAGA,CAC5BC,MAAc,EACdC,MAAc,EACdC,KAAa,KAC6B;EAC1C3C,OAAO,CAACC,GAAG,CAAC,wCAAwC,CAAC;EACrD,IAAIC,GAAG,GAAGL,IAAI,CAAC2C,cAAc,CAACC,MAAM,EAAEC,MAAM,EAAEC,KAAK,CAAC,CACjDxC,IAAI,CAAED,GAAG,IAAK;IACb,IAAI;MACF,IAAIE,OAAqC,GAAGC,IAAI,CAACC,KAAK,CAACJ,GAAG,CAAC;MAC3D,OAAOE,OAAO;IAChB,CAAC,CAAC,OAAOG,CAAC,EAAE;MACV,IAAI;QACF,OAAOF,IAAI,CAACC,KAAK,CAACJ,GAAG,CAAC;MACxB,CAAC,CAAC,OAAOkC,EAAE,EAAE;QACXpC,OAAO,CAACkB,KAAK,CAAC,sCAAsC,EAAEkB,EAAE,CAAC;QACzD,MAAMA,EAAE,CAAC,CAAC;MACZ;IACF;EACF,CAAC,CAAC,CACD5B,KAAK,CAAEC,GAAG,IAAK;IACdT,OAAO,CAACkB,KAAK,CAAC,+BAA+B,EAAET,GAAG,CAAC;IACnD,MAAMA,GAAG,CAAC,CAAC;EACb,CAAC,CAAC;;EACJ,OAAOP,GAAG;AACZ,CAAC"}
|
|
1
|
+
{"version":3,"names":["Fula","createAccount","seed","console","log","res1","then","res","jsonRes","JSON","parse","e","e2","catch","err","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,OAAOA,IAAI,MAAM,gCAAgC;AAGjD;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GACxBC,IAAY,IACsB;EAClCC,OAAO,CAACC,GAAG,CAAC,uCAAuC,EAAEF,IAAI,CAAC;EAC1D,IAAIG,IAAI,GAAGL,IAAI,CAACC,aAAa,CAACC,IAAI,CAAC,CAChCI,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,OAAOT,IAAI;AACb,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMU,kBAAkB,GAC7BC,OAAe,IAC0B;EACzCb,OAAO,CAACC,GAAG,CAAC,4CAA4C,EAAEY,OAAO,CAAC;EAClE,IAAIX,IAAI,GAAGL,IAAI,CAACe,kBAAkB,CAACC,OAAO,CAAC,CACxCV,IAAI,CAAEC,GAAG,IAAK;IACb,IAAI;MACF,IAAIC,OAAoC,GAAGC,IAAI,CAACC,KAAK,CAACH,GAAG,CAAC;MAC1D,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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