@ar.io/sdk 3.14.0-alpha.8 → 3.14.0
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 +6 -6
- package/bundles/web.bundle.min.js +108 -108
- package/lib/cjs/common/ant.js +51 -42
- package/lib/cjs/utils/ant.js +16 -1
- package/lib/cjs/version.js +1 -1
- package/lib/esm/common/ant.js +53 -44
- package/lib/esm/utils/ant.js +14 -0
- package/lib/esm/version.js +1 -1
- package/lib/types/common/ant.d.ts +3 -2
- package/lib/types/utils/ant.d.ts +1 -0
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -187,7 +187,7 @@ const ario = ARIO.mainnet(); // or ARIO.init()
|
|
|
187
187
|
```typescript
|
|
188
188
|
import { ARIO } from '@ar.io/sdk';
|
|
189
189
|
|
|
190
|
-
const testnet = ARIO.testnet(); // or ARIO.
|
|
190
|
+
const testnet = ARIO.testnet(); // or ARIO.init({ processId: ARIO_TESTNET_PROCESS_ID })
|
|
191
191
|
```
|
|
192
192
|
|
|
193
193
|
#### Faucet
|
|
@@ -274,13 +274,13 @@ Factory function to that creates a read-only or writeable client. By providing a
|
|
|
274
274
|
|
|
275
275
|
```typescript
|
|
276
276
|
// read-only client
|
|
277
|
-
const ario = ARIO.
|
|
277
|
+
const ario = ARIO.init();
|
|
278
278
|
|
|
279
279
|
// read-write client for browser environments
|
|
280
|
-
const ario = ARIO.
|
|
280
|
+
const ario = ARIO.init({ signer: new ArConnectSigner(window.arweaveWallet, Arweave.init({}))});
|
|
281
281
|
|
|
282
282
|
// read-write client for node environments
|
|
283
|
-
const ario = ARIO.
|
|
283
|
+
const ario = ARIO.init({ signer: new ArweaveSigner(JWK) });
|
|
284
284
|
|
|
285
285
|
```
|
|
286
286
|
|
|
@@ -298,8 +298,8 @@ const info = await ario.getInfo();
|
|
|
298
298
|
|
|
299
299
|
```json
|
|
300
300
|
{
|
|
301
|
-
"Name": "
|
|
302
|
-
"Ticker": "
|
|
301
|
+
"Name": "ARIO",
|
|
302
|
+
"Ticker": "ARIO",
|
|
303
303
|
"Owner": "QGWqtJdLLgm2ehFWiiPzMaoFLD50CnGuzZIPEdoDRGQ",
|
|
304
304
|
"Denomination": 6,
|
|
305
305
|
"Handlers": ["_eval", "_default_"], // full list of handlers, useful for debugging
|