[ci skip] Generate TS types

This commit is contained in:
fmtabbara
2022-03-10 19:15:26 +00:00
parent 3c476560d2
commit fda9bc65fc
14 changed files with 29 additions and 74 deletions
+2 -6
View File
@@ -1,7 +1,3 @@
import type { Denom } from './denom';
import type { Denom } from "./denom";
export interface Account {
contract_address: string;
client_address: string;
denom: Denom;
}
export interface Account { contract_address: string, client_address: string, denom: Denom, }
+2 -5
View File
@@ -1,6 +1,3 @@
import type { Coin } from './coin';
import type { Coin } from "./coin";
export interface Balance {
coin: Coin;
printable_balance: string;
}
export interface Balance { coin: Coin, printable_balance: string, }
+2 -5
View File
@@ -1,6 +1,3 @@
import type { Denom } from './denom';
import type { Denom } from "./denom";
export interface Coin {
amount: string;
denom: Denom;
}
export interface Coin { amount: string, denom: Denom, }
+2 -5
View File
@@ -1,6 +1,3 @@
import type { Account } from './account';
import type { Account } from "./account";
export interface CreatedAccount {
account: Account;
mnemonic: string;
}
export interface CreatedAccount { account: Account, mnemonic: string, }
@@ -1,7 +1,3 @@
import type { Coin } from './coin';
import type { Coin } from "./coin";
export interface DelegationResult {
source_address: string;
target_address: string;
amount: Coin | null;
}
export interface DelegationResult { source_address: string, target_address: string, amount: Coin | null, }
+2 -1
View File
@@ -1 +1,2 @@
export type Denom = 'Major' | 'Minor';
export type Denom = "Major" | "Minor";
+2 -1
View File
@@ -1 +1,2 @@
export type Network = 'QA' | 'SANDBOX' | 'MAINNET';
export type Network = "QA" | "SANDBOX" | "MAINNET";
@@ -1,7 +1,3 @@
import type { Coin } from './coin';
import type { Coin } from "./coin";
export interface OriginalVestingResponse {
amount: Coin;
number_of_periods: number;
period_duration: bigint;
}
export interface OriginalVestingResponse { amount: Coin, number_of_periods: number, period_duration: bigint, }
+2 -5
View File
@@ -1,6 +1,3 @@
import type { Coin } from './coin';
import type { Coin } from "./coin";
export interface PledgeData {
amount: Coin;
block_time: bigint;
}
export interface PledgeData { amount: Coin, block_time: bigint, }
+2 -6
View File
@@ -1,6 +1,2 @@
export interface TauriContractStateParams {
minimum_mixnode_pledge: string;
minimum_gateway_pledge: string;
mixnode_rewarded_set_size: number;
mixnode_active_set_size: number;
}
export interface TauriContractStateParams { minimum_mixnode_pledge: string, minimum_gateway_pledge: string, mixnode_rewarded_set_size: number, mixnode_active_set_size: number, }
+2 -9
View File
@@ -1,10 +1,3 @@
import type { TransactionDetails } from './transactiondetails';
import type { TransactionDetails } from "./transactiondetails";
export interface TauriTxResult {
block_height: bigint;
code: number;
details: TransactionDetails;
gas_used: bigint;
gas_wanted: bigint;
tx_hash: string;
}
export interface TauriTxResult { block_height: bigint, code: number, details: TransactionDetails, gas_used: bigint, gas_wanted: bigint, tx_hash: string, }
@@ -1,7 +1,3 @@
import type { Coin } from './coin';
import type { Coin } from "./coin";
export interface TransactionDetails {
amount: Coin;
from_address: string;
to_address: string;
}
export interface TransactionDetails { amount: Coin, from_address: string, to_address: string, }
@@ -1,10 +1,4 @@
import type { Coin } from './coin';
import type { VestingPeriod } from './vestingperiod';
import type { Coin } from "./coin";
import type { VestingPeriod } from "./vestingperiod";
export interface VestingAccountInfo {
owner_address: string;
staking_address: string | null;
start_time: bigint;
periods: Array<VestingPeriod>;
coin: Coin;
}
export interface VestingAccountInfo { owner_address: string, staking_address: string | null, start_time: bigint, periods: Array<VestingPeriod>, coin: Coin, }
+2 -4
View File
@@ -1,4 +1,2 @@
export interface VestingPeriod {
start_time: bigint;
period_seconds: bigint;
}
export interface VestingPeriod { start_time: bigint, period_seconds: bigint, }