146 lines
5.1 KiB
TypeScript
146 lines
5.1 KiB
TypeScript
import { Chain, Sender, Fee } from '@tharsis/transactions';
|
|
import { Payload } from '../types';
|
|
export declare const parseMsgSetRecordResponse: (data: string) => {
|
|
id: string;
|
|
};
|
|
export declare const NAMESERVICE_ERRORS: string[];
|
|
export interface MessageMsgReserveAuthority {
|
|
name: string;
|
|
owner: string;
|
|
}
|
|
export interface MessageMsgSetName {
|
|
crn: string;
|
|
cid: string;
|
|
}
|
|
export interface MessageMsgSetRecord {
|
|
bondId: string;
|
|
payload: Payload;
|
|
}
|
|
export interface MessageMsgSetAuthorityBond {
|
|
name: string;
|
|
bondId: string;
|
|
}
|
|
export interface MessageMsgDeleteName {
|
|
crn: string;
|
|
}
|
|
export declare function createTxMsgReserveAuthority(chain: Chain, sender: Sender, fee: Fee, memo: string, params: MessageMsgReserveAuthority): {
|
|
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 createTxMsgSetName(chain: Chain, sender: Sender, fee: Fee, memo: string, params: MessageMsgSetName): {
|
|
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 createTxMsgSetRecord(chain: Chain, sender: Sender, fee: Fee, memo: string, params: MessageMsgSetRecord): {
|
|
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 createTxMsgSetAuthorityBond(chain: Chain, sender: Sender, fee: Fee, memo: string, params: MessageMsgSetAuthorityBond): {
|
|
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 createTxMsgDeleteName(chain: Chain, sender: Sender, fee: Fee, memo: string, params: MessageMsgDeleteName): {
|
|
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;
|
|
};
|
|
};
|