launchpad: Export StdSignDoc interface

This commit is contained in:
willclarktech
2020-09-17 15:16:44 +02:00
parent 868a792ae5
commit 55602522ab
4 changed files with 16 additions and 3 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ function sortJson(json: any): any {
*
* @see https://docs.cosmos.network/master/modules/auth/03_types.html#stdsigndoc
*/
interface StdSignDoc {
export interface StdSignDoc {
readonly account_number: string;
readonly chain_id: string;
readonly fee: StdFee;
+1 -1
View File
@@ -28,7 +28,7 @@ export {
isSearchBySentFromOrToQuery,
isSearchByTagsQuery,
} from "./cosmosclient";
export { makeSignBytes } from "./encoding";
export { makeSignBytes, StdSignDoc } from "./encoding";
export { buildFeeTable, FeeTable, GasLimits, GasPrice } from "./gas";
export {
AuthAccountsResponse,
+13
View File
@@ -1,5 +1,18 @@
import { Msg } from "./msgs";
import { StdFee } from "./types";
/**
* The document to be signed
*
* @see https://docs.cosmos.network/master/modules/auth/03_types.html#stdsigndoc
*/
export interface StdSignDoc {
readonly account_number: string;
readonly chain_id: string;
readonly fee: StdFee;
readonly memo: string;
readonly msgs: readonly Msg[];
readonly sequence: string;
}
export declare function makeSignBytes(
msgs: readonly Msg[],
fee: StdFee,
+1 -1
View File
@@ -26,7 +26,7 @@ export {
isSearchBySentFromOrToQuery,
isSearchByTagsQuery,
} from "./cosmosclient";
export { makeSignBytes } from "./encoding";
export { makeSignBytes, StdSignDoc } from "./encoding";
export { buildFeeTable, FeeTable, GasLimits, GasPrice } from "./gas";
export {
AuthAccountsResponse,