Skip to content

Commit

Permalink
updated controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
SDargarh committed Feb 15, 2024
1 parent 6c74f72 commit bb5ba9b
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 646 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -628,4 +628,11 @@

### 2.4.6 (2024-02-2)

* Updated recover vault to handle recurring addresses in logs
* Updated recover vault to handle recurring addresses in logs

### 2.5.0 (2024-02-15)

##### [BREAKING Changes] Removed getAssets() method

* Removed function `getAssets()` to get the list of assets of all the accounts associated as it is moved to an api service.
* Updated avalanche, base and zkEVM controllers.
11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,17 +191,6 @@ This method is used to get the list of all the accounts (`imported` and `generat

* `encryptionKey` - The encryption key used to encrypt/decrypt the vault.

Get Assets:
This method returns the list of assets for all the addresses on all the chains passed in the array.

`const assets = await vault.getAssets({ addresses, chains, EthRpcUrl, polygonRpcUrl, bscRpcUrl });`

* `addresses` - The list of addresses in an array.
* `chains` - The list of chains in an array.
* `EthRpcUrl` - Ethereum RPC URL.
* `PolygonRpcUrl` - Polygon RPC URL.
* `bscRpcUrl` - BSC RPC URL.

Get Native Asset Balance:
This method is used to get the native asset balance of an address present in the vault.

Expand Down
Loading

1 comment on commit bb5ba9b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage Report (72%)
File% Stmts% Branch% Funcs% LinesUncovered Line #s
All files72.163.9581.3372.79 
chains100100100100 
   index.js100100100100 
config100100100100 
   index.js100100100100 
constants100100100100 
   index.js100100100100 
constants/responses100100100100 
   index.js100100100100 
lib70.164.381.6670.77 
   keyring.js66.6662.2679.5967.3145, 58, 67–68, 139–151, 171, 179–188, 198–201, 244–274, 285, 289, 294–296, 308–383, 399–437, 496–499, 642, 667–711, 784, 801–802, 818–820, 851–859, 882–886, 906–910, 929–937, 964, 970
   vault.js91.1384.2190.991.1320, 27, 42–45, 62, 72
utils76.8161.978077.69 
   helper.js76.8161.978077.699–16, 93–94, 121–140, 145–146, 159, 171, 183, 243–245

Please sign in to comment.