@leapwallet/buffer-boba
Version:
Buffer Boba is a library for decoding protocol buffers in the cosmos ecosystem.
57 lines (56 loc) • 2.07 kB
TypeScript
import { BinaryReader, BinaryWriter } from '../../../../binary';
/**
* FeeToken is a struct that specifies a coin denom, and pool ID pair.
* This marks the token as eligible for use as a tx fee asset in Osmosis.
* Its price in osmo is derived through looking at the provided pool ID.
* The pool ID must have osmo as one of its assets.
*/
export interface FeeToken {
denom: string;
poolID: bigint;
}
export interface FeeTokenProtoMsg {
typeUrl: '/osmosis.txfees.v1beta1.FeeToken';
value: Uint8Array;
}
/**
* FeeToken is a struct that specifies a coin denom, and pool ID pair.
* This marks the token as eligible for use as a tx fee asset in Osmosis.
* Its price in osmo is derived through looking at the provided pool ID.
* The pool ID must have osmo as one of its assets.
*/
export interface FeeTokenAmino {
denom?: string;
poolID?: string;
}
export interface FeeTokenAminoMsg {
type: 'osmosis/txfees/fee-token';
value: FeeTokenAmino;
}
/**
* FeeToken is a struct that specifies a coin denom, and pool ID pair.
* This marks the token as eligible for use as a tx fee asset in Osmosis.
* Its price in osmo is derived through looking at the provided pool ID.
* The pool ID must have osmo as one of its assets.
*/
export interface FeeTokenSDKType {
denom: string;
poolID: bigint;
}
export declare const FeeToken: {
typeUrl: string;
aminoType: string;
is(o: any): o is FeeToken;
isSDK(o: any): o is FeeTokenSDKType;
isAmino(o: any): o is FeeTokenAmino;
encode(message: FeeToken, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): FeeToken;
fromPartial(object: Partial<FeeToken>): FeeToken;
fromAmino(object: FeeTokenAmino): FeeToken;
toAmino(message: FeeToken): FeeTokenAmino;
fromAminoMsg(object: FeeTokenAminoMsg): FeeToken;
toAminoMsg(message: FeeToken): FeeTokenAminoMsg;
fromProtoMsg(message: FeeTokenProtoMsg): FeeToken;
toProto(message: FeeToken): Uint8Array;
toProtoMsg(message: FeeToken): FeeTokenProtoMsg;
};