Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(PE-6228): ant module #1

Merged
merged 15 commits into from
Jun 21, 2024
Merged

feat(PE-6228): ant module #1

merged 15 commits into from
Jun 21, 2024

Conversation

atticusofsparta
Copy link
Contributor

No description provided.

.github/ant.yaml Outdated Show resolved Hide resolved
@dtfiedler dtfiedler self-requested a review June 17, 2024 20:57
package.json Outdated
Comment on lines 3 to 11
"build:module": "cd src && ao build && cd .. && yarn load:module",
"publish:module": "cd src && ao publish process.wasm -w ../tools/key.json --tag=\"Memory-Limit\" --value=\"1-gb\" --tag=\"Compute-Limit\" --value=\"9000000000000\" && cd ..",
"load:module": "node tools/load-module.js",
"spawn:module": "node tools/spawn-module.js",
"build:aos-ant": "node tools/bundle-aos-ant.js",
"publish:aos-ant": "node tools/bundle-aos-ant.js && node tools/publish-aos-ant.js",
"load:aos-ant": "node tools/bundle-aos-ant.js && node tools/load-aos-ant.js",
"spawn:aos-ant": "node tools/spawn-aos-ant.js",
"test": "node --test --test-concurrency 1 **/*.test.js"
Copy link
Collaborator

@dtfiedler dtfiedler Jun 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would flip these to be (scope:action) vs. (action:scope)

aos:load,
aos:build,
aos:spawn,
module:build,
module:publish
...

@dtfiedler
Copy link
Collaborator

please update the README with the specs for the handlers and their required (and optional) inputs

package.json Outdated
Comment on lines 7 to 10
"aos-ant:build": "node tools/bundle-aos-ant.js",
"aos-ant:publish": "node tools/bundle-aos-ant.js && node tools/publish-aos-ant.js",
"aos-ant:load": "node tools/bundle-aos-ant.js && node tools/load-aos-ant.js",
"aos-ant:spawn": "node tools/spawn-aos-ant.js",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"aos-ant:build": "node tools/bundle-aos-ant.js",
"aos-ant:publish": "node tools/bundle-aos-ant.js && node tools/publish-aos-ant.js",
"aos-ant:load": "node tools/bundle-aos-ant.js && node tools/load-aos-ant.js",
"aos-ant:spawn": "node tools/spawn-aos-ant.js",
"aos:build": "node tools/bundle-aos-ant.js",
"aos:publish": "node tools/bundle-aos-ant.js && node tools/publish-aos-ant.js",
"aos:load": "node tools/bundle-aos-ant.js && node tools/load-aos-ant.js",
"aos:spawn": "node tools/spawn-aos-ant.js",

ttlSeconds = ttlSeconds,
}

return "Record set"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have this return the actual record details

assert(nameValidity ~= false, nameValidityError)
Records[name] = nil

return "Record removed"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't return this string - return void

@atticusofsparta atticusofsparta merged commit 2a68b96 into main Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants