@functionland/react-native-fula 1.14.2 → 1.14.4
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 -21
- package/android/build.gradle +90 -50
- package/android/gradle.properties +5 -1
- package/android/src/main/AndroidManifest.xml +3 -4
- package/android/src/main/AndroidManifestNew.xml +2 -0
- 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 +1466 -1466
- 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 +36 -0
- package/ios/Fula-Bridging-Header.h +3 -0
- package/ios/Fula.mm +199 -0
- package/ios/Fula.swift +1152 -0
- package/ios/{FulaModule.xcodeproj → Fula.xcodeproj}/project.pbxproj +38 -16
- package/ios/Fula.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/Fula.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/Fula.xcodeproj/project.xcworkspace/xcuserdata/user246549.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Fula.xcodeproj/xcuserdata/user246549.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/ios/UserDataHelper.swift +143 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/interfaces/api-lookup.js +266 -266
- package/lib/commonjs/interfaces/api-lookup.js.map +1 -1
- package/lib/commonjs/interfaces/fulaNativeModule.js.map +1 -1
- package/lib/commonjs/protocols/blockchain.js +64 -64
- package/lib/commonjs/protocols/blockchain.js.map +1 -1
- package/lib/commonjs/protocols/chain-api.js +10 -0
- package/lib/commonjs/protocols/chain-api.js.map +1 -1
- package/lib/commonjs/protocols/fula.js +99 -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 +4 -8
- package/lib/module/index.js.map +1 -1
- package/lib/module/interfaces/api-lookup.js +266 -266
- package/lib/module/interfaces/api-lookup.js.map +1 -1
- package/lib/module/interfaces/fulaNativeModule.js.map +1 -1
- package/lib/module/protocols/blockchain.js +64 -64
- package/lib/module/protocols/blockchain.js.map +1 -1
- package/lib/module/protocols/chain-api.js +8 -0
- package/lib/module/protocols/chain-api.js.map +1 -1
- package/lib/module/protocols/fula.js +99 -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/index.d.ts +5 -4
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/interfaces/api-lookup.d.ts +1644 -1643
- package/lib/typescript/interfaces/api-lookup.d.ts.map +1 -0
- package/lib/typescript/interfaces/fulaNativeModule.d.ts +62 -61
- package/lib/typescript/interfaces/fulaNativeModule.d.ts.map +1 -0
- package/lib/typescript/protocols/blockchain.d.ts +18 -17
- package/lib/typescript/protocols/blockchain.d.ts.map +1 -0
- package/lib/typescript/protocols/chain-api.d.ts +7 -6
- package/lib/typescript/protocols/chain-api.d.ts.map +1 -0
- package/lib/typescript/protocols/fula.d.ts +132 -131
- package/lib/typescript/protocols/fula.d.ts.map +1 -0
- package/lib/typescript/protocols/fxblox.d.ts +8 -7
- package/lib/typescript/protocols/fxblox.d.ts.map +1 -0
- package/lib/typescript/types/blockchain.d.ts +69 -68
- package/lib/typescript/types/blockchain.d.ts.map +1 -0
- package/lib/typescript/types/fxblox.d.ts +9 -8
- package/lib/typescript/types/fxblox.d.ts.map +1 -0
- package/package.json +43 -28
- package/react-native-fula.podspec +47 -19
- package/src/index.tsx +4 -4
- package/src/interfaces/api-lookup.ts +1647 -1647
- package/src/interfaces/fulaNativeModule.ts +122 -122
- package/src/protocols/blockchain.ts +504 -504
- package/src/protocols/chain-api.ts +8 -0
- package/src/protocols/fula.ts +314 -314
- package/src/protocols/fxblox.ts +49 -49
- package/src/types/blockchain.ts +80 -80
- package/src/types/fxblox.ts +8 -8
- package/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
- package/android/.gradle/7.5.1/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.5.1/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.5.1/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.5.1/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.5.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.5.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.5.1/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.5.1/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/7.5.1/gc.properties +0 -0
- package/android/.gradle/7.6/checksums/checksums.lock +0 -0
- package/android/.gradle/7.6/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.6/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.6/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.6/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.6/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.6/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.6/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.6/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.6/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.6/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/7.6/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/file-system.probe +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/compiler.xml +0 -6
- package/android/.idea/gradle.xml +0 -20
- package/android/.idea/jarRepositories.xml +0 -50
- package/android/.idea/misc.xml +0 -10
- package/android/.idea/sonarlint/issuestore/2/a/2afbb999f001938c88fa43fc2ef52abf0f8213e4 +0 -0
- package/android/.idea/sonarlint/issuestore/2/e/2e09eb0f0df666781fdff057a0af6101364ebe2f +0 -0
- package/android/.idea/sonarlint/issuestore/6/2/62149c3f7c3a14d7a77778e558d274e8c00a5585 +0 -0
- package/android/.idea/sonarlint/issuestore/8/0/80a78d662b0659428eb880336106c3c5fc3f0714 +0 -0
- package/android/.idea/sonarlint/issuestore/d/2/d2865ef8fc01c40e9fd82977fde2c8378fad0b12 +0 -0
- package/android/.idea/sonarlint/issuestore/f/b/fbe448ebfc3eb2d4e308f6b8b043666f5b57235e +0 -0
- package/android/.idea/sonarlint/issuestore/index.pb +0 -13
- package/android/.idea/sonarlint/securityhotspotstore/2/a/2afbb999f001938c88fa43fc2ef52abf0f8213e4 +0 -0
- package/android/.idea/sonarlint/securityhotspotstore/2/e/2e09eb0f0df666781fdff057a0af6101364ebe2f +0 -0
- package/android/.idea/sonarlint/securityhotspotstore/6/2/62149c3f7c3a14d7a77778e558d274e8c00a5585 +0 -0
- package/android/.idea/sonarlint/securityhotspotstore/8/0/80a78d662b0659428eb880336106c3c5fc3f0714 +0 -0
- package/android/.idea/sonarlint/securityhotspotstore/d/2/d2865ef8fc01c40e9fd82977fde2c8378fad0b12 +0 -0
- package/android/.idea/sonarlint/securityhotspotstore/f/b/fbe448ebfc3eb2d4e308f6b8b043666f5b57235e +0 -0
- package/android/.idea/sonarlint/securityhotspotstore/index.pb +0 -13
- package/android/.idea/vcs.xml +0 -6
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +0 -7
- package/android/gradlew +0 -291
- package/android/gradlew.bat +0 -91
- package/android/local.properties +0 -8
- package/ios/FulaModule.h +0 -10
- package/ios/FulaModule.m +0 -149
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-lookup.d.ts","sourceRoot":"","sources":["../../../src/interfaces/api-lookup.ts"],"names":[],"mappings":";IAME;;QAEI;;;;;;;;IAQJ;;QAEI;;;;;;;IAOJ;;QAEI;;;;;;IAMJ;;QAEI;;;;IAIJ;;QAEI;;;;;;;;;;;;;;IAcJ;;QAEI;;;;;;IAMJ;;QAEI;;;;;;;;;;;;;;;;;;;;;;;;;;IA0BJ;;QAEI;;;;;;IAMJ;;QAEI;;;;IAIJ;;QAEI;;;;IAIJ;;QAEI;;;;;;;;;;;;;;;IAeJ;;QAEI;;;;;IAKJ;;QAEI;;;;IAIJ;;QAEI;;;;IAIJ;;QAEI;;;;IAIJ;;QAEI;;;;;;;;;;IAUJ;;QAEI;;IAEJ;;QAEI;;IAEJ;;QAEI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiDJ;;QAEI;;;;IAIJ;;QAEI;;;;;;;;;;IAUJ;;QAEI;;;;;;;;;;;;;;IAcJ;;QAEI;;;;;;;;;;;;;;;;;;;;;;;IAuBJ;;QAEI;;;;IAIJ;;QAEI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqCJ;;QAEI;;;;;;;IAOJ;;QAEI;;;;;;;;IAQJ;;QAEI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsEJ;;QAEI;;;;;;IAMJ;;QAEI;;;;;;;;;;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;;QAEI;;IAEJ;;QAEI;;IAEJ;;QAEI;;IAEJ;;QAEI;;IAEJ;;QAEI;;IAEJ;;QAEI;;IAEJ;;QAEI;;IAEJ;;QAEI;;;AAvmDN,wBAymDE"}
|
|
@@ -1,61 +1,62 @@
|
|
|
1
|
-
interface FulaNativeModule {
|
|
2
|
-
|
|
3
|
-
storePath: string, //You can leave empty
|
|
4
|
-
bloxAddr: string, //Blox multiadddr needs to be manually entered now
|
|
5
|
-
exchange: string, //set to 'noope' for testing
|
|
6
|
-
autoFlush: boolean, //set to false always unless you know what you are doing. This is to write actions to disk explicitly after each write
|
|
7
|
-
rootCid: string | null, //if you have the latest rootCid you can send it and it generates the private_ref for filesystem
|
|
8
|
-
useRelay: boolean | null, // if true it forces the use of relay
|
|
9
|
-
refresh: boolean) => Promise<{
|
|
10
|
-
peerId: string;
|
|
11
|
-
rootCid: string;
|
|
12
|
-
}>;
|
|
13
|
-
newClient: (identity: string, //Private key of did identity
|
|
14
|
-
storePath: string, //You can leave empty
|
|
15
|
-
bloxAddr: string, //Blox multiadddr needs to be manually entered now
|
|
16
|
-
exchange: string, //set to 'noope' for testing
|
|
17
|
-
autoFlush: boolean, //set to false always unless you know what you are doing. This is to write actions to disk explicitly after each write
|
|
18
|
-
useRelay: boolean | null, // if true it forces the use of relay
|
|
19
|
-
refresh: boolean) => Promise<string>;
|
|
20
|
-
isReady: (filesystemCheck: boolean) => Promise<boolean>;
|
|
21
|
-
logout: (identity: string, storePath: string) => Promise<boolean>;
|
|
22
|
-
checkFailedActions: (retry: boolean, timeout: number) => Promise<boolean>;
|
|
23
|
-
listFailedActions: (cids: string[]) => Promise<string[]>;
|
|
24
|
-
checkConnection: (timeout: number) => Promise<boolean>;
|
|
25
|
-
get: (key: string) => Promise<string>;
|
|
26
|
-
has: (key: Uint8Array) => Promise<boolean>;
|
|
27
|
-
push: () => Promise<string>;
|
|
28
|
-
put: (content: string, codec: string) => Promise<string>;
|
|
29
|
-
mkdir: (path: string) => Promise<string>;
|
|
30
|
-
writeFileContent: (path: string, content: string) => Promise<string>;
|
|
31
|
-
writeFile: (fulaTargetFilename: string, localFilename: string) => Promise<string>;
|
|
32
|
-
ls: (path: string) => Promise<string>;
|
|
33
|
-
rm: (path: string) => Promise<string>;
|
|
34
|
-
cp: (sourcePath: string, targetPath: string) => Promise<string>;
|
|
35
|
-
mv: (sourcePath: string, targetPath: string) => Promise<string>;
|
|
36
|
-
readFile: (fulaTargetFilename: string, localFilename: string) => Promise<string>;
|
|
37
|
-
readFileContent: (path: string) => Promise<string>;
|
|
38
|
-
setAuth: (peerId: string, allow: boolean) => Promise<boolean>;
|
|
39
|
-
shutdown: () => Promise<void>;
|
|
40
|
-
testData: (identity: string, bloxAddr: string) => Promise<string>;
|
|
41
|
-
createAccount: (seed: string) => Promise<string>;
|
|
42
|
-
checkAccountExists: (account: string) => Promise<string>;
|
|
43
|
-
createPool: (seed: string, poolName: string) => Promise<string>;
|
|
44
|
-
listPools: () => Promise<string>;
|
|
45
|
-
joinPool: (seed: string, poolID: number) => Promise<string>;
|
|
46
|
-
leavePool: (seed: string, poolID: number) => Promise<string>;
|
|
47
|
-
cancelPoolJoin: (seed: string, poolID: number) => Promise<string>;
|
|
48
|
-
listPoolJoinRequests: (poolID: number) => Promise<string>;
|
|
49
|
-
votePoolJoinRequest: (seed: string, poolID: number, account: string, accept: boolean) => Promise<string>;
|
|
50
|
-
newReplicationRequest: (seed: string, poolID: number, replicationFactor: number, cid: string) => Promise<string>;
|
|
51
|
-
newStoreRequest: (seed: string, poolID: number, uploader: string, cid: string) => Promise<string>;
|
|
52
|
-
listAvailableReplicationRequests: (poolID: number) => Promise<string>;
|
|
53
|
-
removeReplicationRequest: (seed: string, poolID: number, cid: string) => Promise<string>;
|
|
54
|
-
removeStorer: (seed: string, storer: string, poolID: number, cid: string) => Promise<string>;
|
|
55
|
-
removeStoredReplication: (seed: string, uploader: string, poolID: number, cid: string) => Promise<string>;
|
|
56
|
-
bloxFreeSpace: () => Promise<string>;
|
|
57
|
-
wifiRemoveall: () => Promise<string>;
|
|
58
|
-
reboot: () => Promise<string>;
|
|
59
|
-
}
|
|
60
|
-
declare const _default: FulaNativeModule;
|
|
61
|
-
export default _default;
|
|
1
|
+
interface FulaNativeModule {
|
|
2
|
+
initFula: (identity: string, //Private key of did identity
|
|
3
|
+
storePath: string, //You can leave empty
|
|
4
|
+
bloxAddr: string, //Blox multiadddr needs to be manually entered now
|
|
5
|
+
exchange: string, //set to 'noope' for testing
|
|
6
|
+
autoFlush: boolean, //set to false always unless you know what you are doing. This is to write actions to disk explicitly after each write
|
|
7
|
+
rootCid: string | null, //if you have the latest rootCid you can send it and it generates the private_ref for filesystem
|
|
8
|
+
useRelay: boolean | null, // if true it forces the use of relay
|
|
9
|
+
refresh: boolean) => Promise<{
|
|
10
|
+
peerId: string;
|
|
11
|
+
rootCid: string;
|
|
12
|
+
}>;
|
|
13
|
+
newClient: (identity: string, //Private key of did identity
|
|
14
|
+
storePath: string, //You can leave empty
|
|
15
|
+
bloxAddr: string, //Blox multiadddr needs to be manually entered now
|
|
16
|
+
exchange: string, //set to 'noope' for testing
|
|
17
|
+
autoFlush: boolean, //set to false always unless you know what you are doing. This is to write actions to disk explicitly after each write
|
|
18
|
+
useRelay: boolean | null, // if true it forces the use of relay
|
|
19
|
+
refresh: boolean) => Promise<string>;
|
|
20
|
+
isReady: (filesystemCheck: boolean) => Promise<boolean>;
|
|
21
|
+
logout: (identity: string, storePath: string) => Promise<boolean>;
|
|
22
|
+
checkFailedActions: (retry: boolean, timeout: number) => Promise<boolean>;
|
|
23
|
+
listFailedActions: (cids: string[]) => Promise<string[]>;
|
|
24
|
+
checkConnection: (timeout: number) => Promise<boolean>;
|
|
25
|
+
get: (key: string) => Promise<string>;
|
|
26
|
+
has: (key: Uint8Array) => Promise<boolean>;
|
|
27
|
+
push: () => Promise<string>;
|
|
28
|
+
put: (content: string, codec: string) => Promise<string>;
|
|
29
|
+
mkdir: (path: string) => Promise<string>;
|
|
30
|
+
writeFileContent: (path: string, content: string) => Promise<string>;
|
|
31
|
+
writeFile: (fulaTargetFilename: string, localFilename: string) => Promise<string>;
|
|
32
|
+
ls: (path: string) => Promise<string>;
|
|
33
|
+
rm: (path: string) => Promise<string>;
|
|
34
|
+
cp: (sourcePath: string, targetPath: string) => Promise<string>;
|
|
35
|
+
mv: (sourcePath: string, targetPath: string) => Promise<string>;
|
|
36
|
+
readFile: (fulaTargetFilename: string, localFilename: string) => Promise<string>;
|
|
37
|
+
readFileContent: (path: string) => Promise<string>;
|
|
38
|
+
setAuth: (peerId: string, allow: boolean) => Promise<boolean>;
|
|
39
|
+
shutdown: () => Promise<void>;
|
|
40
|
+
testData: (identity: string, bloxAddr: string) => Promise<string>;
|
|
41
|
+
createAccount: (seed: string) => Promise<string>;
|
|
42
|
+
checkAccountExists: (account: string) => Promise<string>;
|
|
43
|
+
createPool: (seed: string, poolName: string) => Promise<string>;
|
|
44
|
+
listPools: () => Promise<string>;
|
|
45
|
+
joinPool: (seed: string, poolID: number) => Promise<string>;
|
|
46
|
+
leavePool: (seed: string, poolID: number) => Promise<string>;
|
|
47
|
+
cancelPoolJoin: (seed: string, poolID: number) => Promise<string>;
|
|
48
|
+
listPoolJoinRequests: (poolID: number) => Promise<string>;
|
|
49
|
+
votePoolJoinRequest: (seed: string, poolID: number, account: string, accept: boolean) => Promise<string>;
|
|
50
|
+
newReplicationRequest: (seed: string, poolID: number, replicationFactor: number, cid: string) => Promise<string>;
|
|
51
|
+
newStoreRequest: (seed: string, poolID: number, uploader: string, cid: string) => Promise<string>;
|
|
52
|
+
listAvailableReplicationRequests: (poolID: number) => Promise<string>;
|
|
53
|
+
removeReplicationRequest: (seed: string, poolID: number, cid: string) => Promise<string>;
|
|
54
|
+
removeStorer: (seed: string, storer: string, poolID: number, cid: string) => Promise<string>;
|
|
55
|
+
removeStoredReplication: (seed: string, uploader: string, poolID: number, cid: string) => Promise<string>;
|
|
56
|
+
bloxFreeSpace: () => Promise<string>;
|
|
57
|
+
wifiRemoveall: () => Promise<string>;
|
|
58
|
+
reboot: () => Promise<string>;
|
|
59
|
+
}
|
|
60
|
+
declare const _default: FulaNativeModule;
|
|
61
|
+
export default _default;
|
|
62
|
+
//# sourceMappingURL=fulaNativeModule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fulaNativeModule.d.ts","sourceRoot":"","sources":["../../../src/interfaces/fulaNativeModule.ts"],"names":[],"mappings":"AAEA,UAAU,gBAAgB;IACxB,QAAQ,EAAE,CACR,QAAQ,EAAE,MAAM,EAAE,6BAA6B;IAC/C,SAAS,EAAE,MAAM,EAAE,qBAAqB;IACxC,QAAQ,EAAE,MAAM,EAAE,kDAAkD;IACpE,QAAQ,EAAE,MAAM,EAAE,4BAA4B;IAC9C,SAAS,EAAE,OAAO,EAAE,sHAAsH;IAC1I,OAAO,EAAE,MAAM,GAAG,IAAI,EAAE,gGAAgG;IACxH,QAAQ,EAAE,OAAO,GAAG,IAAI,EAAE,qCAAqC;IAC/D,OAAO,EAAE,OAAO,KACb,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClD,SAAS,EAAE,CACT,QAAQ,EAAE,MAAM,EAAE,6BAA6B;IAC/C,SAAS,EAAE,MAAM,EAAE,qBAAqB;IACxC,QAAQ,EAAE,MAAM,EAAE,kDAAkD;IACpE,QAAQ,EAAE,MAAM,EAAE,4BAA4B;IAC9C,SAAS,EAAE,OAAO,EAAE,sHAAsH;IAC1I,QAAQ,EAAE,OAAO,GAAG,IAAI,EAAE,qCAAqC;IAC/D,OAAO,EAAE,OAAO,KACb,OAAO,CAAC,MAAM,CAAC,CAAC;IACrB,OAAO,EAAE,CAAC,eAAe,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACxD,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,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AAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,OAAO,KACZ,OAAO,CAAC,MAAM,CAAC,CAAC;IACrB,qBAAqB,EAAE,CACrB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,MAAM,EACzB,GAAG,EAAE,MAAM,KACR,OAAO,CAAC,MAAM,CAAC,CAAC;IACrB,eAAe,EAAE,CACf,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,MAAM,KACR,OAAO,CAAC,MAAM,CAAC,CAAC;IACrB,gCAAgC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACtE,wBAAwB,EAAE,CACxB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,KACR,OAAO,CAAC,MAAM,CAAC,CAAC;IACrB,YAAY,EAAE,CACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,KACR,OAAO,CAAC,MAAM,CAAC,CAAC;IACrB,uBAAuB,EAAE,CACvB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,KACR,OAAO,CAAC,MAAM,CAAC,CAAC;IAGrB,aAAa,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IACrC,aAAa,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IACrC,MAAM,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;CAC/B;;AAmBD,wBAAwC"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import type * as BType from '../types/blockchain';
|
|
2
|
-
export declare const createAccount: (seed: string) => Promise<BType.SeededResponse>;
|
|
3
|
-
export declare const checkAccountExists: (account: string) => Promise<BType.AccountExistsResponse>;
|
|
4
|
-
export declare const createPool: (seed: string, poolName: string) => Promise<BType.PoolCreateResponse>;
|
|
5
|
-
export declare const listPools: () => Promise<BType.PoolListResponse>;
|
|
6
|
-
export declare const joinPool: (seed: string, poolID: number) => Promise<BType.PoolJoinResponse>;
|
|
7
|
-
export declare const leavePool: (seed: string, poolID: number) => Promise<BType.PoolLeaveResponse>;
|
|
8
|
-
export declare const cancelPoolJoin: (seed: string, poolID: number) => Promise<BType.PoolCancelJoinResponse>;
|
|
9
|
-
export declare const listPoolJoinRequests: (poolID: number) => Promise<BType.PoolRequestsResponse>;
|
|
10
|
-
export declare const votePoolJoinRequest: (seed: string, poolID: number, account: string, accept: boolean) => Promise<BType.PoolVoteResponse>;
|
|
11
|
-
export declare const newReplicationRequest: (seed: string, poolID: number, replicationFactor: number, cid: string) => Promise<BType.ManifestUploadResponse>;
|
|
12
|
-
export declare const newStoreRequest: (seed: string, poolID: number, uploader: string, cid: string) => Promise<BType.ManifestUploadResponse>;
|
|
13
|
-
export declare const listAvailableReplicationRequests: (poolID: number) => Promise<BType.ManifestUploadResponse[]>;
|
|
14
|
-
export declare const removeReplicationRequest: (seed: string, poolID: number, cid: string) => Promise<BType.ManifestUploadResponse>;
|
|
15
|
-
export declare const removeStorer: (seed: string, storer: string, poolID: number, cid: string) => Promise<BType.ManifestUploadResponse>;
|
|
16
|
-
export declare const removeStoredReplication: (seed: string, uploader: string, poolID: number, cid: string) => Promise<BType.ManifestUploadResponse>;
|
|
17
|
-
export declare const bloxFreeSpace: () => Promise<BType.BloxFreeSpaceResponse>;
|
|
1
|
+
import type * as BType from '../types/blockchain';
|
|
2
|
+
export declare const createAccount: (seed: string) => Promise<BType.SeededResponse>;
|
|
3
|
+
export declare const checkAccountExists: (account: string) => Promise<BType.AccountExistsResponse>;
|
|
4
|
+
export declare const createPool: (seed: string, poolName: string) => Promise<BType.PoolCreateResponse>;
|
|
5
|
+
export declare const listPools: () => Promise<BType.PoolListResponse>;
|
|
6
|
+
export declare const joinPool: (seed: string, poolID: number) => Promise<BType.PoolJoinResponse>;
|
|
7
|
+
export declare const leavePool: (seed: string, poolID: number) => Promise<BType.PoolLeaveResponse>;
|
|
8
|
+
export declare const cancelPoolJoin: (seed: string, poolID: number) => Promise<BType.PoolCancelJoinResponse>;
|
|
9
|
+
export declare const listPoolJoinRequests: (poolID: number) => Promise<BType.PoolRequestsResponse>;
|
|
10
|
+
export declare const votePoolJoinRequest: (seed: string, poolID: number, account: string, accept: boolean) => Promise<BType.PoolVoteResponse>;
|
|
11
|
+
export declare const newReplicationRequest: (seed: string, poolID: number, replicationFactor: number, cid: string) => Promise<BType.ManifestUploadResponse>;
|
|
12
|
+
export declare const newStoreRequest: (seed: string, poolID: number, uploader: string, cid: string) => Promise<BType.ManifestUploadResponse>;
|
|
13
|
+
export declare const listAvailableReplicationRequests: (poolID: number) => Promise<BType.ManifestUploadResponse[]>;
|
|
14
|
+
export declare const removeReplicationRequest: (seed: string, poolID: number, cid: string) => Promise<BType.ManifestUploadResponse>;
|
|
15
|
+
export declare const removeStorer: (seed: string, storer: string, poolID: number, cid: string) => Promise<BType.ManifestUploadResponse>;
|
|
16
|
+
export declare const removeStoredReplication: (seed: string, uploader: string, poolID: number, cid: string) => Promise<BType.ManifestUploadResponse>;
|
|
17
|
+
export declare const bloxFreeSpace: () => Promise<BType.BloxFreeSpaceResponse>;
|
|
18
|
+
//# sourceMappingURL=blockchain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockchain.d.ts","sourceRoot":"","sources":["../../../src/protocols/blockchain.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,qBAAqB,CAAC;AAKlD,eAAO,MAAM,aAAa,SAClB,MAAM,KACX,QAAQ,MAAM,cAAc,CAmB9B,CAAC;AAKF,eAAO,MAAM,kBAAkB,YACpB,MAAM,KACd,QAAQ,MAAM,qBAAqB,CA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,MAAM,sBAAsB,CAyBtC,CAAC;AAKF,eAAO,MAAM,aAAa,QAAO,QAAQ,MAAM,qBAAqB,CAmBnE,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ApiPromise } from '@polkadot/api';
|
|
2
|
-
import type * as BType from '../types/blockchain';
|
|
3
|
-
export declare const init: (wsAddress?: string) => Promise<ApiPromise>;
|
|
4
|
-
export declare const disconnectApi: (api: ApiPromise) => Promise<void>;
|
|
5
|
-
export declare const listPools: (api: ApiPromise | undefined, start?: number, length?: number) => Promise<BType.PoolListResponse>;
|
|
6
|
-
export declare const checkJoinRequest: (api: ApiPromise | undefined, poolId: number, accountId: string) => Promise<BType.PoolRequest | null>;
|
|
1
|
+
import { ApiPromise } from '@polkadot/api';
|
|
2
|
+
import type * as BType from '../types/blockchain';
|
|
3
|
+
export declare const init: (wsAddress?: string) => Promise<ApiPromise>;
|
|
4
|
+
export declare const disconnectApi: (api: ApiPromise) => Promise<void>;
|
|
5
|
+
export declare const listPools: (api: ApiPromise | undefined, start?: number, length?: number) => Promise<BType.PoolListResponse>;
|
|
6
|
+
export declare const checkJoinRequest: (api: ApiPromise | undefined, poolId: number, accountId: string) => Promise<BType.PoolRequest | null>;
|
|
7
|
+
//# sourceMappingURL=chain-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain-api.d.ts","sourceRoot":"","sources":["../../../src/protocols/chain-api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAc,MAAM,eAAe,CAAC;AAEvD,OAAO,KAAK,KAAK,KAAK,MAAM,qBAAqB,CAAC;AAMlD,eAAO,MAAM,IAAI,eACJ,MAAM,KAChB,QAAQ,UAAU,CAOpB,CAAC;AAEF,eAAO,MAAM,aAAa,QAAe,UAAU,KAAG,QAAQ,IAAI,CAEjE,CAAC;AA2CF,eAAO,MAAM,SAAS,QACf,UAAU,GAAG,SAAS,UACpB,MAAM,WACL,MAAM,KACb,QAAQ,MAAM,gBAAgB,CAgChC,CAAC;AAKF,eAAO,MAAM,gBAAgB,QACtB,UAAU,GAAG,SAAS,UACnB,MAAM,aACH,MAAM,KAChB,QAAQ,MAAM,WAAW,GAAG,IAAI,CAuBlC,CAAC"}
|
|
@@ -1,131 +1,132 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get gets the value corresponding to the given key from the local datastore.
|
|
3
|
-
// The key must be a valid ipld.Link.
|
|
4
|
-
* @param config
|
|
5
|
-
* @returns boolean
|
|
6
|
-
*/
|
|
7
|
-
export declare const init: (identity: string, storePath: string, bloxAddr: string, exchange: string, autoFlush?: boolean, rootCid?: string | null, useRelay?: boolean, refresh?: boolean) => Promise<{
|
|
8
|
-
peerId: string;
|
|
9
|
-
rootCid: string;
|
|
10
|
-
}>;
|
|
11
|
-
/**
|
|
12
|
-
* Get gets the value corresponding to the given key from the local datastore.
|
|
13
|
-
// The key must be a valid ipld.Link.
|
|
14
|
-
* @param config
|
|
15
|
-
* @returns boolean
|
|
16
|
-
*/
|
|
17
|
-
export declare const newClient: (identity: string, storePath: string, bloxAddr: string, exchange: string, autoFlush?: boolean, useRelay?: boolean, refresh?: boolean) => Promise<string>;
|
|
18
|
-
/**
|
|
19
|
-
* rm removes all data
|
|
20
|
-
* @param path
|
|
21
|
-
* @returns string: new cid of the root
|
|
22
|
-
*/
|
|
23
|
-
export declare const logout: (identity: string, storePath: string) => Promise<boolean>;
|
|
24
|
-
/**
|
|
25
|
-
* Checks if there are any un-synced changes on the device
|
|
26
|
-
*/
|
|
27
|
-
export declare const checkFailedActions: (retry?: boolean, timeout?: number) => Promise<boolean>;
|
|
28
|
-
/**
|
|
29
|
-
* Lists the cids that failed to be sent to backend and are kept only locally
|
|
30
|
-
*/
|
|
31
|
-
export declare const listFailedActions: (cids?: string[]) => Promise<string[]>;
|
|
32
|
-
/**
|
|
33
|
-
* Checks if there are any un-synced changes on the device
|
|
34
|
-
*/
|
|
35
|
-
export declare const checkConnection: (timeout?: number) => Promise<boolean>;
|
|
36
|
-
/**
|
|
37
|
-
* Get gets the value corresponding to the given key from the local datastore.
|
|
38
|
-
// The key must be a valid ipld.Link.
|
|
39
|
-
* @param key
|
|
40
|
-
* @returns value
|
|
41
|
-
*/
|
|
42
|
-
export declare const get: (key: string) => Promise<string>;
|
|
43
|
-
/**
|
|
44
|
-
* Has checks whether the value corresponding to the given key is present in the local datastore.
|
|
45
|
-
// The key must be a valid ipld.Link.
|
|
46
|
-
* @param key
|
|
47
|
-
* @returns boolean
|
|
48
|
-
*/
|
|
49
|
-
export declare const has: (key: Uint8Array) => Promise<boolean>;
|
|
50
|
-
/**
|
|
51
|
-
* Push requests the given addr to download the root cid from this node.
|
|
52
|
-
// The addr must be a valid multiaddr that includes peer ID.
|
|
53
|
-
// this function.
|
|
54
|
-
* @param addr
|
|
55
|
-
* @returns null or error
|
|
56
|
-
*/
|
|
57
|
-
export declare const push: () => Promise<string>;
|
|
58
|
-
export declare const testData: (identity: string, bloxAddr: string) => Promise<string>;
|
|
59
|
-
/**
|
|
60
|
-
* Put stores the given key value onto the local datastore.
|
|
61
|
-
// The key must be a valid ipld.Link and the value must be the valid encoded ipld.Node corresponding
|
|
62
|
-
// to the given key.
|
|
63
|
-
* @param key, value
|
|
64
|
-
* @returns null or string
|
|
65
|
-
*/
|
|
66
|
-
export declare const put: (value: string, codec: string) => Promise<string>;
|
|
67
|
-
/**
|
|
68
|
-
* mkdir creates a directory at the given path.
|
|
69
|
-
* @param path
|
|
70
|
-
* @returns string: new cid of the root
|
|
71
|
-
*/
|
|
72
|
-
export declare const mkdir: (path: string) => Promise<string>;
|
|
73
|
-
/**
|
|
74
|
-
* writeFileContent writes content at a given path
|
|
75
|
-
* @param path
|
|
76
|
-
* @returns string: new cid of the root
|
|
77
|
-
*/
|
|
78
|
-
export declare const writeFileContent: (path: string, content: string) => Promise<string>;
|
|
79
|
-
export declare const writeFile: (fulaTargetFilename: string, localFilename: string) => Promise<string>;
|
|
80
|
-
/**
|
|
81
|
-
* ls lists the name of files and folders at a given path
|
|
82
|
-
* @param path
|
|
83
|
-
* @returns string: list of items
|
|
84
|
-
* TODO: Findout how is the string and convert to array
|
|
85
|
-
*/
|
|
86
|
-
export declare const ls: (path: string) => Promise<void | JSON>;
|
|
87
|
-
/**
|
|
88
|
-
* rm removes all files and folders at a given path
|
|
89
|
-
* @param path
|
|
90
|
-
* @returns string: new cid of the root
|
|
91
|
-
*/
|
|
92
|
-
export declare const rm: (path: string) => Promise<string>;
|
|
93
|
-
/**
|
|
94
|
-
* cp copies the file or folder at the sourcePath to targetPath. targetPath is a folder that must exist already
|
|
95
|
-
* @param sourcePath, targetPath
|
|
96
|
-
* @returns string: new cid of the root
|
|
97
|
-
*/
|
|
98
|
-
export declare const cp: (sourcePath: string, targetPath: string) => Promise<string>;
|
|
99
|
-
/**
|
|
100
|
-
* mv moves the file or folder at the sourcePath to targetPath. targetPath is a folder that must exist already
|
|
101
|
-
* @param sourcePath, targetPath
|
|
102
|
-
* @returns string: new cid of the root
|
|
103
|
-
*/
|
|
104
|
-
export declare const mv: (sourcePath: string, targetPath: string) => Promise<string>;
|
|
105
|
-
export declare const readFile: (fulaTargetFilename: string, localFilename: string) => Promise<string>;
|
|
106
|
-
/**
|
|
107
|
-
* readFile reads content of a given path
|
|
108
|
-
* @param path
|
|
109
|
-
* @returns string: cotent
|
|
110
|
-
*/
|
|
111
|
-
export declare const readFileContent: (path: string) => Promise<string>;
|
|
112
|
-
/**
|
|
113
|
-
* Shutdown closes all resources used by Client.
|
|
114
|
-
// After calling this function Client must be discarded.
|
|
115
|
-
* @param
|
|
116
|
-
* @returns
|
|
117
|
-
*/
|
|
118
|
-
export declare const shutdown: () => Promise<void>;
|
|
119
|
-
/**
|
|
120
|
-
* setAuth adds or removes a peer from the list of peers that are allowed to push to this node.
|
|
121
|
-
* This can only be called on a peer that is added as an owner of blox by --authorizer parameter
|
|
122
|
-
* @param peerId, allow
|
|
123
|
-
* @returns boolean: true if successful or false if not
|
|
124
|
-
*/
|
|
125
|
-
export declare const setAuth: (peerId: string, allow: boolean) => Promise<boolean>;
|
|
126
|
-
/**
|
|
127
|
-
* isReady checks if the connection is ready to be used.
|
|
128
|
-
* @param filesystemCheck: also check if the wnfs is ready
|
|
129
|
-
* @returns boolean: true if ready or false if not
|
|
130
|
-
*/
|
|
131
|
-
export declare const isReady: (filesystemCheck?: boolean) => Promise<boolean>;
|
|
1
|
+
/**
|
|
2
|
+
* Get gets the value corresponding to the given key from the local datastore.
|
|
3
|
+
// The key must be a valid ipld.Link.
|
|
4
|
+
* @param config
|
|
5
|
+
* @returns boolean
|
|
6
|
+
*/
|
|
7
|
+
export declare const init: (identity: string, storePath: string, bloxAddr: string, exchange: string, autoFlush?: boolean, rootCid?: string | null, useRelay?: boolean, refresh?: boolean) => Promise<{
|
|
8
|
+
peerId: string;
|
|
9
|
+
rootCid: string;
|
|
10
|
+
}>;
|
|
11
|
+
/**
|
|
12
|
+
* Get gets the value corresponding to the given key from the local datastore.
|
|
13
|
+
// The key must be a valid ipld.Link.
|
|
14
|
+
* @param config
|
|
15
|
+
* @returns boolean
|
|
16
|
+
*/
|
|
17
|
+
export declare const newClient: (identity: string, storePath: string, bloxAddr: string, exchange: string, autoFlush?: boolean, useRelay?: boolean, refresh?: boolean) => Promise<string>;
|
|
18
|
+
/**
|
|
19
|
+
* rm removes all data
|
|
20
|
+
* @param path
|
|
21
|
+
* @returns string: new cid of the root
|
|
22
|
+
*/
|
|
23
|
+
export declare const logout: (identity: string, storePath: string) => Promise<boolean>;
|
|
24
|
+
/**
|
|
25
|
+
* Checks if there are any un-synced changes on the device
|
|
26
|
+
*/
|
|
27
|
+
export declare const checkFailedActions: (retry?: boolean, timeout?: number) => Promise<boolean>;
|
|
28
|
+
/**
|
|
29
|
+
* Lists the cids that failed to be sent to backend and are kept only locally
|
|
30
|
+
*/
|
|
31
|
+
export declare const listFailedActions: (cids?: string[]) => Promise<string[]>;
|
|
32
|
+
/**
|
|
33
|
+
* Checks if there are any un-synced changes on the device
|
|
34
|
+
*/
|
|
35
|
+
export declare const checkConnection: (timeout?: number) => Promise<boolean>;
|
|
36
|
+
/**
|
|
37
|
+
* Get gets the value corresponding to the given key from the local datastore.
|
|
38
|
+
// The key must be a valid ipld.Link.
|
|
39
|
+
* @param key
|
|
40
|
+
* @returns value
|
|
41
|
+
*/
|
|
42
|
+
export declare const get: (key: string) => Promise<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Has checks whether the value corresponding to the given key is present in the local datastore.
|
|
45
|
+
// The key must be a valid ipld.Link.
|
|
46
|
+
* @param key
|
|
47
|
+
* @returns boolean
|
|
48
|
+
*/
|
|
49
|
+
export declare const has: (key: Uint8Array) => Promise<boolean>;
|
|
50
|
+
/**
|
|
51
|
+
* Push requests the given addr to download the root cid from this node.
|
|
52
|
+
// The addr must be a valid multiaddr that includes peer ID.
|
|
53
|
+
// this function.
|
|
54
|
+
* @param addr
|
|
55
|
+
* @returns null or error
|
|
56
|
+
*/
|
|
57
|
+
export declare const push: () => Promise<string>;
|
|
58
|
+
export declare const testData: (identity: string, bloxAddr: string) => Promise<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Put stores the given key value onto the local datastore.
|
|
61
|
+
// The key must be a valid ipld.Link and the value must be the valid encoded ipld.Node corresponding
|
|
62
|
+
// to the given key.
|
|
63
|
+
* @param key, value
|
|
64
|
+
* @returns null or string
|
|
65
|
+
*/
|
|
66
|
+
export declare const put: (value: string, codec: string) => Promise<string>;
|
|
67
|
+
/**
|
|
68
|
+
* mkdir creates a directory at the given path.
|
|
69
|
+
* @param path
|
|
70
|
+
* @returns string: new cid of the root
|
|
71
|
+
*/
|
|
72
|
+
export declare const mkdir: (path: string) => Promise<string>;
|
|
73
|
+
/**
|
|
74
|
+
* writeFileContent writes content at a given path
|
|
75
|
+
* @param path
|
|
76
|
+
* @returns string: new cid of the root
|
|
77
|
+
*/
|
|
78
|
+
export declare const writeFileContent: (path: string, content: string) => Promise<string>;
|
|
79
|
+
export declare const writeFile: (fulaTargetFilename: string, localFilename: string) => Promise<string>;
|
|
80
|
+
/**
|
|
81
|
+
* ls lists the name of files and folders at a given path
|
|
82
|
+
* @param path
|
|
83
|
+
* @returns string: list of items
|
|
84
|
+
* TODO: Findout how is the string and convert to array
|
|
85
|
+
*/
|
|
86
|
+
export declare const ls: (path: string) => Promise<void | JSON>;
|
|
87
|
+
/**
|
|
88
|
+
* rm removes all files and folders at a given path
|
|
89
|
+
* @param path
|
|
90
|
+
* @returns string: new cid of the root
|
|
91
|
+
*/
|
|
92
|
+
export declare const rm: (path: string) => Promise<string>;
|
|
93
|
+
/**
|
|
94
|
+
* cp copies the file or folder at the sourcePath to targetPath. targetPath is a folder that must exist already
|
|
95
|
+
* @param sourcePath, targetPath
|
|
96
|
+
* @returns string: new cid of the root
|
|
97
|
+
*/
|
|
98
|
+
export declare const cp: (sourcePath: string, targetPath: string) => Promise<string>;
|
|
99
|
+
/**
|
|
100
|
+
* mv moves the file or folder at the sourcePath to targetPath. targetPath is a folder that must exist already
|
|
101
|
+
* @param sourcePath, targetPath
|
|
102
|
+
* @returns string: new cid of the root
|
|
103
|
+
*/
|
|
104
|
+
export declare const mv: (sourcePath: string, targetPath: string) => Promise<string>;
|
|
105
|
+
export declare const readFile: (fulaTargetFilename: string, localFilename: string) => Promise<string>;
|
|
106
|
+
/**
|
|
107
|
+
* readFile reads content of a given path
|
|
108
|
+
* @param path
|
|
109
|
+
* @returns string: cotent
|
|
110
|
+
*/
|
|
111
|
+
export declare const readFileContent: (path: string) => Promise<string>;
|
|
112
|
+
/**
|
|
113
|
+
* Shutdown closes all resources used by Client.
|
|
114
|
+
// After calling this function Client must be discarded.
|
|
115
|
+
* @param
|
|
116
|
+
* @returns
|
|
117
|
+
*/
|
|
118
|
+
export declare const shutdown: () => Promise<void>;
|
|
119
|
+
/**
|
|
120
|
+
* setAuth adds or removes a peer from the list of peers that are allowed to push to this node.
|
|
121
|
+
* This can only be called on a peer that is added as an owner of blox by --authorizer parameter
|
|
122
|
+
* @param peerId, allow
|
|
123
|
+
* @returns boolean: true if successful or false if not
|
|
124
|
+
*/
|
|
125
|
+
export declare const setAuth: (peerId: string, allow: boolean) => Promise<boolean>;
|
|
126
|
+
/**
|
|
127
|
+
* isReady checks if the connection is ready to be used.
|
|
128
|
+
* @param filesystemCheck: also check if the wnfs is ready
|
|
129
|
+
* @returns boolean: true if ready or false if not
|
|
130
|
+
*/
|
|
131
|
+
export declare const isReady: (filesystemCheck?: boolean) => Promise<boolean>;
|
|
132
|
+
//# sourceMappingURL=fula.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fula.d.ts","sourceRoot":"","sources":["../../../src/protocols/fula.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,eAAO,MAAM,IAAI,aACL,MAAM,aACL,MAAM,YACP,MAAM,YACN,MAAM,cACL,OAAO,YACT,MAAM,GAAG,IAAI,aACZ,OAAO,YACR,OAAO;YACG,MAAM;aAAW,MAAM;EAoB3C,CAAC;AAEF;;;;;GAKG;AAEH,eAAO,MAAM,SAAS,aACV,MAAM,aACL,MAAM,YACP,MAAM,YACN,MAAM,cACL,OAAO,aACR,OAAO,YACR,OAAO,KACf,QAAQ,MAAM,CAoBhB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,MAAM,aACP,MAAM,aACL,MAAM,KAChB,QAAQ,OAAO,CAEjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,WACtB,OAAO,YACL,MAAM,KACd,QAAQ,OAAO,CAEjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,UAAU,MAAM,EAAE,KAAQ,QAAQ,MAAM,EAAE,CAEvE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,aAAa,MAAM,KAAQ,QAAQ,OAAO,CAErE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,GAAG,QAAS,MAAM,KAAG,QAAQ,MAAM,CAE/C,CAAC;AAE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AO,WAAY,MAAM,SAAS,OAAO,KAAG,QAAQ,OAAO,CAEvE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,OAAO,qBAAqB,OAAO,KAAU,QAAQ,OAAO,CAExE,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type * as BType from '../types/fxblox';
|
|
2
|
-
/**
|
|
3
|
-
* send a command to Blox hardware to remove all save wifis.
|
|
4
|
-
* @returns json{status:true if success, false if fails; msg: error message or success log}
|
|
5
|
-
*/
|
|
6
|
-
export declare const wifiRemoveall: () => Promise<BType.wifiRemoveallResponse>;
|
|
7
|
-
export declare const reboot: () => Promise<BType.rebootResponse>;
|
|
1
|
+
import type * as BType from '../types/fxblox';
|
|
2
|
+
/**
|
|
3
|
+
* send a command to Blox hardware to remove all save wifis.
|
|
4
|
+
* @returns json{status:true if success, false if fails; msg: error message or success log}
|
|
5
|
+
*/
|
|
6
|
+
export declare const wifiRemoveall: () => Promise<BType.wifiRemoveallResponse>;
|
|
7
|
+
export declare const reboot: () => Promise<BType.rebootResponse>;
|
|
8
|
+
//# sourceMappingURL=fxblox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fxblox.d.ts","sourceRoot":"","sources":["../../../src/protocols/fxblox.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,iBAAiB,CAAC;AAE9C;;;GAGG;AAEH,eAAO,MAAM,aAAa,QAAO,QAAQ,MAAM,qBAAqB,CAmBnE,CAAC;AAEF,eAAO,MAAM,MAAM,QAAO,QAAQ,MAAM,cAAc,CAmBrD,CAAC"}
|
|
@@ -1,68 +1,69 @@
|
|
|
1
|
-
export interface SeededResponse {
|
|
2
|
-
seed: string;
|
|
3
|
-
account: string;
|
|
4
|
-
}
|
|
5
|
-
export interface AccountExistsResponse {
|
|
6
|
-
account: string;
|
|
7
|
-
exists: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface PoolCreateResponse {
|
|
10
|
-
owner: string;
|
|
11
|
-
poolID: number;
|
|
12
|
-
}
|
|
13
|
-
export interface PoolJoinResponse {
|
|
14
|
-
account: string;
|
|
15
|
-
poolID: number;
|
|
16
|
-
}
|
|
17
|
-
export interface PoolCancelJoinResponse {
|
|
18
|
-
account: string;
|
|
19
|
-
poolID: number;
|
|
20
|
-
}
|
|
21
|
-
export interface PoolRequestsResponse {
|
|
22
|
-
poolRequests: PoolRequest[];
|
|
23
|
-
}
|
|
24
|
-
export interface PoolListResponse {
|
|
25
|
-
pools: Pool[];
|
|
26
|
-
}
|
|
27
|
-
export interface PoolVoteResponse {
|
|
28
|
-
account: string;
|
|
29
|
-
poolID: number;
|
|
30
|
-
}
|
|
31
|
-
export interface PoolLeaveResponse {
|
|
32
|
-
account: string;
|
|
33
|
-
poolID: number;
|
|
34
|
-
}
|
|
35
|
-
export interface ManifestUploadResponse {
|
|
36
|
-
uploader: string;
|
|
37
|
-
storage: string[];
|
|
38
|
-
manifestMetadata: ManifestMetadata;
|
|
39
|
-
poolID: number;
|
|
40
|
-
}
|
|
41
|
-
export interface PoolRequest {
|
|
42
|
-
poolID: number;
|
|
43
|
-
account: string;
|
|
44
|
-
voted: string[];
|
|
45
|
-
positiveVotes: number;
|
|
46
|
-
peerID: string;
|
|
47
|
-
}
|
|
48
|
-
export interface Pool {
|
|
49
|
-
poolID: number;
|
|
50
|
-
owner: string;
|
|
51
|
-
poolName: string;
|
|
52
|
-
parent: string;
|
|
53
|
-
participants: string[];
|
|
54
|
-
}
|
|
55
|
-
export interface ManifestMetadata {
|
|
56
|
-
job: ManifestJob;
|
|
57
|
-
}
|
|
58
|
-
export interface ManifestJob {
|
|
59
|
-
work: string;
|
|
60
|
-
engine: string;
|
|
61
|
-
uri: string;
|
|
62
|
-
}
|
|
63
|
-
export interface BloxFreeSpaceResponse {
|
|
64
|
-
size: number;
|
|
65
|
-
avail: number;
|
|
66
|
-
used: number;
|
|
67
|
-
used_percentage: number;
|
|
68
|
-
}
|
|
1
|
+
export interface SeededResponse {
|
|
2
|
+
seed: string;
|
|
3
|
+
account: string;
|
|
4
|
+
}
|
|
5
|
+
export interface AccountExistsResponse {
|
|
6
|
+
account: string;
|
|
7
|
+
exists: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface PoolCreateResponse {
|
|
10
|
+
owner: string;
|
|
11
|
+
poolID: number;
|
|
12
|
+
}
|
|
13
|
+
export interface PoolJoinResponse {
|
|
14
|
+
account: string;
|
|
15
|
+
poolID: number;
|
|
16
|
+
}
|
|
17
|
+
export interface PoolCancelJoinResponse {
|
|
18
|
+
account: string;
|
|
19
|
+
poolID: number;
|
|
20
|
+
}
|
|
21
|
+
export interface PoolRequestsResponse {
|
|
22
|
+
poolRequests: PoolRequest[];
|
|
23
|
+
}
|
|
24
|
+
export interface PoolListResponse {
|
|
25
|
+
pools: Pool[];
|
|
26
|
+
}
|
|
27
|
+
export interface PoolVoteResponse {
|
|
28
|
+
account: string;
|
|
29
|
+
poolID: number;
|
|
30
|
+
}
|
|
31
|
+
export interface PoolLeaveResponse {
|
|
32
|
+
account: string;
|
|
33
|
+
poolID: number;
|
|
34
|
+
}
|
|
35
|
+
export interface ManifestUploadResponse {
|
|
36
|
+
uploader: string;
|
|
37
|
+
storage: string[];
|
|
38
|
+
manifestMetadata: ManifestMetadata;
|
|
39
|
+
poolID: number;
|
|
40
|
+
}
|
|
41
|
+
export interface PoolRequest {
|
|
42
|
+
poolID: number;
|
|
43
|
+
account: string;
|
|
44
|
+
voted: string[];
|
|
45
|
+
positiveVotes: number;
|
|
46
|
+
peerID: string;
|
|
47
|
+
}
|
|
48
|
+
export interface Pool {
|
|
49
|
+
poolID: number;
|
|
50
|
+
owner: string;
|
|
51
|
+
poolName: string;
|
|
52
|
+
parent: string;
|
|
53
|
+
participants: string[];
|
|
54
|
+
}
|
|
55
|
+
export interface ManifestMetadata {
|
|
56
|
+
job: ManifestJob;
|
|
57
|
+
}
|
|
58
|
+
export interface ManifestJob {
|
|
59
|
+
work: string;
|
|
60
|
+
engine: string;
|
|
61
|
+
uri: string;
|
|
62
|
+
}
|
|
63
|
+
export interface BloxFreeSpaceResponse {
|
|
64
|
+
size: number;
|
|
65
|
+
avail: number;
|
|
66
|
+
used: number;
|
|
67
|
+
used_percentage: number;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=blockchain.d.ts.map
|