@xandeum/web3.js 0.4.1 → 0.6.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/dist/bigbang.d.ts +2 -1
- package/dist/bigbang.js +7 -1
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/functions/armageddon.html +2 -2
- package/docs/html/functions/assignCoowner.html +8 -0
- package/docs/html/functions/bigbang.html +4 -3
- package/docs/html/functions/copyPath.html +2 -2
- package/docs/html/functions/createDirectory.html +2 -2
- package/docs/html/functions/createFile.html +2 -2
- package/docs/html/functions/exists.html +2 -2
- package/docs/html/functions/getMetadata.html +2 -2
- package/docs/html/functions/getXandeumResult.html +2 -2
- package/docs/html/functions/listDirectoryEntry.html +2 -2
- package/docs/html/functions/move.html +2 -2
- package/docs/html/functions/peek.html +2 -2
- package/docs/html/functions/poke.html +2 -2
- package/docs/html/functions/removeDirectory.html +2 -2
- package/docs/html/functions/removeFile.html +2 -2
- package/docs/html/functions/renamePath.html +2 -2
- package/docs/html/functions/subscribeResult.html +2 -2
- package/docs/html/functions/unsubscribeResult.html +2 -2
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/functions/armageddon.md +2 -2
- package/docs/markdown/functions/assignCoowner.md +46 -0
- package/docs/markdown/functions/bigbang.md +9 -3
- package/docs/markdown/functions/copyPath.md +2 -2
- package/docs/markdown/functions/createDirectory.md +2 -2
- package/docs/markdown/functions/createFile.md +2 -2
- package/docs/markdown/functions/exists.md +2 -2
- package/docs/markdown/functions/getMetadata.md +2 -2
- package/docs/markdown/functions/getXandeumResult.md +2 -2
- package/docs/markdown/functions/listDirectoryEntry.md +2 -2
- package/docs/markdown/functions/move.md +2 -2
- package/docs/markdown/functions/peek.md +2 -2
- package/docs/markdown/functions/poke.md +2 -2
- package/docs/markdown/functions/removeDirectory.md +2 -2
- package/docs/markdown/functions/removeFile.md +2 -2
- package/docs/markdown/functions/renamePath.md +2 -2
- package/docs/markdown/functions/subscribeResult.md +2 -2
- package/docs/markdown/functions/unsubscribeResult.md +2 -2
- package/docs/markdown/globals.md +3 -2
- package/package.json +1 -1
- package/src/assignCoowner.ts +42 -0
- package/src/bigbang.ts +3 -1
- package/src/index.ts +1 -0
- package/typedoc.json +1 -1
package/src/bigbang.ts
CHANGED
|
@@ -6,11 +6,13 @@ import { programId } from './const'
|
|
|
6
6
|
* Constructs a Solana transaction that triggers the "bigbang" instruction and create new file system.
|
|
7
7
|
*
|
|
8
8
|
* @param wallet - The public key of the wallet that will sign and authorize the transaction.
|
|
9
|
+
* @param replica_count - A stringified integer representing the number of replicas for the new file system.
|
|
9
10
|
* @returns A Promise that resolves to a Solana `Transaction` object containing the bigbang instruction.
|
|
10
11
|
*/
|
|
11
|
-
export async function bigbang (wallet: PublicKey): Promise<Transaction> {
|
|
12
|
+
export async function bigbang (replica_count:string,wallet: PublicKey): Promise<Transaction> {
|
|
12
13
|
const instructionData = Buffer.concat([
|
|
13
14
|
Buffer.from(Int8Array.from([0]).buffer),
|
|
15
|
+
Buffer.from(Uint8Array.of(...new BN(replica_count).toArray('le', 8)))
|
|
14
16
|
])
|
|
15
17
|
|
|
16
18
|
const instruction = new TransactionInstruction({
|
package/src/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from "./removeDirectory";
|
|
|
11
11
|
export * from "./copyPath";
|
|
12
12
|
export * from "./move";
|
|
13
13
|
export * from "./getXandeumResult";
|
|
14
|
+
export * from "./assignCoowner";
|
|
14
15
|
export {exists } from "./exists";
|
|
15
16
|
export {listDirectoryEntry} from "./listDirectoryEntery";
|
|
16
17
|
export {getMetadata} from "./getMetadata";
|
package/typedoc.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"excludeInternal": true,
|
|
16
16
|
"excludeNotDocumented": false,
|
|
17
17
|
"gitRemote": "origin",
|
|
18
|
-
"gitRevision": "
|
|
18
|
+
"gitRevision": "stuttgart",
|
|
19
19
|
"sourceLinkTemplate": "https://github.com/Xandeum/xandeum-web3.js/blob/{gitRevision}/{path}#L{line}",
|
|
20
20
|
"visibilityFilters": {
|
|
21
21
|
"protected": false,
|