@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
18 lines (17 loc) • 983 B
TypeScript
import { type Address, type DecodedAbiFunctionOutputs, type FullContractState, type ProviderRpcClient } from 'everscale-inpage-provider';
import { type TokenRootAlienSolanaAbi } from '../../models/token-root-alien-solana/abi';
type AlienSolanaMeta = DecodedAbiFunctionOutputs<typeof TokenRootAlienSolanaAbi, 'meta'>;
export interface TokenRootAlienSolanaMeta extends Omit<AlienSolanaMeta, 'base_chainId' | 'base_token'> {
baseToken: string;
solTokenAddress: string;
}
export declare abstract class TokenRootAlienSolanaUtils {
/**
* Get alien token meta by the given TVM-like token address
* @param {ProviderRpcClient} connection
* @param {Address | string} tokenAddress
* @param {FullContractState} [cachedState] - optional. Full contract state of the token root alien EVM contract
*/
static meta(connection: ProviderRpcClient, tokenAddress: Address | string, cachedState?: FullContractState): Promise<TokenRootAlienSolanaMeta>;
}
export {};