@ar.io/sdk 3.7.1 → 3.8.1

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.
@@ -75,7 +75,7 @@ function makeCommand({ description, name, options = [], action, }) {
75
75
  return appliedCommand;
76
76
  }
77
77
  exports.makeCommand = makeCommand;
78
- function arioProcessIdFromOptions({ arioProcessId, devnet, testnet, mainnet, }) {
78
+ function arioProcessIdFromOptions({ arioProcessId, devnet, testnet, }) {
79
79
  if (arioProcessId !== undefined) {
80
80
  return arioProcessId;
81
81
  }
@@ -85,10 +85,7 @@ function arioProcessIdFromOptions({ arioProcessId, devnet, testnet, mainnet, })
85
85
  if (testnet) {
86
86
  return index_js_1.ARIO_TESTNET_PROCESS_ID;
87
87
  }
88
- if (mainnet) {
89
- return index_js_1.ARIO_MAINNET_PROCESS_ID;
90
- }
91
- return index_js_1.ARIO_TESTNET_PROCESS_ID; // TODO(4.0): move to mainnet
88
+ return index_js_1.ARIO_MAINNET_PROCESS_ID;
92
89
  }
93
90
  exports.arioProcessIdFromOptions = arioProcessIdFromOptions;
94
91
  function jwkFromOptions({ privateKey, walletFile, }) {
@@ -490,7 +490,7 @@ class AoANTWriteable extends AoANTReadable {
490
490
  * @returns {Promise<AoMessageResult>} The result of the interaction.
491
491
  * @example
492
492
  * ```ts
493
- * ant.releaseName({ name: "ardrive", arioProcessId: AR_TESTNET_PROCESS_ID });
493
+ * ant.releaseName({ name: "ardrive", arioProcessId: ARIO_MAINNET_PROCESS_ID });
494
494
  * ```
495
495
  */
496
496
  async releaseName({ name, arioProcessId }, options) {
@@ -514,7 +514,7 @@ class AoANTWriteable extends AoANTReadable {
514
514
  * @returns {Promise<AoMessageResult>} The result of the interaction.
515
515
  * @example
516
516
  * ```ts
517
- * ant.reassignName({ name: "ardrive", arioProcessId: ARIO_TESTNET_PROCESS_ID, antProcessId: NEW_ANT_PROCESS_ID });
517
+ * ant.reassignName({ name: "ardrive", arioProcessId: ARIO_MAINNET_PROCESS_ID, antProcessId: NEW_ANT_PROCESS_ID });
518
518
  * ```
519
519
  */
520
520
  async reassignName({ name, arioProcessId, antProcessId, }, options) {
@@ -539,7 +539,7 @@ class AoANTWriteable extends AoANTReadable {
539
539
  * @returns {Promise<AoMessageResult>} The result of the interaction.
540
540
  * @example
541
541
  * ```ts
542
- * ant.approvePrimaryNameRequest({ name: "ardrive", address: "U7RXcpaVShG4u9nIcPVmm2FJSM5Gru9gQCIiRaIPV7f", arioProcessId: ARIO_TESTNET_PROCESS_ID }); // approves the request for ardrive.ar.io to be registered by the address
542
+ * ant.approvePrimaryNameRequest({ name: "ardrive", address: "U7RXcpaVShG4u9nIcPVmm2FJSM5Gru9gQCIiRaIPV7f", arioProcessId: ARIO_MAINNET_PROCESS_ID }); // approves the request for ardrive.ar.io to be registered by the address
543
543
  * ```
544
544
  */
545
545
  async approvePrimaryNameRequest({ name, address, arioProcessId, }, options) {
@@ -564,7 +564,7 @@ class AoANTWriteable extends AoANTReadable {
564
564
  * @returns {Promise<AoMessageResult>} The result of the interaction.
565
565
  * @example
566
566
  * ```ts
567
- * ant.removePrimaryNames({ names: ["ardrive", "dapp_ardrive"], arioProcessId: ARIO_TESTNET_PROCESS_ID, notifyOwners: true }); // removes the primary names and associated wallet addresses assigned to "ardrive" and "dapp_ardrive"
567
+ * ant.removePrimaryNames({ names: ["ardrive", "dapp_ardrive"], arioProcessId: ARIO_MAINNET_PROCESS_ID, notifyOwners: true }); // removes the primary names and associated wallet addresses assigned to "ardrive" and "dapp_ardrive"
568
568
  * ```
569
569
  */
570
570
  async removePrimaryNames({ names, arioProcessId, notifyOwners = false, }, options) {
@@ -26,7 +26,7 @@ class ARIOReadable {
26
26
  this.arweave = config?.arweave ?? arweave_js_2.defaultArweave;
27
27
  if (config === undefined || Object.keys(config).length === 0) {
28
28
  this.process = new ao_process_js_1.AOProcess({
29
- processId: constants_js_1.ARIO_TESTNET_PROCESS_ID,
29
+ processId: constants_js_1.ARIO_MAINNET_PROCESS_ID,
30
30
  });
31
31
  }
32
32
  else if ((0, io_js_1.isProcessConfiguration)(config)) {
@@ -522,7 +522,7 @@ class ARIOWriteable extends ARIOReadable {
522
522
  if (config === undefined) {
523
523
  super({
524
524
  process: new ao_process_js_1.AOProcess({
525
- processId: constants_js_1.ARIO_TESTNET_PROCESS_ID,
525
+ processId: constants_js_1.ARIO_MAINNET_PROCESS_ID,
526
526
  }),
527
527
  });
528
528
  }
@@ -27,7 +27,7 @@ exports.ARIO_DEVNET_PROCESS_ID = 'GaQrvEMKBpkjofgnBi_B3IgIDmY_XYelVLB6GcRGrHc';
27
27
  // backwards compatibility - TODO: remove in v2.0.0
28
28
  exports.arioDevnetProcessId = exports.ARIO_DEVNET_PROCESS_ID;
29
29
  exports.ARIO_TESTNET_PROCESS_ID = 'agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA';
30
- exports.ARIO_MAINNET_PROCESS_ID = 'placeholder'; // TODO: add id
30
+ exports.ARIO_MAINNET_PROCESS_ID = 'qNvAoz0TgcH7DMg8BCVn8jF32QH5L6T29VjHxhHqqGE';
31
31
  exports.ANT_REGISTRY_ID = 'i_le_yKKPVstLTDSmkHRqf-wYphMnwB9OhleiTgMkWc';
32
32
  exports.MARIO_PER_ARIO = 1_000_000;
33
33
  exports.AOS_MODULE_ID = 'pb4fCvdJqwT-_bn38ERMdqnOF4weRMjoJ6bY6yfl4a8';
@@ -36,7 +36,7 @@ exports.paginationParamsToTags = paginationParamsToTags;
36
36
  * @param arweave - The Arweave instance
37
37
  * @returns The epoch with distribution data
38
38
  */
39
- const getEpochDataFromGql = async ({ arweave, epochIndex, processId = constants_js_1.ARIO_TESTNET_PROCESS_ID, retries = 3, gqlUrl = 'https://arweave-search.goldsky.com/graphql', }) => {
39
+ const getEpochDataFromGql = async ({ arweave, epochIndex, processId = constants_js_1.ARIO_MAINNET_PROCESS_ID, retries = 3, gqlUrl = 'https://arweave-search.goldsky.com/graphql', }) => {
40
40
  // fetch from gql
41
41
  const query = (0, exports.epochDistributionNoticeGqlQuery)({ epochIndex, processId });
42
42
  // add three retries with exponential backoff
@@ -73,10 +73,10 @@ exports.getEpochDataFromGql = getEpochDataFromGql;
73
73
  * Get the epoch with distribution data for the current epoch
74
74
  * @param arweave - The Arweave instance
75
75
  * @param epochIndex - The index of the epoch
76
- * @param processId - The process ID (optional, defaults to ARIO_TESTNET_PROCESS_ID)
76
+ * @param processId - The process ID (optional, defaults to ARIO_MAINNET_PROCESS_ID)
77
77
  * @returns string - The stringified GQL query
78
78
  */
79
- const epochDistributionNoticeGqlQuery = ({ epochIndex, processId = constants_js_1.ARIO_TESTNET_PROCESS_ID, authorities = ['fcoN_xJeisVsPXA-trzVAuIiqO3ydLQxM-L4XbrQKzY'], }) => {
79
+ const epochDistributionNoticeGqlQuery = ({ epochIndex, processId = constants_js_1.ARIO_MAINNET_PROCESS_ID, authorities = ['fcoN_xJeisVsPXA-trzVAuIiqO3ydLQxM-L4XbrQKzY'], }) => {
80
80
  // write the query
81
81
  const gqlQuery = JSON.stringify({
82
82
  query: `
@@ -57,7 +57,7 @@ class ArNSEventEmitter extends eventemitter3_1.EventEmitter {
57
57
  strict;
58
58
  antAoClient;
59
59
  constructor({ contract = io_js_1.ARIO.init({
60
- processId: constants_js_1.ARIO_TESTNET_PROCESS_ID,
60
+ processId: constants_js_1.ARIO_MAINNET_PROCESS_ID,
61
61
  }), timeoutMs = 60_000, concurrency = 30, logger = logger_js_1.Logger.default, strict = false, antAoClient = (0, aoconnect_1.connect)(), } = {}) {
62
62
  super();
63
63
  this.contract = contract;
@@ -125,7 +125,7 @@ class ArNSEventEmitter extends eventemitter3_1.EventEmitter {
125
125
  }
126
126
  exports.ArNSEventEmitter = ArNSEventEmitter;
127
127
  const fetchAllArNSRecords = async ({ contract = io_js_1.ARIO.init({
128
- processId: constants_js_1.ARIO_TESTNET_PROCESS_ID,
128
+ processId: constants_js_1.ARIO_MAINNET_PROCESS_ID,
129
129
  }), emitter, logger = logger_js_1.Logger.default, pageSize = 1000, }) => {
130
130
  let cursor;
131
131
  const startTimestamp = Date.now();
@@ -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 = '3.7.1';
20
+ exports.version = '3.8.1';
@@ -65,7 +65,7 @@ export function makeCommand({ description, name, options = [], action, }) {
65
65
  }
66
66
  return appliedCommand;
67
67
  }
68
- export function arioProcessIdFromOptions({ arioProcessId, devnet, testnet, mainnet, }) {
68
+ export function arioProcessIdFromOptions({ arioProcessId, devnet, testnet, }) {
69
69
  if (arioProcessId !== undefined) {
70
70
  return arioProcessId;
71
71
  }
@@ -75,10 +75,7 @@ export function arioProcessIdFromOptions({ arioProcessId, devnet, testnet, mainn
75
75
  if (testnet) {
76
76
  return ARIO_TESTNET_PROCESS_ID;
77
77
  }
78
- if (mainnet) {
79
- return ARIO_MAINNET_PROCESS_ID;
80
- }
81
- return ARIO_TESTNET_PROCESS_ID; // TODO(4.0): move to mainnet
78
+ return ARIO_MAINNET_PROCESS_ID;
82
79
  }
83
80
  function jwkFromOptions({ privateKey, walletFile, }) {
84
81
  if (privateKey !== undefined) {
@@ -485,7 +485,7 @@ export class AoANTWriteable extends AoANTReadable {
485
485
  * @returns {Promise<AoMessageResult>} The result of the interaction.
486
486
  * @example
487
487
  * ```ts
488
- * ant.releaseName({ name: "ardrive", arioProcessId: AR_TESTNET_PROCESS_ID });
488
+ * ant.releaseName({ name: "ardrive", arioProcessId: ARIO_MAINNET_PROCESS_ID });
489
489
  * ```
490
490
  */
491
491
  async releaseName({ name, arioProcessId }, options) {
@@ -509,7 +509,7 @@ export class AoANTWriteable extends AoANTReadable {
509
509
  * @returns {Promise<AoMessageResult>} The result of the interaction.
510
510
  * @example
511
511
  * ```ts
512
- * ant.reassignName({ name: "ardrive", arioProcessId: ARIO_TESTNET_PROCESS_ID, antProcessId: NEW_ANT_PROCESS_ID });
512
+ * ant.reassignName({ name: "ardrive", arioProcessId: ARIO_MAINNET_PROCESS_ID, antProcessId: NEW_ANT_PROCESS_ID });
513
513
  * ```
514
514
  */
515
515
  async reassignName({ name, arioProcessId, antProcessId, }, options) {
@@ -534,7 +534,7 @@ export class AoANTWriteable extends AoANTReadable {
534
534
  * @returns {Promise<AoMessageResult>} The result of the interaction.
535
535
  * @example
536
536
  * ```ts
537
- * ant.approvePrimaryNameRequest({ name: "ardrive", address: "U7RXcpaVShG4u9nIcPVmm2FJSM5Gru9gQCIiRaIPV7f", arioProcessId: ARIO_TESTNET_PROCESS_ID }); // approves the request for ardrive.ar.io to be registered by the address
537
+ * ant.approvePrimaryNameRequest({ name: "ardrive", address: "U7RXcpaVShG4u9nIcPVmm2FJSM5Gru9gQCIiRaIPV7f", arioProcessId: ARIO_MAINNET_PROCESS_ID }); // approves the request for ardrive.ar.io to be registered by the address
538
538
  * ```
539
539
  */
540
540
  async approvePrimaryNameRequest({ name, address, arioProcessId, }, options) {
@@ -559,7 +559,7 @@ export class AoANTWriteable extends AoANTReadable {
559
559
  * @returns {Promise<AoMessageResult>} The result of the interaction.
560
560
  * @example
561
561
  * ```ts
562
- * ant.removePrimaryNames({ names: ["ardrive", "dapp_ardrive"], arioProcessId: ARIO_TESTNET_PROCESS_ID, notifyOwners: true }); // removes the primary names and associated wallet addresses assigned to "ardrive" and "dapp_ardrive"
562
+ * ant.removePrimaryNames({ names: ["ardrive", "dapp_ardrive"], arioProcessId: ARIO_MAINNET_PROCESS_ID, notifyOwners: true }); // removes the primary names and associated wallet addresses assigned to "ardrive" and "dapp_ardrive"
563
563
  * ```
564
564
  */
565
565
  async removePrimaryNames({ names, arioProcessId, notifyOwners = false, }, options) {
@@ -1,4 +1,4 @@
1
- import { ARIO_TESTNET_PROCESS_ID } from '../constants.js';
1
+ import { ARIO_MAINNET_PROCESS_ID } from '../constants.js';
2
2
  import { isProcessConfiguration, isProcessIdConfiguration, } from '../types/io.js';
3
3
  import { createAoSigner } from '../utils/ao.js';
4
4
  import { getEpochDataFromGql, paginationParamsToTags, pruneTags, removeEligibleRewardsFromEpochData, sortAndPaginateEpochDataIntoEligibleDistributions, } from '../utils/arweave.js';
@@ -22,7 +22,7 @@ export class ARIOReadable {
22
22
  this.arweave = config?.arweave ?? defaultArweave;
23
23
  if (config === undefined || Object.keys(config).length === 0) {
24
24
  this.process = new AOProcess({
25
- processId: ARIO_TESTNET_PROCESS_ID,
25
+ processId: ARIO_MAINNET_PROCESS_ID,
26
26
  });
27
27
  }
28
28
  else if (isProcessConfiguration(config)) {
@@ -517,7 +517,7 @@ export class ARIOWriteable extends ARIOReadable {
517
517
  if (config === undefined) {
518
518
  super({
519
519
  process: new AOProcess({
520
- processId: ARIO_TESTNET_PROCESS_ID,
520
+ processId: ARIO_MAINNET_PROCESS_ID,
521
521
  }),
522
522
  });
523
523
  }
@@ -24,7 +24,7 @@ export const ARIO_DEVNET_PROCESS_ID = 'GaQrvEMKBpkjofgnBi_B3IgIDmY_XYelVLB6GcRGr
24
24
  // backwards compatibility - TODO: remove in v2.0.0
25
25
  export const arioDevnetProcessId = ARIO_DEVNET_PROCESS_ID;
26
26
  export const ARIO_TESTNET_PROCESS_ID = 'agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA';
27
- export const ARIO_MAINNET_PROCESS_ID = 'placeholder'; // TODO: add id
27
+ export const ARIO_MAINNET_PROCESS_ID = 'qNvAoz0TgcH7DMg8BCVn8jF32QH5L6T29VjHxhHqqGE';
28
28
  export const ANT_REGISTRY_ID = 'i_le_yKKPVstLTDSmkHRqf-wYphMnwB9OhleiTgMkWc';
29
29
  export const MARIO_PER_ARIO = 1_000_000;
30
30
  export const AOS_MODULE_ID = 'pb4fCvdJqwT-_bn38ERMdqnOF4weRMjoJ6bY6yfl4a8';
@@ -1,4 +1,4 @@
1
- import { ARIO_TESTNET_PROCESS_ID, ARWEAVE_TX_REGEX } from '../constants.js';
1
+ import { ARIO_MAINNET_PROCESS_ID, ARWEAVE_TX_REGEX } from '../constants.js';
2
2
  import { isDistributedEpoch, } from '../types/io.js';
3
3
  import { parseAoEpochData } from './ao.js';
4
4
  export const validateArweaveId = (id) => {
@@ -29,7 +29,7 @@ export const paginationParamsToTags = (params) => {
29
29
  * @param arweave - The Arweave instance
30
30
  * @returns The epoch with distribution data
31
31
  */
32
- export const getEpochDataFromGql = async ({ arweave, epochIndex, processId = ARIO_TESTNET_PROCESS_ID, retries = 3, gqlUrl = 'https://arweave-search.goldsky.com/graphql', }) => {
32
+ export const getEpochDataFromGql = async ({ arweave, epochIndex, processId = ARIO_MAINNET_PROCESS_ID, retries = 3, gqlUrl = 'https://arweave-search.goldsky.com/graphql', }) => {
33
33
  // fetch from gql
34
34
  const query = epochDistributionNoticeGqlQuery({ epochIndex, processId });
35
35
  // add three retries with exponential backoff
@@ -65,10 +65,10 @@ export const getEpochDataFromGql = async ({ arweave, epochIndex, processId = ARI
65
65
  * Get the epoch with distribution data for the current epoch
66
66
  * @param arweave - The Arweave instance
67
67
  * @param epochIndex - The index of the epoch
68
- * @param processId - The process ID (optional, defaults to ARIO_TESTNET_PROCESS_ID)
68
+ * @param processId - The process ID (optional, defaults to ARIO_MAINNET_PROCESS_ID)
69
69
  * @returns string - The stringified GQL query
70
70
  */
71
- export const epochDistributionNoticeGqlQuery = ({ epochIndex, processId = ARIO_TESTNET_PROCESS_ID, authorities = ['fcoN_xJeisVsPXA-trzVAuIiqO3ydLQxM-L4XbrQKzY'], }) => {
71
+ export const epochDistributionNoticeGqlQuery = ({ epochIndex, processId = ARIO_MAINNET_PROCESS_ID, authorities = ['fcoN_xJeisVsPXA-trzVAuIiqO3ydLQxM-L4XbrQKzY'], }) => {
72
72
  // write the query
73
73
  const gqlQuery = JSON.stringify({
74
74
  query: `
@@ -21,7 +21,7 @@ import { ANT } from '../common/ant.js';
21
21
  import { AOProcess } from '../common/index.js';
22
22
  import { ARIO } from '../common/io.js';
23
23
  import { Logger } from '../common/logger.js';
24
- import { ARIO_TESTNET_PROCESS_ID } from '../constants.js';
24
+ import { ARIO_MAINNET_PROCESS_ID } from '../constants.js';
25
25
  /**
26
26
  * @beta This API is in beta and may change in the future.
27
27
  */
@@ -53,7 +53,7 @@ export class ArNSEventEmitter extends EventEmitter {
53
53
  strict;
54
54
  antAoClient;
55
55
  constructor({ contract = ARIO.init({
56
- processId: ARIO_TESTNET_PROCESS_ID,
56
+ processId: ARIO_MAINNET_PROCESS_ID,
57
57
  }), timeoutMs = 60_000, concurrency = 30, logger = Logger.default, strict = false, antAoClient = connect(), } = {}) {
58
58
  super();
59
59
  this.contract = contract;
@@ -120,7 +120,7 @@ export class ArNSEventEmitter extends EventEmitter {
120
120
  }
121
121
  }
122
122
  export const fetchAllArNSRecords = async ({ contract = ARIO.init({
123
- processId: ARIO_TESTNET_PROCESS_ID,
123
+ processId: ARIO_MAINNET_PROCESS_ID,
124
124
  }), emitter, logger = Logger.default, pageSize = 1000, }) => {
125
125
  let cursor;
126
126
  const startTimestamp = Date.now();
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
17
- export const version = '3.7.1';
17
+ export const version = '3.8.1';
@@ -17,7 +17,7 @@ export declare function makeCommand<O extends OptionValues = GlobalCLIOptions>({
17
17
  action?: (options: O) => Promise<JsonSerializable>;
18
18
  options?: CommanderOption[];
19
19
  }): Command;
20
- export declare function arioProcessIdFromOptions({ arioProcessId, devnet, testnet, mainnet, }: GlobalCLIOptions): string;
20
+ export declare function arioProcessIdFromOptions({ arioProcessId, devnet, testnet, }: GlobalCLIOptions): string;
21
21
  export declare function requiredJwkFromOptions(options: WalletCLIOptions): JWKInterface;
22
22
  export declare function jwkToAddress(jwk: JWKInterface): string;
23
23
  export declare function getLoggerFromOptions(options: GlobalCLIOptions): Logger;
@@ -284,7 +284,7 @@ export declare class AoANTWriteable extends AoANTReadable implements AoANTWrite
284
284
  * @returns {Promise<AoMessageResult>} The result of the interaction.
285
285
  * @example
286
286
  * ```ts
287
- * ant.releaseName({ name: "ardrive", arioProcessId: AR_TESTNET_PROCESS_ID });
287
+ * ant.releaseName({ name: "ardrive", arioProcessId: ARIO_MAINNET_PROCESS_ID });
288
288
  * ```
289
289
  */
290
290
  releaseName({ name, arioProcessId }: {
@@ -300,7 +300,7 @@ export declare class AoANTWriteable extends AoANTReadable implements AoANTWrite
300
300
  * @returns {Promise<AoMessageResult>} The result of the interaction.
301
301
  * @example
302
302
  * ```ts
303
- * ant.reassignName({ name: "ardrive", arioProcessId: ARIO_TESTNET_PROCESS_ID, antProcessId: NEW_ANT_PROCESS_ID });
303
+ * ant.reassignName({ name: "ardrive", arioProcessId: ARIO_MAINNET_PROCESS_ID, antProcessId: NEW_ANT_PROCESS_ID });
304
304
  * ```
305
305
  */
306
306
  reassignName({ name, arioProcessId, antProcessId, }: {
@@ -317,7 +317,7 @@ export declare class AoANTWriteable extends AoANTReadable implements AoANTWrite
317
317
  * @returns {Promise<AoMessageResult>} The result of the interaction.
318
318
  * @example
319
319
  * ```ts
320
- * ant.approvePrimaryNameRequest({ name: "ardrive", address: "U7RXcpaVShG4u9nIcPVmm2FJSM5Gru9gQCIiRaIPV7f", arioProcessId: ARIO_TESTNET_PROCESS_ID }); // approves the request for ardrive.ar.io to be registered by the address
320
+ * ant.approvePrimaryNameRequest({ name: "ardrive", address: "U7RXcpaVShG4u9nIcPVmm2FJSM5Gru9gQCIiRaIPV7f", arioProcessId: ARIO_MAINNET_PROCESS_ID }); // approves the request for ardrive.ar.io to be registered by the address
321
321
  * ```
322
322
  */
323
323
  approvePrimaryNameRequest({ name, address, arioProcessId, }: {
@@ -334,7 +334,7 @@ export declare class AoANTWriteable extends AoANTReadable implements AoANTWrite
334
334
  * @returns {Promise<AoMessageResult>} The result of the interaction.
335
335
  * @example
336
336
  * ```ts
337
- * ant.removePrimaryNames({ names: ["ardrive", "dapp_ardrive"], arioProcessId: ARIO_TESTNET_PROCESS_ID, notifyOwners: true }); // removes the primary names and associated wallet addresses assigned to "ardrive" and "dapp_ardrive"
337
+ * ant.removePrimaryNames({ names: ["ardrive", "dapp_ardrive"], arioProcessId: ARIO_MAINNET_PROCESS_ID, notifyOwners: true }); // removes the primary names and associated wallet addresses assigned to "ardrive" and "dapp_ardrive"
338
338
  * ```
339
339
  */
340
340
  removePrimaryNames({ names, arioProcessId, notifyOwners, }: {
@@ -22,7 +22,7 @@ export declare const ARNS_DEVNET_REGISTRY_TX = "_NctcA2sRy1-J4OmIQZbYFPM17piNcbd
22
22
  export declare const ARIO_DEVNET_PROCESS_ID = "GaQrvEMKBpkjofgnBi_B3IgIDmY_XYelVLB6GcRGrHc";
23
23
  export declare const arioDevnetProcessId = "GaQrvEMKBpkjofgnBi_B3IgIDmY_XYelVLB6GcRGrHc";
24
24
  export declare const ARIO_TESTNET_PROCESS_ID = "agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA";
25
- export declare const ARIO_MAINNET_PROCESS_ID = "placeholder";
25
+ export declare const ARIO_MAINNET_PROCESS_ID = "qNvAoz0TgcH7DMg8BCVn8jF32QH5L6T29VjHxhHqqGE";
26
26
  export declare const ANT_REGISTRY_ID = "i_le_yKKPVstLTDSmkHRqf-wYphMnwB9OhleiTgMkWc";
27
27
  export declare const MARIO_PER_ARIO = 1000000;
28
28
  export declare const AOS_MODULE_ID = "pb4fCvdJqwT-_bn38ERMdqnOF4weRMjoJ6bY6yfl4a8";
@@ -50,7 +50,7 @@ export declare const getEpochDataFromGql: ({ arweave, epochIndex, processId, ret
50
50
  * Get the epoch with distribution data for the current epoch
51
51
  * @param arweave - The Arweave instance
52
52
  * @param epochIndex - The index of the epoch
53
- * @param processId - The process ID (optional, defaults to ARIO_TESTNET_PROCESS_ID)
53
+ * @param processId - The process ID (optional, defaults to ARIO_MAINNET_PROCESS_ID)
54
54
  * @returns string - The stringified GQL query
55
55
  */
56
56
  export declare const epochDistributionNoticeGqlQuery: ({ epochIndex, processId, authorities, }: {
@@ -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 = "3.7.1-alpha.1";
16
+ export declare const version = "3.8.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "3.7.1",
3
+ "version": "3.8.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"