@pyxisjs/core 0.2.0 → 0.2.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.
- package/dist/index.d.mts +15 -0
- package/dist/index.d.ts +15 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -106,6 +106,21 @@ interface WalletAccount {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
interface WalletAdapter {
|
|
109
|
+
/**
|
|
110
|
+
* Account address of the wallet
|
|
111
|
+
*/
|
|
112
|
+
accountAddress?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Get allowance of a token
|
|
115
|
+
* @param tokenAddress token address
|
|
116
|
+
* @param spenderAddress spender address
|
|
117
|
+
*/
|
|
118
|
+
getAllowance(tokenAddress: string, spenderAddress: string): Promise<string>;
|
|
119
|
+
/**
|
|
120
|
+
* Get balance of a token
|
|
121
|
+
* @param tokenAddress token address
|
|
122
|
+
*/
|
|
123
|
+
getBalance(tokenAddress: string): Promise<string>;
|
|
109
124
|
/**
|
|
110
125
|
* Sign and submit a transaction
|
|
111
126
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -106,6 +106,21 @@ interface WalletAccount {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
interface WalletAdapter {
|
|
109
|
+
/**
|
|
110
|
+
* Account address of the wallet
|
|
111
|
+
*/
|
|
112
|
+
accountAddress?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Get allowance of a token
|
|
115
|
+
* @param tokenAddress token address
|
|
116
|
+
* @param spenderAddress spender address
|
|
117
|
+
*/
|
|
118
|
+
getAllowance(tokenAddress: string, spenderAddress: string): Promise<string>;
|
|
119
|
+
/**
|
|
120
|
+
* Get balance of a token
|
|
121
|
+
* @param tokenAddress token address
|
|
122
|
+
*/
|
|
123
|
+
getBalance(tokenAddress: string): Promise<string>;
|
|
109
124
|
/**
|
|
110
125
|
* Sign and submit a transaction
|
|
111
126
|
*/
|