@midnight-ntwrk/wallet-sdk-address-format 3.1.0 → 3.1.2
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/index.d.ts +6 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { DustPublicKey, EncryptionSecretKey, UserAddress } from '@midnight-ntwrk/ledger-v8';
|
|
1
|
+
import { type DustPublicKey, EncryptionSecretKey, type UserAddress } from '@midnight-ntwrk/ledger-v8';
|
|
2
2
|
export declare const mainnet: unique symbol;
|
|
3
|
-
|
|
3
|
+
type NetworkId = string | typeof mainnet;
|
|
4
|
+
declare const NetworkId: {
|
|
5
|
+
toString: (networkId: NetworkId) => string;
|
|
6
|
+
};
|
|
4
7
|
export type FormatContext = {
|
|
5
8
|
networkId: NetworkId;
|
|
6
9
|
};
|
|
@@ -98,3 +101,4 @@ export declare class DustAddress {
|
|
|
98
101
|
equals(other: bigint): boolean;
|
|
99
102
|
equals(other: DustAddress): boolean;
|
|
100
103
|
}
|
|
104
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midnight-ntwrk/wallet-sdk-address-format",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@midnight-ntwrk/ledger-v8": "^8.0
|
|
27
|
+
"@midnight-ntwrk/ledger-v8": "^8.1.0",
|
|
28
28
|
"@scure/base": "^2.0.0",
|
|
29
29
|
"@subsquid/scale-codec": "^4.0.1"
|
|
30
30
|
},
|