@pyxisjs/core 0.2.0 → 0.2.1

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 CHANGED
@@ -106,6 +106,17 @@ interface WalletAccount {
106
106
  }
107
107
 
108
108
  interface WalletAdapter {
109
+ /**
110
+ * Get allowance of a token
111
+ * @param tokenAddress token address
112
+ * @param spenderAddress spender address
113
+ */
114
+ getAllowance(tokenAddress: string, spenderAddress: string): Promise<string>;
115
+ /**
116
+ * Get balance of a token
117
+ * @param tokenAddress token address
118
+ */
119
+ getBalance(tokenAddress: string): Promise<string>;
109
120
  /**
110
121
  * Sign and submit a transaction
111
122
  */
package/dist/index.d.ts CHANGED
@@ -106,6 +106,17 @@ interface WalletAccount {
106
106
  }
107
107
 
108
108
  interface WalletAdapter {
109
+ /**
110
+ * Get allowance of a token
111
+ * @param tokenAddress token address
112
+ * @param spenderAddress spender address
113
+ */
114
+ getAllowance(tokenAddress: string, spenderAddress: string): Promise<string>;
115
+ /**
116
+ * Get balance of a token
117
+ * @param tokenAddress token address
118
+ */
119
+ getBalance(tokenAddress: string): Promise<string>;
109
120
  /**
110
121
  * Sign and submit a transaction
111
122
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pyxisjs/core",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Pyxis SDK Core",
5
5
  "license": "MIT",
6
6
  "publishConfig": {