@okutrade/account-api
Version:
TypeScript client for OKU Account API using Connect-ES
102 lines (101 loc) • 2.94 kB
TypeScript
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file gfxcafe/oku/account/v1/tokens.proto.
*/
export declare const file_gfxcafe_oku_account_v1_tokens: GenFile;
/**
* Token information
*
* @generated from message gfxcafe.oku.account.v1.Token
*/
export type Token = Message<"gfxcafe.oku.account.v1.Token"> & {
/**
* @generated from field: string address = 1;
*/
address: string;
/**
* @generated from field: string symbol = 2;
*/
symbol: string;
/**
* @generated from field: string name = 3;
*/
name: string;
/**
* @generated from field: int32 decimals = 4;
*/
decimals: number;
/**
* @generated from field: string logo_url = 5;
*/
logoUrl: string;
/**
* @generated from field: bool is_native = 6;
*/
isNative: boolean;
/**
* @generated from field: bool is_supported = 7;
*/
isSupported: boolean;
};
/**
* Describes the message gfxcafe.oku.account.v1.Token.
* Use `create(TokenSchema)` to create a new message.
*/
export declare const TokenSchema: GenMessage<Token>;
/**
* Request to get a single token
*
* @generated from message gfxcafe.oku.account.v1.ChainAddressRequest
*/
export type ChainAddressRequest = Message<"gfxcafe.oku.account.v1.ChainAddressRequest"> & {
/**
* Chain identifier (e.g., "1", "ethereum", "eip155:1")
*
* @generated from field: string chain = 1;
*/
chain: string;
/**
* @generated from field: string address = 2;
*/
address: string;
};
/**
* Describes the message gfxcafe.oku.account.v1.ChainAddressRequest.
* Use `create(ChainAddressRequestSchema)` to create a new message.
*/
export declare const ChainAddressRequestSchema: GenMessage<ChainAddressRequest>;
/**
* Response with token details
*
* @generated from message gfxcafe.oku.account.v1.ChainAddressResponse
*/
export type ChainAddressResponse = Message<"gfxcafe.oku.account.v1.ChainAddressResponse"> & {
/**
* @generated from field: gfxcafe.oku.account.v1.Token token = 1;
*/
token?: Token;
};
/**
* Describes the message gfxcafe.oku.account.v1.ChainAddressResponse.
* Use `create(ChainAddressResponseSchema)` to create a new message.
*/
export declare const ChainAddressResponseSchema: GenMessage<ChainAddressResponse>;
/**
* TokensService provides token information and metadata
*
* @generated from service gfxcafe.oku.account.v1.TokensService
*/
export declare const TokensService: GenService<{
/**
* Get token details by chain and address (/tokens/{chain}/{address})
*
* @generated from rpc gfxcafe.oku.account.v1.TokensService.ChainAddress
*/
chainAddress: {
methodKind: "unary";
input: typeof ChainAddressRequestSchema;
output: typeof ChainAddressResponseSchema;
};
}>;