@ar.io/sdk 3.2.0-alpha.1 → 3.2.0-alpha.3
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 +14 -7
- package/bundles/web.bundle.min.js +2 -2
- package/lib/cjs/common/ant.js +9 -1
- package/lib/cjs/common/io.js +4 -4
- package/lib/cjs/types/io.js +7 -2
- package/lib/cjs/version.js +1 -1
- package/lib/esm/common/ant.js +9 -1
- package/lib/esm/common/io.js +4 -4
- package/lib/esm/types/io.js +7 -2
- package/lib/esm/version.js +1 -1
- package/lib/types/cli/utils.d.ts +1 -1
- package/lib/types/common/ant.d.ts +6 -1
- package/lib/types/types/ant.d.ts +3 -1
- package/lib/types/types/io.d.ts +3 -3
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -93,18 +93,18 @@ This is the home of [ar.io] SDK. This SDK provides functionality for interacting
|
|
|
93
93
|
- [`setTicker({ ticker })`](#setticker-ticker-)
|
|
94
94
|
- [`setDescription({ description })`](#setdescription-description-)
|
|
95
95
|
- [`setKeywords({ keywords })`](#setkeywords-keywords-)
|
|
96
|
+
- [`getLogo()`](#getlogo)
|
|
96
97
|
- [`setLogo({ txId })`](#setlogo-txid-)
|
|
97
98
|
- [`releaseName({ name, arioProcessId })`](#releasename-name-arioprocessid-)
|
|
98
99
|
- [`reassignName({ name, arioProcessId, antProcessId })`](#reassignname-name-arioprocessid-antprocessid-)
|
|
99
100
|
- [`approvePrimaryNameRequest({ name, address, arioProcessId })`](#approveprimarynamerequest-name-address-arioprocessid-)
|
|
100
|
-
- [`removePrimaryNames({ names, arioProcessId })`](#removeprimarynames-names-arioprocessid-)
|
|
101
|
+
- [`removePrimaryNames({ names, arioProcessId, notifyOwners })`](#removeprimarynames-names-arioprocessid-notifyowners-)
|
|
101
102
|
- [Configuration](#configuration-1)
|
|
102
103
|
- [Logging](#logging)
|
|
103
|
-
- [Configuration](#configuration-2)
|
|
104
104
|
- [Pagination](#pagination)
|
|
105
105
|
- [Resources](#resources)
|
|
106
106
|
- [Bundling](#bundling)
|
|
107
|
-
- [Gateways](#gateways
|
|
107
|
+
- [AR.IO Gateways](#ario-gateways)
|
|
108
108
|
- [Running a Gateway](#running-a-gateway)
|
|
109
109
|
- [AO](#ao)
|
|
110
110
|
- [Developers](#developers)
|
|
@@ -2025,6 +2025,14 @@ const { id: txId } = await ant.setDescription(
|
|
|
2025
2025
|
);
|
|
2026
2026
|
```
|
|
2027
2027
|
|
|
2028
|
+
#### `getLogo()`
|
|
2029
|
+
|
|
2030
|
+
Returns the TX ID of the logo set for the ANT.
|
|
2031
|
+
|
|
2032
|
+
```typescript
|
|
2033
|
+
const logoTxId = await ant.getLogo();
|
|
2034
|
+
```
|
|
2035
|
+
|
|
2028
2036
|
#### `setLogo({ txId })`
|
|
2029
2037
|
|
|
2030
2038
|
Sets the Logo of the ANT - logo should be an Arweave transaction ID.
|
|
@@ -2080,7 +2088,7 @@ const { id: txId } = await ant.approvePrimaryNameRequest({
|
|
|
2080
2088
|
});
|
|
2081
2089
|
```
|
|
2082
2090
|
|
|
2083
|
-
#### `removePrimaryNames({ names, arioProcessId })`
|
|
2091
|
+
#### `removePrimaryNames({ names, arioProcessId, notifyOwners })`
|
|
2084
2092
|
|
|
2085
2093
|
Removes primary names from the ANT process.
|
|
2086
2094
|
|
|
@@ -2090,6 +2098,7 @@ _Note: Requires `signer` to be provided on `ANT.init` to sign the transaction._
|
|
|
2090
2098
|
const { id: txId } = await ant.removePrimaryNames({
|
|
2091
2099
|
names: ['arns', 'test_arns'], // any primary names associated with a base name controlled by this ANT will be removed
|
|
2092
2100
|
arioProcessId: ARIO_TESTNET_PROCESS_ID,
|
|
2101
|
+
notifyOwners: true, // if true, the owners of the removed names will be send AO messages to notify them of the removal
|
|
2093
2102
|
});
|
|
2094
2103
|
```
|
|
2095
2104
|
|
|
@@ -2116,8 +2125,6 @@ const ant = ANT.init({
|
|
|
2116
2125
|
|
|
2117
2126
|
The library uses the [Winston] logger for node based projects, and `console` logger for web based projects by default. You can configure the log level via `setLogLevel()` API. Alternatively you can set a custom logger as the default logger so long as it satisfes the `ILogger` interface.
|
|
2118
2127
|
|
|
2119
|
-
### Configuration
|
|
2120
|
-
|
|
2121
2128
|
```typescript
|
|
2122
2129
|
import { Logger } from '@ar.io/sdk';
|
|
2123
2130
|
|
|
@@ -2161,7 +2168,7 @@ while (hasMore) {
|
|
|
2161
2168
|
|
|
2162
2169
|
For [ANS-104] bundling compatible with ar.io gateways, we recommend using [turbo-sdk](https://github.com/ardriveapp/turbo-sdk). Turbo SDK provides efficient and reliable methods for creating and uploading data bundles to the Arweave network, which are fully compatible with ar.io gateways. Turbo supports fiat and crypto bundling and uploading with a focus on ease of use and reliability.
|
|
2163
2170
|
|
|
2164
|
-
### Gateways
|
|
2171
|
+
### AR.IO Gateways
|
|
2165
2172
|
|
|
2166
2173
|
### Running a Gateway
|
|
2167
2174
|
|