@ar.io/sdk 2.1.0-alpha.10 → 2.1.0-alpha.11

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.
@@ -23,6 +23,11 @@ const arweave_js_1 = require("../common/arweave.js");
23
23
  const index_js_1 = require("../common/index.js");
24
24
  const constants_js_1 = require("../constants.js");
25
25
  async function spawnANT({ signer, module = constants_js_1.AOS_MODULE_ID, luaCodeTxId = constants_js_1.ANT_LUA_ID, ao = (0, aoconnect_1.connect)(), scheduler = constants_js_1.DEFAULT_SCHEDULER_ID, state, stateContractTxId, antRegistryId = constants_js_1.ANT_REGISTRY_ID, }) {
26
+ // AoSigner is not a Contract Signer - should probably add that to the contract signer type
27
+ const registryClient = new index_js_1.AOProcess({
28
+ processId: antRegistryId,
29
+ ao,
30
+ });
26
31
  //TODO: cache locally and only fetch if not cached
27
32
  const luaString = (await arweave_js_1.defaultArweave.transactions.getData(luaCodeTxId, {
28
33
  decode: true,
@@ -64,6 +69,13 @@ async function spawnANT({ signer, module = constants_js_1.AOS_MODULE_ID, luaCode
64
69
  signer,
65
70
  });
66
71
  }
72
+ await registryClient.send({
73
+ tags: [
74
+ { name: 'Action', value: 'Register' },
75
+ { name: 'Process-Id', value: processId },
76
+ ],
77
+ signer,
78
+ });
67
79
  return processId;
68
80
  }
69
81
  exports.spawnANT = spawnANT;
@@ -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 = '2.1.0-alpha.10';
21
+ exports.version = '2.1.0-alpha.11';
@@ -20,6 +20,11 @@ import { defaultArweave } from '../common/arweave.js';
20
20
  import { AOProcess } from '../common/index.js';
21
21
  import { ANT_LUA_ID, ANT_REGISTRY_ID, AOS_MODULE_ID, DEFAULT_SCHEDULER_ID, } from '../constants.js';
22
22
  export async function spawnANT({ signer, module = AOS_MODULE_ID, luaCodeTxId = ANT_LUA_ID, ao = connect(), scheduler = DEFAULT_SCHEDULER_ID, state, stateContractTxId, antRegistryId = ANT_REGISTRY_ID, }) {
23
+ // AoSigner is not a Contract Signer - should probably add that to the contract signer type
24
+ const registryClient = new AOProcess({
25
+ processId: antRegistryId,
26
+ ao,
27
+ });
23
28
  //TODO: cache locally and only fetch if not cached
24
29
  const luaString = (await defaultArweave.transactions.getData(luaCodeTxId, {
25
30
  decode: true,
@@ -61,6 +66,13 @@ export async function spawnANT({ signer, module = AOS_MODULE_ID, luaCodeTxId = A
61
66
  signer,
62
67
  });
63
68
  }
69
+ await registryClient.send({
70
+ tags: [
71
+ { name: 'Action', value: 'Register' },
72
+ { name: 'Process-Id', value: processId },
73
+ ],
74
+ signer,
75
+ });
64
76
  return processId;
65
77
  }
66
78
  export async function evolveANT({ signer, processId, luaCodeTxId = ANT_LUA_ID, ao = connect(), }) {
@@ -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 = '2.1.0-alpha.10';
18
+ export const version = '2.1.0-alpha.11';
@@ -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 = "2.1.0-alpha.9";
17
+ export declare const version = "2.1.0-alpha.10";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "2.1.0-alpha.10",
3
+ "version": "2.1.0-alpha.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"
@@ -123,7 +123,7 @@
123
123
  "@permaweb/aoconnect": "^0.0.57",
124
124
  "arbundles": "0.11.0",
125
125
  "arweave": "1.14.4",
126
- "axios": "1.7.2",
126
+ "axios": "1.7.3",
127
127
  "axios-retry": "^4.3.0",
128
128
  "eventemitter3": "^5.0.1",
129
129
  "plimit-lit": "^3.0.1",
@@ -133,7 +133,7 @@
133
133
  "**/*.{ts,js,mjs,cjs,md,json}": [
134
134
  "prettier --write ."
135
135
  ],
136
- "**/*.md": [
136
+ "**/README.md": [
137
137
  "markdown-toc-gen insert"
138
138
  ]
139
139
  }