sdk-triggerx 0.1.33 → 0.1.35

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/dist/api/jobs.js CHANGED
@@ -448,14 +448,14 @@ async function createJob(client, params) {
448
448
  });
449
449
  // The API returns total fee in wei: { total_fee: "<wei>" } or nested under data
450
450
  let totalFeeRaw;
451
- if (feeRes && feeRes.current_total_fee !== undefined) {
451
+ if (feeRes && feeRes.current_total_fee !== undefined && feeRes.current_total_fee !== 0) {
452
452
  totalFeeRaw = feeRes.current_total_fee;
453
453
  }
454
- else if (feeRes && feeRes.data && feeRes.data.current_total_fee !== undefined) {
454
+ else if (feeRes && feeRes.data && feeRes.data.current_total_fee !== undefined && feeRes.data.current_total_fee !== 0) {
455
455
  totalFeeRaw = feeRes.data.current_total_fee;
456
456
  }
457
457
  maxtotalFeeRaw = feeRes.total_fee;
458
- if (totalFeeRaw === undefined) {
458
+ if (totalFeeRaw === undefined || totalFeeRaw === 0) {
459
459
  return (0, errors_1.createErrorResponse)(new errors_1.ApiError('Invalid response from /api/fees: missing total_fee', { response: feeRes }), 'API error');
460
460
  }
461
461
  // Support both number and string representations of wei
package/dist/config.js CHANGED
@@ -53,6 +53,8 @@ exports.CONTRACT_ADDRESSES_BY_CHAIN = {
53
53
  '42161': {
54
54
  gasRegistry: '0xe2AC670F7D66c69D547A44D08F9bA1Fc0Fc0f991',
55
55
  jobRegistry: '0xAf1189aFd1F1880F09AeC3Cbc32cf415c735C710',
56
+ safeFactory: '0x93528Df5984231059Cf5c5f2CE9b85c59250D096',
57
+ safeModule: '0x100656372C821539651f5905Ca39b7C95f9AA433',
56
58
  multisendCallOnly: '0x9641d764fc13c8B624c04430C7356C1C7C8102e2',
57
59
  rpcUrl: 'https://arb1.arbitrum.io/rpc',
58
60
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdk-triggerx",
3
- "version": "0.1.33",
3
+ "version": "0.1.35",
4
4
  "description": "SDK for interacting with the TriggerX backend and smart contracts.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",