import { Coin, CoinSDKType } from "../../base/v1beta1/coin"; import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp"; import { Duration, DurationSDKType } from "../../../google/protobuf/duration"; import { Any, AnySDKType } from "../../../google/protobuf/any"; import { BinaryReader, BinaryWriter } from "../../../binary"; export declare const protobufPackage = "cosmos.feegrant.v1beta1"; /** * BasicAllowance implements Allowance with a one-time grant of tokens * that optionally expires. The grantee can use up to SpendLimit to cover fees. */ export interface BasicAllowance { /** * spend_limit specifies the maximum amount of tokens that can be spent * by this allowance and will be updated as tokens are spent. If it is * empty, there is no spend limit and any amount of coins can be spent. */ spendLimit: Coin[]; /** expiration specifies an optional time when this allowance expires */ expiration?: Timestamp | undefined; } /** * BasicAllowance implements Allowance with a one-time grant of tokens * that optionally expires. The grantee can use up to SpendLimit to cover fees. */ export interface BasicAllowanceSDKType { spend_limit: CoinSDKType[]; expiration?: TimestampSDKType | undefined; } /** * PeriodicAllowance extends Allowance to allow for both a maximum cap, * as well as a limit per time period. */ export interface PeriodicAllowance { /** basic specifies a struct of `BasicAllowance` */ basic: BasicAllowance | undefined; /** * period specifies the time duration in which period_spend_limit coins can * be spent before that allowance is reset */ period: Duration | undefined; /** * period_spend_limit specifies the maximum number of coins that can be spent * in the period */ periodSpendLimit: Coin[]; /** period_can_spend is the number of coins left to be spent before the period_reset time */ periodCanSpend: Coin[]; /** * period_reset is the time at which this period resets and a new one begins, * it is calculated from the start time of the first transaction after the * last period ended */ periodReset: Timestamp | undefined; } /** * PeriodicAllowance extends Allowance to allow for both a maximum cap, * as well as a limit per time period. */ export interface PeriodicAllowanceSDKType { basic: BasicAllowanceSDKType | undefined; period: DurationSDKType | undefined; period_spend_limit: CoinSDKType[]; period_can_spend: CoinSDKType[]; period_reset: TimestampSDKType | undefined; } /** AllowedMsgAllowance creates allowance only for specified message types. */ export interface AllowedMsgAllowance { /** allowance can be any of basic and filtered fee allowance. */ allowance?: Any | undefined; /** allowed_messages are the messages for which the grantee has the access. */ allowedMessages: string[]; } /** AllowedMsgAllowance creates allowance only for specified message types. */ export interface AllowedMsgAllowanceSDKType { allowance?: AnySDKType | undefined; allowed_messages: string[]; } /** Grant is stored in the KVStore to record a grant with full context */ export interface Grant { /** granter is the address of the user granting an allowance of their funds. */ granter: string; /** grantee is the address of the user being granted an allowance of another user's funds. */ grantee: string; /** allowance can be any of basic and filtered fee allowance. */ allowance?: Any | undefined; } /** Grant is stored in the KVStore to record a grant with full context */ export interface GrantSDKType { granter: string; grantee: string; allowance?: AnySDKType | undefined; } export declare const BasicAllowance: { typeUrl: string; encode(message: BasicAllowance, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): BasicAllowance; fromJSON(object: any): BasicAllowance; toJSON(message: BasicAllowance): unknown; fromPartial & { spendLimit?: Coin[] & (Coin & { denom: string; amount: string; } & Record, never>)[] & Record, never>; expiration?: Timestamp & { seconds: bigint; nanos: number; } & Record, never>; } & Record, never>>(object: I): BasicAllowance; }; export declare const PeriodicAllowance: { typeUrl: string; encode(message: PeriodicAllowance, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): PeriodicAllowance; fromJSON(object: any): PeriodicAllowance; toJSON(message: PeriodicAllowance): unknown; fromPartial & { basic?: BasicAllowance & { spendLimit: Coin[] & (Coin & { denom: string; amount: string; } & Record, never>)[] & Record, never>; expiration?: Timestamp & { seconds: bigint; nanos: number; } & Record, never>; } & Record, never>; period?: Duration & { seconds: bigint; nanos: number; } & Record, never>; periodSpendLimit?: Coin[] & (Coin & { denom: string; amount: string; } & Record, never>)[] & Record, never>; periodCanSpend?: Coin[] & (Coin & { denom: string; amount: string; } & Record, never>)[] & Record, never>; periodReset?: Timestamp & { seconds: bigint; nanos: number; } & Record, never>; } & Record, never>>(object: I): PeriodicAllowance; }; export declare const AllowedMsgAllowance: { typeUrl: string; encode(message: AllowedMsgAllowance, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): AllowedMsgAllowance; fromJSON(object: any): AllowedMsgAllowance; toJSON(message: AllowedMsgAllowance): unknown; fromPartial & { allowance?: Any & { typeUrl: string; value: Uint8Array; } & Record, never>; allowedMessages?: string[] & Record, never>; } & Record, never>>(object: I): AllowedMsgAllowance; }; export declare const Grant: { typeUrl: string; encode(message: Grant, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Grant; fromJSON(object: any): Grant; toJSON(message: Grant): unknown; fromPartial & { granter?: string; grantee?: string; allowance?: Any & { typeUrl: string; value: Uint8Array; } & Record, never>; } & Record, never>>(object: I): Grant; };