Skip to content

Commit ae5c87e

Browse files
authored
Merge pull request #6049 from BitGo/COIN-3893
feat(sdk-coin-stx): added recover method for wrw to support stx & sip10 token
2 parents 8c0d0c3 + 1ff6572 commit ae5c87e

File tree

6 files changed

+882
-3
lines changed

6 files changed

+882
-3
lines changed

modules/sdk-coin-stx/src/lib/iface.ts

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,52 @@ export interface TokenTransferParams {
6161
amount: string;
6262
memo?: string;
6363
}
64+
65+
export interface TokenBalanceData {
66+
balance: string;
67+
total_sent: string;
68+
total_received: string;
69+
}
70+
71+
export interface NativeStxBalance {
72+
balance: string;
73+
total_miner_rewards_received: string;
74+
lock_tx_id: string;
75+
locked: string;
76+
lock_height: number;
77+
burnchain_lock_height: number;
78+
burnchain_unlock_height: number;
79+
}
80+
81+
export interface SingleFungibleTokenBalance {
82+
balance: string;
83+
}
84+
85+
export interface StxNonceResponse {
86+
last_mempool_tx_nonce?: number;
87+
last_executed_tx_nonce?: number;
88+
possible_next_nonce: number;
89+
detected_missing_nonces?: number[];
90+
detected_mempool_nonces?: number[];
91+
}
92+
93+
export interface StxTxnFeeEstimationResponse {
94+
estimations: {
95+
feeRate: number;
96+
fee: number;
97+
}[];
98+
}
99+
100+
export interface RecoveryOptions {
101+
backupKey: string;
102+
userKey: string;
103+
rootAddress: string;
104+
recoveryDestination: string;
105+
bitgoKey?: string;
106+
walletPassphrase?: string;
107+
contractId?: string;
108+
}
109+
110+
export interface RecoveryTransaction {
111+
txHex: string;
112+
}

0 commit comments

Comments
 (0)