@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
19 lines (18 loc) • 1.04 kB
TypeScript
import { type PublicKey } from '@solana/web3.js';
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: PublicKey;
}
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 {};