@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.
@@ -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' },
@@ -18,4 +18,4 @@
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.version = void 0;
20
20
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
21
- exports.version = '2.1.0-alpha.1';
21
+ exports.version = '2.1.0-alpha.2';
@@ -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' },
@@ -15,4 +15,4 @@
15
15
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
  */
17
17
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
18
- export const version = '2.1.0-alpha.1';
18
+ export const version = '2.1.0-alpha.2';
@@ -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
@@ -76,6 +76,7 @@ export interface AoIORead {
76
76
  Logo: string;
77
77
  Denomination: number;
78
78
  }>;
79
+ getTokenSupply(): Promise<number>;
79
80
  getEpochSettings(params?: EpochInput): Promise<AoEpochSettings>;
80
81
  getGateway({ address, }: {
81
82
  address: WalletAddress;
@@ -14,4 +14,4 @@
14
14
  * You should have received a copy of the GNU Affero General Public License
15
15
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
  */
17
- export declare const version = "2.0.3-alpha.1";
17
+ export declare const version = "2.1.0-alpha.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "2.1.0-alpha.1",
3
+ "version": "2.1.0-alpha.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"