-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added cw-vesting transformers and more formulas
- Loading branch information
Showing
7 changed files
with
395 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
211 changes: 211 additions & 0 deletions
211
src/formulas/formulas/contract/external/cwVesting.types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,211 @@ | ||
/** | ||
* This file was automatically generated by @cosmwasm/[email protected]. | ||
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, | ||
* and run the @cosmwasm/ts-codegen generate command to regenerate this file. | ||
*/ | ||
|
||
export type UncheckedDenom = | ||
| { | ||
native: string | ||
} | ||
| { | ||
cw20: string | ||
} | ||
export type Schedule = | ||
| 'saturating_linear' | ||
| { | ||
piecewise_linear: [number, Uint128][] | ||
} | ||
export type Uint128 = string | ||
export type Timestamp = Uint64 | ||
export type Uint64 = string | ||
export interface InstantiateMsg { | ||
denom: UncheckedDenom | ||
description?: string | null | ||
owner?: string | null | ||
recipient: string | ||
schedule: Schedule | ||
start_time?: Timestamp | null | ||
title: string | ||
total: Uint128 | ||
unbonding_duration_seconds: number | ||
vesting_duration_seconds: number | ||
} | ||
export type ExecuteMsg = | ||
| { | ||
receive: Cw20ReceiveMsg | ||
} | ||
| { | ||
distribute: { | ||
amount?: Uint128 | null | ||
} | ||
} | ||
| { | ||
cancel: {} | ||
} | ||
| { | ||
delegate: { | ||
amount: Uint128 | ||
validator: string | ||
} | ||
} | ||
| { | ||
redelegate: { | ||
amount: Uint128 | ||
dst_validator: string | ||
src_validator: string | ||
} | ||
} | ||
| { | ||
undelegate: { | ||
amount: Uint128 | ||
validator: string | ||
} | ||
} | ||
| { | ||
set_withdraw_address: { | ||
address: string | ||
} | ||
} | ||
| { | ||
withdraw_delegator_reward: { | ||
validator: string | ||
} | ||
} | ||
| { | ||
withdraw_canceled_payment: { | ||
amount?: Uint128 | null | ||
} | ||
} | ||
| { | ||
register_slash: { | ||
amount: Uint128 | ||
during_unbonding: boolean | ||
time: Timestamp | ||
validator: string | ||
} | ||
} | ||
| { | ||
update_ownership: Action | ||
} | ||
export type Binary = string | ||
export type Action = | ||
| { | ||
transfer_ownership: { | ||
expiry?: Expiration | null | ||
new_owner: string | ||
} | ||
} | ||
| 'accept_ownership' | ||
| 'renounce_ownership' | ||
export type Expiration = | ||
| { | ||
at_height: number | ||
} | ||
| { | ||
at_time: Timestamp | ||
} | ||
| { | ||
never: {} | ||
} | ||
export interface Cw20ReceiveMsg { | ||
amount: Uint128 | ||
msg: Binary | ||
sender: string | ||
} | ||
export type QueryMsg = | ||
| { | ||
ownership: {} | ||
} | ||
| { | ||
info: {} | ||
} | ||
| { | ||
distributable: { | ||
t?: Timestamp | null | ||
} | ||
} | ||
| { | ||
vested: { | ||
t?: Timestamp | null | ||
} | ||
} | ||
| { | ||
total_to_vest: {} | ||
} | ||
| { | ||
vest_duration: {} | ||
} | ||
| { | ||
stake: StakeTrackerQuery | ||
} | ||
export type StakeTrackerQuery = | ||
| { | ||
cardinality: { | ||
t: Timestamp | ||
} | ||
} | ||
| { | ||
total_staked: { | ||
t: Timestamp | ||
} | ||
} | ||
| { | ||
validator_staked: { | ||
t: Timestamp | ||
validator: string | ||
} | ||
} | ||
export type CheckedDenom = | ||
| { | ||
native: string | ||
} | ||
| { | ||
cw20: Addr | ||
} | ||
export type Addr = string | ||
export type Status = | ||
| ('unfunded' | 'funded') | ||
| { | ||
canceled: { | ||
owner_withdrawable: Uint128 | ||
} | ||
} | ||
export type Curve = | ||
| { | ||
constant: { | ||
y: Uint128 | ||
} | ||
} | ||
| { | ||
saturating_linear: SaturatingLinear | ||
} | ||
| { | ||
piecewise_linear: PiecewiseLinear | ||
} | ||
export interface Vest { | ||
claimed: Uint128 | ||
denom: CheckedDenom | ||
description?: string | null | ||
recipient: Addr | ||
slashed: Uint128 | ||
start_time: Timestamp | ||
status: Status | ||
title: string | ||
vested: Curve | ||
} | ||
export interface SaturatingLinear { | ||
max_x: number | ||
max_y: Uint128 | ||
min_x: number | ||
min_y: Uint128 | ||
} | ||
export interface PiecewiseLinear { | ||
steps: [number, Uint128][] | ||
} | ||
export interface OwnershipForAddr { | ||
owner?: Addr | null | ||
pending_expiry?: Expiration | null | ||
pending_owner?: Addr | null | ||
} | ||
export type NullableUint64 = Uint64 | null |
Oops, something went wrong.