@midnight-ntwrk/wallet-sdk-utilities 1.0.0-beta.6 → 1.0.0-beta.7
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/BlobOps.d.ts +8 -0
- package/dist/BlobOps.js +8 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/testing/test-containers.js +3 -3
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browser-compatible utility for converting a Blob to Uint8Array.
|
|
3
|
+
* Uses arrayBuffer() instead of bytes() for broader browser support.
|
|
4
|
+
*
|
|
5
|
+
* @param blob The Blob to convert to bytes
|
|
6
|
+
* @returns A Promise that resolves to a Uint8Array containing the blob's bytes
|
|
7
|
+
*/
|
|
8
|
+
export declare const getBytes: (blob: Blob) => Promise<Uint8Array>;
|
package/dist/BlobOps.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browser-compatible utility for converting a Blob to Uint8Array.
|
|
3
|
+
* Uses arrayBuffer() instead of bytes() for broader browser support.
|
|
4
|
+
*
|
|
5
|
+
* @param blob The Blob to convert to bytes
|
|
6
|
+
* @returns A Promise that resolves to a Uint8Array containing the blob's bytes
|
|
7
|
+
*/
|
|
8
|
+
export const getBytes = (blob) => blob.arrayBuffer().then((ab) => new Uint8Array(ab));
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ const startContainer = (container) => {
|
|
|
6
6
|
return Effect.acquireRelease(Effect.promise(() => container.start()), (container) => Effect.promise(() => container.stop({ timeout: 5_000 })));
|
|
7
7
|
};
|
|
8
8
|
export const runNodeContainer = (adjustment = identity) => {
|
|
9
|
-
const container = new GenericContainer('ghcr.io/midnight-ntwrk/midnight-node:0.
|
|
9
|
+
const container = new GenericContainer('ghcr.io/midnight-ntwrk/midnight-node:0.18.0-rc.4')
|
|
10
10
|
.withEnvironment({
|
|
11
11
|
CFG_PRESET: 'dev',
|
|
12
12
|
SIDECHAIN_BLOCK_BENEFICIARY: '04bcf7ad3be7a5c790460be82a713af570f22e0f801f6659ab8e84a52be6969e',
|
|
@@ -16,7 +16,7 @@ export const runNodeContainer = (adjustment = identity) => {
|
|
|
16
16
|
return startContainer(adjustment(container));
|
|
17
17
|
};
|
|
18
18
|
export const runProofServerContainer = (adjustment = identity) => {
|
|
19
|
-
const container = new GenericContainer('ghcr.io/midnight-ntwrk/proof-server:6.1.0-alpha.
|
|
19
|
+
const container = new GenericContainer('ghcr.io/midnight-ntwrk/proof-server:6.1.0-alpha.5')
|
|
20
20
|
.withEnvironment({
|
|
21
21
|
RUST_BACKTRACE: 'full',
|
|
22
22
|
})
|
|
@@ -26,7 +26,7 @@ export const runProofServerContainer = (adjustment = identity) => {
|
|
|
26
26
|
return startContainer(adjustment(container));
|
|
27
27
|
};
|
|
28
28
|
export const runTxGenerator = (config, adjustment = identity) => {
|
|
29
|
-
const container = new GenericContainer('ghcr.io/midnight-ntwrk/midnight-node-toolkit:0.
|
|
29
|
+
const container = new GenericContainer('ghcr.io/midnight-ntwrk/midnight-node-toolkit:0.18.0-rc.4')
|
|
30
30
|
.withBindMounts([{ source: config.destPath, target: '/tmp', mode: 'rw' }])
|
|
31
31
|
.withCommand([
|
|
32
32
|
'generate-txs',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midnight-ntwrk/wallet-sdk-utilities",
|
|
3
3
|
"description": "Domain-agnostic utilities for the wallet SDK - common operations and types",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|