import { Reader, Writer } from 'protobufjs/minimal'; /** * MsgCreateClassRequest is the Msg/CreateClass request type. */ export interface MsgCreateClassRequest { /** * designer is the address of the account which designed the credit class. The designer has special permissions * to change the list of issuers and perform other administrative operations. */ designer: string; /** * issuers are the account addresses of the approved issuers. */ issuers: string[]; /** * metadata is any arbitrary metadata to attached to the credit class. */ metadata: Uint8Array; } /** * MsgCreateClassResponse is the Msg/CreateClass response type. */ export interface MsgCreateClassResponse { /** * class_id is the unique ID of the newly created credit class. */ classId: string; } /** * MsgCreateBatchRequest is the Msg/CreateBatch request type. */ export interface MsgCreateBatchRequest { /** * issuer is the address of the batch issuer. */ issuer: string; /** * class_id is the unique ID of the class. */ classId: string; /** * issuance are the credits issued in the batch. */ issuance: MsgCreateBatchRequest_BatchIssuance[]; /** * metadata is any arbitrary metadata to attached to the credit batch. */ metadata: Uint8Array; } /** * BatchIssuance represents the issuance of some credits in a batch to a single recipient. */ export interface MsgCreateBatchRequest_BatchIssuance { /** * recipient is the account of the recipient. */ recipient: string; /** * tradable_units are the units of credits in this issuance that can be traded by this recipient. * Decimal values are acceptable. */ tradableUnits: string; /** * retired_units are the units of credits in this issuance that are effectively retired by the issuer on receipt. * Decimal values are acceptable. */ retiredUnits: string; } /** * MsgCreateBatchResponse is the Msg/CreateBatch response type. */ export interface MsgCreateBatchResponse { /** * batch_denom is the unique denomination ID of the newly created batch. */ batchDenom: string; } /** * MsgSendRequest is the Msg/Send request type. */ export interface MsgSendRequest { /** * sender is the address of the account sending credits. */ sender: string; /** * sender is the address of the account receiving credits. */ recipient: string; /** * credits are the credits being sent. */ credits: MsgSendRequest_SendUnits[]; } /** * SendUnits are the tradable and retired units of a credit batch to send. */ export interface MsgSendRequest_SendUnits { /** * batch_denom is the unique ID of the credit batch. */ batchDenom: string; /** * tradable_units are the units of credits in this issuance that can be traded by this recipient. * Decimal values are acceptable within the precision returned by Query/Precision. */ tradableUnits: string; /** * retired_units are the units of credits in this issuance that are effectively retired by the issuer on receipt. * Decimal values are acceptable within the precision returned by Query/Precision. */ retiredUnits: string; } /** * MsgSendResponse is the Msg/Send response type. */ export interface MsgSendResponse { } /** * MsgRetireRequest is the Msg/Retire request type. */ export interface MsgRetireRequest { /** * holder is the credit holder address. */ holder: string; /** * credits are the credits being retired. */ credits: MsgRetireRequest_RetireUnits[]; } /** * RetireUnits are the units of the batch being retired. */ export interface MsgRetireRequest_RetireUnits { /** * batch_denom is the unique ID of the credit batch. */ batchDenom: string; /** * retired_units are the units of credits being retired. * Decimal values are acceptable within the precision returned by Query/Precision. */ units: string; } /** * MsgRetireRequest is the Msg/Retire response type. */ export interface MsgRetireResponse { } /** * MsgRetireRequest is the Msg/SetPrecision request type. */ export interface MsgSetPrecisionRequest { /** * issuer is the address of the batch issuer. */ issuer: string; /** * batch_denom is the unique ID of the credit batch. */ batchDenom: string; /** * max_decimal_places is the new maximum number of decimal places that can be used to represent some quantity of * credit units. It is an experimental feature to concretely explore an idea proposed in https://github.com/cosmos/cosmos-sdk/issues/7113. */ maxDecimalPlaces: number; } /** * MsgRetireRequest is the Msg/SetPrecision response type. */ export interface MsgSetPrecisionResponse { } /** * Msg is the regen.ecocredit.v1alpha1 Msg service. */ export interface Msg { /** * CreateClass creates a new credit class with an approved list of issuers and optional metadata. */ CreateClass(request: MsgCreateClassRequest): Promise; /** * CreateBatch creates a new batch of credits for an existing credit class. This will create a new batch denom * with a fixed supply. Issued credits can be distributed to recipients in either tradable or retired form. */ CreateBatch(request: MsgCreateBatchRequest): Promise; /** * Send sends tradeable credits from one account to another account. Sent credits can either be tradable or retired on receipt. */ Send(request: MsgSendRequest): Promise; /** * Retire retires a specified number of credits in the holder's account. */ Retire(request: MsgRetireRequest): Promise; /** * SetPrecision allows an issuer to increase the decimal precision of a credit batch. It is an experimental feature * to concretely explore an idea proposed in https://github.com/cosmos/cosmos-sdk/issues/7113. The number of decimal * places allowed for a credit batch is determined by the original number of decimal places used with calling CreatBatch. * SetPrecision allows the number of allowed decimal places to be increased, effectively making the supply more * granular without actually changing any balances. It allows asset issuers to be able to issue an asset without needing * to think about how many subdivisions are needed upfront. While it may not be relevant for credits which likely have * a fairly stable market value, I wanted to experiment a bit and this serves as a proof of concept for a broader * bank redesign where say for instance a coin like the ATOM or XRN could be issued in its own units rather than * micro or nano-units. Instead an operation like SetPrecision would allow trading in micro, nano or pico in the future * based on market demand. Arbitrary, unbounded precision is not desirable because this can lead to spam attacks (like * sending 0.000000000000000000000000000001 coins). This is effectively fixed precision so under the hood it is still * basically an integer, but the fixed precision can be increased so its more adaptable long term than just an integer. */ SetPrecision(request: MsgSetPrecisionRequest): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); CreateClass(request: MsgCreateClassRequest): Promise; CreateBatch(request: MsgCreateBatchRequest): Promise; Send(request: MsgSendRequest): Promise; Retire(request: MsgRetireRequest): Promise; SetPrecision(request: MsgSetPrecisionRequest): Promise; } interface Rpc { request(service: string, method: string, data: Uint8Array): Promise; } export declare const protobufPackage = "regen.ecocredit.v1alpha1"; export declare const MsgCreateClassRequest: { encode(message: MsgCreateClassRequest, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): MsgCreateClassRequest; fromJSON(object: any): MsgCreateClassRequest; fromPartial(object: DeepPartial): MsgCreateClassRequest; toJSON(message: MsgCreateClassRequest): unknown; }; export declare const MsgCreateClassResponse: { encode(message: MsgCreateClassResponse, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): MsgCreateClassResponse; fromJSON(object: any): MsgCreateClassResponse; fromPartial(object: DeepPartial): MsgCreateClassResponse; toJSON(message: MsgCreateClassResponse): unknown; }; export declare const MsgCreateBatchRequest: { encode(message: MsgCreateBatchRequest, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): MsgCreateBatchRequest; fromJSON(object: any): MsgCreateBatchRequest; fromPartial(object: DeepPartial): MsgCreateBatchRequest; toJSON(message: MsgCreateBatchRequest): unknown; }; export declare const MsgCreateBatchRequest_BatchIssuance: { encode(message: MsgCreateBatchRequest_BatchIssuance, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): MsgCreateBatchRequest_BatchIssuance; fromJSON(object: any): MsgCreateBatchRequest_BatchIssuance; fromPartial(object: DeepPartial): MsgCreateBatchRequest_BatchIssuance; toJSON(message: MsgCreateBatchRequest_BatchIssuance): unknown; }; export declare const MsgCreateBatchResponse: { encode(message: MsgCreateBatchResponse, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): MsgCreateBatchResponse; fromJSON(object: any): MsgCreateBatchResponse; fromPartial(object: DeepPartial): MsgCreateBatchResponse; toJSON(message: MsgCreateBatchResponse): unknown; }; export declare const MsgSendRequest: { encode(message: MsgSendRequest, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): MsgSendRequest; fromJSON(object: any): MsgSendRequest; fromPartial(object: DeepPartial): MsgSendRequest; toJSON(message: MsgSendRequest): unknown; }; export declare const MsgSendRequest_SendUnits: { encode(message: MsgSendRequest_SendUnits, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): MsgSendRequest_SendUnits; fromJSON(object: any): MsgSendRequest_SendUnits; fromPartial(object: DeepPartial): MsgSendRequest_SendUnits; toJSON(message: MsgSendRequest_SendUnits): unknown; }; export declare const MsgSendResponse: { encode(_: MsgSendResponse, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): MsgSendResponse; fromJSON(_: any): MsgSendResponse; fromPartial(_: DeepPartial): MsgSendResponse; toJSON(_: MsgSendResponse): unknown; }; export declare const MsgRetireRequest: { encode(message: MsgRetireRequest, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): MsgRetireRequest; fromJSON(object: any): MsgRetireRequest; fromPartial(object: DeepPartial): MsgRetireRequest; toJSON(message: MsgRetireRequest): unknown; }; export declare const MsgRetireRequest_RetireUnits: { encode(message: MsgRetireRequest_RetireUnits, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): MsgRetireRequest_RetireUnits; fromJSON(object: any): MsgRetireRequest_RetireUnits; fromPartial(object: DeepPartial): MsgRetireRequest_RetireUnits; toJSON(message: MsgRetireRequest_RetireUnits): unknown; }; export declare const MsgRetireResponse: { encode(_: MsgRetireResponse, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): MsgRetireResponse; fromJSON(_: any): MsgRetireResponse; fromPartial(_: DeepPartial): MsgRetireResponse; toJSON(_: MsgRetireResponse): unknown; }; export declare const MsgSetPrecisionRequest: { encode(message: MsgSetPrecisionRequest, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): MsgSetPrecisionRequest; fromJSON(object: any): MsgSetPrecisionRequest; fromPartial(object: DeepPartial): MsgSetPrecisionRequest; toJSON(message: MsgSetPrecisionRequest): unknown; }; export declare const MsgSetPrecisionResponse: { encode(_: MsgSetPrecisionResponse, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): MsgSetPrecisionResponse; fromJSON(_: any): MsgSetPrecisionResponse; fromPartial(_: DeepPartial): MsgSetPrecisionResponse; toJSON(_: MsgSetPrecisionResponse): unknown; }; declare type Builtin = Date | Function | Uint8Array | string | number | undefined; export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};