@ar.io/sdk 2.5.0-alpha.3 → 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 +38 -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/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)
|
|
@@ -1508,6 +1509,43 @@ const info = await ant.getInfo();
|
|
|
1508
1509
|
|
|
1509
1510
|
</details>
|
|
1510
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
|
+
|
|
1511
1549
|
#### `getState()`
|
|
1512
1550
|
|
|
1513
1551
|
Retrieves the state of the ANT process.
|