Skip to content

Commit

Permalink
feat: revamp core api
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-dn committed Mar 28, 2022
1 parent 2cc7d2d commit b64b60e
Show file tree
Hide file tree
Showing 9 changed files with 551 additions and 43 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ candid = "0.7.4"
ic-cdk = { git = "https://github.com/dfinity/cdk-rs", rev = "a44316600ec1fd918567facd8aa4a650ef765228" }
ic-cdk-macros = { git = "https://github.com/dfinity/cdk-rs", rev = "a44316600ec1fd918567facd8aa4a650ef765228" }
serde = "1.0.132"
num-traits = "0.2.14"
ledger-canister = { git = "https://github.com/dfinity/ic", tag = "rosetta-1.4.0" }
dfn_core = { git = "https://github.com/dfinity/ic", tag = "rosetta-1.4.0" }
dfn_protobuf = { git = "https://github.com/dfinity/ic", tag = "rosetta-1.4.0" }
ic-types = { git = "https://github.com/dfinity/ic", tag = "rosetta-1.4.0" }
ledger-canister = { git = "https://github.com/dfinity/ic", tag = "rosetta-1.4.0" }
ic-nns-constants = { git = "https://github.com/dfinity/ic", tag = "rosetta-1.4.0" }
num-traits = "0.2.14"
24 changes: 23 additions & 1 deletion bk.did
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,32 @@ service : (
principal,
principal,
) -> {
allowance : (principal, principal) -> (nat) query;
approve : (principal, nat) -> (Result);
balanceOf : (principal) -> (nat) query;
decimals : () -> (nat8) query;
getAllowanceSize : () -> (nat64) query;
getBlockUsed : () -> (vec nat64) query;
getHolders : (nat64, nat64) -> (vec record { principal; nat }) query;
getMetadata : () -> (Metadata) query;
getTokenInfo : () -> (TokenInfo) query;
getUserApprovals : (principal) -> (vec record { principal; nat }) query;
historySize : () -> (nat64) query;
isBlockUsed : (nat64) -> (bool) query;
logo : () -> (text) query;
mint : (opt vec nat8, nat64) -> (Result);
mintFor : (opt vec nat8, nat64, principal) -> (Result);
name : () -> (text) query;
owner : () -> (principal) query;
setFee : (nat) -> ();
setFeeTo : (principal) -> ();
setGenesis : () -> (Result);
setLogo : (text) -> ();
setName : (text) -> ();
setOwner : (principal) -> ();
symbol : () -> (text) query;
totalSupply : () -> (nat) query;
transfer : (principal, nat) -> (Result);
transferFrom : (principal, principal, nat) -> (Result);
withdraw : (nat64, text) -> (Result);
}

3 changes: 1 addition & 2 deletions canister_ids.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"local": "rrkah-fqaaa-aaaaa-aaaaq-cai"
},
"wicp_test": {
"ic": "wjsrf-myaaa-aaaam-qaayq-cai",
"local": "r7inp-6aaaa-aaaaa-aaabq-cai"
"ic": "wjsrf-myaaa-aaaam-qaayq-cai"
}
}
Loading

0 comments on commit b64b60e

Please sign in to comment.