@getpara/user-management-client 1.8.0 → 1.9.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.
@@ -755,6 +755,7 @@ class Client {
755
755
  return __async(this, arguments, function* (userId, {
756
756
  tx,
757
757
  signature,
758
+ sourceAddress,
758
759
  network,
759
760
  walletId,
760
761
  walletType
@@ -762,6 +763,7 @@ class Client {
762
763
  const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/offramp-send`, {
763
764
  tx,
764
765
  signature,
766
+ sourceAddress,
765
767
  network,
766
768
  walletType
767
769
  });
@@ -55,6 +55,7 @@ var Network = /* @__PURE__ */ ((Network2) => {
55
55
  Network2["COSMOS"] = "COSMOS";
56
56
  Network2["CELO"] = "CELO";
57
57
  Network2["NOBLE"] = "NOBLE";
58
+ Network2["SOLANA_DEVNET"] = "SOLANA_DEVNET";
58
59
  return Network2;
59
60
  })(Network || {});
60
61
  const PREGEN_IDENTIFIER_TYPES = [
@@ -678,6 +678,7 @@ class Client {
678
678
  return __async(this, arguments, function* (userId, {
679
679
  tx,
680
680
  signature,
681
+ sourceAddress,
681
682
  network,
682
683
  walletId,
683
684
  walletType
@@ -685,6 +686,7 @@ class Client {
685
686
  const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/offramp-send`, {
686
687
  tx,
687
688
  signature,
689
+ sourceAddress,
688
690
  network,
689
691
  walletType
690
692
  });
@@ -29,6 +29,7 @@ var Network = /* @__PURE__ */ ((Network2) => {
29
29
  Network2["COSMOS"] = "COSMOS";
30
30
  Network2["CELO"] = "CELO";
31
31
  Network2["NOBLE"] = "NOBLE";
32
+ Network2["SOLANA_DEVNET"] = "SOLANA_DEVNET";
32
33
  return Network2;
33
34
  })(Network || {});
34
35
  const PREGEN_IDENTIFIER_TYPES = [
@@ -282,6 +282,7 @@ declare class Client {
282
282
  }, any>>;
283
283
  generateOffRampTx<ReturnType = {
284
284
  tx: string;
285
+ message?: string;
285
286
  asset: OnRampAsset;
286
287
  network: Network;
287
288
  }>(userId: string, { provider, chainId, contractAddress, testMode, walletId, walletType, destinationAddress, sourceAddress, assetQuantity, }: {
@@ -297,9 +298,10 @@ declare class Client {
297
298
  }): Promise<ReturnType>;
298
299
  sendOffRampTx<ReturnType = {
299
300
  txHash: string;
300
- }>(userId: string, { tx, signature, network, walletId, walletType, }: {
301
+ }>(userId: string, { tx, signature, sourceAddress, network, walletId, walletType, }: {
301
302
  tx: string;
302
303
  signature: string;
304
+ sourceAddress?: string;
303
305
  network: Network;
304
306
  walletId: string;
305
307
  walletType: WalletType;
@@ -25,7 +25,8 @@ export declare enum Network {
25
25
  SOLANA = "SOLANA",
26
26
  COSMOS = "COSMOS",
27
27
  CELO = "CELO",
28
- NOBLE = "NOBLE"
28
+ NOBLE = "NOBLE",
29
+ SOLANA_DEVNET = "SOLANA_DEVNET"
29
30
  }
30
31
  export type WalletRef = 'walletId' | 'externalWalletAddress';
31
32
  export type WalletParams = Partial<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/user-management-client",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -33,5 +33,5 @@
33
33
  "require": "./dist/cjs/index.js"
34
34
  }
35
35
  },
36
- "gitHead": "ef96e79558695ccbe148d25a8e3611c4596d1954"
36
+ "gitHead": "3d749844bf071e2c8de2769dd16e17c026951109"
37
37
  }