laconic-sdk/dist/messages/bond.d.ts

225 lines
7.9 KiB
TypeScript

import { Chain, Sender, Fee } from '@tharsis/transactions';
export interface MessageMsgCreateBond {
amount: string;
denom: string;
}
export interface MessageMsgRefillBond {
id: string;
amount: string;
denom: string;
}
export interface MessageMsgWithdrawBond {
id: string;
amount: string;
denom: string;
}
export interface MessageMsgCancelBond {
id: string;
}
export interface MessageMsgAssociateBond {
bondId: string;
recordId: string;
}
export interface MessageMsgDissociateBond {
recordId: string;
}
export interface MessageMsgDissociateRecords {
bondId: string;
}
export interface MessageMsgReAssociateRecords {
newBondId: string;
oldBondId: string;
}
export declare function createTxMsgCreateBond(chain: Chain, sender: Sender, fee: Fee, memo: string, params: MessageMsgCreateBond): {
signDirect: {
body: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.TxBody;
authInfo: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.AuthInfo;
signBytes: string;
};
legacyAmino: {
body: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.TxBody;
authInfo: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.AuthInfo;
signBytes: string;
};
eipToSign: {
types: object;
primaryType: string;
domain: {
name: string;
version: string;
chainId: number;
verifyingContract: string;
salt: string;
};
message: object;
};
};
export declare function createTxMsgRefillBond(chain: Chain, sender: Sender, fee: Fee, memo: string, params: MessageMsgRefillBond): {
signDirect: {
body: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.TxBody;
authInfo: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.AuthInfo;
signBytes: string;
};
legacyAmino: {
body: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.TxBody;
authInfo: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.AuthInfo;
signBytes: string;
};
eipToSign: {
types: object;
primaryType: string;
domain: {
name: string;
version: string;
chainId: number;
verifyingContract: string;
salt: string;
};
message: object;
};
};
export declare function createTxMsgWithdrawBond(chain: Chain, sender: Sender, fee: Fee, memo: string, params: MessageMsgWithdrawBond): {
signDirect: {
body: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.TxBody;
authInfo: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.AuthInfo;
signBytes: string;
};
legacyAmino: {
body: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.TxBody;
authInfo: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.AuthInfo;
signBytes: string;
};
eipToSign: {
types: object;
primaryType: string;
domain: {
name: string;
version: string;
chainId: number;
verifyingContract: string;
salt: string;
};
message: object;
};
};
export declare function createTxMsgCancelBond(chain: Chain, sender: Sender, fee: Fee, memo: string, params: MessageMsgCancelBond): {
signDirect: {
body: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.TxBody;
authInfo: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.AuthInfo;
signBytes: string;
};
legacyAmino: {
body: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.TxBody;
authInfo: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.AuthInfo;
signBytes: string;
};
eipToSign: {
types: object;
primaryType: string;
domain: {
name: string;
version: string;
chainId: number;
verifyingContract: string;
salt: string;
};
message: object;
};
};
export declare function createTxMsgAssociateBond(chain: Chain, sender: Sender, fee: Fee, memo: string, params: MessageMsgAssociateBond): {
signDirect: {
body: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.TxBody;
authInfo: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.AuthInfo;
signBytes: string;
};
legacyAmino: {
body: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.TxBody;
authInfo: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.AuthInfo;
signBytes: string;
};
eipToSign: {
types: object;
primaryType: string;
domain: {
name: string;
version: string;
chainId: number;
verifyingContract: string;
salt: string;
};
message: object;
};
};
export declare function createTxMsgDissociateBond(chain: Chain, sender: Sender, fee: Fee, memo: string, params: MessageMsgDissociateBond): {
signDirect: {
body: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.TxBody;
authInfo: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.AuthInfo;
signBytes: string;
};
legacyAmino: {
body: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.TxBody;
authInfo: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.AuthInfo;
signBytes: string;
};
eipToSign: {
types: object;
primaryType: string;
domain: {
name: string;
version: string;
chainId: number;
verifyingContract: string;
salt: string;
};
message: object;
};
};
export declare function createTxMsgDissociateRecords(chain: Chain, sender: Sender, fee: Fee, memo: string, params: MessageMsgDissociateRecords): {
signDirect: {
body: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.TxBody;
authInfo: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.AuthInfo;
signBytes: string;
};
legacyAmino: {
body: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.TxBody;
authInfo: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.AuthInfo;
signBytes: string;
};
eipToSign: {
types: object;
primaryType: string;
domain: {
name: string;
version: string;
chainId: number;
verifyingContract: string;
salt: string;
};
message: object;
};
};
export declare function createTxMsgReAssociateRecords(chain: Chain, sender: Sender, fee: Fee, memo: string, params: MessageMsgReAssociateRecords): {
signDirect: {
body: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.TxBody;
authInfo: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.AuthInfo;
signBytes: string;
};
legacyAmino: {
body: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.TxBody;
authInfo: import("@tharsis/proto/dist/proto/cosmos/tx/v1beta1/tx").cosmos.tx.v1beta1.AuthInfo;
signBytes: string;
};
eipToSign: {
types: object;
primaryType: string;
domain: {
name: string;
version: string;
chainId: number;
verifyingContract: string;
salt: string;
};
message: object;
};
};