@ar.io/sdk 3.10.0 → 3.10.2

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.
@@ -50,6 +50,10 @@ class ARIO {
50
50
  ...config,
51
51
  process: new ao_process_js_1.AOProcess({
52
52
  processId: constants_js_1.ARIO_MAINNET_PROCESS_ID,
53
+ ao: (0, aoconnect_1.connect)({
54
+ CU_URL: 'https://cu.ardrive.io',
55
+ ...config?.process?.ao,
56
+ }),
53
57
  }),
54
58
  });
55
59
  }
@@ -118,7 +118,7 @@ const getEpochDataFromGqlFallback = async ({ ao, epochIndex, processId = constan
118
118
  if (!messageResult) {
119
119
  continue;
120
120
  }
121
- for (const message of messageResult.Messages) {
121
+ for (const message of messageResult?.Messages ?? []) {
122
122
  const data = JSON.parse(message.Data);
123
123
  const tags = message.Tags;
124
124
  // check if the message results include epoch-distribution-notice for the requested epoch index
@@ -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.10.0';
20
+ exports.version = '3.10.2';
@@ -47,6 +47,10 @@ export class ARIO {
47
47
  ...config,
48
48
  process: new AOProcess({
49
49
  processId: ARIO_MAINNET_PROCESS_ID,
50
+ ao: connect({
51
+ CU_URL: 'https://cu.ardrive.io',
52
+ ...config?.process?.ao,
53
+ }),
50
54
  }),
51
55
  });
52
56
  }
@@ -107,7 +107,7 @@ export const getEpochDataFromGqlFallback = async ({ ao, epochIndex, processId =
107
107
  if (!messageResult) {
108
108
  continue;
109
109
  }
110
- for (const message of messageResult.Messages) {
110
+ for (const message of messageResult?.Messages ?? []) {
111
111
  const data = JSON.parse(message.Data);
112
112
  const tags = message.Tags;
113
113
  // check if the message results include epoch-distribution-notice for the requested epoch index
@@ -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.10.0';
17
+ export const version = '3.10.2';
@@ -8,12 +8,8 @@ export declare class ARIO {
8
8
  static init(config: ARIOConfigWithSigner): AoARIOWrite;
9
9
  static init(config: ARIOConfigNoSigner): AoARIORead;
10
10
  static mainnet(): AoARIORead;
11
- static mainnet(config: ARIOConfigNoSigner & {
12
- faucetUrl?: string;
13
- }): AoARIORead;
14
- static mainnet(config: ARIOConfigWithSigner & {
15
- faucetUrl?: string;
16
- }): AoARIOWrite;
11
+ static mainnet(config: ARIOConfigNoSigner): AoARIORead;
12
+ static mainnet(config: ARIOConfigWithSigner): AoARIOWrite;
17
13
  static testnet(): ARIOWithFaucet<AoARIORead>;
18
14
  static testnet(config: ARIOConfigNoSigner & {
19
15
  faucetUrl?: string;
@@ -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.10.0-alpha.1";
16
+ export declare const version = "3.10.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "3.10.0",
3
+ "version": "3.10.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"