Skip to content

Commit

Permalink
Update did contract wasm and update ledgers
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmagiraldor committed Dec 21, 2023
1 parent ba00ded commit 74d9ffc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Binary file modified deployer_contract/did_contract.wasm
100755 → 100644
Binary file not shown.
8 changes: 5 additions & 3 deletions vault_contract/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ use soroban_sdk::{
contract, contractimpl, contractmeta, panic_with_error, Address, Env, IntoVal, Map, String, Vec,
};

const LEDGERS_THRESHOLD: u32 = 1;
const LEDGERS_TO_EXTEND: u32 = 535_000;
// MAXIMUM ENTRY TTL:
// 31 days, 12 ledger close per minute.
// (12 * 60 * 24 * 31) - 1
const LEDGERS_TO_EXTEND: u32 = 535_679;

contractmeta!(
key = "Description",
Expand All @@ -33,7 +35,7 @@ impl VaultTrait for VaultContract {

e.storage()
.instance()
.extend_ttl(LEDGERS_THRESHOLD, LEDGERS_TO_EXTEND);
.extend_ttl(LEDGERS_TO_EXTEND, LEDGERS_TO_EXTEND);
}

fn authorize_issuer(e: Env, admin: Address, issuer: Address, did: String) {
Expand Down
8 changes: 5 additions & 3 deletions vc_issuance_contract/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ use soroban_sdk::{
contract, contractimpl, contractmeta, map, panic_with_error, Address, Env, Map, String, Vec,
};

const LEDGERS_THRESHOLD: u32 = 1;
const LEDGERS_TO_EXTEND: u32 = 535_000;
// MAXIMUM ENTRY TTL:
// 31 days, 12 ledger close per minute.
// (12 * 60 * 24 * 31) - 1
const LEDGERS_TO_EXTEND: u32 = 535_679;
const DEFAULT_AMOUNT: u32 = 20;
const MAX_AMOUNT: u32 = 100;

Expand Down Expand Up @@ -40,7 +42,7 @@ impl VCIssuanceTrait for VCIssuanceContract {

e.storage()
.instance()
.extend_ttl(LEDGERS_THRESHOLD, LEDGERS_TO_EXTEND);
.extend_ttl(LEDGERS_TO_EXTEND, LEDGERS_TO_EXTEND);
}
fn issue(
e: Env,
Expand Down

0 comments on commit 74d9ffc

Please sign in to comment.