Skip to content

Commit

Permalink
Merge pull request #18 from Quest-Protocol/develop
Browse files Browse the repository at this point in the history
cleanup
  • Loading branch information
roshaans authored Dec 9, 2023
2 parents 81b8238 + 8f9abbf commit 4d3b4ab
Show file tree
Hide file tree
Showing 11 changed files with 4,448 additions and 843 deletions.
4,298 changes: 3,777 additions & 521 deletions quest-verse-contract/contract/Cargo.lock

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion quest-verse-contract/contract/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,23 @@ authors = ["Near Inc <[email protected]>"]
edition = "2021"

[lib]
crate-type = ["cdylib"]
resolver = "2"
crate-type = ["cdylib", "rlib"]

[dependencies]
near-sdk = "4.1.1"
serde_json = "1.0.91"
uint = { version = "0.9.3", default-features = false }
ed25519-dalek = "1"

# integration tests
[dev-dependencies]
tokio = { version = "1.28.0", features = ["full"] }
near-workspaces = "0.8.0"
near-primitives = "0.17.0"
near-units = "0.2.0"
anyhow = "1.0"


[profile.release]
codegen-units = 1
Expand Down
8 changes: 8 additions & 0 deletions quest-verse-contract/contract/src/constants.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
use near_sdk::Gas;

pub const KEYPOM_CONTRACT: &str = "v2.keypom.testnet";
pub const QUESTS_PROTOCOL_PUBLIC_KEY_STR: &str =
"ed25519:FMy47jsCvi5G8KyiijH1w9qnr4GA1FGSaB8S2fK5eAfr";
pub const MIN_DROP_ID_PASSED_IN: u128 = 1_000_000_000;

pub const CLAIM_REWARD_GAS: Gas = Gas(10 * Gas::ONE_TERA.0);
5 changes: 5 additions & 0 deletions quest-verse-contract/contract/src/external.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,8 @@ trait Keypom {
);
fn get_drop_information(drop_id: Option<DropIdJson>, key: Option<PublicKey>) -> JsonDrop;
}

#[ext_contract(ext_sbtreg)]
pub trait ExtSbtRegistry {
fn is_human(&self, account: AccountId) -> Vec<(AccountId, Vec<u64>)>;
}
Loading

0 comments on commit 4d3b4ab

Please sign in to comment.