@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
31 lines (30 loc) • 3.52 kB
TypeScript
import { type AbiEventName, type AbiFunctionName, type Address, type DecodeEventParams, type DecodeTransactionParams, type DecodedAbiFunctionOutputs, type DecodedEvent, type DecodedTransaction, type DelayedMessageExecution, type FullContractState, type ProviderRpcClient, type SendInternalParams, type Transaction } from 'everscale-inpage-provider';
import { type NativeProxyV7Abi } from '../../models/native-proxy/abi';
export interface NativeProxyV7DeployTokenFeeAbiParams {
remainingGasTo: Address | string;
tokenAddress: Address | string;
}
export type NativeProxyV7TvmDefaultFee = DecodedAbiFunctionOutputs<typeof NativeProxyV7Abi, 'getTvmDefaultFee'>;
export type NativeProxyV7TvmTokenFee = DecodedAbiFunctionOutputs<typeof NativeProxyV7Abi, 'getTvmTokenFee'>;
export type NativeProxyV7TvmFees = Map<string, {
incoming: string;
outgoing: string;
}>;
export type NativeProxyV7Configurations = DecodedAbiFunctionOutputs<typeof NativeProxyV7Abi, 'getConfiguration'>;
export type NativeProxyV7DecodedEvent = DecodedEvent<typeof NativeProxyV7Abi, AbiEventName<typeof NativeProxyV7Abi>>;
export type NativeProxyV7DecodedTransaction = DecodedTransaction<typeof NativeProxyV7Abi, AbiFunctionName<typeof NativeProxyV7Abi>>;
export declare abstract class NativeProxyV7Utils {
static deployTokenFee(provider: ProviderRpcClient, proxyAddress: Address | string, params: NativeProxyV7DeployTokenFeeAbiParams, args?: Partial<SendInternalParams>): Promise<DelayedMessageExecution>;
static getExpectedTokenFeeAddress(connection: ProviderRpcClient, proxyAddress: Address | string, tokenAddress: Address | string, cachedState?: FullContractState): Promise<Address>;
static getTvmDefaultFee(connection: ProviderRpcClient, proxyAddress: Address | string, cachedState?: FullContractState): Promise<NativeProxyV7TvmDefaultFee>;
static getTvmFees(connection: ProviderRpcClient, proxyAddress: Address | string, cachedState?: FullContractState): Promise<NativeProxyV7TvmFees>;
static getTvmTokenFee(connection: ProviderRpcClient, proxyAddress: Address | string, tokenAddress: Address | string, cachedState?: FullContractState): Promise<NativeProxyV7TvmTokenFee>;
static getConfiguration(connection: ProviderRpcClient, proxyAddress: Address | string, cachedState?: FullContractState): Promise<NativeProxyV7Configurations>;
static getTvmEvmConfiguration(connection: ProviderRpcClient, proxyAddress: Address | string, cachedState?: FullContractState): Promise<Address>;
static getSolTvmConfiguration(connection: ProviderRpcClient, proxyAddress: Address | string, cachedState?: FullContractState): Promise<Address>;
static getTvmSolConfiguration(connection: ProviderRpcClient, proxyAddress: Address | string, cachedState?: FullContractState): Promise<Address>;
static getDexMiddleware(connection: ProviderRpcClient, proxyAddress: Address | string, cachedState?: FullContractState): Promise<Address>;
static decodeEvent(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, args: DecodeEventParams<typeof NativeProxyV7Abi>): Promise<NativeProxyV7DecodedEvent | undefined>;
static decodeTransaction(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, args: DecodeTransactionParams<typeof NativeProxyV7Abi>): Promise<NativeProxyV7DecodedTransaction | undefined>;
static decodeTransactionEvents(connection: ProviderRpcClient, eventConfigurationAddress: Address | string, transaction: Transaction): Promise<NativeProxyV7DecodedEvent[]>;
}