dash-platform-sdk 1.4.0-dev.14 → 1.4.0-dev.15
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/package.json
CHANGED
|
@@ -11,7 +11,7 @@ describe('DataContract', () => {
|
|
|
11
11
|
ownerIdentifier = 'GARSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec';
|
|
12
12
|
identityNonce = BigInt(11);
|
|
13
13
|
config = {
|
|
14
|
-
$
|
|
14
|
+
$formatVersion: '1',
|
|
15
15
|
canBeDeleted: true,
|
|
16
16
|
readonly: true,
|
|
17
17
|
keepsHistory: false,
|
|
@@ -5,16 +5,16 @@ describe('PlatformAddress', () => {
|
|
|
5
5
|
sdk = new DashPlatformSDK({ network: 'testnet' });
|
|
6
6
|
});
|
|
7
7
|
test('getAddressInfo', async () => {
|
|
8
|
-
const info = await sdk.platformAddresses.getAddressInfo('
|
|
8
|
+
const info = await sdk.platformAddresses.getAddressInfo('tdash1kzg5azscav69z7m6dfzr9ner0a5vt7pn9ca4sz8d');
|
|
9
9
|
expect(info.balance).toBeDefined();
|
|
10
10
|
expect(info.nonce).toBeDefined();
|
|
11
11
|
expect(info.address).toBeDefined();
|
|
12
12
|
});
|
|
13
13
|
test('getAddressesInfos', async () => {
|
|
14
14
|
const addresses = [
|
|
15
|
-
'
|
|
16
|
-
'
|
|
17
|
-
'
|
|
15
|
+
'tdash1kzg5azscav69z7m6dfzr9ner0a5vt7pn9ca4sz8d',
|
|
16
|
+
'tdash1kqr3cxhgel75ru0yrhj5eq8j8jt92m5enqrfajxw',
|
|
17
|
+
'tdash1kq9plfyacx9q26dtaxgwuw9lt78nyu2mzc3xwcxv'
|
|
18
18
|
];
|
|
19
19
|
const info = await sdk.platformAddresses.getAddressesInfos(addresses);
|
|
20
20
|
expect(info).toHaveLength(addresses.length);
|
package/types.d.ts
CHANGED
|
@@ -125,7 +125,7 @@ export interface ContestedResourceVoteState {
|
|
|
125
125
|
finishedVoteInfo?: FinishedVoteInfo;
|
|
126
126
|
}
|
|
127
127
|
export interface DataContractConfig {
|
|
128
|
-
$
|
|
128
|
+
$formatVersion: string;
|
|
129
129
|
canBeDeleted: boolean;
|
|
130
130
|
readonly: boolean;
|
|
131
131
|
keepsHistory: boolean;
|