@0xmonaco/core 0.0.0-develop-20260202185041 → 0.0.0-develop-20260203165259
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/README.md +2 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -238,8 +238,8 @@ async function vaultExample() {
|
|
|
238
238
|
const assetId = pair.base_asset_id; // Asset ID (UUID)
|
|
239
239
|
|
|
240
240
|
// Check vault balance
|
|
241
|
-
const balance = await monaco.
|
|
242
|
-
console.log("Vault balance:", balance.
|
|
241
|
+
const balance = await monaco.profile.getUserBalanceByAssetId(assetId);
|
|
242
|
+
console.log("Vault balance:", balance.total_balance, balance.symbol);
|
|
243
243
|
|
|
244
244
|
// Approve vault to spend tokens
|
|
245
245
|
const approval = await monaco.vault.approve(assetId, parseEther("1000"));
|
|
@@ -429,8 +429,6 @@ interface VaultAPI extends BaseAPI {
|
|
|
429
429
|
deposit(token: string, amount: bigint, autoWait?: boolean): Promise<TransactionResult>;
|
|
430
430
|
withdraw(token: string, amount: bigint, autoWait?: boolean): Promise<TransactionResult>;
|
|
431
431
|
|
|
432
|
-
// Balance queries
|
|
433
|
-
getBalance(token: string): Promise<Balance>;
|
|
434
432
|
}
|
|
435
433
|
```
|
|
436
434
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xmonaco/core",
|
|
3
|
-
"version": "0.0.0-develop-
|
|
3
|
+
"version": "0.0.0-develop-20260203165259",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"viem": "^2.0.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@0xmonaco/contracts": "0.0.0-develop-
|
|
31
|
-
"@0xmonaco/types": "0.0.0-develop-
|
|
30
|
+
"@0xmonaco/contracts": "0.0.0-develop-20260203165259",
|
|
31
|
+
"@0xmonaco/types": "0.0.0-develop-20260203165259",
|
|
32
32
|
"http-status-codes": "^2.3.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|