@ar.io/sdk 2.5.0-alpha.8 → 2.5.0-alpha.9
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 +17 -2
- package/bundles/web.bundle.min.js +2 -2
- package/lib/cjs/common/ant.js +26 -0
- package/lib/cjs/version.js +1 -1
- package/lib/esm/common/ant.js +26 -0
- package/lib/esm/version.js +1 -1
- package/lib/types/common/ant.d.ts +12 -0
- package/lib/types/types/ant.d.ts +9 -0
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -86,7 +86,8 @@ This is the home of [ar.io] SDK. This SDK provides functionality for interacting
|
|
|
86
86
|
- [`setLogo({ txId })`](#setlogo-txid-)
|
|
87
87
|
- [`releaseName({ name, ioProcessId })`](#releasename-name-ioprocessid-)
|
|
88
88
|
- [`reassignName({ name, ioProcessId, antProcessId })`](#reassignname-name-ioprocessid-antprocessid-)
|
|
89
|
-
- [`approvePrimaryNameRequest({ name, address })`](#approveprimarynamerequest-name-address-)
|
|
89
|
+
- [`approvePrimaryNameRequest({ name, address, ioProcessId })`](#approveprimarynamerequest-name-address-ioprocessid-)
|
|
90
|
+
- [`removePrimaryNames({ names, ioProcessId })`](#removeprimarynames-names-ioprocessid-)
|
|
90
91
|
- [Configuration](#configuration-1)
|
|
91
92
|
- [Logging](#logging)
|
|
92
93
|
- [Configuration](#configuration-2)
|
|
@@ -1931,7 +1932,7 @@ const { id: txId } = await ant.reassignName({
|
|
|
1931
1932
|
});
|
|
1932
1933
|
```
|
|
1933
1934
|
|
|
1934
|
-
#### `approvePrimaryNameRequest({ name, address })`
|
|
1935
|
+
#### `approvePrimaryNameRequest({ name, address, ioProcessId })`
|
|
1935
1936
|
|
|
1936
1937
|
Approves a primary name request for a given name or address.
|
|
1937
1938
|
|
|
@@ -1941,6 +1942,20 @@ _Note: Requires `signer` to be provided on `ANT.init` to sign the transaction._
|
|
|
1941
1942
|
const { id: txId } = await ant.approvePrimaryNameRequest({
|
|
1942
1943
|
name: 'arns',
|
|
1943
1944
|
owner: 't4Xr0_J4Iurt7caNST02cMotaz2FIbWQ4Kbj616RHl3', // must match the request initiator address
|
|
1945
|
+
ioProcessId: IO_TESTNET_PROCESS_ID, // the IO process id to use for the request
|
|
1946
|
+
});
|
|
1947
|
+
```
|
|
1948
|
+
|
|
1949
|
+
#### `removePrimaryNames({ names, ioProcessId })`
|
|
1950
|
+
|
|
1951
|
+
Removes primary names from the ANT process.
|
|
1952
|
+
|
|
1953
|
+
_Note: Requires `signer` to be provided on `ANT.init` to sign the transaction._
|
|
1954
|
+
|
|
1955
|
+
```typescript
|
|
1956
|
+
const { id: txId } = await ant.removePrimaryNames({
|
|
1957
|
+
names: ['arns', 'test_arns'], // any primary names associated with a base name controlled by this ANT will be removed
|
|
1958
|
+
ioProcessId: IO_TESTNET_PROCESS_ID,
|
|
1944
1959
|
});
|
|
1945
1960
|
```
|
|
1946
1961
|
|