@ar.io/sdk 2.0.0-alpha.7 → 2.0.0-alpha.8

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.
@@ -373,6 +373,13 @@ class IOWriteable extends IOReadable {
373
373
  tags: prunedTags,
374
374
  });
375
375
  }
376
+ async leaveNetwork(options) {
377
+ const { tags = [] } = options || {};
378
+ return this.process.send({
379
+ signer: this.signer,
380
+ tags: [...tags, { name: 'Action', value: 'Leave-Network' }],
381
+ });
382
+ }
376
383
  async updateGatewaySettings({ allowDelegatedStaking, delegateRewardShareRatio, fqdn, label, minDelegatedStake, note, port, properties, protocol, autoStake, observerAddress, }, options) {
377
384
  const { tags = [] } = options || {};
378
385
  const allTags = [
@@ -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.0.0-alpha.7';
21
+ exports.version = '2.0.0-alpha.8';
@@ -368,6 +368,13 @@ export class IOWriteable extends IOReadable {
368
368
  tags: prunedTags,
369
369
  });
370
370
  }
371
+ async leaveNetwork(options) {
372
+ const { tags = [] } = options || {};
373
+ return this.process.send({
374
+ signer: this.signer,
375
+ tags: [...tags, { name: 'Action', value: 'Leave-Network' }],
376
+ });
377
+ }
371
378
  async updateGatewaySettings({ allowDelegatedStaking, delegateRewardShareRatio, fqdn, label, minDelegatedStake, note, port, properties, protocol, autoStake, observerAddress, }, options) {
372
379
  const { tags = [] } = options || {};
373
380
  const allTags = [
@@ -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.0.0-alpha.7';
18
+ export const version = '2.0.0-alpha.8';
@@ -105,6 +105,7 @@ export declare class IOWriteable extends IOReadable implements AoIOWrite {
105
105
  observerAddress: string;
106
106
  operatorStake: number | mIOToken;
107
107
  }, options?: WriteOptions): Promise<AoMessageResult>;
108
+ leaveNetwork(options?: WriteOptions): Promise<AoMessageResult>;
108
109
  updateGatewaySettings({ allowDelegatedStaking, delegateRewardShareRatio, fqdn, label, minDelegatedStake, note, port, properties, protocol, autoStake, observerAddress, }: Omit<UpdateGatewaySettingsParams, 'observerWallet'> & {
109
110
  observerAddress: string;
110
111
  }, options?: WriteOptions): Promise<AoMessageResult>;
package/lib/types/io.d.ts CHANGED
@@ -102,6 +102,7 @@ export interface AoIOWrite extends AoIORead {
102
102
  observerAddress: string;
103
103
  operatorStake: number | mIOToken;
104
104
  }, options?: WriteOptions): Promise<AoMessageResult>;
105
+ leaveNetwork(options?: WriteOptions): Promise<AoMessageResult>;
105
106
  updateGatewaySettings({ allowDelegatedStaking, delegateRewardShareRatio, fqdn, label, minDelegatedStake, note, port, properties, protocol, autoStake, observerAddress, }: Omit<UpdateGatewaySettingsParams, 'observerWallet'> & {
106
107
  observerAddress?: WalletAddress;
107
108
  }, options?: WriteOptions): Promise<AoMessageResult>;
@@ -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.0-alpha.6";
17
+ export declare const version = "2.0.0-alpha.7";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "2.0.0-alpha.7",
3
+ "version": "2.0.0-alpha.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"