@ar.io/sdk 1.2.0 → 1.2.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.
@@ -45,7 +45,7 @@ class IOReadable {
45
45
  constructor(config, arweave = arweave_1.default.init({})) {
46
46
  if (!config) {
47
47
  this.process = new ao_process_js_1.AOProcess({
48
- processId: constants_js_1.ioDevnetProcessId,
48
+ processId: constants_js_1.IO_TESTNET_PROCESS_ID,
49
49
  });
50
50
  }
51
51
  else if ((0, io_js_1.isProcessConfiguration)(config)) {
@@ -297,7 +297,7 @@ class IOWriteable extends IOReadable {
297
297
  if (Object.keys(config).length === 0) {
298
298
  super({
299
299
  process: new ao_process_js_1.AOProcess({
300
- processId: constants_js_1.ioDevnetProcessId,
300
+ processId: constants_js_1.IO_TESTNET_PROCESS_ID,
301
301
  }),
302
302
  });
303
303
  this.signer = signer;
@@ -23,7 +23,7 @@ const ant_js_1 = require("../../common/ant.js");
23
23
  const io_js_1 = require("../../common/io.js");
24
24
  const constants_js_1 = require("../../constants.js");
25
25
  const getANTProcessesOwnedByWallet = async ({ address, contract = io_js_1.IO.init({
26
- processId: constants_js_1.ioDevnetProcessId,
26
+ processId: constants_js_1.IO_TESTNET_PROCESS_ID,
27
27
  }), }) => {
28
28
  const throttle = (0, plimit_lit_1.pLimit)(50);
29
29
  // get the record names of the registry - TODO: this may need to be paginated
@@ -71,7 +71,7 @@ class ArNSEventEmitter extends eventemitter3_1.EventEmitter {
71
71
  timeoutMs; // timeout for each request to 3 seconds
72
72
  throttle;
73
73
  constructor({ contract = io_js_1.IO.init({
74
- processId: constants_js_1.ioDevnetProcessId,
74
+ processId: constants_js_1.IO_TESTNET_PROCESS_ID,
75
75
  }), timeoutMs = 60_000, concurrency = 30, }) {
76
76
  super();
77
77
  this.contract = contract;
@@ -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 = '1.2.0';
21
+ exports.version = '1.2.1';
@@ -15,7 +15,7 @@
15
15
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
  */
17
17
  import Arweave from 'arweave';
18
- import { ioDevnetProcessId } from '../constants.js';
18
+ import { IO_TESTNET_PROCESS_ID } from '../constants.js';
19
19
  import { isProcessConfiguration, isProcessIdConfiguration, } from '../io.js';
20
20
  import { AOProcess } from './contracts/ao-process.js';
21
21
  import { InvalidContractConfigurationError } from './error.js';
@@ -38,7 +38,7 @@ export class IOReadable {
38
38
  constructor(config, arweave = Arweave.init({})) {
39
39
  if (!config) {
40
40
  this.process = new AOProcess({
41
- processId: ioDevnetProcessId,
41
+ processId: IO_TESTNET_PROCESS_ID,
42
42
  });
43
43
  }
44
44
  else if (isProcessConfiguration(config)) {
@@ -289,7 +289,7 @@ export class IOWriteable extends IOReadable {
289
289
  if (Object.keys(config).length === 0) {
290
290
  super({
291
291
  process: new AOProcess({
292
- processId: ioDevnetProcessId,
292
+ processId: IO_TESTNET_PROCESS_ID,
293
293
  }),
294
294
  });
295
295
  this.signer = signer;
@@ -18,9 +18,9 @@ import { EventEmitter } from 'eventemitter3';
18
18
  import { pLimit } from 'plimit-lit';
19
19
  import { ANT } from '../../common/ant.js';
20
20
  import { IO } from '../../common/io.js';
21
- import { ioDevnetProcessId } from '../../constants.js';
21
+ import { IO_TESTNET_PROCESS_ID } from '../../constants.js';
22
22
  export const getANTProcessesOwnedByWallet = async ({ address, contract = IO.init({
23
- processId: ioDevnetProcessId,
23
+ processId: IO_TESTNET_PROCESS_ID,
24
24
  }), }) => {
25
25
  const throttle = pLimit(50);
26
26
  // get the record names of the registry - TODO: this may need to be paginated
@@ -67,7 +67,7 @@ export class ArNSEventEmitter extends EventEmitter {
67
67
  timeoutMs; // timeout for each request to 3 seconds
68
68
  throttle;
69
69
  constructor({ contract = IO.init({
70
- processId: ioDevnetProcessId,
70
+ processId: IO_TESTNET_PROCESS_ID,
71
71
  }), timeoutMs = 60_000, concurrency = 30, }) {
72
72
  super();
73
73
  this.contract = contract;
@@ -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 = '1.2.0';
18
+ export const version = '1.2.1';
@@ -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 = "1.2.0-alpha.21";
17
+ export declare const version = "1.2.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"