-
Notifications
You must be signed in to change notification settings - Fork 4
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(gear-programs): Wrapped Vara (tokenizer) program extends VftService #129
base: main
Are you sure you want to change the base?
Conversation
… into vo/vara-tokenizer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
edition.workspace = true | ||
|
||
[dependencies] | ||
vara-tokenizer-app = { path = "app" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would place that and all its deps (client, etc) in the workspace's Cargo.toml and use like .workspace = true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is from sails
template. Main crate referenced in the workspace's Cargo.toml. The -app
crate is intended for internal use only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But it makes sense if you're referring to a service from another.
pub admins: HashSet<ActorId>, | ||
} | ||
|
||
static_storage!(AdminConfig); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better to keep it in the program's state from my point of view
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Methods storage
and storage_mut
are generated by macro, which may conflict with other storages.
It is better to use in the service module.
@@ -0,0 +1,177 @@ | |||
use sails_rs::{calls::*, gtest::calls::*, prelude::*}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really need to have both tests for gclient and gtest? To tell the truth I personally prefer gclient only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But the gclient
tests require a running node and a lot of time to run.
So they marked as ignored
by default.
I think we should have both.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting for
- repository for
vft
service to depend on instead of copying code: here https://github.com/gear-tech/awesome-sails - How to reply with value sails#475
as discussed in DM
No description provided.