@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
12 lines (11 loc) • 621 B
JavaScript
import { resolveTvmAddress } from '@broxus/js-core';
import { TonNativeProxyV1Abi, TonNativeProxyV2Abi, TonNativeProxyV3Abi } from '../../models/ton-native-proxy/abi';
export function tonNativeProxyV1Contract(connection, address) {
return new connection.Contract(TonNativeProxyV1Abi, resolveTvmAddress(address));
}
export function tonNativeProxyV2Contract(connection, address) {
return new connection.Contract(TonNativeProxyV2Abi, resolveTvmAddress(address));
}
export function tonNativeProxyV3Contract(connection, address) {
return new connection.Contract(TonNativeProxyV3Abi, resolveTvmAddress(address));
}