UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

17 lines (16 loc) 861 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.tonNativeProxyV1Contract = tonNativeProxyV1Contract; exports.tonNativeProxyV2Contract = tonNativeProxyV2Contract; exports.tonNativeProxyV3Contract = tonNativeProxyV3Contract; const js_core_1 = require("@broxus/js-core"); const abi_1 = require("../../models/ton-native-proxy/abi"); function tonNativeProxyV1Contract(connection, address) { return new connection.Contract(abi_1.TonNativeProxyV1Abi, (0, js_core_1.resolveTvmAddress)(address)); } function tonNativeProxyV2Contract(connection, address) { return new connection.Contract(abi_1.TonNativeProxyV2Abi, (0, js_core_1.resolveTvmAddress)(address)); } function tonNativeProxyV3Contract(connection, address) { return new connection.Contract(abi_1.TonNativeProxyV3Abi, (0, js_core_1.resolveTvmAddress)(address)); }