UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

33 lines (32 loc) 1.64 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.alienProxyV8Contract = alienProxyV8Contract; exports.alienProxyV9Contract = alienProxyV9Contract; exports.alienProxyV10Contract = alienProxyV10Contract; exports.mergePoolV5Contract = mergePoolV5Contract; exports.mergePoolV6Contract = mergePoolV6Contract; exports.mergePoolV7Contract = mergePoolV7Contract; exports.mergeRouterContract = mergeRouterContract; const js_core_1 = require("@broxus/js-core"); const abi_1 = require("../../models/alien-proxy/abi"); function alienProxyV8Contract(connection, address) { return new connection.Contract(abi_1.AlienProxyV8Abi, (0, js_core_1.resolveTvmAddress)(address)); } function alienProxyV9Contract(connection, address) { return new connection.Contract(abi_1.AlienProxyV9Abi, (0, js_core_1.resolveTvmAddress)(address)); } function alienProxyV10Contract(connection, address) { return new connection.Contract(abi_1.AlienProxyV10Abi, (0, js_core_1.resolveTvmAddress)(address)); } function mergePoolV5Contract(connection, address) { return new connection.Contract(abi_1.MergePoolV5Abi, (0, js_core_1.resolveTvmAddress)(address)); } function mergePoolV6Contract(connection, address) { return new connection.Contract(abi_1.MergePoolV6Abi, (0, js_core_1.resolveTvmAddress)(address)); } function mergePoolV7Contract(connection, address) { return new connection.Contract(abi_1.MergePoolV7Abi, (0, js_core_1.resolveTvmAddress)(address)); } function mergeRouterContract(connection, address) { return new connection.Contract(abi_1.MergeRouterAbi, (0, js_core_1.resolveTvmAddress)(address)); }