@ar.io/sdk 3.5.0-alpha.3 → 3.5.0-alpha.5

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.
@@ -29,7 +29,7 @@ exports.arioDevnetProcessId = exports.ARIO_DEVNET_PROCESS_ID;
29
29
  exports.ARIO_TESTNET_PROCESS_ID = 'agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA';
30
30
  exports.ANT_REGISTRY_ID = 'i_le_yKKPVstLTDSmkHRqf-wYphMnwB9OhleiTgMkWc';
31
31
  exports.MARIO_PER_ARIO = 1_000_000;
32
- exports.AOS_MODULE_ID = 'acdKHzHAG-RVC06nNVlX3jIXvomfiBnA5NZTEPYOMv8';
33
- exports.ANT_LUA_ID = 'zh4at_Y_GKJMD3SOkZ5Yx7mG2JRRLc89huEOspPtHq4';
32
+ exports.AOS_MODULE_ID = 'gFNGk70U9iwof9MyDqqKeizGa98w66-qCyFxupzXUnU';
33
+ exports.ANT_LUA_ID = 'W2sHFPAZ86BJLrU-HPp2P7twdlmbFJbckbCe42ETX-4';
34
34
  exports.AO_AUTHORITY = 'fcoN_xJeisVsPXA-trzVAuIiqO3ydLQxM-L4XbrQKzY';
35
35
  exports.DEFAULT_SCHEDULER_ID = '_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA';
@@ -56,10 +56,9 @@ async function evolveANT({ signer, processId, luaCodeTxId = constants_js_1.ANT_L
56
56
  logger,
57
57
  });
58
58
  //TODO: cache locally and only fetch if not cached
59
- const luaString = (await arweave.transactions.getData(luaCodeTxId, {
60
- decode: true,
61
- string: true,
62
- }));
59
+ // We do not use arweave to get the data because it may throw on l2 tx data
60
+ const { api: { host, port, protocol }, } = arweave.getConfig();
61
+ const luaString = await fetch(`${protocol}://${host}:${port}/${luaCodeTxId}`).then((res) => res.text());
63
62
  const { id: evolveMsgId } = await aosClient.send({
64
63
  tags: [
65
64
  { name: 'Action', value: 'Eval' },
@@ -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.5.0-alpha.3';
20
+ exports.version = '3.5.0-alpha.5';
@@ -26,7 +26,7 @@ export const arioDevnetProcessId = ARIO_DEVNET_PROCESS_ID;
26
26
  export const ARIO_TESTNET_PROCESS_ID = 'agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA';
27
27
  export const ANT_REGISTRY_ID = 'i_le_yKKPVstLTDSmkHRqf-wYphMnwB9OhleiTgMkWc';
28
28
  export const MARIO_PER_ARIO = 1_000_000;
29
- export const AOS_MODULE_ID = 'acdKHzHAG-RVC06nNVlX3jIXvomfiBnA5NZTEPYOMv8';
30
- export const ANT_LUA_ID = 'zh4at_Y_GKJMD3SOkZ5Yx7mG2JRRLc89huEOspPtHq4';
29
+ export const AOS_MODULE_ID = 'gFNGk70U9iwof9MyDqqKeizGa98w66-qCyFxupzXUnU';
30
+ export const ANT_LUA_ID = 'W2sHFPAZ86BJLrU-HPp2P7twdlmbFJbckbCe42ETX-4';
31
31
  export const AO_AUTHORITY = 'fcoN_xJeisVsPXA-trzVAuIiqO3ydLQxM-L4XbrQKzY';
32
32
  export const DEFAULT_SCHEDULER_ID = '_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA';
@@ -52,10 +52,9 @@ export async function evolveANT({ signer, processId, luaCodeTxId = ANT_LUA_ID, a
52
52
  logger,
53
53
  });
54
54
  //TODO: cache locally and only fetch if not cached
55
- const luaString = (await arweave.transactions.getData(luaCodeTxId, {
56
- decode: true,
57
- string: true,
58
- }));
55
+ // We do not use arweave to get the data because it may throw on l2 tx data
56
+ const { api: { host, port, protocol }, } = arweave.getConfig();
57
+ const luaString = await fetch(`${protocol}://${host}:${port}/${luaCodeTxId}`).then((res) => res.text());
59
58
  const { id: evolveMsgId } = await aosClient.send({
60
59
  tags: [
61
60
  { name: 'Action', value: 'Eval' },
@@ -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.5.0-alpha.3';
17
+ export const version = '3.5.0-alpha.5';
@@ -24,7 +24,7 @@ export declare const arioDevnetProcessId = "GaQrvEMKBpkjofgnBi_B3IgIDmY_XYelVLB6
24
24
  export declare const ARIO_TESTNET_PROCESS_ID = "agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA";
25
25
  export declare const ANT_REGISTRY_ID = "i_le_yKKPVstLTDSmkHRqf-wYphMnwB9OhleiTgMkWc";
26
26
  export declare const MARIO_PER_ARIO = 1000000;
27
- export declare const AOS_MODULE_ID = "acdKHzHAG-RVC06nNVlX3jIXvomfiBnA5NZTEPYOMv8";
28
- export declare const ANT_LUA_ID = "zh4at_Y_GKJMD3SOkZ5Yx7mG2JRRLc89huEOspPtHq4";
27
+ export declare const AOS_MODULE_ID = "gFNGk70U9iwof9MyDqqKeizGa98w66-qCyFxupzXUnU";
28
+ export declare const ANT_LUA_ID = "W2sHFPAZ86BJLrU-HPp2P7twdlmbFJbckbCe42ETX-4";
29
29
  export declare const AO_AUTHORITY = "fcoN_xJeisVsPXA-trzVAuIiqO3ydLQxM-L4XbrQKzY";
30
30
  export declare const DEFAULT_SCHEDULER_ID = "_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA";
@@ -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.5.0-alpha.2";
16
+ export declare const version = "3.5.0-alpha.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "3.5.0-alpha.3",
3
+ "version": "3.5.0-alpha.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"