@ar.io/sdk 2.1.0-alpha.4 → 2.1.0-alpha.6
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 +28 -4
- package/bundles/web.bundle.min.js +105 -105
- package/lib/cjs/common/ant.js +2 -1
- package/lib/cjs/common/contracts/ao-process.js +1 -18
- package/lib/cjs/common/io.js +4 -3
- package/lib/cjs/utils/ao.js +24 -2
- package/lib/cjs/version.js +1 -1
- package/lib/esm/common/ant.js +2 -1
- package/lib/esm/common/contracts/ao-process.js +1 -18
- package/lib/esm/common/io.js +4 -3
- package/lib/esm/utils/ao.js +23 -2
- package/lib/esm/version.js +1 -1
- package/lib/types/common/contracts/ao-process.d.ts +2 -15
- package/lib/types/common.d.ts +2 -2
- package/lib/types/io.d.ts +12 -3
- package/lib/types/token.d.ts +13 -0
- package/lib/types/utils/ao.d.ts +4 -3
- package/lib/types/version.d.ts +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -128,7 +128,15 @@ const gateways = await io.getGateways();
|
|
|
128
128
|
"totalEpochsPrescribedCount": 31
|
|
129
129
|
},
|
|
130
130
|
"status": "joined",
|
|
131
|
-
"vaults": {}
|
|
131
|
+
"vaults": {},
|
|
132
|
+
"weights": {
|
|
133
|
+
"compositeWeight": 0.97688888893556,
|
|
134
|
+
"gatewayRewardRatioWeight": 1,
|
|
135
|
+
"tenureWeight": 0.19444444444444,
|
|
136
|
+
"observerRewardRatioWeight": 1,
|
|
137
|
+
"normalizedCompositeWeight": 0.19247316211083,
|
|
138
|
+
"stakeWeight": 5.02400000024
|
|
139
|
+
}
|
|
132
140
|
}
|
|
133
141
|
],
|
|
134
142
|
"hasMore": true,
|
|
@@ -286,7 +294,7 @@ const balance = await io
|
|
|
286
294
|
.getBalance({
|
|
287
295
|
address: 'QGWqtJdLLgm2ehFWiiPzMaoFLD50CnGuzZIPEdoDRGQ',
|
|
288
296
|
})
|
|
289
|
-
.then((balance) => new mIOToken().toIO()); // convert it to IO for readability
|
|
297
|
+
.then((balance: number) => new mIOToken(balance).toIO()); // convert it to IO for readability
|
|
290
298
|
```
|
|
291
299
|
|
|
292
300
|
<details>
|
|
@@ -368,7 +376,15 @@ const gateway = await io.getGateway({
|
|
|
368
376
|
"totalEpochsPrescribedCount": 31
|
|
369
377
|
},
|
|
370
378
|
"status": "joined",
|
|
371
|
-
"vaults": {}
|
|
379
|
+
"vaults": {},
|
|
380
|
+
"weights": {
|
|
381
|
+
"compositeWeight": 0.97688888893556,
|
|
382
|
+
"gatewayRewardRatioWeight": 1,
|
|
383
|
+
"tenureWeight": 0.19444444444444,
|
|
384
|
+
"observerRewardRatioWeight": 1,
|
|
385
|
+
"normalizedCompositeWeight": 0.19247316211083,
|
|
386
|
+
"stakeWeight": 5.02400000024
|
|
387
|
+
}
|
|
372
388
|
}
|
|
373
389
|
```
|
|
374
390
|
|
|
@@ -416,7 +432,15 @@ Available `sortBy` options are any of the keys on the gateway object, e.g. `oper
|
|
|
416
432
|
"totalEpochsPrescribedCount": 31
|
|
417
433
|
},
|
|
418
434
|
"status": "joined",
|
|
419
|
-
"vaults": {}
|
|
435
|
+
"vaults": {},
|
|
436
|
+
"weights": {
|
|
437
|
+
"compositeWeight": 0.97688888893556,
|
|
438
|
+
"gatewayRewardRatioWeight": 1,
|
|
439
|
+
"tenureWeight": 0.19444444444444,
|
|
440
|
+
"observerRewardRatioWeight": 1,
|
|
441
|
+
"normalizedCompositeWeight": 0.19247316211083,
|
|
442
|
+
"stakeWeight": 5.02400000024
|
|
443
|
+
}
|
|
420
444
|
}
|
|
421
445
|
],
|
|
422
446
|
"hasMore": true,
|