@ar.io/sdk 2.1.0-alpha.1 → 2.1.0-alpha.2
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 +10 -0
- package/bundles/web.bundle.min.js +2 -2
- package/lib/cjs/common/io.js +5 -0
- package/lib/cjs/version.js +1 -1
- package/lib/esm/common/io.js +5 -0
- package/lib/esm/version.js +1 -1
- package/lib/types/common/io.d.ts +1 -0
- package/lib/types/io.d.ts +1 -0
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
package/lib/cjs/common/io.js
CHANGED
|
@@ -46,6 +46,11 @@ class IOReadable {
|
|
|
46
46
|
tags: [{ name: 'Action', value: 'Info' }],
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
+
async getTokenSupply() {
|
|
50
|
+
return this.process.read({
|
|
51
|
+
tags: [{ name: 'Action', value: 'Total-Token-Supply' }],
|
|
52
|
+
});
|
|
53
|
+
}
|
|
49
54
|
async getEpochSettings(params) {
|
|
50
55
|
const allTags = [
|
|
51
56
|
{ name: 'Action', value: 'Epoch-Settings' },
|
package/lib/cjs/version.js
CHANGED
package/lib/esm/common/io.js
CHANGED
|
@@ -42,6 +42,11 @@ export class IOReadable {
|
|
|
42
42
|
tags: [{ name: 'Action', value: 'Info' }],
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
+
async getTokenSupply() {
|
|
46
|
+
return this.process.read({
|
|
47
|
+
tags: [{ name: 'Action', value: 'Total-Token-Supply' }],
|
|
48
|
+
});
|
|
49
|
+
}
|
|
45
50
|
async getEpochSettings(params) {
|
|
46
51
|
const allTags = [
|
|
47
52
|
{ name: 'Action', value: 'Epoch-Settings' },
|
package/lib/esm/version.js
CHANGED
package/lib/types/common/io.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export declare class IOReadable implements AoIORead {
|
|
|
49
49
|
Logo: string;
|
|
50
50
|
Denomination: number;
|
|
51
51
|
}>;
|
|
52
|
+
getTokenSupply(): Promise<number>;
|
|
52
53
|
getEpochSettings(params?: EpochInput): Promise<AoEpochSettings>;
|
|
53
54
|
getEpoch(epoch?: EpochInput): Promise<AoEpochData>;
|
|
54
55
|
getArNSRecord({ name, }: {
|
package/lib/types/io.d.ts
CHANGED
package/lib/types/version.d.ts
CHANGED