import _m0 from "protobufjs/minimal"; import { Resource } from "./types"; export declare const protobufPackage = "starnamed.x.starname.v1beta1"; /** MsgAddAccountCertificate is the message used when a user wants to add new certificates to his account */ export interface MsgAddAccountCertificate { /** Domain is the domain of the account */ domain: string; /** Name is the name of the account */ name: string; /** Owner is the owner of the account */ owner: string; /** Payer is the address of the entity that pays the product and transaction fees */ payer: string; /** NewCertificate is the new certificate to add */ newCertificate: Uint8Array; } /** MsgAddAccountCertificateResponse returns an empty response. */ export interface MsgAddAccountCertificateResponse { } /** MsgDeleteAccountCertificate is the request model used to remove certificates from an account */ export interface MsgDeleteAccountCertificate { /** Domain is the domain of the account */ domain: string; /** Name is the name of the account */ name: string; /** Owner is the owner of the account */ owner: string; /** Payer is the address of the entity that pays the product and transaction fees */ payer: string; /** DeleteCertificate is the certificate to delete */ deleteCertificate: Uint8Array; } /** MsgDeleteAccountCertificateResponse returns an empty response. */ export interface MsgDeleteAccountCertificateResponse { } /** MsgDeleteAccount is the request model used to delete an account */ export interface MsgDeleteAccount { /** Domain is the domain of the account */ domain: string; /** Name is the name of the account */ name: string; /** Owner is the owner of the account */ owner: string; /** Payer is the address of the entity that pays the product and transaction fees */ payer: string; } /** MsgDeleteAccountResponse returns an empty response. */ export interface MsgDeleteAccountResponse { } /** MsgDeleteDomain is the request model to delete a domain */ export interface MsgDeleteDomain { /** Domain is the domain of the account */ domain: string; /** Owner is the owner of the account */ owner: string; /** Payer is the address of the entity that pays the product and transaction fees */ payer: string; } /** MsgDeleteDomainResponse returns an empty response. */ export interface MsgDeleteDomainResponse { } /** MsgRegisterAccount is the request model used to register new accounts */ export interface MsgRegisterAccount { /** Domain is the domain of the account */ domain: string; /** Name is the name of the account */ name: string; /** Owner is the owner of the account */ owner: string; /** Payer is the address of the entity that pays the product and transaction fees */ payer: string; /** Broker is the account that facilitated the transaction */ broker: string; /** Registerer is the user who registers this account */ registerer: string; /** Resources are the blockchain addresses of the account */ resources: Resource[]; } /** MsgRegisterAccountResponse returns an empty response. */ export interface MsgRegisterAccountResponse { } /** MsgRegisterDomain is the request used to register new domains */ export interface MsgRegisterDomain { name: string; admin: string; /** Payer is the address of the entity that pays the product and transaction fees */ payer: string; /** Broker is the account that facilitated the transaction */ broker: string; /** DomainType defines the type of the domain */ domainType: string; } /** MsgRegisterDomainResponse returns an empty response. */ export interface MsgRegisterDomainResponse { } /** MsgRenewAccount is the request model used to renew accounts */ export interface MsgRenewAccount { /** Domain is the domain of the account */ domain: string; /** Name is the name of the account */ name: string; /** Signer is the signer of the request */ signer: string; /** Payer is the address of the entity that pays the product and transaction fees */ payer: string; } /** MsgRenewAccountResponse returns an empty response. */ export interface MsgRenewAccountResponse { } /** MsgRenewDomain is the request model used to renew a domain */ export interface MsgRenewDomain { /** Domain is the domain of the account */ domain: string; /** Signer is the signer of the request */ signer: string; /** Payer is the address of the entity that pays the product and transaction fees */ payer: string; } /** MsgRegisterDomain returns an empty response. */ export interface MsgRenewDomainResponse { } /** MsgReplaceAccountResources is the request model used to renew resources associated with an account */ export interface MsgReplaceAccountResources { /** Domain is the domain of the account */ domain: string; /** Name is the name of the account */ name: string; /** Owner is the owner of the account */ owner: string; /** Payer is the address of the entity that pays the product and transaction fees */ payer: string; /** NewResources are the new resources */ newResources: Resource[]; } /** MsgReplaceAccountResourcesResponse */ export interface MsgReplaceAccountResourcesResponse { } /** MsgReplaceAccountMetadata is the function used to set accounts metadata */ export interface MsgReplaceAccountMetadata { /** Domain is the domain of the account */ domain: string; /** Name is the name of the account */ name: string; /** Owner is the owner of the account */ owner: string; /** Payer is the address of the entity that pays the product and transaction fees */ payer: string; /** * NewMetadataURI is the metadata URI of the account * we want to update or insert */ newMetadataUri: string; } /** MsgReplaceAccountMetadataResponse returns an empty response. */ export interface MsgReplaceAccountMetadataResponse { } /** MsgTransferAccount is the request model used to transfer accounts */ export interface MsgTransferAccount { /** Domain is the domain of the account */ domain: string; /** Name is the name of the account */ name: string; /** Owner is the owner of the account */ owner: string; /** Payer is the address of the entity that pays the product and transaction fees */ payer: string; /** NewOwner is the new owner of the account */ newOwner: string; /** ToReset if true, removes all old data from account */ reset: boolean; } /** MsgTransferAccountResponse returns an empty response. */ export interface MsgTransferAccountResponse { } /** MsgTransferDomain is the request model used to transfer a domain */ export interface MsgTransferDomain { /** Domain is the name of the domain */ domain: string; /** Owner is the owner of the domain */ owner: string; /** Payer is the address of the entity that pays the product and transaction fees */ payer: string; /** NewAdmin is the new owner of the domain */ newAdmin: string; /** TransferFlag controls the operations that occurs on a domain's accounts */ transferFlag: number; } /** MsgTransferDomainResponse returns an empty response. */ export interface MsgTransferDomainResponse { } export interface MsgSignText { message: string; signer: string; } export declare const MsgAddAccountCertificate: { encode(message: MsgAddAccountCertificate, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddAccountCertificate; fromJSON(object: any): MsgAddAccountCertificate; toJSON(message: MsgAddAccountCertificate): unknown; create(base?: DeepPartial): MsgAddAccountCertificate; fromPartial(object: DeepPartial): MsgAddAccountCertificate; }; export declare const MsgAddAccountCertificateResponse: { encode(_: MsgAddAccountCertificateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddAccountCertificateResponse; fromJSON(_: any): MsgAddAccountCertificateResponse; toJSON(_: MsgAddAccountCertificateResponse): unknown; create(base?: DeepPartial): MsgAddAccountCertificateResponse; fromPartial(_: DeepPartial): MsgAddAccountCertificateResponse; }; export declare const MsgDeleteAccountCertificate: { encode(message: MsgDeleteAccountCertificate, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgDeleteAccountCertificate; fromJSON(object: any): MsgDeleteAccountCertificate; toJSON(message: MsgDeleteAccountCertificate): unknown; create(base?: DeepPartial): MsgDeleteAccountCertificate; fromPartial(object: DeepPartial): MsgDeleteAccountCertificate; }; export declare const MsgDeleteAccountCertificateResponse: { encode(_: MsgDeleteAccountCertificateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgDeleteAccountCertificateResponse; fromJSON(_: any): MsgDeleteAccountCertificateResponse; toJSON(_: MsgDeleteAccountCertificateResponse): unknown; create(base?: DeepPartial): MsgDeleteAccountCertificateResponse; fromPartial(_: DeepPartial): MsgDeleteAccountCertificateResponse; }; export declare const MsgDeleteAccount: { encode(message: MsgDeleteAccount, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgDeleteAccount; fromJSON(object: any): MsgDeleteAccount; toJSON(message: MsgDeleteAccount): unknown; create(base?: DeepPartial): MsgDeleteAccount; fromPartial(object: DeepPartial): MsgDeleteAccount; }; export declare const MsgDeleteAccountResponse: { encode(_: MsgDeleteAccountResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgDeleteAccountResponse; fromJSON(_: any): MsgDeleteAccountResponse; toJSON(_: MsgDeleteAccountResponse): unknown; create(base?: DeepPartial): MsgDeleteAccountResponse; fromPartial(_: DeepPartial): MsgDeleteAccountResponse; }; export declare const MsgDeleteDomain: { encode(message: MsgDeleteDomain, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgDeleteDomain; fromJSON(object: any): MsgDeleteDomain; toJSON(message: MsgDeleteDomain): unknown; create(base?: DeepPartial): MsgDeleteDomain; fromPartial(object: DeepPartial): MsgDeleteDomain; }; export declare const MsgDeleteDomainResponse: { encode(_: MsgDeleteDomainResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgDeleteDomainResponse; fromJSON(_: any): MsgDeleteDomainResponse; toJSON(_: MsgDeleteDomainResponse): unknown; create(base?: DeepPartial): MsgDeleteDomainResponse; fromPartial(_: DeepPartial): MsgDeleteDomainResponse; }; export declare const MsgRegisterAccount: { encode(message: MsgRegisterAccount, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgRegisterAccount; fromJSON(object: any): MsgRegisterAccount; toJSON(message: MsgRegisterAccount): unknown; create(base?: DeepPartial): MsgRegisterAccount; fromPartial(object: DeepPartial): MsgRegisterAccount; }; export declare const MsgRegisterAccountResponse: { encode(_: MsgRegisterAccountResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgRegisterAccountResponse; fromJSON(_: any): MsgRegisterAccountResponse; toJSON(_: MsgRegisterAccountResponse): unknown; create(base?: DeepPartial): MsgRegisterAccountResponse; fromPartial(_: DeepPartial): MsgRegisterAccountResponse; }; export declare const MsgRegisterDomain: { encode(message: MsgRegisterDomain, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgRegisterDomain; fromJSON(object: any): MsgRegisterDomain; toJSON(message: MsgRegisterDomain): unknown; create(base?: DeepPartial): MsgRegisterDomain; fromPartial(object: DeepPartial): MsgRegisterDomain; }; export declare const MsgRegisterDomainResponse: { encode(_: MsgRegisterDomainResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgRegisterDomainResponse; fromJSON(_: any): MsgRegisterDomainResponse; toJSON(_: MsgRegisterDomainResponse): unknown; create(base?: DeepPartial): MsgRegisterDomainResponse; fromPartial(_: DeepPartial): MsgRegisterDomainResponse; }; export declare const MsgRenewAccount: { encode(message: MsgRenewAccount, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgRenewAccount; fromJSON(object: any): MsgRenewAccount; toJSON(message: MsgRenewAccount): unknown; create(base?: DeepPartial): MsgRenewAccount; fromPartial(object: DeepPartial): MsgRenewAccount; }; export declare const MsgRenewAccountResponse: { encode(_: MsgRenewAccountResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgRenewAccountResponse; fromJSON(_: any): MsgRenewAccountResponse; toJSON(_: MsgRenewAccountResponse): unknown; create(base?: DeepPartial): MsgRenewAccountResponse; fromPartial(_: DeepPartial): MsgRenewAccountResponse; }; export declare const MsgRenewDomain: { encode(message: MsgRenewDomain, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgRenewDomain; fromJSON(object: any): MsgRenewDomain; toJSON(message: MsgRenewDomain): unknown; create(base?: DeepPartial): MsgRenewDomain; fromPartial(object: DeepPartial): MsgRenewDomain; }; export declare const MsgRenewDomainResponse: { encode(_: MsgRenewDomainResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgRenewDomainResponse; fromJSON(_: any): MsgRenewDomainResponse; toJSON(_: MsgRenewDomainResponse): unknown; create(base?: DeepPartial): MsgRenewDomainResponse; fromPartial(_: DeepPartial): MsgRenewDomainResponse; }; export declare const MsgReplaceAccountResources: { encode(message: MsgReplaceAccountResources, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgReplaceAccountResources; fromJSON(object: any): MsgReplaceAccountResources; toJSON(message: MsgReplaceAccountResources): unknown; create(base?: DeepPartial): MsgReplaceAccountResources; fromPartial(object: DeepPartial): MsgReplaceAccountResources; }; export declare const MsgReplaceAccountResourcesResponse: { encode(_: MsgReplaceAccountResourcesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgReplaceAccountResourcesResponse; fromJSON(_: any): MsgReplaceAccountResourcesResponse; toJSON(_: MsgReplaceAccountResourcesResponse): unknown; create(base?: DeepPartial): MsgReplaceAccountResourcesResponse; fromPartial(_: DeepPartial): MsgReplaceAccountResourcesResponse; }; export declare const MsgReplaceAccountMetadata: { encode(message: MsgReplaceAccountMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgReplaceAccountMetadata; fromJSON(object: any): MsgReplaceAccountMetadata; toJSON(message: MsgReplaceAccountMetadata): unknown; create(base?: DeepPartial): MsgReplaceAccountMetadata; fromPartial(object: DeepPartial): MsgReplaceAccountMetadata; }; export declare const MsgReplaceAccountMetadataResponse: { encode(_: MsgReplaceAccountMetadataResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgReplaceAccountMetadataResponse; fromJSON(_: any): MsgReplaceAccountMetadataResponse; toJSON(_: MsgReplaceAccountMetadataResponse): unknown; create(base?: DeepPartial): MsgReplaceAccountMetadataResponse; fromPartial(_: DeepPartial): MsgReplaceAccountMetadataResponse; }; export declare const MsgTransferAccount: { encode(message: MsgTransferAccount, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgTransferAccount; fromJSON(object: any): MsgTransferAccount; toJSON(message: MsgTransferAccount): unknown; create(base?: DeepPartial): MsgTransferAccount; fromPartial(object: DeepPartial): MsgTransferAccount; }; export declare const MsgTransferAccountResponse: { encode(_: MsgTransferAccountResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgTransferAccountResponse; fromJSON(_: any): MsgTransferAccountResponse; toJSON(_: MsgTransferAccountResponse): unknown; create(base?: DeepPartial): MsgTransferAccountResponse; fromPartial(_: DeepPartial): MsgTransferAccountResponse; }; export declare const MsgTransferDomain: { encode(message: MsgTransferDomain, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgTransferDomain; fromJSON(object: any): MsgTransferDomain; toJSON(message: MsgTransferDomain): unknown; create(base?: DeepPartial): MsgTransferDomain; fromPartial(object: DeepPartial): MsgTransferDomain; }; export declare const MsgTransferDomainResponse: { encode(_: MsgTransferDomainResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgTransferDomainResponse; fromJSON(_: any): MsgTransferDomainResponse; toJSON(_: MsgTransferDomainResponse): unknown; create(base?: DeepPartial): MsgTransferDomainResponse; fromPartial(_: DeepPartial): MsgTransferDomainResponse; }; export declare const MsgSignText: { encode(message: MsgSignText, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgSignText; fromJSON(object: any): MsgSignText; toJSON(message: MsgSignText): unknown; create(base?: DeepPartial): MsgSignText; fromPartial(object: DeepPartial): MsgSignText; }; /** Msg defines the starname Msg service. */ export interface Msg { /** AddAccountCertificate adds a certificate to an Account */ AddAccountCertificate(request: MsgAddAccountCertificate): Promise; /** DeleteAccount registers a Domain */ DeleteAccount(request: MsgDeleteAccount): Promise; /** DeleteAccountCertificate deletes a certificate from an account */ DeleteAccountCertificate(request: MsgDeleteAccountCertificate): Promise; /** DeleteDomain registers a Domain */ DeleteDomain(request: MsgDeleteDomain): Promise; /** RegisterAccount registers an Account */ RegisterAccount(request: MsgRegisterAccount): Promise; /** RegisterDomain registers a Domain */ RegisterDomain(request: MsgRegisterDomain): Promise; /** RenewAccount registers a Domain */ RenewAccount(request: MsgRenewAccount): Promise; /** RenewDomain registers a Domain */ RenewDomain(request: MsgRenewDomain): Promise; /** ReplaceAccountMetadata registers a Domain */ ReplaceAccountMetadata(request: MsgReplaceAccountMetadata): Promise; /** ReplaceAccountResources registers a Domain */ ReplaceAccountResources(request: MsgReplaceAccountResources): Promise; /** TransferAccount registers a Domain */ TransferAccount(request: MsgTransferAccount): Promise; /** TransferDomain registers a Domain */ TransferDomain(request: MsgTransferDomain): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; private readonly service; constructor(rpc: Rpc, opts?: { service?: string; }); AddAccountCertificate(request: MsgAddAccountCertificate): Promise; DeleteAccount(request: MsgDeleteAccount): Promise; DeleteAccountCertificate(request: MsgDeleteAccountCertificate): Promise; DeleteDomain(request: MsgDeleteDomain): Promise; RegisterAccount(request: MsgRegisterAccount): Promise; RegisterDomain(request: MsgRegisterDomain): Promise; RenewAccount(request: MsgRenewAccount): Promise; RenewDomain(request: MsgRenewDomain): Promise; ReplaceAccountMetadata(request: MsgReplaceAccountMetadata): Promise; ReplaceAccountResources(request: MsgReplaceAccountResources): Promise; TransferAccount(request: MsgTransferAccount): Promise; TransferDomain(request: MsgTransferDomain): Promise; } interface Rpc { request(service: string, method: string, data: Uint8Array): Promise; } type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};