wallaby-cash 2.2.1 → 2.2.3

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,5 +1,5 @@
1
1
  import { Base } from '../../base';
2
- import { WallabyConfig, TokenStandard, FeeEstimatesResponse, Transaction, BlockchainName, GetPendingTransactionsRequest, GetPendingTransactionsResponse, ResolvePendingTransactionRequest, ResolvePendingTransactionResponse } from '../../types';
2
+ import { WallabyConfig, TokenStandard, FeeEstimatesResponse, Transaction, BlockchainName, GetPendingTransactionsRequest, GetPendingTransactionsResponse, ResolvePendingTransactionRequest, ResolvePendingTransactionResponse, TransactionResponse } from '../../types';
3
3
  import { CreateAllowanceRequest, TransactionStatusResponse, TransferRequest } from '../../types';
4
4
  import { FeeEstimateRequest } from './transactions.model';
5
5
  export declare class Transactions extends Base {
@@ -61,10 +61,7 @@ export declare class Transactions extends Base {
61
61
  * @param {string} memo
62
62
  * @returns {TransactionResponse}
63
63
  */
64
- transfer({ originAddress, recipientAddress, amount, assetId, walletId, reference, authenticationOptions, memo, }: TransferRequest): Promise<{
65
- message: string;
66
- transaction: Transaction;
67
- }>;
64
+ transfer({ originAddress, recipientAddress, amount, assetId, walletId, reference, authenticationOptions, memo, }: TransferRequest): Promise<TransactionResponse>;
68
65
  /**
69
66
  *
70
67
  * @public
@@ -80,9 +77,7 @@ export declare class Transactions extends Base {
80
77
  * @returns {CreateAllowanceResponse}
81
78
  *
82
79
  */
83
- createAllowance({ authenticationOptions, walletId, ownerAddress, spenderAddress, amount, assetId, suiObjectId, contractAddress, chainName, assetSymbol, reference, memo, }: CreateAllowanceRequest): Promise<{
84
- transaction: Transaction;
85
- }>;
80
+ createAllowance({ authenticationOptions, walletId, ownerAddress, spenderAddress, amount, assetId, suiObjectId, contractAddress, chainName, assetSymbol, reference, memo, }: CreateAllowanceRequest): Promise<TransactionResponse>;
86
81
  /**
87
82
  *
88
83
  * @public
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wallaby-cash",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:WALLABY-WaaS/wallaby-sdk-js.git"
@@ -201,7 +201,8 @@ export declare enum BlockchainName {
201
201
  Polygon = "POLYGON",
202
202
  Polymesh = "POLYMESH",
203
203
  Sei = "SEI",
204
- Sui = "SUI"
204
+ Sui = "SUI",
205
+ Solana = "SOLANA"
205
206
  }
206
207
  export declare enum RequestMethod {
207
208
  Post = "POST",
@@ -1,7 +1,6 @@
1
1
  import { AssetConfig, BlockchainName, BlockchainSlip44, Encrypted, OwnershipType, TokenStandard, User } from './common';
2
2
  import { Merchant } from './merchants';
3
3
  import { AuthenticationResponse } from './auth';
4
- import { CreateAllowanceTransactionData } from '../generated/api';
5
4
  export declare type Transaction = {
6
5
  id: string;
7
6
  reference: string;
@@ -112,7 +111,10 @@ export declare type CreateAllowanceRequestWithAmends = Omit<CreateAllowanceReque
112
111
  encryptedSeed?: CreateAllowanceRequest['encryptedSeed'];
113
112
  encryptedShares?: CreateAllowanceRequest['encryptedShares'];
114
113
  };
115
- export declare type TransactionResponse = CreateAllowanceTransactionData;
114
+ export declare type TransactionResponse = {
115
+ message: string;
116
+ transaction: Transaction;
117
+ };
116
118
  export declare type TransactionStatusResponse = {
117
119
  status: TransactionStatus;
118
120
  transactionHash: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wallaby-cash",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:WALLABY-WaaS/wallaby-sdk-js.git"