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(gear-programs): Wrapped Vara (tokenizer) program extends VftService #129

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

vobradovich
Copy link
Member

No description provided.

@vobradovich vobradovich marked this pull request as ready for review September 16, 2024 16:48
gear-programs/vara-tokenizer/app/src/admin_service.rs Outdated Show resolved Hide resolved
gear-programs/vara-tokenizer/app/src/lib.rs Outdated Show resolved Hide resolved
gear-programs/vara-tokenizer/app/src/storage.rs Outdated Show resolved Hide resolved
gear-programs/vara-tokenizer/app/src/tokenizer_service.rs Outdated Show resolved Hide resolved
gear-programs/vara-tokenizer/app/src/tokenizer_service.rs Outdated Show resolved Hide resolved
gear-programs/vara-tokenizer/app/src/tokenizer_service.rs Outdated Show resolved Hide resolved
gear-programs/vft-client/Cargo.toml Show resolved Hide resolved
gear-programs/vara-tokenizer/tests/gclient.rs Outdated Show resolved Hide resolved
gear-programs/vara-tokenizer/tests/gclient.rs Outdated Show resolved Hide resolved
gear-programs/vara-tokenizer/tests/gtest.rs Outdated Show resolved Hide resolved
Copy link
Member

@gshep gshep left a 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" }
Copy link
Member

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

Copy link
Member Author

@vobradovich vobradovich Sep 17, 2024

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.

Copy link
Member Author

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);
Copy link
Member

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

Copy link
Member Author

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::*};
Copy link
Member

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

Copy link
Member Author

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.

Copy link
Member

@mertwole mertwole left a comment

Choose a reason for hiding this comment

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

Waiting for

@vobradovich vobradovich changed the title feat(gear-programs): Vara tokenizer program extends VftService feat(gear-programs): Wrapped Vara (tokenizer) program extends VftService Sep 18, 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.

3 participants