-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from cdc-Hitesh/feature-offlineSigning-MsgSend
Problem: Feature offline signing msg send
- Loading branch information
Showing
19 changed files
with
929 additions
and
276 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
export interface CosmosTx { | ||
tx?: undefined | CosmosTx | ||
body: Body; | ||
auth_info: AuthInfo; | ||
signatures: string[]; | ||
} | ||
|
||
interface AuthInfo { | ||
signer_infos: SignerInfo[]; | ||
fee: Fee; | ||
} | ||
|
||
interface Fee { | ||
amount: Amount[]; | ||
gas_limit: string; | ||
payer: string; | ||
granter: string; | ||
} | ||
|
||
interface Amount { | ||
denom: string; | ||
amount: string; | ||
} | ||
|
||
interface SignerInfo { | ||
public_key: SingleSignerInfoPublicKey | MultiSignerInfoPublicKey; | ||
mode_info: SignerInfoModeInfo; | ||
sequence: string; | ||
} | ||
|
||
interface SignerInfoModeInfo { | ||
single?: Single; | ||
multi?: Multi; | ||
} | ||
|
||
interface Multi { | ||
bitarray: Bitarray; | ||
mode_infos: ModeInfoElement[]; | ||
} | ||
|
||
interface Bitarray { | ||
extra_bits_stored: number; | ||
elems: string; | ||
} | ||
|
||
interface ModeInfoElement { | ||
single: Single; | ||
} | ||
|
||
interface Single { | ||
mode: string; | ||
} | ||
|
||
interface SingleSignerInfoPublicKey { | ||
'@type': string; | ||
key: string; | ||
} | ||
|
||
interface MultiSignerInfoPublicKey { | ||
'@type': string; | ||
threshold?: number; | ||
public_keys: PublicKeyElement[]; | ||
} | ||
|
||
interface PublicKeyElement { | ||
'@type': string; | ||
key: string; | ||
} | ||
|
||
interface Body { | ||
messages: Message[]; | ||
memo: string; | ||
timeout_height: string; | ||
extension_options: any[]; | ||
non_critical_extension_options: any[]; | ||
} | ||
|
||
interface Message { | ||
'@type': string; | ||
[key: string]: any; | ||
} | ||
|
||
interface Amount { | ||
denom: string; | ||
amount: string; | ||
} |
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
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
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
Oops, something went wrong.