@ar.io/sdk 2.4.0-alpha.7 → 2.4.0-alpha.8
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 +15 -0
- package/bundles/web.bundle.min.js +2 -2
- package/lib/cjs/common/ant.js +23 -0
- package/lib/cjs/types/ant.js +1 -0
- package/lib/cjs/version.js +1 -1
- package/lib/esm/common/ant.js +23 -0
- package/lib/esm/types/ant.js +1 -0
- package/lib/esm/version.js +1 -1
- package/lib/types/common/ant.d.ts +16 -0
- package/lib/types/types/ant.d.ts +5 -0
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -76,6 +76,7 @@ This is the home of [ar.io] SDK. This SDK provides functionality for interacting
|
|
|
76
76
|
- [`setDescription({ description })`](#setdescription-description-)
|
|
77
77
|
- [`setKeywords({ keywords })`](#setkeywords-keywords-)
|
|
78
78
|
- [`releaseName({ name, ioProcessId })`](#releasename-name-ioprocessid-)
|
|
79
|
+
- [`reassignName({ name, ioProcessId, antProcessId })`](#reassignname-name-ioprocessid-antprocessid-)
|
|
79
80
|
- [Configuration](#configuration-1)
|
|
80
81
|
- [Logging](#logging)
|
|
81
82
|
- [Configuration](#configuration-2)
|
|
@@ -1636,6 +1637,20 @@ const { id: txId } = await ant.releaseName({
|
|
|
1636
1637
|
});
|
|
1637
1638
|
```
|
|
1638
1639
|
|
|
1640
|
+
#### `reassignName({ name, ioProcessId, antProcessId })`
|
|
1641
|
+
|
|
1642
|
+
Reassigns a name to a new ANT. This can only be done by the current owner of the ANT.
|
|
1643
|
+
|
|
1644
|
+
_Note: Requires `signer` to be provided on `ANT.init` to sign the transaction._
|
|
1645
|
+
|
|
1646
|
+
```typescript
|
|
1647
|
+
const { id: txId } = await ant.reassignName({
|
|
1648
|
+
name: 'ardrive',
|
|
1649
|
+
ioProcessId: IO_TESTNET_PROCESS_ID,
|
|
1650
|
+
antProcessId: NEW_ANT_PROCESS_ID, // the new ANT process id that will take over ownership of the name
|
|
1651
|
+
});
|
|
1652
|
+
```
|
|
1653
|
+
|
|
1639
1654
|
### Configuration
|
|
1640
1655
|
|
|
1641
1656
|
ANT clients can be configured to use custom AO process. Refer to [AO Connect] for more information on how to configure the AO process to use specific AO infrastructure.
|