diff --git a/nym-wallet/src-tauri/src/main.rs b/nym-wallet/src-tauri/src/main.rs index 509ce1c6e0..4de61bb5bd 100644 --- a/nym-wallet/src-tauri/src/main.rs +++ b/nym-wallet/src-tauri/src/main.rs @@ -112,5 +112,7 @@ mod test { vesting_contract_common::Period => "../src/types/rust/period.ts", crate::vesting::PledgeData => "../src/types/rust/pledgedata.ts", crate::vesting::OriginalVestingResponse => "../src/types/rust/originalvestingresponse.ts", + crate::vesting::VestingAccountInfo => "../src/types/rust/vestingaccountinfo.ts", + crate::vesting::VestingPeriod => "../src/types/rust/vestingperiod.ts", } } diff --git a/nym-wallet/src/types/rust/vestingaccountinfo.ts b/nym-wallet/src/types/rust/vestingaccountinfo.ts new file mode 100644 index 0000000000..4f3f4424f4 --- /dev/null +++ b/nym-wallet/src/types/rust/vestingaccountinfo.ts @@ -0,0 +1,10 @@ +import { Coin } from "./coin"; +import { VestingPeriod } from "./vestingperiod"; + +export interface VestingAccountInfo { + owner_address: string; + staking_address: string | null; + start_time: bigint; + periods: Array; + coin: Coin; +} \ No newline at end of file diff --git a/nym-wallet/src/types/rust/vestingperiod.ts b/nym-wallet/src/types/rust/vestingperiod.ts new file mode 100644 index 0000000000..bc2c8434e0 --- /dev/null +++ b/nym-wallet/src/types/rust/vestingperiod.ts @@ -0,0 +1,4 @@ +export interface VestingPeriod { + start_time: bigint; + period_seconds: bigint; +} \ No newline at end of file