@ar.io/sdk 3.6.0-alpha.2 → 3.6.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 +4 -4
- package/bundles/web.bundle.min.js +97 -97
- package/lib/cjs/cli/commands/arnsPurchaseCommands.js +1 -1
- package/lib/cjs/cli/options.js +15 -3
- package/lib/cjs/cli/utils.js +15 -7
- package/lib/cjs/common/io.js +4 -2
- package/lib/cjs/constants.js +2 -1
- package/lib/cjs/version.js +1 -1
- package/lib/esm/cli/commands/arnsPurchaseCommands.js +1 -1
- package/lib/esm/cli/options.js +15 -3
- package/lib/esm/cli/utils.js +16 -8
- package/lib/esm/common/io.js +4 -2
- package/lib/esm/constants.js +1 -0
- package/lib/esm/version.js +1 -1
- package/lib/types/cli/options.d.ts +11 -1
- package/lib/types/cli/types.d.ts +3 -1
- package/lib/types/cli/utils.d.ts +1 -1
- package/lib/types/common/io.d.ts +1 -1
- package/lib/types/constants.d.ts +1 -0
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1355,12 +1355,12 @@ const { id: txId } = await ario.extendLease(
|
|
|
1355
1355
|
|
|
1356
1356
|
#### `getTokenCost({ intent, ...args })`
|
|
1357
1357
|
|
|
1358
|
-
Calculates the price in mARIO to perform the interaction in question, eg a 'Buy-
|
|
1358
|
+
Calculates the price in mARIO to perform the interaction in question, eg a 'Buy-Name' interaction, where args are the specific params for that interaction.
|
|
1359
1359
|
|
|
1360
1360
|
```typescript
|
|
1361
1361
|
const price = await ario
|
|
1362
1362
|
.getTokenCost({
|
|
1363
|
-
intent: 'Buy-
|
|
1363
|
+
intent: 'Buy-Name',
|
|
1364
1364
|
name: 'ar-io',
|
|
1365
1365
|
type: 'permabuy',
|
|
1366
1366
|
})
|
|
@@ -1378,11 +1378,11 @@ const price = await ario
|
|
|
1378
1378
|
|
|
1379
1379
|
#### `getCostDetails({ intent, fromAddress, fundFrom, ...args})`
|
|
1380
1380
|
|
|
1381
|
-
Calculates the expanded cost details for the interaction in question, e.g a 'Buy-
|
|
1381
|
+
Calculates the expanded cost details for the interaction in question, e.g a 'Buy-Name' interaction, where args are the specific params for that interaction. The fromAddress is the address that would be charged for the interaction, and fundFrom is where the funds would be taken from, either `balance`, `stakes`, or `any`.
|
|
1382
1382
|
|
|
1383
1383
|
```typescript
|
|
1384
1384
|
const costDetails = await ario.getCostDetails({
|
|
1385
|
-
intent: 'Buy-
|
|
1385
|
+
intent: 'Buy-Name',
|
|
1386
1386
|
fromAddress: 't4Xr0_J4Iurt7caNST02cMotaz2FIbWQ4Kbj616RHl3',
|
|
1387
1387
|
fundFrom: 'stakes',
|
|
1388
1388
|
name: 'ar-io',
|