@ar.io/sdk 2.5.0-alpha.2 → 2.5.0-alpha.4

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 CHANGED
@@ -66,6 +66,7 @@ This is the home of [ar.io] SDK. This SDK provides functionality for interacting
66
66
  - [ANT APIs](#ant-apis)
67
67
  - [`init({ processId, signer })`](#init-processid-signer-)
68
68
  - [`getInfo()`](#getinfo-1)
69
+ - [`getHandlers()`](#gethandlers)
69
70
  - [`getState()`](#getstate)
70
71
  - [`getOwner()`](#getowner)
71
72
  - [`getControllers()`](#getcontrollers)
@@ -1249,6 +1250,8 @@ const vaults = await io.getDelegations({
1249
1250
  }
1250
1251
  ```
1251
1252
 
1253
+ </details>
1254
+
1252
1255
  #### `instantWithdrawal({ gatewayAddress, vaultId })`
1253
1256
 
1254
1257
  Instantly withdraws an existing vault on a gateway. If no `gatewayAddress` is provided, the signer's address will be used.
@@ -1506,6 +1509,43 @@ const info = await ant.getInfo();
1506
1509
 
1507
1510
  </details>
1508
1511
 
1512
+ #### `getHandlers()`
1513
+
1514
+ Retrieves the handlers supported on the ANT
1515
+
1516
+ ```typescript
1517
+ const handlers = await ant.getHandlers();
1518
+ ```
1519
+
1520
+ <details>
1521
+ <summary>Output</summary>
1522
+
1523
+ ```json
1524
+ [
1525
+ "evolve",
1526
+ "_eval",
1527
+ "_default",
1528
+ "transfer",
1529
+ "balance",
1530
+ "balances",
1531
+ "totalSupply",
1532
+ "info",
1533
+ "addController",
1534
+ "removeController",
1535
+ "controllers",
1536
+ "setRecord",
1537
+ "removeRecord",
1538
+ "record",
1539
+ "records",
1540
+ "setName",
1541
+ "setTicker",
1542
+ "initializeState",
1543
+ "state"
1544
+ ]
1545
+ ```
1546
+
1547
+ </details>
1548
+
1509
1549
  #### `getState()`
1510
1550
 
1511
1551
  Retrieves the state of the ANT process.