@functionland/react-native-fula 1.14.8 → 1.20.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/LICENSE +20 -20
- package/README.md +226 -214
- package/android/build.gradle +2 -2
- package/android/gradle.properties +5 -5
- package/android/src/main/AndroidManifest.xml +3 -3
- package/android/src/main/AndroidManifestNew.xml +2 -2
- package/android/src/main/java/land/fx/fula/ConfigRef.java +7 -7
- package/android/src/main/java/land/fx/fula/Cryptography.java +62 -62
- package/android/src/main/java/land/fx/fula/FulaModule.java +73 -104
- package/android/src/main/java/land/fx/fula/FulaPackage.java +32 -32
- package/android/src/main/java/land/fx/fula/SharedPreferenceHelper.java +65 -65
- package/android/src/main/java/land/fx/fula/StaticHelper.java +13 -13
- package/android/src/main/java/land/fx/fula/ThreadUtils.java +42 -42
- package/ios/Cryptography.swift +49 -49
- package/ios/Fula-Bridging-Header.h +3 -3
- package/ios/Fula.mm +197 -199
- package/ios/Fula.swift +1221 -1221
- package/ios/UserDataHelper.swift +143 -143
- package/lib/commonjs/index.js +2 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/interfaces/augment-api-errors.js +4 -0
- package/lib/commonjs/interfaces/augment-api-errors.js.map +1 -0
- package/lib/commonjs/interfaces/augment-api-rpc.js +4 -0
- package/lib/commonjs/interfaces/augment-api-rpc.js.map +1 -0
- package/lib/commonjs/interfaces/augment-api-runtime.js +4 -0
- package/lib/commonjs/interfaces/augment-api-runtime.js.map +1 -0
- package/lib/commonjs/interfaces/augment-api.js +10 -0
- package/lib/commonjs/interfaces/augment-api.js.map +1 -0
- package/lib/commonjs/interfaces/augment-types.js +4 -0
- package/lib/commonjs/interfaces/augment-types.js.map +1 -0
- package/lib/commonjs/interfaces/fulaNativeModule.js +1 -2
- package/lib/commonjs/interfaces/fulaNativeModule.js.map +1 -1
- package/lib/commonjs/interfaces/index.js +6 -0
- package/lib/commonjs/interfaces/index.js.map +1 -0
- package/lib/commonjs/interfaces/{api-lookup.js → lookup.js} +623 -382
- package/lib/commonjs/interfaces/lookup.js.map +1 -0
- package/lib/commonjs/interfaces/registry.js +4 -0
- package/lib/commonjs/interfaces/registry.js.map +1 -0
- package/lib/commonjs/interfaces/types-lookup.js +4 -0
- package/lib/commonjs/interfaces/types-lookup.js.map +1 -0
- package/lib/commonjs/interfaces/types.js +4 -0
- package/lib/commonjs/interfaces/types.js.map +1 -0
- package/lib/commonjs/protocols/blockchain.js +123 -76
- package/lib/commonjs/protocols/blockchain.js.map +1 -1
- package/lib/commonjs/protocols/chain-api.js +156 -42
- package/lib/commonjs/protocols/chain-api.js.map +1 -1
- package/lib/commonjs/protocols/fula.js +195 -99
- package/lib/commonjs/protocols/fula.js.map +1 -1
- package/lib/commonjs/protocols/fxblox.js +3 -3
- package/lib/commonjs/protocols/fxblox.js.map +1 -1
- package/lib/commonjs/types/blockchain.js.map +1 -1
- package/lib/commonjs/types/fxblox.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/interfaces/augment-api-errors.js +9 -0
- package/lib/module/interfaces/augment-api-errors.js.map +1 -0
- package/lib/module/interfaces/augment-api-rpc.js +9 -0
- package/lib/module/interfaces/augment-api-rpc.js.map +1 -0
- package/lib/module/interfaces/augment-api-runtime.js +9 -0
- package/lib/module/interfaces/augment-api-runtime.js.map +1 -0
- package/lib/module/interfaces/augment-api.js +11 -0
- package/lib/module/interfaces/augment-api.js.map +1 -0
- package/lib/module/interfaces/augment-types.js +9 -0
- package/lib/module/interfaces/augment-types.js.map +1 -0
- package/lib/module/interfaces/fulaNativeModule.js.map +1 -1
- package/lib/module/interfaces/index.js +5 -0
- package/lib/module/interfaces/index.js.map +1 -0
- package/lib/module/interfaces/{api-lookup.js → lookup.js} +622 -380
- package/lib/module/interfaces/lookup.js.map +1 -0
- package/lib/module/interfaces/registry.js +9 -0
- package/lib/module/interfaces/registry.js.map +1 -0
- package/lib/module/interfaces/types-lookup.js +9 -0
- package/lib/module/interfaces/types-lookup.js.map +1 -0
- package/lib/module/interfaces/types.js +3 -0
- package/lib/module/interfaces/types.js.map +1 -0
- package/lib/module/protocols/blockchain.js +120 -75
- package/lib/module/protocols/blockchain.js.map +1 -1
- package/lib/module/protocols/chain-api.js +147 -36
- package/lib/module/protocols/chain-api.js.map +1 -1
- package/lib/module/protocols/fula.js +191 -99
- package/lib/module/protocols/fula.js.map +1 -1
- package/lib/module/protocols/fxblox.js +3 -3
- package/lib/module/protocols/fxblox.js.map +1 -1
- package/lib/module/types/blockchain.js.map +1 -1
- package/lib/module/types/fxblox.js.map +1 -1
- package/lib/typescript/interfaces/augment-api-errors.d.ts +442 -0
- package/lib/typescript/interfaces/augment-api-errors.d.ts.map +1 -0
- package/lib/typescript/interfaces/augment-api-rpc.d.ts +680 -0
- package/lib/typescript/interfaces/augment-api-rpc.d.ts.map +1 -0
- package/lib/typescript/interfaces/augment-api-runtime.d.ts +248 -0
- package/lib/typescript/interfaces/augment-api-runtime.d.ts.map +1 -0
- package/lib/typescript/interfaces/augment-api.d.ts +8 -0
- package/lib/typescript/interfaces/augment-api.d.ts.map +1 -0
- package/lib/typescript/interfaces/augment-types.d.ts +1224 -0
- package/lib/typescript/interfaces/augment-types.d.ts.map +1 -0
- package/lib/typescript/interfaces/fulaNativeModule.d.ts +7 -3
- package/lib/typescript/interfaces/fulaNativeModule.d.ts.map +1 -1
- package/lib/typescript/interfaces/index.d.ts +1 -0
- package/lib/typescript/interfaces/index.d.ts.map +1 -0
- package/lib/typescript/interfaces/{api-lookup.d.ts → lookup.d.ts} +441 -199
- package/lib/typescript/interfaces/lookup.d.ts.map +1 -0
- package/lib/typescript/interfaces/registry.d.ts +146 -0
- package/lib/typescript/interfaces/registry.d.ts.map +1 -0
- package/lib/typescript/interfaces/types-lookup.d.ts +1910 -0
- package/lib/typescript/interfaces/types-lookup.d.ts.map +1 -0
- package/lib/typescript/interfaces/types.d.ts +1 -0
- package/lib/typescript/interfaces/types.d.ts.map +1 -0
- package/lib/typescript/protocols/blockchain.d.ts +5 -3
- package/lib/typescript/protocols/blockchain.d.ts.map +1 -1
- package/lib/typescript/protocols/chain-api.d.ts +5 -0
- package/lib/typescript/protocols/chain-api.d.ts.map +1 -1
- package/lib/typescript/protocols/fula.d.ts +16 -0
- package/lib/typescript/protocols/fula.d.ts.map +1 -1
- package/lib/typescript/types/blockchain.d.ts +6 -0
- package/lib/typescript/types/blockchain.d.ts.map +1 -1
- package/package.json +9 -3
- package/react-native-fula.podspec +47 -47
- package/src/index.tsx +4 -4
- package/src/interfaces/augment-api-errors.ts +449 -0
- package/src/interfaces/augment-api-rpc.ts +617 -0
- package/src/interfaces/augment-api-runtime.ts +224 -0
- package/src/interfaces/augment-api.ts +10 -0
- package/src/interfaces/augment-types.ts +1230 -0
- package/src/interfaces/fulaNativeModule.ts +11 -3
- package/src/interfaces/index.ts +4 -0
- package/src/interfaces/{api-lookup.ts → lookup.ts} +1889 -1647
- package/src/interfaces/registry.ts +152 -0
- package/src/interfaces/types-lookup.ts +2043 -0
- package/src/interfaces/types.ts +3 -0
- package/src/protocols/blockchain.ts +549 -504
- package/src/protocols/chain-api.ts +259 -135
- package/src/protocols/fula.ts +419 -314
- package/src/protocols/fxblox.ts +49 -49
- package/src/types/blockchain.ts +89 -81
- package/src/types/fxblox.ts +8 -8
- package/ios/Fula.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/Fula.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/Fula.xcodeproj/project.xcworkspace/xcuserdata/user246549.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Fula.xcodeproj/xcuserdata/user246549.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/lib/commonjs/interfaces/api-lookup.js.map +0 -1
- package/lib/module/interfaces/api-lookup.js.map +0 -1
- package/lib/typescript/interfaces/api-lookup.d.ts.map +0 -1
|
@@ -3,14 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.writeFileContent = exports.writeFile = exports.testData = exports.shutdown = exports.setAuth = exports.rm = exports.readFileContent = exports.readFile = exports.put = exports.push = exports.newClient = exports.mv = exports.mkdir = exports.ls = exports.logout = exports.listFailedActions = exports.isReady = exports.init = exports.has = exports.get = exports.cp = exports.checkFailedActions = exports.checkConnection = void 0;
|
|
6
|
+
exports.writeFileContent = exports.writeFile = exports.testData = exports.shutdown = exports.setAuth = exports.rm = exports.replicateRecentCids = exports.readFileContent = exports.readFile = exports.put = exports.push = exports.newClient = exports.mv = exports.mkdir = exports.ls = exports.logout = exports.listRecentCidsAsString = exports.listFailedActions = exports.isReady = exports.init = exports.has = exports.get = exports.cp = exports.clearCidsFromRecent = exports.checkFailedActions = exports.checkConnection = void 0;
|
|
7
7
|
var _fulaNativeModule = _interopRequireDefault(require("../interfaces/fulaNativeModule"));
|
|
8
|
+
var _chainApi = require("./chain-api");
|
|
8
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
/**
|
|
10
|
-
* Get gets the value corresponding to the given key from the local datastore.
|
|
11
|
-
// The key must be a valid ipld.Link.
|
|
12
|
-
* @param config
|
|
13
|
-
* @returns boolean
|
|
10
|
+
/**
|
|
11
|
+
* Get gets the value corresponding to the given key from the local datastore.
|
|
12
|
+
// The key must be a valid ipld.Link.
|
|
13
|
+
* @param config
|
|
14
|
+
* @returns boolean
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
17
|
const init = function (identity, storePath, bloxAddr, exchange) {
|
|
@@ -22,11 +23,11 @@ const init = function (identity, storePath, bloxAddr, exchange) {
|
|
|
22
23
|
return _fulaNativeModule.default.initFula(identity, storePath, bloxAddr, exchange, autoFlush, rootCid, useRelay, refresh);
|
|
23
24
|
};
|
|
24
25
|
|
|
25
|
-
/**
|
|
26
|
-
* Get gets the value corresponding to the given key from the local datastore.
|
|
27
|
-
// The key must be a valid ipld.Link.
|
|
28
|
-
* @param config
|
|
29
|
-
* @returns boolean
|
|
26
|
+
/**
|
|
27
|
+
* Get gets the value corresponding to the given key from the local datastore.
|
|
28
|
+
// The key must be a valid ipld.Link.
|
|
29
|
+
* @param config
|
|
30
|
+
* @returns boolean
|
|
30
31
|
*/
|
|
31
32
|
exports.init = init;
|
|
32
33
|
const newClient = function (identity, storePath, bloxAddr, exchange) {
|
|
@@ -37,18 +38,18 @@ const newClient = function (identity, storePath, bloxAddr, exchange) {
|
|
|
37
38
|
return _fulaNativeModule.default.newClient(identity, storePath, bloxAddr, exchange, autoFlush, useRelay, refresh);
|
|
38
39
|
};
|
|
39
40
|
|
|
40
|
-
/**
|
|
41
|
-
* rm removes all data
|
|
42
|
-
* @param path
|
|
43
|
-
* @returns string: new cid of the root
|
|
41
|
+
/**
|
|
42
|
+
* rm removes all data
|
|
43
|
+
* @param path
|
|
44
|
+
* @returns string: new cid of the root
|
|
44
45
|
*/
|
|
45
46
|
exports.newClient = newClient;
|
|
46
47
|
const logout = (identity, storePath) => {
|
|
47
48
|
return _fulaNativeModule.default.logout(identity, storePath);
|
|
48
49
|
};
|
|
49
50
|
|
|
50
|
-
/**
|
|
51
|
-
* Checks if there are any un-synced changes on the device
|
|
51
|
+
/**
|
|
52
|
+
* Checks if there are any un-synced changes on the device
|
|
52
53
|
*/
|
|
53
54
|
exports.logout = logout;
|
|
54
55
|
const checkFailedActions = function () {
|
|
@@ -57,8 +58,8 @@ const checkFailedActions = function () {
|
|
|
57
58
|
return _fulaNativeModule.default.checkFailedActions(retry, timeout);
|
|
58
59
|
};
|
|
59
60
|
|
|
60
|
-
/**
|
|
61
|
-
* Lists the cids that failed to be sent to backend and are kept only locally
|
|
61
|
+
/**
|
|
62
|
+
* Lists the cids that failed to be sent to backend and are kept only locally
|
|
62
63
|
*/
|
|
63
64
|
exports.checkFailedActions = checkFailedActions;
|
|
64
65
|
const listFailedActions = function () {
|
|
@@ -66,43 +67,60 @@ const listFailedActions = function () {
|
|
|
66
67
|
return _fulaNativeModule.default.listFailedActions(cids);
|
|
67
68
|
};
|
|
68
69
|
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
70
|
+
/**
|
|
71
|
+
* Lists the cids that are recent
|
|
71
72
|
*/
|
|
72
73
|
exports.listFailedActions = listFailedActions;
|
|
74
|
+
const listRecentCidsAsString = () => {
|
|
75
|
+
return _fulaNativeModule.default.listRecentCidsAsString();
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Clears the cids that ar recent
|
|
80
|
+
*/
|
|
81
|
+
exports.listRecentCidsAsString = listRecentCidsAsString;
|
|
82
|
+
const clearCidsFromRecent = function () {
|
|
83
|
+
let cids = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
84
|
+
return _fulaNativeModule.default.clearCidsFromRecent(cids);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Checks if there are any un-synced changes on the device
|
|
89
|
+
*/
|
|
90
|
+
exports.clearCidsFromRecent = clearCidsFromRecent;
|
|
73
91
|
const checkConnection = function () {
|
|
74
92
|
let timeout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 20;
|
|
75
93
|
return _fulaNativeModule.default.checkConnection(timeout);
|
|
76
94
|
};
|
|
77
95
|
|
|
78
|
-
/**
|
|
79
|
-
* Get gets the value corresponding to the given key from the local datastore.
|
|
80
|
-
// The key must be a valid ipld.Link.
|
|
81
|
-
* @param key
|
|
82
|
-
* @returns value
|
|
96
|
+
/**
|
|
97
|
+
* Get gets the value corresponding to the given key from the local datastore.
|
|
98
|
+
// The key must be a valid ipld.Link.
|
|
99
|
+
* @param key
|
|
100
|
+
* @returns value
|
|
83
101
|
*/
|
|
84
102
|
exports.checkConnection = checkConnection;
|
|
85
103
|
const get = key => {
|
|
86
104
|
return _fulaNativeModule.default.get(key);
|
|
87
105
|
};
|
|
88
106
|
|
|
89
|
-
/**
|
|
90
|
-
* Has checks whether the value corresponding to the given key is present in the local datastore.
|
|
91
|
-
// The key must be a valid ipld.Link.
|
|
92
|
-
* @param key
|
|
93
|
-
* @returns boolean
|
|
107
|
+
/**
|
|
108
|
+
* Has checks whether the value corresponding to the given key is present in the local datastore.
|
|
109
|
+
// The key must be a valid ipld.Link.
|
|
110
|
+
* @param key
|
|
111
|
+
* @returns boolean
|
|
94
112
|
*/
|
|
95
113
|
exports.get = get;
|
|
96
114
|
const has = key => {
|
|
97
115
|
return _fulaNativeModule.default.has(key);
|
|
98
116
|
};
|
|
99
117
|
|
|
100
|
-
/**
|
|
101
|
-
* Push requests the given addr to download the root cid from this node.
|
|
102
|
-
// The addr must be a valid multiaddr that includes peer ID.
|
|
103
|
-
// this function.
|
|
104
|
-
* @param addr
|
|
105
|
-
* @returns null or error
|
|
118
|
+
/**
|
|
119
|
+
* Push requests the given addr to download the root cid from this node.
|
|
120
|
+
// The addr must be a valid multiaddr that includes peer ID.
|
|
121
|
+
// this function.
|
|
122
|
+
* @param addr
|
|
123
|
+
* @returns null or error
|
|
106
124
|
*/
|
|
107
125
|
exports.has = has;
|
|
108
126
|
const push = () => {
|
|
@@ -115,56 +133,56 @@ const testData = (identity, bloxAddr) => {
|
|
|
115
133
|
return _fulaNativeModule.default.testData(identity, bloxAddr);
|
|
116
134
|
};
|
|
117
135
|
|
|
118
|
-
/**
|
|
119
|
-
* Put stores the given key value onto the local datastore.
|
|
120
|
-
// The key must be a valid ipld.Link and the value must be the valid encoded ipld.Node corresponding
|
|
121
|
-
// to the given key.
|
|
122
|
-
* @param key, value
|
|
123
|
-
* @returns null or string
|
|
136
|
+
/**
|
|
137
|
+
* Put stores the given key value onto the local datastore.
|
|
138
|
+
// The key must be a valid ipld.Link and the value must be the valid encoded ipld.Node corresponding
|
|
139
|
+
// to the given key.
|
|
140
|
+
* @param key, value
|
|
141
|
+
* @returns null or string
|
|
124
142
|
*/
|
|
125
143
|
exports.testData = testData;
|
|
126
144
|
const put = (value, codec) => {
|
|
127
145
|
return _fulaNativeModule.default.put(value, codec);
|
|
128
146
|
};
|
|
129
147
|
|
|
130
|
-
/**
|
|
131
|
-
* mkdir creates a directory at the given path.
|
|
132
|
-
* @param path
|
|
133
|
-
* @returns string: new cid of the root
|
|
148
|
+
/**
|
|
149
|
+
* mkdir creates a directory at the given path.
|
|
150
|
+
* @param path
|
|
151
|
+
* @returns string: new cid of the root
|
|
134
152
|
*/
|
|
135
153
|
exports.put = put;
|
|
136
154
|
const mkdir = path => {
|
|
137
155
|
return _fulaNativeModule.default.mkdir(path);
|
|
138
156
|
};
|
|
139
157
|
|
|
140
|
-
/**
|
|
141
|
-
* writeFileContent writes content at a given path
|
|
142
|
-
* @param path
|
|
143
|
-
* @returns string: new cid of the root
|
|
158
|
+
/**
|
|
159
|
+
* writeFileContent writes content at a given path
|
|
160
|
+
* @param path
|
|
161
|
+
* @returns string: new cid of the root
|
|
144
162
|
*/
|
|
145
163
|
exports.mkdir = mkdir;
|
|
146
164
|
const writeFileContent = (path, content) => {
|
|
147
165
|
return _fulaNativeModule.default.writeFileContent(path, content);
|
|
148
166
|
};
|
|
149
167
|
|
|
150
|
-
/*
|
|
151
|
-
// reads content of the file form localFilename (should include full absolute path to local file with read permission
|
|
152
|
-
// writes content to the specified location by fulaTargetFilename in Fula filesystem
|
|
153
|
-
// It keeps the original file modiifcation date
|
|
154
|
-
// fulaTargetFilename: a string including full path and filename of target file on Fula (e.g. root/pictures/cat.jpg)
|
|
155
|
-
// localFilename: a string containing full path and filename of local file on hte device (e.g /usr/bin/cat.jpg)
|
|
156
|
-
// Returns: new cid of the root after this file is placed in the tree
|
|
168
|
+
/*
|
|
169
|
+
// reads content of the file form localFilename (should include full absolute path to local file with read permission
|
|
170
|
+
// writes content to the specified location by fulaTargetFilename in Fula filesystem
|
|
171
|
+
// It keeps the original file modiifcation date
|
|
172
|
+
// fulaTargetFilename: a string including full path and filename of target file on Fula (e.g. root/pictures/cat.jpg)
|
|
173
|
+
// localFilename: a string containing full path and filename of local file on hte device (e.g /usr/bin/cat.jpg)
|
|
174
|
+
// Returns: new cid of the root after this file is placed in the tree
|
|
157
175
|
*/
|
|
158
176
|
exports.writeFileContent = writeFileContent;
|
|
159
177
|
const writeFile = (fulaTargetFilename, localFilename) => {
|
|
160
178
|
return _fulaNativeModule.default.writeFile(fulaTargetFilename, localFilename);
|
|
161
179
|
};
|
|
162
180
|
|
|
163
|
-
/**
|
|
164
|
-
* ls lists the name of files and folders at a given path
|
|
165
|
-
* @param path
|
|
166
|
-
* @returns string: list of items
|
|
167
|
-
* TODO: Findout how is the string and convert to array
|
|
181
|
+
/**
|
|
182
|
+
* ls lists the name of files and folders at a given path
|
|
183
|
+
* @param path
|
|
184
|
+
* @returns string: list of items
|
|
185
|
+
* TODO: Findout how is the string and convert to array
|
|
168
186
|
*/
|
|
169
187
|
exports.writeFile = writeFile;
|
|
170
188
|
const ls = path => {
|
|
@@ -196,89 +214,167 @@ const ls = path => {
|
|
|
196
214
|
});
|
|
197
215
|
};
|
|
198
216
|
|
|
199
|
-
/**
|
|
200
|
-
* rm removes all files and folders at a given path
|
|
201
|
-
* @param path
|
|
202
|
-
* @returns string: new cid of the root
|
|
217
|
+
/**
|
|
218
|
+
* rm removes all files and folders at a given path
|
|
219
|
+
* @param path
|
|
220
|
+
* @returns string: new cid of the root
|
|
203
221
|
*/
|
|
204
222
|
exports.ls = ls;
|
|
205
223
|
const rm = path => {
|
|
206
224
|
return _fulaNativeModule.default.rm(path);
|
|
207
225
|
};
|
|
208
226
|
|
|
209
|
-
/**
|
|
210
|
-
* cp copies the file or folder at the sourcePath to targetPath. targetPath is a folder that must exist already
|
|
211
|
-
* @param sourcePath, targetPath
|
|
212
|
-
* @returns string: new cid of the root
|
|
227
|
+
/**
|
|
228
|
+
* cp copies the file or folder at the sourcePath to targetPath. targetPath is a folder that must exist already
|
|
229
|
+
* @param sourcePath, targetPath
|
|
230
|
+
* @returns string: new cid of the root
|
|
213
231
|
*/
|
|
214
232
|
exports.rm = rm;
|
|
215
233
|
const cp = (sourcePath, targetPath) => {
|
|
216
234
|
return _fulaNativeModule.default.cp(sourcePath, targetPath);
|
|
217
235
|
};
|
|
218
236
|
|
|
219
|
-
/**
|
|
220
|
-
* mv moves the file or folder at the sourcePath to targetPath. targetPath is a folder that must exist already
|
|
221
|
-
* @param sourcePath, targetPath
|
|
222
|
-
* @returns string: new cid of the root
|
|
237
|
+
/**
|
|
238
|
+
* mv moves the file or folder at the sourcePath to targetPath. targetPath is a folder that must exist already
|
|
239
|
+
* @param sourcePath, targetPath
|
|
240
|
+
* @returns string: new cid of the root
|
|
223
241
|
*/
|
|
224
242
|
exports.cp = cp;
|
|
225
243
|
const mv = (sourcePath, targetPath) => {
|
|
226
244
|
return _fulaNativeModule.default.mv(sourcePath, targetPath);
|
|
227
245
|
};
|
|
228
246
|
|
|
229
|
-
/*
|
|
230
|
-
// reads content of the file form localFilename (should include full absolute path to local file with read permission
|
|
231
|
-
// writes content to the specified location by fulaTargetFilename in Fula filesystem
|
|
232
|
-
// fulaTargetFilename: a string including full path and filename of target file on Fula (e.g. root/pictures/cat.jpg)
|
|
233
|
-
// localFilename: a string containing full path and filename of local file on hte device (e.g /usr/bin/cat.jpg)
|
|
234
|
-
// Returns: new cid of the root after this file is placed in the tree
|
|
247
|
+
/*
|
|
248
|
+
// reads content of the file form localFilename (should include full absolute path to local file with read permission
|
|
249
|
+
// writes content to the specified location by fulaTargetFilename in Fula filesystem
|
|
250
|
+
// fulaTargetFilename: a string including full path and filename of target file on Fula (e.g. root/pictures/cat.jpg)
|
|
251
|
+
// localFilename: a string containing full path and filename of local file on hte device (e.g /usr/bin/cat.jpg)
|
|
252
|
+
// Returns: new cid of the root after this file is placed in the tree
|
|
235
253
|
*/
|
|
236
254
|
exports.mv = mv;
|
|
237
255
|
const readFile = (fulaTargetFilename, localFilename) => {
|
|
238
256
|
return _fulaNativeModule.default.readFile(fulaTargetFilename, localFilename);
|
|
239
257
|
};
|
|
240
258
|
|
|
241
|
-
/**
|
|
242
|
-
* readFile reads content of a given path
|
|
243
|
-
* @param path
|
|
244
|
-
* @returns string: cotent
|
|
259
|
+
/**
|
|
260
|
+
* readFile reads content of a given path
|
|
261
|
+
* @param path
|
|
262
|
+
* @returns string: cotent
|
|
245
263
|
*/
|
|
246
264
|
exports.readFile = readFile;
|
|
247
265
|
const readFileContent = path => {
|
|
248
266
|
return _fulaNativeModule.default.readFileContent(path);
|
|
249
267
|
};
|
|
250
268
|
|
|
251
|
-
/**
|
|
252
|
-
* Shutdown closes all resources used by Client.
|
|
253
|
-
// After calling this function Client must be discarded.
|
|
254
|
-
* @param
|
|
255
|
-
* @returns
|
|
269
|
+
/**
|
|
270
|
+
* Shutdown closes all resources used by Client.
|
|
271
|
+
// After calling this function Client must be discarded.
|
|
272
|
+
* @param
|
|
273
|
+
* @returns
|
|
256
274
|
*/
|
|
257
275
|
exports.readFileContent = readFileContent;
|
|
258
276
|
const shutdown = () => {
|
|
259
277
|
return _fulaNativeModule.default.shutdown();
|
|
260
278
|
};
|
|
261
279
|
|
|
262
|
-
/**
|
|
263
|
-
* setAuth adds or removes a peer from the list of peers that are allowed to push to this node.
|
|
264
|
-
* This can only be called on a peer that is added as an owner of blox by --authorizer parameter
|
|
265
|
-
* @param peerId, allow
|
|
266
|
-
* @returns boolean: true if successful or false if not
|
|
280
|
+
/**
|
|
281
|
+
* setAuth adds or removes a peer from the list of peers that are allowed to push to this node.
|
|
282
|
+
* This can only be called on a peer that is added as an owner of blox by --authorizer parameter
|
|
283
|
+
* @param peerId, allow
|
|
284
|
+
* @returns boolean: true if successful or false if not
|
|
267
285
|
*/
|
|
268
286
|
exports.shutdown = shutdown;
|
|
269
287
|
const setAuth = (peerId, allow) => {
|
|
270
288
|
return _fulaNativeModule.default.setAuth(peerId, allow);
|
|
271
289
|
};
|
|
272
290
|
|
|
273
|
-
/**
|
|
274
|
-
* isReady checks if the connection is ready to be used.
|
|
275
|
-
* @param filesystemCheck: also check if the wnfs is ready
|
|
276
|
-
* @returns boolean: true if ready or false if not
|
|
291
|
+
/**
|
|
292
|
+
* isReady checks if the connection is ready to be used.
|
|
293
|
+
* @param filesystemCheck: also check if the wnfs is ready
|
|
294
|
+
* @returns boolean: true if ready or false if not
|
|
277
295
|
*/
|
|
278
296
|
exports.setAuth = setAuth;
|
|
279
297
|
const isReady = function () {
|
|
280
298
|
let filesystemCheck = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
281
299
|
return _fulaNativeModule.default.isReady(filesystemCheck);
|
|
282
300
|
};
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* replicate replicates data on the nework
|
|
304
|
+
*/
|
|
283
305
|
exports.isReady = isReady;
|
|
306
|
+
const replicateRecentCids = async function (api, seed, poolId) {
|
|
307
|
+
let replicationNo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 4;
|
|
308
|
+
let status = true;
|
|
309
|
+
let msg = '';
|
|
310
|
+
if (!api) {
|
|
311
|
+
api = await (0, _chainApi.init)();
|
|
312
|
+
}
|
|
313
|
+
if (api) {
|
|
314
|
+
console.log('uploading manifests');
|
|
315
|
+
try {
|
|
316
|
+
let account = await (0, _chainApi.getAccountIdFromSeed)(seed);
|
|
317
|
+
console.log('account: ' + account);
|
|
318
|
+
const accountBal = await (0, _chainApi.checkAccountBalance)(api, account);
|
|
319
|
+
console.log('account balance: ' + accountBal);
|
|
320
|
+
if (accountBal !== '0') {
|
|
321
|
+
const recentCids = await listRecentCidsAsString();
|
|
322
|
+
console.log(recentCids);
|
|
323
|
+
if (recentCids) {
|
|
324
|
+
console.log({
|
|
325
|
+
api,
|
|
326
|
+
seed,
|
|
327
|
+
recentCids,
|
|
328
|
+
poolId,
|
|
329
|
+
replicationNo
|
|
330
|
+
});
|
|
331
|
+
const res = await (0, _chainApi.batchUploadManifest)(api, seed, recentCids, poolId, replicationNo);
|
|
332
|
+
console.log('batchUploadManifest res received');
|
|
333
|
+
console.log(res);
|
|
334
|
+
if (res && res.hash) {
|
|
335
|
+
var _signedBlock$block;
|
|
336
|
+
const signedBlock = await api.rpc.chain.getBlock(res.hash);
|
|
337
|
+
if (signedBlock !== null && signedBlock !== void 0 && (_signedBlock$block = signedBlock.block) !== null && _signedBlock$block !== void 0 && (_signedBlock$block = _signedBlock$block.extrinsics) !== null && _signedBlock$block !== void 0 && _signedBlock$block.length) {
|
|
338
|
+
await clearCidsFromRecent(recentCids);
|
|
339
|
+
msg = res.hash;
|
|
340
|
+
} else {
|
|
341
|
+
status = false;
|
|
342
|
+
msg = 'block data is not found';
|
|
343
|
+
}
|
|
344
|
+
} else {
|
|
345
|
+
status = false;
|
|
346
|
+
msg = 'hash is not returned';
|
|
347
|
+
}
|
|
348
|
+
} else {
|
|
349
|
+
status = false;
|
|
350
|
+
msg = 'No recent Cids found';
|
|
351
|
+
}
|
|
352
|
+
} else {
|
|
353
|
+
status = false;
|
|
354
|
+
msg = 'Account balance is not enough or account does not exists';
|
|
355
|
+
}
|
|
356
|
+
} catch (e) {
|
|
357
|
+
console.log('res failed');
|
|
358
|
+
console.log(e);
|
|
359
|
+
let errorMessage = '';
|
|
360
|
+
if (e instanceof Error) {
|
|
361
|
+
// If it's an Error instance, use the message property
|
|
362
|
+
errorMessage = e.message;
|
|
363
|
+
} else {
|
|
364
|
+
// If it's not an Error instance, convert it to string
|
|
365
|
+
errorMessage = e.toString();
|
|
366
|
+
}
|
|
367
|
+
status = false;
|
|
368
|
+
msg = errorMessage;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
// Return a value (true/false) depending on the outcome of the function
|
|
373
|
+
// For example:
|
|
374
|
+
return {
|
|
375
|
+
status: status,
|
|
376
|
+
msg: msg
|
|
377
|
+
}; // or false, depending on your logic
|
|
378
|
+
};
|
|
379
|
+
exports.replicateRecentCids = replicateRecentCids;
|
|
284
380
|
//# sourceMappingURL=fula.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_fulaNativeModule","_interopRequireDefault","require","obj","__esModule","default","init","identity","storePath","bloxAddr","exchange","autoFlush","arguments","length","undefined","rootCid","useRelay","refresh","console","log","Fula","initFula","exports","newClient","logout","checkFailedActions","retry","timeout","listFailedActions","cids","checkConnection","get","key","has","push","testData","put","value","codec","mkdir","path","writeFileContent","content","writeFile","fulaTargetFilename","localFilename","ls","then","res","lsResult","lsRows","split","element","rowItems","item","name","created","modified","jsonRes","JSON","parse","stringify","catch","e","rm","cp","sourcePath","targetPath","mv","readFile","readFileContent","shutdown","setAuth","peerId","allow","isReady","filesystemCheck"],"sourceRoot":"../../../src","sources":["protocols/fula.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;AAElD;AACA;AACA;AACA;AACA;AACA;;AAEO,MAAMG,IAAI,GAAG,SAAAA,CAClBC,QAAgB,EAChBC,SAAiB,EACjBC,QAAgB,EAChBC,QAAgB,EAKiC;EAAA,IAJjDC,SAAkB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,KAAK;EAAA,IAC1BG,OAAsB,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,IAAI;EAAA,IAC7BI,QAAiB,GAAAJ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,IAAI;EAAA,IACxBK,OAAgB,GAAAL,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,KAAK;EAExBM,OAAO,CAACC,GAAG,CACT,8BAA8B,EAC9BZ,QAAQ,EACRC,SAAS,EACTC,QAAQ,EACRC,QAAQ,EACRC,SAAS,EACTK,QACF,CAAC;EACD,OAAOI,yBAAI,CAACC,QAAQ,CAClBd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AA,GAAAF,SAAA,MAAG,IAAI;EACrD,OAAOQ,yBAAI,CAACuD,OAAO,CAACC,eAAe,CAAC;AACtC,CAAC;AAACtD,OAAA,CAAAqD,OAAA,GAAAA,OAAA"}
|
|
1
|
+
{"version":3,"names":["_fulaNativeModule","_interopRequireDefault","require","_chainApi","obj","__esModule","default","init","identity","storePath","bloxAddr","exchange","autoFlush","arguments","length","undefined","rootCid","useRelay","refresh","console","log","Fula","initFula","exports","newClient","logout","checkFailedActions","retry","timeout","listFailedActions","cids","listRecentCidsAsString","clearCidsFromRecent","checkConnection","get","key","has","push","testData","put","value","codec","mkdir","path","writeFileContent","content","writeFile","fulaTargetFilename","localFilename","ls","then","res","lsResult","lsRows","split","element","rowItems","item","name","created","modified","jsonRes","JSON","parse","stringify","catch","e","rm","cp","sourcePath","targetPath","mv","readFile","readFileContent","shutdown","setAuth","peerId","allow","isReady","filesystemCheck","replicateRecentCids","api","seed","poolId","replicationNo","status","msg","chainApiInit","account","getAccountIdFromSeed","accountBal","checkAccountBalance","recentCids","batchUploadManifest","hash","_signedBlock$block","signedBlock","rpc","chain","getBlock","block","extrinsics","errorMessage","Error","message","toString"],"sourceRoot":"..\\..\\..\\src","sources":["protocols/fula.ts"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAKqB,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAGrB;AACA;AACA;AACA;AACA;AACA;;AAEO,MAAMG,IAAI,GAAG,SAAAA,CAClBC,QAAgB,EAChBC,SAAiB,EACjBC,QAAgB,EAChBC,QAAgB,EAKiC;EAAA,IAJjDC,SAAkB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,KAAK;EAAA,IAC1BG,OAAsB,GAAAH,SAAA,CAAA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CAAoBM,UAAU,cAAAN,kBAAA,eAA9BA,kBAAA,CAAgCjF,MAAM,EAAE;cAC1C,MAAMkB,mBAAmB,CAAC4D,UAAU,CAAC;cACrCN,GAAG,GAAGnC,GAAG,CAAC2C,IAAI;YAChB,CAAC,MAAM;cACLT,MAAM,GAAG,KAAK;cACdC,GAAG,GAAG,yBAAyB;YACjC;UACF,CAAC,MAAM;YACLD,MAAM,GAAG,KAAK;YACdC,GAAG,GAAG,sBAAsB;UAC9B;QACF,CAAC,MAAM;UACLD,MAAM,GAAG,KAAK;UACdC,GAAG,GAAG,sBAAsB;QAC9B;MACF,CAAC,MAAM;QACLD,MAAM,GAAG,KAAK;QACdC,GAAG,GAAG,0DAA0D;MAClE;IACF,CAAC,CAAC,OAAOpB,CAAM,EAAE;MACf/C,OAAO,CAACC,GAAG,CAAC,YAAY,CAAC;MACzBD,OAAO,CAACC,GAAG,CAAC8C,CAAC,CAAC;MACd,IAAIoC,YAAY,GAAG,EAAE;MAErB,IAAIpC,CAAC,YAAYqC,KAAK,EAAE;QACtB;QACAD,YAAY,GAAGpC,CAAC,CAACsC,OAAO;MAC1B,CAAC,MAAM;QACL;QACAF,YAAY,GAAGpC,CAAC,CAACuC,QAAQ,CAAC,CAAC;MAC7B;MACApB,MAAM,GAAG,KAAK;MACdC,GAAG,GAAGgB,YAAY;IACpB;EACF;;EAEA;EACA;EACA,OAAO;IAAEjB,MAAM,EAAEA,MAAM;IAAEC,GAAG,EAAEA;EAAI,CAAC,CAAC,CAAC;AACvC,CAAC;AAAC/D,OAAA,CAAAyD,mBAAA,GAAAA,mBAAA"}
|
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.wifiRemoveall = exports.reboot = void 0;
|
|
7
7
|
var _fulaNativeModule = _interopRequireDefault(require("../interfaces/fulaNativeModule"));
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
/**
|
|
10
|
-
* send a command to Blox hardware to remove all save wifis.
|
|
11
|
-
* @returns json{status:true if success, false if fails; msg: error message or success log}
|
|
9
|
+
/**
|
|
10
|
+
* send a command to Blox hardware to remove all save wifis.
|
|
11
|
+
* @returns json{status:true if success, false if fails; msg: error message or success log}
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
const wifiRemoveall = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_fulaNativeModule","_interopRequireDefault","require","obj","__esModule","default","wifiRemoveall","console","log","res","Fula","then","jsonRes","JSON","parse","e","catch","err","exports","reboot"],"sourceRoot":"
|
|
1
|
+
{"version":3,"names":["_fulaNativeModule","_interopRequireDefault","require","obj","__esModule","default","wifiRemoveall","console","log","res","Fula","then","jsonRes","JSON","parse","e","catch","err","exports","reboot"],"sourceRoot":"..\\..\\..\\src","sources":["protocols/fxblox.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;AACA;;AAEO,MAAMG,aAAa,GAAGA,CAAA,KAA4C;EACvEC,OAAO,CAACC,GAAG,CAAC,uCAAuC,CAAC;EACpD,IAAIC,GAAG,GAAGC,yBAAI,CAACJ,aAAa,CAAC,CAAC,CAC3BK,IAAI,CAAEF,GAAG,IAAK;IACb,IAAI;MACF,IAAIG,OAAoC,GAAGC,IAAI,CAACC,KAAK,CAACL,GAAG,CAAC;MAC1D,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;AAACS,OAAA,CAAAZ,aAAA,GAAAA,aAAA;AAEK,MAAMa,MAAM,GAAGA,CAAA,KAAqC;EACzDZ,OAAO,CAACC,GAAG,CAAC,gCAAgC,CAAC;EAC7C,IAAIC,GAAG,GAAGC,yBAAI,CAACS,MAAM,CAAC,CAAC,CACpBR,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;AAACS,OAAA,CAAAC,MAAA,GAAAA,MAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\src","sources":["types/blockchain.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\src","sources":["types/fxblox.ts"],"mappings":""}
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["fula","blockchain","chainApi","fxblox"],"sourceRoot":"
|
|
1
|
+
{"version":3,"names":["fula","blockchain","chainApi","fxblox"],"sourceRoot":"..\\..\\src","sources":["index.tsx"],"mappings":"AAAA,OAAO,KAAKA,IAAI,MAAM,kBAAkB;AACxC,OAAO,KAAKC,UAAU,MAAM,wBAAwB;AACpD,OAAO,KAAKC,QAAQ,MAAM,uBAAuB;AACjD,OAAO,KAAKC,MAAM,MAAM,oBAAoB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
// import type lookup before we augment - in some environments
|
|
5
|
+
// this is required to allow for ambient/previous definitions
|
|
6
|
+
import '@polkadot/api-base/types/errors';
|
|
7
|
+
|
|
8
|
+
// declare module
|
|
9
|
+
//# sourceMappingURL=augment-api-errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\src","sources":["interfaces/augment-api-errors.ts"],"mappings":"AAAA;AACA;;AAEA;AACA;AACA,OAAO,iCAAiC;;AA2btC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
// import type lookup before we augment - in some environments
|
|
5
|
+
// this is required to allow for ambient/previous definitions
|
|
6
|
+
import '@polkadot/rpc-core/types/jsonrpc';
|
|
7
|
+
|
|
8
|
+
// declare module
|
|
9
|
+
//# sourceMappingURL=augment-api-rpc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\src","sources":["interfaces/augment-api-rpc.ts"],"mappings":"AAAA;AACA;;AAEA;AACA;AACA,OAAO,kCAAkC;;AAmmBvC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
// import type lookup before we augment - in some environments
|
|
5
|
+
// this is required to allow for ambient/previous definitions
|
|
6
|
+
import '@polkadot/api-base/types/calls';
|
|
7
|
+
|
|
8
|
+
// declare module
|
|
9
|
+
//# sourceMappingURL=augment-api-runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\src","sources":["interfaces/augment-api-runtime.ts"],"mappings":"AAAA;AACA;;AAEA;AACA;AACA,OAAO,gCAAgC;;AA0NrC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
import './augment-api-consts.js';
|
|
5
|
+
import './augment-api-errors.js';
|
|
6
|
+
import './augment-api-events.js';
|
|
7
|
+
import './augment-api-query.js';
|
|
8
|
+
import './augment-api-tx.js';
|
|
9
|
+
import './augment-api-rpc.js';
|
|
10
|
+
import './augment-api-runtime.js';
|
|
11
|
+
//# sourceMappingURL=augment-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\src","sources":["interfaces/augment-api.ts"],"mappings":"AAAA;AACA;;AAEA,OAAO,yBAAyB;AAChC,OAAO,yBAAyB;AAChC,OAAO,yBAAyB;AAChC,OAAO,wBAAwB;AAC/B,OAAO,qBAAqB;AAC5B,OAAO,sBAAsB;AAC7B,OAAO,0BAA0B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
// import type lookup before we augment - in some environments
|
|
5
|
+
// this is required to allow for ambient/previous definitions
|
|
6
|
+
import '@polkadot/types/types/registry';
|
|
7
|
+
|
|
8
|
+
// declare module
|
|
9
|
+
//# sourceMappingURL=augment-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\src","sources":["interfaces/augment-types.ts"],"mappings":"AAAA;AACA;;AAEA;AACA;AACA,OAAO,gCAAgC;;AAwsCrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","Fula","FulaModule","Proxy","get","Error"],"sourceRoot":"
|
|
1
|
+
{"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","Fula","FulaModule","Proxy","get","Error"],"sourceRoot":"..\\..\\..\\src","sources":["interfaces/fulaNativeModule.ts"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAgHtD,MAAMC,aAAa,GAChB,iFAAgF,GACjFD,QAAQ,CAACE,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,6CAA6C;AAE/C,MAAMC,IAAI,GAAGN,aAAa,CAACO,UAAU,GACjCP,aAAa,CAACO,UAAU,GACxB,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACR,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEL,eAAeI,IAAI"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\src","sources":["interfaces/index.ts"],"mappings":"AAAA;AACA;;AAEA"}
|