@ar.io/sdk 2.3.2-alpha.1 → 2.3.2-alpha.3

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.
@@ -341,6 +341,11 @@ class IOReadable {
341
341
  tags: [{ name: 'Action', value: 'Get-Registration-Fees' }],
342
342
  });
343
343
  }
344
+ async getDemandFactor() {
345
+ return this.process.read({
346
+ tags: [{ name: 'Action', value: 'Demand-Factor' }],
347
+ });
348
+ }
344
349
  }
345
350
  exports.IOReadable = IOReadable;
346
351
  class IOWriteable extends IOReadable {
@@ -17,4 +17,4 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.version = void 0;
19
19
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
20
- exports.version = '2.3.2-alpha.1';
20
+ exports.version = '2.3.2-alpha.3';
@@ -337,6 +337,11 @@ export class IOReadable {
337
337
  tags: [{ name: 'Action', value: 'Get-Registration-Fees' }],
338
338
  });
339
339
  }
340
+ async getDemandFactor() {
341
+ return this.process.read({
342
+ tags: [{ name: 'Action', value: 'Demand-Factor' }],
343
+ });
344
+ }
340
345
  }
341
346
  export class IOWriteable extends IOReadable {
342
347
  signer;
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
17
- export const version = '2.3.2-alpha.1';
17
+ export const version = '2.3.2-alpha.3';
@@ -90,6 +90,7 @@ export declare class IOReadable implements AoIORead {
90
90
  name: string;
91
91
  }): Promise<number>;
92
92
  getRegistrationFees(): Promise<AoRegistrationFees>;
93
+ getDemandFactor(): Promise<number>;
93
94
  }
94
95
  export declare class IOWriteable extends IOReadable implements AoIOWrite {
95
96
  protected process: AOProcess;
package/lib/types/io.d.ts CHANGED
@@ -77,6 +77,7 @@ export type AoEpochDistributionRewards = {
77
77
  };
78
78
  export type AoEpochDistributionData = {
79
79
  rewards: AoEpochDistributionRewards;
80
+ totalEligibleGateways: number;
80
81
  totalEligibleRewards: number;
81
82
  totalEligibleObserverReward: number;
82
83
  totalEligibleGatewayReward: number;
@@ -283,6 +284,7 @@ export interface AoIORead {
283
284
  quantity?: number;
284
285
  }): Promise<number>;
285
286
  getRegistrationFees(): Promise<AoRegistrationFees>;
287
+ getDemandFactor(): Promise<number>;
286
288
  }
287
289
  export interface AoIOWrite extends AoIORead {
288
290
  transfer({ target, qty, }: {
@@ -13,4 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare const version = "2.3.1";
16
+ export declare const version = "2.3.2-alpha.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "2.3.2-alpha.1",
3
+ "version": "2.3.2-alpha.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"