wallaby-cash 2.2.5 → 2.2.7
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.cjs.js +11 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +11 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +11 -6
- package/dist/index.js.map +1 -1
- package/dist/lib/transactions/index.d.ts +4 -2
- package/dist/package.json +2 -3
- package/dist/types/transactions.d.ts +7 -3
- package/package.json +2 -3
|
@@ -59,9 +59,10 @@ export declare class Transactions extends Base {
|
|
|
59
59
|
* @param {string} reference
|
|
60
60
|
* @param {AuthenticationResponse} authenticationOptions
|
|
61
61
|
* @param {string} memo
|
|
62
|
+
* @param {TransactionType} transactionType
|
|
62
63
|
* @returns {TransactionResponse}
|
|
63
64
|
*/
|
|
64
|
-
transfer({ originAddress, recipientAddress, amount, assetId, walletId, reference, authenticationOptions, memo, }: TransferRequest): Promise<TransactionResponse>;
|
|
65
|
+
transfer({ originAddress, recipientAddress, amount, assetId, walletId, reference, authenticationOptions, memo, transactionType, }: TransferRequest): Promise<TransactionResponse>;
|
|
65
66
|
/**
|
|
66
67
|
*
|
|
67
68
|
* @public
|
|
@@ -74,10 +75,11 @@ export declare class Transactions extends Base {
|
|
|
74
75
|
* @param {string} suiObjectId
|
|
75
76
|
* @param {string} reference
|
|
76
77
|
* @param {string} memo
|
|
78
|
+
* @param {TransactionType} transactionType
|
|
77
79
|
* @returns {CreateAllowanceResponse}
|
|
78
80
|
*
|
|
79
81
|
*/
|
|
80
|
-
createAllowance({ authenticationOptions, walletId, ownerAddress, spenderAddress, amount, assetId, suiObjectId, contractAddress, chainName, assetSymbol, reference, memo, }: CreateAllowanceRequest): Promise<TransactionResponse>;
|
|
82
|
+
createAllowance({ authenticationOptions, walletId, ownerAddress, spenderAddress, amount, assetId, suiObjectId, contractAddress, chainName, assetSymbol, reference, memo, transactionType, }: CreateAllowanceRequest): Promise<TransactionResponse>;
|
|
81
83
|
/**
|
|
82
84
|
*
|
|
83
85
|
* @public
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wallaby-cash",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.7",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git@github.com:WALLABY-WaaS/wallaby-sdk-js.git"
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
72
72
|
"@semantic-release/git": "^10.0.1",
|
|
73
73
|
"@semantic-release/github": "^8.0.7",
|
|
74
|
-
"@semantic-release/npm": "^12.0.
|
|
74
|
+
"@semantic-release/npm": "^12.0.0",
|
|
75
75
|
"@semantic-release/release-notes-generator": "^11.0.1",
|
|
76
76
|
"@size-limit/preset-small-lib": "^11.2.0",
|
|
77
77
|
"@types/crypto-js": "^4.2.2",
|
|
@@ -118,7 +118,6 @@
|
|
|
118
118
|
"uuid": "^10.0.0"
|
|
119
119
|
},
|
|
120
120
|
"overrides": {
|
|
121
|
-
"glob": "^10.5.0",
|
|
122
121
|
"js-yaml": "^4.1.1",
|
|
123
122
|
"pbkdf2": "^3.1.3",
|
|
124
123
|
"esbuild": "^0.25.0",
|
|
@@ -94,6 +94,7 @@ export declare type BaseTransactionRequest = {
|
|
|
94
94
|
prfValue?: Uint8Array;
|
|
95
95
|
clientSalt?: string;
|
|
96
96
|
memo?: string;
|
|
97
|
+
transactionType?: TransactionType;
|
|
97
98
|
};
|
|
98
99
|
export declare type TransferRequest = BaseTransactionRequest & {
|
|
99
100
|
originAddress: string;
|
|
@@ -138,9 +139,12 @@ export declare type UTXOFundsMove = {
|
|
|
138
139
|
txId: string;
|
|
139
140
|
};
|
|
140
141
|
export declare enum TransactionType {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
TRANSFER_TX = "TRANSFER_TX",
|
|
143
|
+
OPTIN_TX = "OPTIN_TX",
|
|
144
|
+
ALLOWANCE_TX = "ALLOWANCE_TX",
|
|
145
|
+
SWAP_ALLOWANCE_TX = "SWAP_ALLOWANCE_TX",
|
|
146
|
+
SWAP_TX = "SWAP_TX",
|
|
147
|
+
CLAIM_DIVIDEND_TX = "CLAIM_DIVIDEND_TX"
|
|
144
148
|
}
|
|
145
149
|
export declare enum TransactionEntryType {
|
|
146
150
|
INCOMING = "INCOMING",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wallaby-cash",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.7",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git@github.com:WALLABY-WaaS/wallaby-sdk-js.git"
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
72
72
|
"@semantic-release/git": "^10.0.1",
|
|
73
73
|
"@semantic-release/github": "^8.0.7",
|
|
74
|
-
"@semantic-release/npm": "^12.0.
|
|
74
|
+
"@semantic-release/npm": "^12.0.0",
|
|
75
75
|
"@semantic-release/release-notes-generator": "^11.0.1",
|
|
76
76
|
"@size-limit/preset-small-lib": "^11.2.0",
|
|
77
77
|
"@types/crypto-js": "^4.2.2",
|
|
@@ -118,7 +118,6 @@
|
|
|
118
118
|
"uuid": "^10.0.0"
|
|
119
119
|
},
|
|
120
120
|
"overrides": {
|
|
121
|
-
"glob": "^10.5.0",
|
|
122
121
|
"js-yaml": "^4.1.1",
|
|
123
122
|
"pbkdf2": "^3.1.3",
|
|
124
123
|
"esbuild": "^0.25.0",
|