
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@hot-wallet/omni-sdk
Advanced tools
Read more about HOT Omni in our blog: https://hot-labs.org/blog/omni
import "dotenv/config";
import { EvmSigner, Network, TokenId } from "@hot-wallet/omni";
import { TonSigner, NearSigner, OmniService, SolanaSigner } from "@hot-wallet/omni";
const env = process.env as any;
const omni = new OmniService({
near: new NearSigner(env.NEAR_ACCONT_ID, env.NEAR_PRIVATE_KEY),
ton: new TonSigner(env.TON_PRIVATE_KEY, env.TON_WALLET_TYPE, env.TON_API_KEY),
solana: new SolanaSigner(env.SOLANA_PRIVATE_KEY, [env.SOLANA_RPC]),
evm: new EvmSigner(env.EVM_PRIVATE_KEY),
});
const bridgeUsdtFromNearToBnb = async () => {
const USDT = omni.token(TokenId.USDT);
await USDT.balance(Network.Near); // Near USDT balance
await USDT.balance(Network.Bnb); // Bnb USDT balance
const input = await USDT.input(Network.Near, 1); // <-- construct input amount
await omni.depositToken(input); // USDT from TON to OMNI
await USDT.balance(Network.Near); // NEAR USDT balance -1
await USDT.balance(Network.Hot); // OMNI USDT balance +1
const output = await USDT.output(Network.Bnb, 1); // <-- construct output amount
await omni.withdrawToken(output); // USDT from OMNI to Base
await USDT.balance(Network.Hot); // HOT USDT balance -1
await USDT.balance(Network.Bnb); // Bnb USDT balance +1
};
bridgeUsdtFromNearToBnb();
git clone https://github.com/hot-dao/omni-sdk
cd omni-sdk
yarn # install deps
cp .env.example .env # then fill it
yarn example # WARNING: IT WILL BRIDGE 1 USDT FROM NEAR TO BNB !!!
const token = await omni.findToken(Network.Bnb, "0xff..."); // Find some token
await token.liquidity(Network.Bnb);
const usdc = omni.token(Network.USDC); // Whitelisted token
await usdc.liquidity(Network.Ton); // check available liquidity for chain (need for withdraw)
const withdrawals = await omni.getActiveWithdrawals();
withdrawals.forEach((pending) => omni.finishWithdraw(pending));
const deposits = await omni.getActiveDeposits();
deposits.forEach((pending) => omni.finishDeposits(pending));
FAQs
## Usage from CLI
We found that @hot-wallet/omni-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.