@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.
- package/bundles/web.bundle.min.js +3 -3
- package/lib/cjs/common/io.js +2 -2
- package/lib/cjs/utils/graphql/processes.js +2 -2
- package/lib/cjs/version.js +1 -1
- package/lib/esm/common/io.js +3 -3
- package/lib/esm/utils/graphql/processes.js +3 -3
- package/lib/esm/version.js +1 -1
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
package/lib/cjs/common/io.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
74
|
+
processId: constants_js_1.IO_TESTNET_PROCESS_ID,
|
|
75
75
|
}), timeoutMs = 60_000, concurrency = 30, }) {
|
|
76
76
|
super();
|
|
77
77
|
this.contract = contract;
|
package/lib/cjs/version.js
CHANGED
package/lib/esm/common/io.js
CHANGED
|
@@ -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 {
|
|
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:
|
|
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:
|
|
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 {
|
|
21
|
+
import { IO_TESTNET_PROCESS_ID } from '../../constants.js';
|
|
22
22
|
export const getANTProcessesOwnedByWallet = async ({ address, contract = IO.init({
|
|
23
|
-
processId:
|
|
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:
|
|
70
|
+
processId: IO_TESTNET_PROCESS_ID,
|
|
71
71
|
}), timeoutMs = 60_000, concurrency = 30, }) {
|
|
72
72
|
super();
|
|
73
73
|
this.contract = contract;
|
package/lib/esm/version.js
CHANGED
package/lib/types/version.d.ts
CHANGED