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

Merged
merged 29 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
00bb47b
wip: vara tokenizer service
vobradovich Sep 9, 2024
4c0d0b2
wip: tokenizer methods
vobradovich Sep 9, 2024
c3b1aab
wip: vft-client, test
vobradovich Sep 10, 2024
04686c3
wip: static storage macro, admin service test
vobradovich Sep 10, 2024
8c17665
wip: vara tokenizer service
vobradovich Sep 9, 2024
f6e67aa
wip: tokenizer methods
vobradovich Sep 9, 2024
8dddd09
wip: vft-client, test
vobradovich Sep 10, 2024
5adbeda
wip: static storage macro, admin service test
vobradovich Sep 10, 2024
6aa86b8
Merge branch 'vo/vara-tokenizer' of github.com:gear-tech/gear-bridges…
vobradovich Sep 10, 2024
d3bd9b2
fix
vobradovich Sep 10, 2024
a0bb9a6
wip: mint_from_value_fails not working
vobradovich Sep 10, 2024
733a536
add gclient test
vobradovich Sep 13, 2024
0cd9c20
feat(gear-programs): Vara tokenizer program extends VftService
vobradovich Sep 16, 2024
034b2b3
fix clippy
vobradovich Sep 16, 2024
d1d463b
fix clipy
vobradovich Sep 16, 2024
8902c58
cleanup
vobradovich Sep 16, 2024
29db114
fix comments
vobradovich Sep 17, 2024
81e74d7
add sails issue link
vobradovich Sep 17, 2024
b7b3b28
expose vft service, not extend
vobradovich Sep 17, 2024
aefe4de
storage generic lifetime
vobradovich Sep 17, 2024
fd4112a
make workspace deps
vobradovich Sep 17, 2024
efd0b0c
remove admin service
vobradovich Sep 18, 2024
8878101
rename to wrapped-vara
vobradovich Sep 18, 2024
ea4985f
Merge branch 'main' into vo/vara-tokenizer-extend-vft
vobradovich Oct 17, 2024
1315c96
bump gear 1.6.2, sails 0.6.1, dep vft-service, update gtests
vobradovich Oct 17, 2024
67dbefb
fix toml
vobradovich Oct 17, 2024
ea27857
restore vft-service
vobradovich Nov 1, 2024
c6ea111
Merge branch 'main' into vo/vara-tokenizer-extend-vft
vobradovich Nov 1, 2024
ac62a4b
fix deps
vobradovich Nov 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
164 changes: 130 additions & 34 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ members = [
"gear-programs/vft-gateway/src/wasm",
"gear-programs/*",
"gear-programs/checkpoint-light-client/io",
"gear-programs/vara-tokenizer",
"gear-programs/vft-client",
"utils-prometheus",
]

Expand Down Expand Up @@ -134,9 +136,9 @@ gbuiltin-eth-bridge = { git = "https://github.com/gear-tech/gear.git", tag = "v1
pallet-gear-eth-bridge-rpc-runtime-api = { git = "https://github.com/gear-tech/gear.git", tag = "v1.5.0", default-features = false, features = [
"std",
] }
sails-idl-gen = "0.3.0"
sails-client-gen = "0.3.0"
sails-rs = "0.3.0"
sails-idl-gen = "0.4.0"
sails-client-gen = "0.4.0"
sails-rs = "0.4.0"

subxt = "0.32.1"
sc-consensus-grandpa = { version = "0.10.0-dev", git = "https://github.com/gear-tech/polkadot-sdk.git", branch = "gear-v1.4.0", default-features = false }
Expand Down
25 changes: 25 additions & 0 deletions gear-programs/vara-tokenizer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[package]
name = "vara-tokenizer"
version.workspace = true
edition.workspace = true

[dependencies]
vara-tokenizer-app = { path = "app" }

[build-dependencies]
vara-tokenizer-app = { path = "app" }
sails-rs = { workspace = true, features = ["wasm-builder"] }
sails-client-gen.workspace = true
sails-idl-gen.workspace = true

[dev-dependencies]
vara-tokenizer = { path = ".", features = ["wasm-binary"] }
vara-tokenizer-client = { path = "client" }
sails-rs = { workspace = true, features = ["gtest", "gclient"] }
tokio = { version = "1.39", features = ["rt", "macros"] }
gclient.workspace = true
gtest.workspace = true
vft-client = { path = "../vft-client" }

[features]
wasm-binary = []
11 changes: 11 additions & 0 deletions gear-programs/vara-tokenizer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## The **vara-tokenizer** program

**vara-tokenizer** allows you to mint an amount from `value` to an account, and burn and return `value`.

The program workspace includes the following packages:
- `vara-tokenizer` is the package allowing to build WASM binary for the program and IDL file for it.
The package also includes integration tests for the program in the `tests` sub-folder
- `vara-tokenizer-app` is the package containing business logic for the program represented by the `VaraTokenizerService` structure.
- `vara-tokenizer-client` is the package containing the client for the program allowing to interact with it from another program, tests, or
off-chain client.

Loading
Loading