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(interchain-token): update interchain token #71

Merged
merged 43 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
edba50f
feat(its): update interchain token
ahramy Nov 15, 2024
32063ae
Update utils.rs
ahramy Nov 15, 2024
6ceeee3
updated token meta data
ahramy Nov 15, 2024
637f115
Merge branch 'main' into feat/interchain-token
ahramy Nov 18, 2024
e110a1b
updated
ahramy Nov 19, 2024
5bca181
update
ahramy Nov 19, 2024
19b0854
Update contract.rs
ahramy Nov 19, 2024
52f28d8
Update contract.rs
ahramy Nov 19, 2024
58de543
Merge branch 'main' into feat/interchain-token
ahramy Nov 19, 2024
3567446
Merge branch 'main' into feat/interchain-token
ahramy Nov 20, 2024
278ec46
Update test.rs
ahramy Nov 21, 2024
2021973
feat(its): update interchain token
ahramy Nov 15, 2024
11d592b
updated
ahramy Nov 19, 2024
200331d
Update test.rs
ahramy Nov 21, 2024
c032e4a
Merge branch 'feat/interchain-token' of https://github.com/axelarnetw…
ahramy Nov 21, 2024
6ce90b2
Merge branch 'main' into feat/interchain-token
ahramy Nov 21, 2024
e63d039
Merge branch 'main' into feat/interchain-token
ahramy Nov 24, 2024
bf84196
Merge branch 'main' into feat/interchain-token
ahramy Nov 26, 2024
03a046e
Merge branch 'main' into feat/interchain-token
ahramy Nov 27, 2024
1b1f3af
feat(its): update interchain token
ahramy Nov 15, 2024
8b4a691
updated
ahramy Nov 19, 2024
5ab84af
Update test.rs
ahramy Nov 21, 2024
761749a
feat(its): update interchain token
ahramy Nov 15, 2024
40faa5b
updated token meta data
ahramy Nov 15, 2024
4624744
updated
ahramy Nov 19, 2024
6e27960
update
ahramy Nov 19, 2024
dd7f4cd
Update contract.rs
ahramy Nov 19, 2024
f9d4a34
Update contract.rs
ahramy Nov 19, 2024
0449388
Update test.rs
ahramy Nov 21, 2024
bd6f698
update
ahramy Nov 28, 2024
d4dd815
update
ahramy Nov 28, 2024
8865117
Merge branch 'main' into feat/interchain-token
ahramy Dec 1, 2024
c2ff702
update test
ahramy Dec 1, 2024
ac7e3f5
update
ahramy Dec 1, 2024
307a1ce
addressed comments
ahramy Dec 2, 2024
c833933
Update contract.rs
ahramy Dec 2, 2024
09339cb
Update contract.rs
ahramy Dec 2, 2024
e8592f6
update persistent to instance
ahramy Dec 2, 2024
3516525
updated
ahramy Dec 2, 2024
c210426
Update test.rs
ahramy Dec 2, 2024
6a920a5
Merge branch 'main' into feat/interchain-token
ahramy Dec 3, 2024
32b59d2
added lib, error handling, updated test
ahramy Dec 3, 2024
b84824d
Update test.rs
ahramy Dec 3, 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
10 changes: 10 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ rust-version = "1.81.0"

[workspace.dependencies]
soroban-sdk = { version = "22.0.0-rc.3" }
soroban-token-sdk = { version = "22.0.0-rc.3" }
cfg-if = { version = "1.0" }
axelar-soroban-std = { version = "^0.1.0", path = "packages/axelar-soroban-std" }
axelar-gas-service = { version = "^0.1.0", path = "contracts/axelar-gas-service" }
ahramy marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
10 changes: 1 addition & 9 deletions contracts/axelar-gateway/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use crate::messaging_interface::AxelarGatewayMessagingInterface;
use crate::storage_types::{DataKey, MessageApprovalKey, MessageApprovalValue};
use crate::types::{CommandType, Message, Proof, WeightedSigners};
use crate::{auth, event};
use axelar_soroban_std::constants::{INSTANCE_TTL_EXTEND_TO, INSTANCE_TTL_THRESHOLD};
use axelar_soroban_std::shared_interfaces::{migrate, UpgradableInterface};
use axelar_soroban_std::shared_interfaces::{MigratableInterface, OwnableInterface};
use axelar_soroban_std::{ensure, shared_interfaces};
Expand All @@ -12,15 +13,6 @@ use soroban_sdk::{contract, contractimpl, Address, Bytes, BytesN, Env, String, V

const CONTRACT_VERSION: &str = env!("CARGO_PKG_VERSION");

/// Parameters for extending the contract instance and its instance storage.
///
/// If the instance's time to live falls below 14 days, it will be extended by 60 days.
///
/// If at least one message is approved every 14 days, the instance should never be archived.
const LEDGERS_PER_DAY: u32 = (24 * 3600) / 5;
const INSTANCE_TTL_THRESHOLD: u32 = 14 * LEDGERS_PER_DAY;
const INSTANCE_TTL_EXTEND_TO: u32 = 60 * LEDGERS_PER_DAY;

#[contract]
pub struct AxelarGateway;

Expand Down
1 change: 1 addition & 0 deletions contracts/interchain-token/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ crate-type = ["cdylib", "rlib"]
[dependencies]
axelar-soroban-std = { workspace = true }
soroban-sdk = { workspace = true }
soroban-token-sdk = { workspace = true }

[dev-dependencies]
axelar-soroban-std = { workspace = true, features = ["testutils"] }
Expand Down
Loading
Loading