@dashevo/evo-sdk 2.1.3 → 2.2.0-dev.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.
@@ -1,111 +1,109 @@
1
+ import * as wasm from '../wasm.js';
1
2
  import type { EvoSDK } from '../sdk.js';
2
3
  export declare class TokensFacade {
3
4
  private sdk;
4
5
  constructor(sdk: EvoSDK);
5
- calculateId(contractId: string, tokenPosition: number): Promise<string>;
6
- priceByContract(contractId: string, tokenPosition: number): Promise<any>;
7
- totalSupply(tokenId: string): Promise<any>;
8
- totalSupplyWithProof(tokenId: string): Promise<any>;
9
- statuses(tokenIds: string[]): Promise<any>;
10
- statusesWithProof(tokenIds: string[]): Promise<any>;
11
- balances(identityIds: string[], tokenId: string): Promise<any>;
12
- balancesWithProof(identityIds: string[], tokenId: string): Promise<any>;
13
- identityBalances(identityId: string, tokenIds: string[]): Promise<any>;
14
- identityBalancesWithProof(identityId: string, tokenIds: string[]): Promise<any>;
15
- identityTokenInfos(identityId: string, tokenIds: string[], _opts?: {
16
- limit?: number;
17
- offset?: number;
18
- }): Promise<any>;
19
- identitiesTokenInfos(identityIds: string[], tokenId: string): Promise<any>;
20
- identityTokenInfosWithProof(identityId: string, tokenIds: string[]): Promise<any>;
21
- identitiesTokenInfosWithProof(identityIds: string[], tokenId: string): Promise<any>;
22
- directPurchasePrices(tokenIds: string[]): Promise<any>;
23
- directPurchasePricesWithProof(tokenIds: string[]): Promise<any>;
24
- contractInfo(contractId: string): Promise<any>;
25
- contractInfoWithProof(contractId: string): Promise<any>;
26
- perpetualDistributionLastClaim(identityId: string, tokenId: string): Promise<any>;
27
- perpetualDistributionLastClaimWithProof(identityId: string, tokenId: string): Promise<any>;
6
+ calculateId(contractId: wasm.IdentifierLike, tokenPosition: number): Promise<string>;
7
+ priceByContract(contractId: wasm.IdentifierLike, tokenPosition: number): Promise<wasm.TokenPriceInfo>;
8
+ totalSupply(tokenId: wasm.IdentifierLike): Promise<wasm.TokenTotalSupply | undefined>;
9
+ totalSupplyWithProof(tokenId: wasm.IdentifierLike): Promise<wasm.ProofMetadataResponseTyped<wasm.TokenTotalSupply | null>>;
10
+ statuses(tokenIds: wasm.IdentifierLike[]): Promise<Map<wasm.Identifier, wasm.TokenStatus>>;
11
+ statusesWithProof(tokenIds: wasm.IdentifierLike[]): Promise<wasm.ProofMetadataResponseTyped<Map<wasm.Identifier, wasm.TokenStatus>>>;
12
+ balances(identityIds: wasm.IdentifierLike[], tokenId: wasm.IdentifierLike): Promise<Map<wasm.Identifier, bigint>>;
13
+ balancesWithProof(identityIds: wasm.IdentifierLike[], tokenId: wasm.IdentifierLike): Promise<wasm.ProofMetadataResponseTyped<Map<wasm.Identifier, bigint>>>;
14
+ identityBalances(identityId: wasm.IdentifierLike, tokenIds: wasm.IdentifierLike[]): Promise<Map<wasm.Identifier, bigint>>;
15
+ identityBalancesWithProof(identityId: wasm.IdentifierLike, tokenIds: wasm.IdentifierLike[]): Promise<wasm.ProofMetadataResponseTyped<Map<wasm.Identifier, bigint>>>;
16
+ identityTokenInfos(identityId: wasm.IdentifierLike, tokenIds: wasm.IdentifierLike[]): Promise<Map<wasm.Identifier, wasm.IdentityTokenInfo>>;
17
+ identitiesTokenInfos(identityIds: wasm.IdentifierLike[], tokenId: wasm.IdentifierLike): Promise<Map<wasm.Identifier, wasm.IdentityTokenInfo>>;
18
+ identityTokenInfosWithProof(identityId: wasm.IdentifierLike, tokenIds: wasm.IdentifierLike[]): Promise<wasm.ProofMetadataResponseTyped<Map<wasm.Identifier, wasm.IdentityTokenInfo>>>;
19
+ identitiesTokenInfosWithProof(identityIds: wasm.IdentifierLike[], tokenId: wasm.IdentifierLike): Promise<wasm.ProofMetadataResponseTyped<Map<wasm.Identifier, wasm.IdentityTokenInfo>>>;
20
+ directPurchasePrices(tokenIds: wasm.IdentifierLike[]): Promise<Map<wasm.Identifier, wasm.TokenPriceInfo>>;
21
+ directPurchasePricesWithProof(tokenIds: wasm.IdentifierLike[]): Promise<wasm.ProofMetadataResponseTyped<Map<wasm.Identifier, wasm.TokenPriceInfo>>>;
22
+ contractInfo(contractId: wasm.IdentifierLike): Promise<wasm.TokenContractInfo | undefined>;
23
+ contractInfoWithProof(contractId: wasm.IdentifierLike): Promise<wasm.ProofMetadataResponseTyped<wasm.TokenContractInfo | undefined>>;
24
+ perpetualDistributionLastClaim(identityId: wasm.IdentifierLike, tokenId: wasm.IdentifierLike): Promise<wasm.TokenLastClaim | undefined>;
25
+ perpetualDistributionLastClaimWithProof(identityId: wasm.IdentifierLike, tokenId: wasm.IdentifierLike): Promise<wasm.ProofMetadataResponseTyped<wasm.TokenLastClaim | undefined>>;
28
26
  mint(args: {
29
- contractId: string;
27
+ contractId: wasm.IdentifierLike;
30
28
  tokenPosition: number;
31
29
  amount: number | string | bigint;
32
- identityId: string;
30
+ identityId: wasm.IdentifierLike;
33
31
  privateKeyWif: string;
34
- recipientId?: string;
32
+ recipientId?: wasm.IdentifierLike;
35
33
  publicNote?: string;
36
34
  }): Promise<any>;
37
35
  burn(args: {
38
- contractId: string;
36
+ contractId: wasm.IdentifierLike;
39
37
  tokenPosition: number;
40
38
  amount: number | string | bigint;
41
- identityId: string;
39
+ identityId: wasm.IdentifierLike;
42
40
  privateKeyWif: string;
43
41
  publicNote?: string;
44
42
  }): Promise<any>;
45
43
  transfer(args: {
46
- contractId: string;
44
+ contractId: wasm.IdentifierLike;
47
45
  tokenPosition: number;
48
46
  amount: number | string | bigint;
49
- senderId: string;
50
- recipientId: string;
47
+ senderId: wasm.IdentifierLike;
48
+ recipientId: wasm.IdentifierLike;
51
49
  privateKeyWif: string;
52
50
  publicNote?: string;
53
51
  }): Promise<any>;
54
52
  freeze(args: {
55
- contractId: string;
53
+ contractId: wasm.IdentifierLike;
56
54
  tokenPosition: number;
57
- identityToFreeze: string;
58
- freezerId: string;
55
+ identityToFreeze: wasm.IdentifierLike;
56
+ freezerId: wasm.IdentifierLike;
59
57
  privateKeyWif: string;
60
58
  publicNote?: string;
61
59
  }): Promise<any>;
62
60
  unfreeze(args: {
63
- contractId: string;
61
+ contractId: wasm.IdentifierLike;
64
62
  tokenPosition: number;
65
- identityToUnfreeze: string;
66
- unfreezerId: string;
63
+ identityToUnfreeze: wasm.IdentifierLike;
64
+ unfreezerId: wasm.IdentifierLike;
67
65
  privateKeyWif: string;
68
66
  publicNote?: string;
69
67
  }): Promise<any>;
70
68
  destroyFrozen(args: {
71
- contractId: string;
69
+ contractId: wasm.IdentifierLike;
72
70
  tokenPosition: number;
73
- identityId: string;
74
- destroyerId: string;
71
+ identityId: wasm.IdentifierLike;
72
+ destroyerId: wasm.IdentifierLike;
75
73
  privateKeyWif: string;
76
74
  publicNote?: string;
77
75
  }): Promise<any>;
78
76
  setPriceForDirectPurchase(args: {
79
- contractId: string;
77
+ contractId: wasm.IdentifierLike;
80
78
  tokenPosition: number;
81
- identityId: string;
79
+ identityId: wasm.IdentifierLike;
82
80
  priceType: string;
83
81
  priceData: unknown;
84
82
  privateKeyWif: string;
85
83
  publicNote?: string;
86
84
  }): Promise<any>;
87
85
  directPurchase(args: {
88
- contractId: string;
86
+ contractId: wasm.IdentifierLike;
89
87
  tokenPosition: number;
90
88
  amount: number | string | bigint;
91
- identityId: string;
89
+ identityId: wasm.IdentifierLike;
92
90
  totalAgreedPrice?: number | string | bigint | null;
93
91
  privateKeyWif: string;
94
92
  }): Promise<any>;
95
93
  claim(args: {
96
- contractId: string;
94
+ contractId: wasm.IdentifierLike;
97
95
  tokenPosition: number;
98
96
  distributionType: string;
99
- identityId: string;
97
+ identityId: wasm.IdentifierLike;
100
98
  privateKeyWif: string;
101
99
  publicNote?: string;
102
100
  }): Promise<any>;
103
101
  configUpdate(args: {
104
- contractId: string;
102
+ contractId: wasm.IdentifierLike;
105
103
  tokenPosition: number;
106
104
  configItemType: string;
107
105
  configValue: unknown;
108
- identityId: string;
106
+ identityId: wasm.IdentifierLike;
109
107
  privateKeyWif: string;
110
108
  publicNote?: string;
111
109
  }): Promise<any>;
@@ -45,7 +45,7 @@ export class TokensFacade {
45
45
  const w = await this.sdk.getWasmSdkConnected();
46
46
  return w.getIdentityTokenBalancesWithProofInfo(identityId, tokenIds);
47
47
  }
48
- async identityTokenInfos(identityId, tokenIds, _opts = {}) {
48
+ async identityTokenInfos(identityId, tokenIds) {
49
49
  const w = await this.sdk.getWasmSdkConnected();
50
50
  return w.getIdentityTokenInfos(identityId, tokenIds);
51
51
  }
@@ -89,7 +89,7 @@ export class TokensFacade {
89
89
  async mint(args) {
90
90
  const { contractId, tokenPosition, amount, identityId, privateKeyWif, recipientId, publicNote } = args;
91
91
  const w = await this.sdk.getWasmSdkConnected();
92
- return w.tokenMint(contractId, tokenPosition, String(amount), identityId, privateKeyWif, recipientId ?? null, publicNote ?? null);
92
+ return w.tokenMint(contractId, tokenPosition, String(amount), identityId, privateKeyWif, recipientId, publicNote ?? null);
93
93
  }
94
94
  async burn(args) {
95
95
  const { contractId, tokenPosition, amount, identityId, privateKeyWif, publicNote } = args;
@@ -1,55 +1,19 @@
1
+ import * as wasm from '../wasm.js';
1
2
  import type { EvoSDK } from '../sdk.js';
2
3
  export declare class VotingFacade {
3
4
  private sdk;
4
5
  constructor(sdk: EvoSDK);
5
- contestedResourceVoteState(params: {
6
- contractId: string;
7
- documentTypeName: string;
8
- indexName: string;
9
- indexValues: any[];
10
- resultType: string;
11
- allowIncludeLockedAndAbstainingVoteTally?: boolean;
12
- startAtIdentifierInfo?: string;
13
- count?: number;
14
- orderAscending?: boolean;
15
- }): Promise<any>;
16
- contestedResourceVoteStateWithProof(params: {
17
- contractId: string;
18
- documentTypeName: string;
19
- indexName: string;
20
- indexValues: any[];
21
- resultType: string;
22
- allowIncludeLockedAndAbstainingVoteTally?: boolean;
23
- startAtIdentifierInfo?: string;
24
- count?: number;
25
- orderAscending?: boolean;
26
- }): Promise<any>;
27
- contestedResourceIdentityVotes(identityId: string, opts?: {
28
- limit?: number;
29
- startAtVotePollIdInfo?: string;
30
- orderAscending?: boolean;
31
- }): Promise<any>;
32
- contestedResourceIdentityVotesWithProof(identityId: string, opts?: {
33
- limit?: number;
34
- offset?: number;
35
- orderAscending?: boolean;
36
- }): Promise<any>;
37
- votePollsByEndDate(opts?: {
38
- startTimeInfo?: string;
39
- endTimeInfo?: string;
40
- limit?: number;
41
- orderAscending?: boolean;
42
- }): Promise<any>;
43
- votePollsByEndDateWithProof(opts?: {
44
- startTimeMs?: number | bigint | null;
45
- endTimeMs?: number | bigint | null;
46
- limit?: number;
47
- offset?: number;
48
- orderAscending?: boolean;
49
- }): Promise<any>;
6
+ contestedResourceVoteState(query: wasm.ContestedResourceVoteStateQuery): Promise<wasm.ContestedResourceVoteState>;
7
+ contestedResourceVoteStateWithProof(query: wasm.ContestedResourceVoteStateQuery): Promise<wasm.ProofMetadataResponseTyped<wasm.ContestedResourceVoteState>>;
8
+ contestedResourceIdentityVotes(query: wasm.ContestedResourceIdentityVotesQuery): Promise<any[]>;
9
+ contestedResourceIdentityVotesWithProof(query: wasm.ContestedResourceIdentityVotesQuery): Promise<wasm.ProofMetadataResponseTyped<{
10
+ votes: Array<any>;
11
+ }>>;
12
+ votePollsByEndDate(query?: wasm.VotePollsByEndDateQuery): Promise<wasm.VotePollsByEndDateEntry[]>;
13
+ votePollsByEndDateWithProof(query?: wasm.VotePollsByEndDateQuery): Promise<wasm.ProofMetadataResponseTyped<wasm.VotePollsByEndDateEntry[]>>;
50
14
  masternodeVote(args: {
51
15
  masternodeProTxHash: string;
52
- contractId: string;
16
+ contractId: wasm.IdentifierLike;
53
17
  documentTypeName: string;
54
18
  indexName: string;
55
19
  indexValues: string | any[];
@@ -1,37 +1,29 @@
1
1
  import { asJsonString } from '../util.js';
2
2
  export class VotingFacade {
3
3
  constructor(sdk) { this.sdk = sdk; }
4
- async contestedResourceVoteState(params) {
5
- const { contractId, documentTypeName, indexName, indexValues, resultType, allowIncludeLockedAndAbstainingVoteTally, startAtIdentifierInfo, count, orderAscending } = params;
4
+ async contestedResourceVoteState(query) {
6
5
  const w = await this.sdk.getWasmSdkConnected();
7
- return w.getContestedResourceVoteState(contractId, documentTypeName, indexName, indexValues, resultType, allowIncludeLockedAndAbstainingVoteTally ?? null, startAtIdentifierInfo ?? null, count ?? null, orderAscending ?? null);
6
+ return w.getContestedResourceVoteState(query);
8
7
  }
9
- async contestedResourceVoteStateWithProof(params) {
10
- const { contractId, documentTypeName, indexName, indexValues, resultType, allowIncludeLockedAndAbstainingVoteTally, startAtIdentifierInfo, count, orderAscending } = params;
8
+ async contestedResourceVoteStateWithProof(query) {
11
9
  const w = await this.sdk.getWasmSdkConnected();
12
- return w.getContestedResourceVoteStateWithProofInfo(contractId, documentTypeName, indexName, indexValues, resultType, allowIncludeLockedAndAbstainingVoteTally ?? null, startAtIdentifierInfo ?? null, count ?? null, orderAscending ?? null);
10
+ return w.getContestedResourceVoteStateWithProofInfo(query);
13
11
  }
14
- async contestedResourceIdentityVotes(identityId, opts = {}) {
15
- const { limit, startAtVotePollIdInfo, orderAscending } = opts;
12
+ async contestedResourceIdentityVotes(query) {
16
13
  const w = await this.sdk.getWasmSdkConnected();
17
- return w.getContestedResourceIdentityVotes(identityId, limit ?? null, startAtVotePollIdInfo ?? null, orderAscending ?? null);
14
+ return w.getContestedResourceIdentityVotes(query);
18
15
  }
19
- async contestedResourceIdentityVotesWithProof(identityId, opts = {}) {
20
- const { limit, offset, orderAscending } = opts;
16
+ async contestedResourceIdentityVotesWithProof(query) {
21
17
  const w = await this.sdk.getWasmSdkConnected();
22
- return w.getContestedResourceIdentityVotesWithProofInfo(identityId, limit ?? null, offset ?? null, orderAscending ?? null);
18
+ return w.getContestedResourceIdentityVotesWithProofInfo(query);
23
19
  }
24
- async votePollsByEndDate(opts = {}) {
25
- const { startTimeInfo, endTimeInfo, limit, orderAscending } = opts;
20
+ async votePollsByEndDate(query) {
26
21
  const w = await this.sdk.getWasmSdkConnected();
27
- return w.getVotePollsByEndDate(startTimeInfo ?? null, endTimeInfo ?? null, limit ?? null, orderAscending ?? null);
22
+ return w.getVotePollsByEndDate(query ?? null);
28
23
  }
29
- async votePollsByEndDateWithProof(opts = {}) {
30
- const { startTimeMs, endTimeMs, limit, offset, orderAscending } = opts;
31
- const start = startTimeMs != null ? BigInt(startTimeMs) : null;
32
- const end = endTimeMs != null ? BigInt(endTimeMs) : null;
24
+ async votePollsByEndDateWithProof(query) {
33
25
  const w = await this.sdk.getWasmSdkConnected();
34
- return w.getVotePollsByEndDateWithProofInfo(start ?? null, end ?? null, limit ?? null, offset ?? null, orderAscending ?? null);
26
+ return w.getVotePollsByEndDateWithProofInfo(query ?? null);
35
27
  }
36
28
  async masternodeVote(args) {
37
29
  const { masternodeProTxHash, contractId, documentTypeName, indexName, indexValues, voteChoice, votingKeyWif } = args;
@@ -1,23 +1,24 @@
1
+ import * as wasm from '../wasm.js';
1
2
  export declare namespace wallet {
2
- function generateMnemonic(wordCount?: number, languageCode?: string): Promise<string>;
3
+ function generateMnemonic(params?: wasm.GenerateMnemonicParams): Promise<string>;
3
4
  function validateMnemonic(mnemonic: string, languageCode?: string): Promise<boolean>;
4
5
  function mnemonicToSeed(mnemonic: string, passphrase?: string): Promise<Uint8Array>;
5
- function deriveKeyFromSeedPhrase(mnemonic: string, passphrase: string | null | undefined, network: string): Promise<any>;
6
- function deriveKeyFromSeedWithPath(mnemonic: string, passphrase: string | null | undefined, path: string, network: string): Promise<any>;
7
- function deriveKeyFromSeedWithExtendedPath(mnemonic: string, passphrase: string | null | undefined, path: string, network: string): Promise<any>;
8
- function deriveDashpayContactKey(mnemonic: string, passphrase: string | null | undefined, senderIdentityId: string, receiverIdentityId: string, account: number, addressIndex: number, network: string): Promise<any>;
9
- function derivationPathBip44Mainnet(account: number, change: number, index: number): Promise<any>;
10
- function derivationPathBip44Testnet(account: number, change: number, index: number): Promise<any>;
11
- function derivationPathDip9Mainnet(featureType: number, account: number, index: number): Promise<any>;
12
- function derivationPathDip9Testnet(featureType: number, account: number, index: number): Promise<any>;
13
- function derivationPathDip13Mainnet(account: number): Promise<any>;
14
- function derivationPathDip13Testnet(account: number): Promise<any>;
6
+ function deriveKeyFromSeedPhrase(params: wasm.DeriveKeyFromSeedPhraseParams): Promise<wasm.SeedPhraseKeyInfo>;
7
+ function deriveKeyFromSeedWithPath(params: wasm.DeriveKeyFromSeedWithPathParams): Promise<wasm.PathDerivedKeyInfo>;
8
+ function deriveKeyFromSeedWithExtendedPath(params: wasm.DeriveKeyFromSeedWithExtendedPathParams): Promise<wasm.DerivedKeyInfo>;
9
+ function deriveDashpayContactKey(params: wasm.DeriveDashpayContactKeyParams): Promise<wasm.DashpayContactKeyInfo>;
10
+ function derivationPathBip44Mainnet(account: number, change: number, index: number): Promise<wasm.DerivationPathInfo>;
11
+ function derivationPathBip44Testnet(account: number, change: number, index: number): Promise<wasm.DerivationPathInfo>;
12
+ function derivationPathDip9Mainnet(featureType: number, account: number, index: number): Promise<wasm.DerivationPathInfo>;
13
+ function derivationPathDip9Testnet(featureType: number, account: number, index: number): Promise<wasm.DerivationPathInfo>;
14
+ function derivationPathDip13Mainnet(account: number): Promise<wasm.Dip13DerivationPathInfo>;
15
+ function derivationPathDip13Testnet(account: number): Promise<wasm.Dip13DerivationPathInfo>;
15
16
  function deriveChildPublicKey(xpub: string, index: number, hardened: boolean): Promise<string>;
16
17
  function xprvToXpub(xprv: string): Promise<string>;
17
- function generateKeyPair(network: string): Promise<any>;
18
- function generateKeyPairs(network: string, count: number): Promise<any[]>;
19
- function keyPairFromWif(privateKeyWif: string): Promise<any>;
20
- function keyPairFromHex(privateKeyHex: string, network: string): Promise<any>;
18
+ function generateKeyPair(network: string): Promise<wasm.KeyPair>;
19
+ function generateKeyPairs(network: string, count: number): Promise<wasm.KeyPair[]>;
20
+ function keyPairFromWif(privateKeyWif: string): Promise<wasm.KeyPair>;
21
+ function keyPairFromHex(privateKeyHex: string, network: string): Promise<wasm.KeyPair>;
21
22
  function pubkeyToAddress(pubkeyHex: string, network: string): Promise<string>;
22
23
  function validateAddress(address: string, network: string): Promise<boolean>;
23
24
  function signMessage(message: string, privateKeyWif: string): Promise<string>;
@@ -1,9 +1,9 @@
1
1
  import * as wasm from '../wasm.js';
2
2
  export var wallet;
3
3
  (function (wallet) {
4
- async function generateMnemonic(wordCount, languageCode) {
4
+ async function generateMnemonic(params) {
5
5
  await wasm.ensureInitialized();
6
- return wasm.WasmSdk.generateMnemonic(wordCount ?? null, languageCode ?? null);
6
+ return wasm.WasmSdk.generateMnemonic(params ?? null);
7
7
  }
8
8
  wallet.generateMnemonic = generateMnemonic;
9
9
  async function validateMnemonic(mnemonic, languageCode) {
@@ -16,24 +16,24 @@ export var wallet;
16
16
  return wasm.WasmSdk.mnemonicToSeed(mnemonic, passphrase ?? null);
17
17
  }
18
18
  wallet.mnemonicToSeed = mnemonicToSeed;
19
- async function deriveKeyFromSeedPhrase(mnemonic, passphrase, network) {
19
+ async function deriveKeyFromSeedPhrase(params) {
20
20
  await wasm.ensureInitialized();
21
- return wasm.WasmSdk.deriveKeyFromSeedPhrase(mnemonic, passphrase ?? null, network);
21
+ return wasm.WasmSdk.deriveKeyFromSeedPhrase(params);
22
22
  }
23
23
  wallet.deriveKeyFromSeedPhrase = deriveKeyFromSeedPhrase;
24
- async function deriveKeyFromSeedWithPath(mnemonic, passphrase, path, network) {
24
+ async function deriveKeyFromSeedWithPath(params) {
25
25
  await wasm.ensureInitialized();
26
- return wasm.WasmSdk.deriveKeyFromSeedWithPath(mnemonic, passphrase ?? null, path, network);
26
+ return wasm.WasmSdk.deriveKeyFromSeedWithPath(params);
27
27
  }
28
28
  wallet.deriveKeyFromSeedWithPath = deriveKeyFromSeedWithPath;
29
- async function deriveKeyFromSeedWithExtendedPath(mnemonic, passphrase, path, network) {
29
+ async function deriveKeyFromSeedWithExtendedPath(params) {
30
30
  await wasm.ensureInitialized();
31
- return wasm.WasmSdk.deriveKeyFromSeedWithExtendedPath(mnemonic, passphrase ?? null, path, network);
31
+ return wasm.WasmSdk.deriveKeyFromSeedWithExtendedPath(params);
32
32
  }
33
33
  wallet.deriveKeyFromSeedWithExtendedPath = deriveKeyFromSeedWithExtendedPath;
34
- async function deriveDashpayContactKey(mnemonic, passphrase, senderIdentityId, receiverIdentityId, account, addressIndex, network) {
34
+ async function deriveDashpayContactKey(params) {
35
35
  await wasm.ensureInitialized();
36
- return wasm.WasmSdk.deriveDashpayContactKey(mnemonic, passphrase ?? null, senderIdentityId, receiverIdentityId, account, addressIndex, network);
36
+ return wasm.WasmSdk.deriveDashpayContactKey(params);
37
37
  }
38
38
  wallet.deriveDashpayContactKey = deriveDashpayContactKey;
39
39
  async function derivationPathBip44Mainnet(account, change, index) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dashevo/evo-sdk",
3
- "version": "2.1.3",
3
+ "version": "2.2.0-dev.2",
4
4
  "type": "module",
5
5
  "main": "./dist/evo-sdk.module.js",
6
6
  "types": "./dist/sdk.d.ts",
@@ -22,7 +22,7 @@
22
22
  "README.md"
23
23
  ],
24
24
  "dependencies": {
25
- "@dashevo/wasm-sdk": "2.1.3"
25
+ "@dashevo/wasm-sdk": "2.2.0-dev.2"
26
26
  },
27
27
  "scripts": {
28
28
  "build": "rm -rf dist && tsc -p tsconfig.json && webpack --config webpack.config.cjs",