-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gear-programs): Wrapped Vara (tokenizer) program extends VftServ…
…ice (#129)
- Loading branch information
1 parent
131ff83
commit 2b8191a
Showing
21 changed files
with
1,468 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
constructor { | ||
New : (name: str, symbol: str, decimals: u8); | ||
}; | ||
|
||
service Vft { | ||
Burn : (from: actor_id, value: u256) -> bool; | ||
GrantAdminRole : (to: actor_id) -> null; | ||
GrantBurnerRole : (to: actor_id) -> null; | ||
GrantMinterRole : (to: actor_id) -> null; | ||
Mint : (to: actor_id, value: u256) -> bool; | ||
RevokeAdminRole : (from: actor_id) -> null; | ||
RevokeBurnerRole : (from: actor_id) -> null; | ||
RevokeMinterRole : (from: actor_id) -> null; | ||
Approve : (spender: actor_id, value: u256) -> bool; | ||
Transfer : (to: actor_id, value: u256) -> bool; | ||
TransferFrom : (from: actor_id, to: actor_id, value: u256) -> bool; | ||
query Admins : () -> vec actor_id; | ||
query Burners : () -> vec actor_id; | ||
query Minters : () -> vec actor_id; | ||
query Allowance : (owner: actor_id, spender: actor_id) -> u256; | ||
query BalanceOf : (account: actor_id) -> u256; | ||
query Decimals : () -> u8; | ||
query Name : () -> str; | ||
query Symbol : () -> str; | ||
query TotalSupply : () -> u256; | ||
|
||
events { | ||
Minted: struct { to: actor_id, value: u256 }; | ||
Burned: struct { from: actor_id, value: u256 }; | ||
Approval: struct { owner: actor_id, spender: actor_id, value: u256 }; | ||
Transfer: struct { from: actor_id, to: actor_id, value: u256 }; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[package] | ||
name = "vft-service" | ||
version.workspace = true | ||
edition.workspace = true | ||
|
||
[dependencies] | ||
gstd.workspace = true | ||
log = "*" | ||
sails-rs.workspace = true | ||
|
||
[dev-dependencies] | ||
env_logger.workspace = true | ||
gtest.workspace = true | ||
gear-core.workspace = true |
Oops, something went wrong.