@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 +40 -0
- package/bundles/web.bundle.min.js +63 -63
- package/lib/cjs/common/ant.js +12 -0
- package/lib/cjs/types/ant.js +13 -12
- package/lib/cjs/utils/schema.js +0 -1
- package/lib/cjs/version.js +1 -1
- package/lib/esm/common/ant.js +12 -0
- package/lib/esm/types/ant.js +12 -11
- package/lib/esm/utils/schema.js +0 -1
- package/lib/esm/version.js +1 -1
- package/lib/types/common/ant.d.ts +10 -1
- package/lib/types/types/ant.d.ts +7 -7
- package/lib/types/types/io.d.ts +6 -1
- package/lib/types/utils/schema.d.ts +0 -1
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
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.
|