Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

torosdk

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

torosdk - npm Package Compare versions

Comparing version
0.0.9
to
0.1.0
+349
-1
dist/index.d.mts

@@ -172,2 +172,350 @@ /**

/**
* Bridge network types for multi-chain support
*/
declare enum BridgeNetwork {
Solana = "sol",
Base = "base",
Polygon = "poly",
BSC = "bsc",
Arbitrum = "arb",
Ethereum = "eth"
}
/**
* Bridge operation parameters
*/
interface BridgeTokenParams {
from: string;
pwd: string;
network: BridgeNetwork | string;
contractaddress: string;
tokenname: string;
amount: string;
}
interface GetBridgeTokenFeeParams {
network: BridgeNetwork | string;
contractaddress: string;
amount: string;
}
/**
* Balance query parameters
*/
interface GetBalanceParams {
address: string;
network?: BridgeNetwork | string;
}
interface GetTokenBalanceParams {
address: string;
network?: BridgeNetwork | string;
contractaddress: string;
tokenname?: string;
}
/**
* Transaction query parameters
*/
interface GetTransactionsParams {
address: string;
network?: BridgeNetwork | string;
}
interface GetTokenTransactionsParams {
address: string;
network?: BridgeNetwork | string;
contractaddress: string;
tokenname?: string;
}
/**
* Solana-specific parameters
*/
interface CreateSolanaAddressParams {
admin?: string;
adminpwd?: string;
}
interface CreateToronetSolanaAddressParams {
addr: string;
pwd: string;
}
interface TransferSolanaParams {
from: string;
to: string;
amount: string;
pwd: string;
}
interface TransferSolTokenParams {
from: string;
to: string;
amount: string;
pwd: string;
contractaddress: string;
tokenname: string;
usetokenasfees?: string;
}
/**
* Payment initialization parameters for crypto deposits
*/
interface PaymentInitializeCryptoParams {
address: string;
pwd: string;
currency: string;
token: string;
amount: string;
success_url?: string;
cancel_url?: string;
paymenttype?: string;
passthrough?: string;
commissionrate?: string;
exchange?: string;
payername?: string;
payeraddress?: string;
payercity?: string;
payerstate?: string;
payercountry?: string;
payerzipcode?: string;
payerphone?: string;
reusewallet?: string;
description?: string;
reference?: string;
}
/**
* Record payment parameters
*/
interface RecordPaymentParams {
currency: string;
txid: string;
}
/**
* Create a new Solana address
* Operation: createsolanaaddress
* Note: It's preferable to use generatevirtualwallet to ensure the Solana address is linked to Toronet address
*/
declare const createSolanaAddress: (params?: CreateSolanaAddressParams) => Promise<any>;
/**
* Validate if a string is a valid Solana address
* Operation: isValidSolanaAddress
*/
declare const isValidSolanaAddress: (address: string, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Create a custodial Solana address linked to a Toronet address
* Operation: createtoronetsolanaaddress
* Note: It's preferable to use generatevirtualwallet to ensure the Solana address is linked to Toronet address
*/
declare const createToronetSolanaAddress: (params: CreateToronetSolanaAddressParams) => Promise<any>;
/**
* Verify Solana virtual address encryption
* Operation: verify_solana_virtualaddress_enc
*/
declare const verifySolanaVirtualAddressEnc: (from: string, pwd: string, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Verify Solana virtual address (Toronet address)
* Operation: verify_solana_virtualaddress
*/
declare const verifySolanaVirtualAddress: (from: string, pwd: string, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Transfer SOL (native Solana token)
* Operation: transfer_sol
*/
declare const transferSolana: (params: TransferSolanaParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Transfer SPL token on Solana
* Operation: transfer_sol_token
*/
declare const transferSolToken: (params: TransferSolTokenParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get SOL balance for a Solana address
* Operation: getsol_balance
*/
declare const getSolBalance: (params: GetBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get SPL token balance for a Solana address
* Operation: getsol_token_balance
*/
declare const getSolTokenBalance: (params: GetTokenBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get latest Solana block
* Operation: getsol_latest_block
*/
declare const getSolLatestBlock: (admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get SOL transactions for a Solana address
* Operation: getsol_transactions
*/
declare const getSolTransactions: (params: GetTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get SPL token transactions for a Solana address
* Operation: getsol_token_transactions
*/
declare const getSolTokenTransactions: (params: GetTokenTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Bridge token from Solana to Toronet
* Operation: bridge_token
*/
declare const bridgeTokenSol: (params: BridgeTokenParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get bridge token fee for Solana
* Operation: get_bridge_token_fee
*/
declare const getBridgeTokenFeeSol: (params: GetBridgeTokenFeeParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get native token balance on Base
* Operation: get_balance
*/
declare const getBalanceBase: (params: GetBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get ERC20 token balance on Base
* Operation: get_tokenbalance
*/
declare const getTokenBalanceBase: (params: GetTokenBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get transaction history on Base
* Operation: get_transactions
*/
declare const getTransactionsBase: (params: GetTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get token transaction history on Base
* Operation: get_tokentransactions
*/
declare const getTokenTransactionsBase: (params: GetTokenTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Bridge token from Base to Toronet
* Operation: bridge_token
*/
declare const bridgeTokenBase: (params: BridgeTokenParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get bridge token fee for Base
* Operation: get_bridge_token_fee
*/
declare const getBridgeTokenFeeBase: (params: GetBridgeTokenFeeParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get native token balance on Polygon
* Operation: get_balance
*/
declare const getBalancePolygon: (params: GetBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get ERC20 token balance on Polygon
* Operation: get_tokenbalance
*/
declare const getTokenBalancePolygon: (params: GetTokenBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get transaction history on Polygon
* Operation: get_transactions
*/
declare const getTransactionsPolygon: (params: GetTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get token transaction history on Polygon
* Operation: get_tokentransactions
*/
declare const getTokenTransactionsPolygon: (params: GetTokenTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Bridge token from Polygon to Toronet
* Operation: bridge_token
*/
declare const bridgeTokenPolygon: (params: BridgeTokenParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get bridge token fee for Polygon
* Operation: get_bridge_token_fee
*/
declare const getBridgeTokenFeePolygon: (params: GetBridgeTokenFeeParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get native token balance on BSC
* Operation: get_balance
*/
declare const getBalanceBSC: (params: GetBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get ERC20 token balance on BSC
* Operation: get_tokenbalance
*/
declare const getTokenBalanceBSC: (params: GetTokenBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get transaction history on BSC
* Operation: get_transactions
*/
declare const getTransactionsBSC: (params: GetTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get token transaction history on BSC
* Operation: get_tokentransactions
*/
declare const getTokenTransactionsBSC: (params: GetTokenTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Bridge token from BSC to Toronet
* Operation: bridge_token
*/
declare const bridgeTokenBSC: (params: BridgeTokenParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get bridge token fee for BSC
* Operation: get_bridge_token_fee
*/
declare const getBridgeTokenFeeBSC: (params: GetBridgeTokenFeeParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get native token balance on Arbitrum
* Operation: get_balance
*/
declare const getBalanceArbitrum: (params: GetBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get ERC20 token balance on Arbitrum
* Operation: get_tokenbalance
*/
declare const getTokenBalanceArbitrum: (params: GetTokenBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get transaction history on Arbitrum
* Operation: get_transactions
*/
declare const getTransactionsArbitrum: (params: GetTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get token transaction history on Arbitrum
* Operation: get_tokentransactions
*/
declare const getTokenTransactionsArbitrum: (params: GetTokenTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Bridge token from Arbitrum to Toronet
* Operation: bridge_token
*/
declare const bridgeTokenArbitrum: (params: BridgeTokenParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get bridge token fee for Arbitrum
* Operation: get_bridge_token_fee
*/
declare const getBridgeTokenFeeArbitrum: (params: GetBridgeTokenFeeParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Initialize crypto payment deposit
* Operation: paymentinitialize
* Used for crypto deposits from external chains (Solana, Base, Polygon, BSC, Arbitrum)
*/
declare const paymentInitializeCrypto: (params: PaymentInitializeCryptoParams, admin: string, adminpwd: string) => Promise<any>;
/**
* Record crypto payment transaction
* Operation: recordpayment
* Used to record completed crypto deposits from external chains
*/
declare const recordCryptoPayment: (params: RecordPaymentParams, admin: string, adminpwd: string) => Promise<any>;
/**
* Get balance on a specific external chain (Solana, Base, Polygon, BSC, Arbitrum)
*/
declare const getBridgeBalance: (network: BridgeNetwork | string, params: GetBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get token balance on a specific external chain (Solana, Base, Polygon, BSC, Arbitrum)
*/
declare const getBridgeTokenBalance: (network: BridgeNetwork | string, params: GetTokenBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get transactions on a specific external chain (Solana, Base, Polygon, BSC, Arbitrum)
*/
declare const getBridgeTransactions: (network: BridgeNetwork | string, params: GetTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get token transactions on a specific external chain (Solana, Base, Polygon, BSC, Arbitrum)
*/
declare const getBridgeTokenTransactions: (network: BridgeNetwork | string, params: GetTokenTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Bridge token from a specific external chain to Toronet
*/
declare const bridgeTokenFromChain: (network: BridgeNetwork | string, params: BridgeTokenParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get bridge token fee estimate for a specific external chain
*/
declare const getBridgeTokenFeeEstimate: (network: BridgeNetwork | string, params: GetBridgeTokenFeeParams, admin?: string, adminpwd?: string) => Promise<any>;
type Network = 'mainnet' | 'testnet';

@@ -1418,2 +1766,2 @@ interface SDKConfig {

export { type CreateKeystoreInput, type CreateWalletInput, Currency, type CurrencyOperationInput, type DateRangeQueryInput, type DeleteKeyInput, type DepositFundsInput, type GetAddressBalanceInput, type GetAddressBalanceOutput, type GetBalanceInput, type GetProjectInput, type InitializeDepositInput, type KYCParams, type Network, type PaymentExtrasInput, type ProductInput, type QueryRangeInput, type RoleDebuggerInput, type RoleOwnerInput, type RoleQueryInput, type RoleSuperAdminInput, type SDKConfig, type SDKConfigOptions, type SetNameInput, type StorageOwnerInput, type StorageQueryInput, type TNSAdminInput, type TNSClientInput, type TNSPermissionInput, type TNSQueryInput, type TokenQueryInput, type UpdateKeyPasswordInput, type WithdrawalInput, addAdmin, addDebugger, addSuperAdmin, adminDeleteName, adminSetName, adminUpdateName, allowBurn, allowMint, allowTransfer, burnCurrency, checkAddressVerified, configureTNS, confirmDeposit, createKeystore, createVirtualWallet, createWallet, decreaseStorageVersion, deleteKey, deleteName, deleteWallet, depositFunds, disallowBurn, disallowMint, disallowTransfer, enrollAddress, fetchVirtualWallet, fetchVirtualWalletByAddress, freezeAddress, generateVirtualWallet, getAddr, getAddressBalance, getAddressRole, getAddressTransactions, getAddressTransactionsAuth, getAddressTransactionsDollar, getAddressTransactionsEGP, getAddressTransactionsETH, getAddressTransactionsEuro, getAddressTransactionsKSH, getAddressTransactionsNaira, getAddressTransactionsPound, getAddressTransactionsToro, getAddressTransactionsZAR, getAdminByIndex, getAdminIndex, getAllowSelfAllowance, getAllowSelfEnroll, getAllowSelfTransactionFee, getAllowance, getBalance, getBankListNGN, getBankListUSD, getBlockById, getBlockchainStatus, getBlockchainTransactions, getBlocksData, getCommissionAddress, getCommissionPercentage, getCurrencyBalance, getDebuggerByIndex, getDebuggerIndex, getEventById, getFiatTransactionByTxid, getFiatTransactionsAddressRange, getFiatTransactionsRecorderRange, getFiatWithdrawalByTxid, getFiatWithdrawalsAddressRange, getFiatWithdrawalsRecorderRange, getKey, getLatestBlockData, getMaximumAllowance, getMinimumAllowance, getName, getNumberOfAdmin, getNumberOfDebugger, getNumberOfSuperAdmin, getOwner, getPendingTransaction, getProduct, getProject, getReceipt, getReserve, getRevertReason, getSDKConfig, getSelfAllowance, getSelfMaximumAllowance, getSelfMinimumAllowance, getSelfTransactionFee, getSelfTransactionFeeFixed, getSelfTransactionFeePercentage, getStorageVersion, getSuperAdminByIndex, getSuperAdminIndex, getSupportedAssetsExchangeRates, getTokenBalance, getTokenDecimal, getTokenName, getTokenSymbol, getToller, getTotalCap, getTotalCirculating, getTotalReserving, getTransaction, getTransactionById, getTransactionFee, getTransactionFeeFixed, getTransactionFeePercentage, getTransactionReceiptById, getTransactionsDollarWrapper, getTransactionsEGPWrapper, getTransactionsETHWrapper, getTransactionsEuroWrapper, getTransactionsKSHWrapper, getTransactionsNairaWrapper, getTransactionsPoundWrapper, getTransactionsRangeWrapper, getTransactionsToroWrapper, getTransactionsZARWrapper, getVirtualWalletByAddress, getWalletKey, importKey, importWalletFromPrivateKeyAndPassword, increaseStorageVersion, initAdmin, initDebugger, initSuperAdmin, initTNS, initializeDeposit, initializeSDK, isAddrAssigned, isAddressKYCVerified, isAddressUtil, isAdmin, isBurnOn, isContractRegistered, isDebugger, isDeleteOn, isEnrolled, isFrozen, isMintOn, isNameUsed, isOwner, isSetOn, isStorageOn, isSuperAdmin, isTNSAvailable, isTransferOn, isUpdateOn, makeInterWalletTransfer, makeInterWalletTransferTxn, mintCurrency, performKYCForCustomer, recordFiatWithdrawal, recordProduct, registerContract, removeAdmin, removeAllAdmins, removeAllDebuggers, removeAllSuperAdmins, removeDebugger, removeSuperAdmin, resetSDKConfig, retrieveVirtualWallet, setAllowance, setDeleteNameOff, setDeleteNameOn, setMaximumAllowance, setMinimumAllowance, setName, setSetNameOff, setSetNameOn, setStorageOff, setStorageOn, setStorageVersion, setTransactionFee, setTransactionFeeFixed, setTransactionFeePercentage, setUpdateNameOff, setUpdateNameOn, setupKYC, transferCurrency, transferOwnership, unfreezeAddress, unregisterContract, updateKeyPassword, updateName, updatePassword, updateProduct, updateVirtualWalletTransactions, updateVirtualWalletTxs, verifyBankAccountNameNGN, verifyDeposit, verifyKey, verifyWalletPassword };
export { BridgeNetwork, type BridgeTokenParams, type CreateKeystoreInput, type CreateSolanaAddressParams, type CreateToronetSolanaAddressParams, type CreateWalletInput, Currency, type CurrencyOperationInput, type DateRangeQueryInput, type DeleteKeyInput, type DepositFundsInput, type GetAddressBalanceInput, type GetAddressBalanceOutput, type GetBalanceInput, type GetBalanceParams, type GetBridgeTokenFeeParams, type GetProjectInput, type GetTokenBalanceParams, type GetTokenTransactionsParams, type GetTransactionsParams, type InitializeDepositInput, type KYCParams, type Network, type PaymentExtrasInput, type PaymentInitializeCryptoParams, type ProductInput, type QueryRangeInput, type RecordPaymentParams, type RoleDebuggerInput, type RoleOwnerInput, type RoleQueryInput, type RoleSuperAdminInput, type SDKConfig, type SDKConfigOptions, type SetNameInput, type StorageOwnerInput, type StorageQueryInput, type TNSAdminInput, type TNSClientInput, type TNSPermissionInput, type TNSQueryInput, type TokenQueryInput, type TransferSolTokenParams, type TransferSolanaParams, type UpdateKeyPasswordInput, type WithdrawalInput, addAdmin, addDebugger, addSuperAdmin, adminDeleteName, adminSetName, adminUpdateName, allowBurn, allowMint, allowTransfer, bridgeTokenArbitrum, bridgeTokenBSC, bridgeTokenBase, bridgeTokenFromChain, bridgeTokenPolygon, bridgeTokenSol, burnCurrency, checkAddressVerified, configureTNS, confirmDeposit, createKeystore, createSolanaAddress, createToronetSolanaAddress, createVirtualWallet, createWallet, decreaseStorageVersion, deleteKey, deleteName, deleteWallet, depositFunds, disallowBurn, disallowMint, disallowTransfer, enrollAddress, fetchVirtualWallet, fetchVirtualWalletByAddress, freezeAddress, generateVirtualWallet, getAddr, getAddressBalance, getAddressRole, getAddressTransactions, getAddressTransactionsAuth, getAddressTransactionsDollar, getAddressTransactionsEGP, getAddressTransactionsETH, getAddressTransactionsEuro, getAddressTransactionsKSH, getAddressTransactionsNaira, getAddressTransactionsPound, getAddressTransactionsToro, getAddressTransactionsZAR, getAdminByIndex, getAdminIndex, getAllowSelfAllowance, getAllowSelfEnroll, getAllowSelfTransactionFee, getAllowance, getBalance, getBalanceArbitrum, getBalanceBSC, getBalanceBase, getBalancePolygon, getBankListNGN, getBankListUSD, getBlockById, getBlockchainStatus, getBlockchainTransactions, getBlocksData, getBridgeBalance, getBridgeTokenBalance, getBridgeTokenFeeArbitrum, getBridgeTokenFeeBSC, getBridgeTokenFeeBase, getBridgeTokenFeeEstimate, getBridgeTokenFeePolygon, getBridgeTokenFeeSol, getBridgeTokenTransactions, getBridgeTransactions, getCommissionAddress, getCommissionPercentage, getCurrencyBalance, getDebuggerByIndex, getDebuggerIndex, getEventById, getFiatTransactionByTxid, getFiatTransactionsAddressRange, getFiatTransactionsRecorderRange, getFiatWithdrawalByTxid, getFiatWithdrawalsAddressRange, getFiatWithdrawalsRecorderRange, getKey, getLatestBlockData, getMaximumAllowance, getMinimumAllowance, getName, getNumberOfAdmin, getNumberOfDebugger, getNumberOfSuperAdmin, getOwner, getPendingTransaction, getProduct, getProject, getReceipt, getReserve, getRevertReason, getSDKConfig, getSelfAllowance, getSelfMaximumAllowance, getSelfMinimumAllowance, getSelfTransactionFee, getSelfTransactionFeeFixed, getSelfTransactionFeePercentage, getSolBalance, getSolLatestBlock, getSolTokenBalance, getSolTokenTransactions, getSolTransactions, getStorageVersion, getSuperAdminByIndex, getSuperAdminIndex, getSupportedAssetsExchangeRates, getTokenBalance, getTokenBalanceArbitrum, getTokenBalanceBSC, getTokenBalanceBase, getTokenBalancePolygon, getTokenDecimal, getTokenName, getTokenSymbol, getTokenTransactionsArbitrum, getTokenTransactionsBSC, getTokenTransactionsBase, getTokenTransactionsPolygon, getToller, getTotalCap, getTotalCirculating, getTotalReserving, getTransaction, getTransactionById, getTransactionFee, getTransactionFeeFixed, getTransactionFeePercentage, getTransactionReceiptById, getTransactionsArbitrum, getTransactionsBSC, getTransactionsBase, getTransactionsDollarWrapper, getTransactionsEGPWrapper, getTransactionsETHWrapper, getTransactionsEuroWrapper, getTransactionsKSHWrapper, getTransactionsNairaWrapper, getTransactionsPolygon, getTransactionsPoundWrapper, getTransactionsRangeWrapper, getTransactionsToroWrapper, getTransactionsZARWrapper, getVirtualWalletByAddress, getWalletKey, importKey, importWalletFromPrivateKeyAndPassword, increaseStorageVersion, initAdmin, initDebugger, initSuperAdmin, initTNS, initializeDeposit, initializeSDK, isAddrAssigned, isAddressKYCVerified, isAddressUtil, isAdmin, isBurnOn, isContractRegistered, isDebugger, isDeleteOn, isEnrolled, isFrozen, isMintOn, isNameUsed, isOwner, isSetOn, isStorageOn, isSuperAdmin, isTNSAvailable, isTransferOn, isUpdateOn, isValidSolanaAddress, makeInterWalletTransfer, makeInterWalletTransferTxn, mintCurrency, paymentInitializeCrypto, performKYCForCustomer, recordCryptoPayment, recordFiatWithdrawal, recordProduct, registerContract, removeAdmin, removeAllAdmins, removeAllDebuggers, removeAllSuperAdmins, removeDebugger, removeSuperAdmin, resetSDKConfig, retrieveVirtualWallet, setAllowance, setDeleteNameOff, setDeleteNameOn, setMaximumAllowance, setMinimumAllowance, setName, setSetNameOff, setSetNameOn, setStorageOff, setStorageOn, setStorageVersion, setTransactionFee, setTransactionFeeFixed, setTransactionFeePercentage, setUpdateNameOff, setUpdateNameOn, setupKYC, transferCurrency, transferOwnership, transferSolToken, transferSolana, unfreezeAddress, unregisterContract, updateKeyPassword, updateName, updatePassword, updateProduct, updateVirtualWalletTransactions, updateVirtualWalletTxs, verifyBankAccountNameNGN, verifyDeposit, verifyKey, verifySolanaVirtualAddress, verifySolanaVirtualAddressEnc, verifyWalletPassword };

@@ -172,2 +172,350 @@ /**

/**
* Bridge network types for multi-chain support
*/
declare enum BridgeNetwork {
Solana = "sol",
Base = "base",
Polygon = "poly",
BSC = "bsc",
Arbitrum = "arb",
Ethereum = "eth"
}
/**
* Bridge operation parameters
*/
interface BridgeTokenParams {
from: string;
pwd: string;
network: BridgeNetwork | string;
contractaddress: string;
tokenname: string;
amount: string;
}
interface GetBridgeTokenFeeParams {
network: BridgeNetwork | string;
contractaddress: string;
amount: string;
}
/**
* Balance query parameters
*/
interface GetBalanceParams {
address: string;
network?: BridgeNetwork | string;
}
interface GetTokenBalanceParams {
address: string;
network?: BridgeNetwork | string;
contractaddress: string;
tokenname?: string;
}
/**
* Transaction query parameters
*/
interface GetTransactionsParams {
address: string;
network?: BridgeNetwork | string;
}
interface GetTokenTransactionsParams {
address: string;
network?: BridgeNetwork | string;
contractaddress: string;
tokenname?: string;
}
/**
* Solana-specific parameters
*/
interface CreateSolanaAddressParams {
admin?: string;
adminpwd?: string;
}
interface CreateToronetSolanaAddressParams {
addr: string;
pwd: string;
}
interface TransferSolanaParams {
from: string;
to: string;
amount: string;
pwd: string;
}
interface TransferSolTokenParams {
from: string;
to: string;
amount: string;
pwd: string;
contractaddress: string;
tokenname: string;
usetokenasfees?: string;
}
/**
* Payment initialization parameters for crypto deposits
*/
interface PaymentInitializeCryptoParams {
address: string;
pwd: string;
currency: string;
token: string;
amount: string;
success_url?: string;
cancel_url?: string;
paymenttype?: string;
passthrough?: string;
commissionrate?: string;
exchange?: string;
payername?: string;
payeraddress?: string;
payercity?: string;
payerstate?: string;
payercountry?: string;
payerzipcode?: string;
payerphone?: string;
reusewallet?: string;
description?: string;
reference?: string;
}
/**
* Record payment parameters
*/
interface RecordPaymentParams {
currency: string;
txid: string;
}
/**
* Create a new Solana address
* Operation: createsolanaaddress
* Note: It's preferable to use generatevirtualwallet to ensure the Solana address is linked to Toronet address
*/
declare const createSolanaAddress: (params?: CreateSolanaAddressParams) => Promise<any>;
/**
* Validate if a string is a valid Solana address
* Operation: isValidSolanaAddress
*/
declare const isValidSolanaAddress: (address: string, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Create a custodial Solana address linked to a Toronet address
* Operation: createtoronetsolanaaddress
* Note: It's preferable to use generatevirtualwallet to ensure the Solana address is linked to Toronet address
*/
declare const createToronetSolanaAddress: (params: CreateToronetSolanaAddressParams) => Promise<any>;
/**
* Verify Solana virtual address encryption
* Operation: verify_solana_virtualaddress_enc
*/
declare const verifySolanaVirtualAddressEnc: (from: string, pwd: string, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Verify Solana virtual address (Toronet address)
* Operation: verify_solana_virtualaddress
*/
declare const verifySolanaVirtualAddress: (from: string, pwd: string, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Transfer SOL (native Solana token)
* Operation: transfer_sol
*/
declare const transferSolana: (params: TransferSolanaParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Transfer SPL token on Solana
* Operation: transfer_sol_token
*/
declare const transferSolToken: (params: TransferSolTokenParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get SOL balance for a Solana address
* Operation: getsol_balance
*/
declare const getSolBalance: (params: GetBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get SPL token balance for a Solana address
* Operation: getsol_token_balance
*/
declare const getSolTokenBalance: (params: GetTokenBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get latest Solana block
* Operation: getsol_latest_block
*/
declare const getSolLatestBlock: (admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get SOL transactions for a Solana address
* Operation: getsol_transactions
*/
declare const getSolTransactions: (params: GetTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get SPL token transactions for a Solana address
* Operation: getsol_token_transactions
*/
declare const getSolTokenTransactions: (params: GetTokenTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Bridge token from Solana to Toronet
* Operation: bridge_token
*/
declare const bridgeTokenSol: (params: BridgeTokenParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get bridge token fee for Solana
* Operation: get_bridge_token_fee
*/
declare const getBridgeTokenFeeSol: (params: GetBridgeTokenFeeParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get native token balance on Base
* Operation: get_balance
*/
declare const getBalanceBase: (params: GetBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get ERC20 token balance on Base
* Operation: get_tokenbalance
*/
declare const getTokenBalanceBase: (params: GetTokenBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get transaction history on Base
* Operation: get_transactions
*/
declare const getTransactionsBase: (params: GetTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get token transaction history on Base
* Operation: get_tokentransactions
*/
declare const getTokenTransactionsBase: (params: GetTokenTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Bridge token from Base to Toronet
* Operation: bridge_token
*/
declare const bridgeTokenBase: (params: BridgeTokenParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get bridge token fee for Base
* Operation: get_bridge_token_fee
*/
declare const getBridgeTokenFeeBase: (params: GetBridgeTokenFeeParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get native token balance on Polygon
* Operation: get_balance
*/
declare const getBalancePolygon: (params: GetBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get ERC20 token balance on Polygon
* Operation: get_tokenbalance
*/
declare const getTokenBalancePolygon: (params: GetTokenBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get transaction history on Polygon
* Operation: get_transactions
*/
declare const getTransactionsPolygon: (params: GetTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get token transaction history on Polygon
* Operation: get_tokentransactions
*/
declare const getTokenTransactionsPolygon: (params: GetTokenTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Bridge token from Polygon to Toronet
* Operation: bridge_token
*/
declare const bridgeTokenPolygon: (params: BridgeTokenParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get bridge token fee for Polygon
* Operation: get_bridge_token_fee
*/
declare const getBridgeTokenFeePolygon: (params: GetBridgeTokenFeeParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get native token balance on BSC
* Operation: get_balance
*/
declare const getBalanceBSC: (params: GetBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get ERC20 token balance on BSC
* Operation: get_tokenbalance
*/
declare const getTokenBalanceBSC: (params: GetTokenBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get transaction history on BSC
* Operation: get_transactions
*/
declare const getTransactionsBSC: (params: GetTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get token transaction history on BSC
* Operation: get_tokentransactions
*/
declare const getTokenTransactionsBSC: (params: GetTokenTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Bridge token from BSC to Toronet
* Operation: bridge_token
*/
declare const bridgeTokenBSC: (params: BridgeTokenParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get bridge token fee for BSC
* Operation: get_bridge_token_fee
*/
declare const getBridgeTokenFeeBSC: (params: GetBridgeTokenFeeParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get native token balance on Arbitrum
* Operation: get_balance
*/
declare const getBalanceArbitrum: (params: GetBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get ERC20 token balance on Arbitrum
* Operation: get_tokenbalance
*/
declare const getTokenBalanceArbitrum: (params: GetTokenBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get transaction history on Arbitrum
* Operation: get_transactions
*/
declare const getTransactionsArbitrum: (params: GetTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get token transaction history on Arbitrum
* Operation: get_tokentransactions
*/
declare const getTokenTransactionsArbitrum: (params: GetTokenTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Bridge token from Arbitrum to Toronet
* Operation: bridge_token
*/
declare const bridgeTokenArbitrum: (params: BridgeTokenParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get bridge token fee for Arbitrum
* Operation: get_bridge_token_fee
*/
declare const getBridgeTokenFeeArbitrum: (params: GetBridgeTokenFeeParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Initialize crypto payment deposit
* Operation: paymentinitialize
* Used for crypto deposits from external chains (Solana, Base, Polygon, BSC, Arbitrum)
*/
declare const paymentInitializeCrypto: (params: PaymentInitializeCryptoParams, admin: string, adminpwd: string) => Promise<any>;
/**
* Record crypto payment transaction
* Operation: recordpayment
* Used to record completed crypto deposits from external chains
*/
declare const recordCryptoPayment: (params: RecordPaymentParams, admin: string, adminpwd: string) => Promise<any>;
/**
* Get balance on a specific external chain (Solana, Base, Polygon, BSC, Arbitrum)
*/
declare const getBridgeBalance: (network: BridgeNetwork | string, params: GetBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get token balance on a specific external chain (Solana, Base, Polygon, BSC, Arbitrum)
*/
declare const getBridgeTokenBalance: (network: BridgeNetwork | string, params: GetTokenBalanceParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get transactions on a specific external chain (Solana, Base, Polygon, BSC, Arbitrum)
*/
declare const getBridgeTransactions: (network: BridgeNetwork | string, params: GetTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get token transactions on a specific external chain (Solana, Base, Polygon, BSC, Arbitrum)
*/
declare const getBridgeTokenTransactions: (network: BridgeNetwork | string, params: GetTokenTransactionsParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Bridge token from a specific external chain to Toronet
*/
declare const bridgeTokenFromChain: (network: BridgeNetwork | string, params: BridgeTokenParams, admin?: string, adminpwd?: string) => Promise<any>;
/**
* Get bridge token fee estimate for a specific external chain
*/
declare const getBridgeTokenFeeEstimate: (network: BridgeNetwork | string, params: GetBridgeTokenFeeParams, admin?: string, adminpwd?: string) => Promise<any>;
type Network = 'mainnet' | 'testnet';

@@ -1418,2 +1766,2 @@ interface SDKConfig {

export { type CreateKeystoreInput, type CreateWalletInput, Currency, type CurrencyOperationInput, type DateRangeQueryInput, type DeleteKeyInput, type DepositFundsInput, type GetAddressBalanceInput, type GetAddressBalanceOutput, type GetBalanceInput, type GetProjectInput, type InitializeDepositInput, type KYCParams, type Network, type PaymentExtrasInput, type ProductInput, type QueryRangeInput, type RoleDebuggerInput, type RoleOwnerInput, type RoleQueryInput, type RoleSuperAdminInput, type SDKConfig, type SDKConfigOptions, type SetNameInput, type StorageOwnerInput, type StorageQueryInput, type TNSAdminInput, type TNSClientInput, type TNSPermissionInput, type TNSQueryInput, type TokenQueryInput, type UpdateKeyPasswordInput, type WithdrawalInput, addAdmin, addDebugger, addSuperAdmin, adminDeleteName, adminSetName, adminUpdateName, allowBurn, allowMint, allowTransfer, burnCurrency, checkAddressVerified, configureTNS, confirmDeposit, createKeystore, createVirtualWallet, createWallet, decreaseStorageVersion, deleteKey, deleteName, deleteWallet, depositFunds, disallowBurn, disallowMint, disallowTransfer, enrollAddress, fetchVirtualWallet, fetchVirtualWalletByAddress, freezeAddress, generateVirtualWallet, getAddr, getAddressBalance, getAddressRole, getAddressTransactions, getAddressTransactionsAuth, getAddressTransactionsDollar, getAddressTransactionsEGP, getAddressTransactionsETH, getAddressTransactionsEuro, getAddressTransactionsKSH, getAddressTransactionsNaira, getAddressTransactionsPound, getAddressTransactionsToro, getAddressTransactionsZAR, getAdminByIndex, getAdminIndex, getAllowSelfAllowance, getAllowSelfEnroll, getAllowSelfTransactionFee, getAllowance, getBalance, getBankListNGN, getBankListUSD, getBlockById, getBlockchainStatus, getBlockchainTransactions, getBlocksData, getCommissionAddress, getCommissionPercentage, getCurrencyBalance, getDebuggerByIndex, getDebuggerIndex, getEventById, getFiatTransactionByTxid, getFiatTransactionsAddressRange, getFiatTransactionsRecorderRange, getFiatWithdrawalByTxid, getFiatWithdrawalsAddressRange, getFiatWithdrawalsRecorderRange, getKey, getLatestBlockData, getMaximumAllowance, getMinimumAllowance, getName, getNumberOfAdmin, getNumberOfDebugger, getNumberOfSuperAdmin, getOwner, getPendingTransaction, getProduct, getProject, getReceipt, getReserve, getRevertReason, getSDKConfig, getSelfAllowance, getSelfMaximumAllowance, getSelfMinimumAllowance, getSelfTransactionFee, getSelfTransactionFeeFixed, getSelfTransactionFeePercentage, getStorageVersion, getSuperAdminByIndex, getSuperAdminIndex, getSupportedAssetsExchangeRates, getTokenBalance, getTokenDecimal, getTokenName, getTokenSymbol, getToller, getTotalCap, getTotalCirculating, getTotalReserving, getTransaction, getTransactionById, getTransactionFee, getTransactionFeeFixed, getTransactionFeePercentage, getTransactionReceiptById, getTransactionsDollarWrapper, getTransactionsEGPWrapper, getTransactionsETHWrapper, getTransactionsEuroWrapper, getTransactionsKSHWrapper, getTransactionsNairaWrapper, getTransactionsPoundWrapper, getTransactionsRangeWrapper, getTransactionsToroWrapper, getTransactionsZARWrapper, getVirtualWalletByAddress, getWalletKey, importKey, importWalletFromPrivateKeyAndPassword, increaseStorageVersion, initAdmin, initDebugger, initSuperAdmin, initTNS, initializeDeposit, initializeSDK, isAddrAssigned, isAddressKYCVerified, isAddressUtil, isAdmin, isBurnOn, isContractRegistered, isDebugger, isDeleteOn, isEnrolled, isFrozen, isMintOn, isNameUsed, isOwner, isSetOn, isStorageOn, isSuperAdmin, isTNSAvailable, isTransferOn, isUpdateOn, makeInterWalletTransfer, makeInterWalletTransferTxn, mintCurrency, performKYCForCustomer, recordFiatWithdrawal, recordProduct, registerContract, removeAdmin, removeAllAdmins, removeAllDebuggers, removeAllSuperAdmins, removeDebugger, removeSuperAdmin, resetSDKConfig, retrieveVirtualWallet, setAllowance, setDeleteNameOff, setDeleteNameOn, setMaximumAllowance, setMinimumAllowance, setName, setSetNameOff, setSetNameOn, setStorageOff, setStorageOn, setStorageVersion, setTransactionFee, setTransactionFeeFixed, setTransactionFeePercentage, setUpdateNameOff, setUpdateNameOn, setupKYC, transferCurrency, transferOwnership, unfreezeAddress, unregisterContract, updateKeyPassword, updateName, updatePassword, updateProduct, updateVirtualWalletTransactions, updateVirtualWalletTxs, verifyBankAccountNameNGN, verifyDeposit, verifyKey, verifyWalletPassword };
export { BridgeNetwork, type BridgeTokenParams, type CreateKeystoreInput, type CreateSolanaAddressParams, type CreateToronetSolanaAddressParams, type CreateWalletInput, Currency, type CurrencyOperationInput, type DateRangeQueryInput, type DeleteKeyInput, type DepositFundsInput, type GetAddressBalanceInput, type GetAddressBalanceOutput, type GetBalanceInput, type GetBalanceParams, type GetBridgeTokenFeeParams, type GetProjectInput, type GetTokenBalanceParams, type GetTokenTransactionsParams, type GetTransactionsParams, type InitializeDepositInput, type KYCParams, type Network, type PaymentExtrasInput, type PaymentInitializeCryptoParams, type ProductInput, type QueryRangeInput, type RecordPaymentParams, type RoleDebuggerInput, type RoleOwnerInput, type RoleQueryInput, type RoleSuperAdminInput, type SDKConfig, type SDKConfigOptions, type SetNameInput, type StorageOwnerInput, type StorageQueryInput, type TNSAdminInput, type TNSClientInput, type TNSPermissionInput, type TNSQueryInput, type TokenQueryInput, type TransferSolTokenParams, type TransferSolanaParams, type UpdateKeyPasswordInput, type WithdrawalInput, addAdmin, addDebugger, addSuperAdmin, adminDeleteName, adminSetName, adminUpdateName, allowBurn, allowMint, allowTransfer, bridgeTokenArbitrum, bridgeTokenBSC, bridgeTokenBase, bridgeTokenFromChain, bridgeTokenPolygon, bridgeTokenSol, burnCurrency, checkAddressVerified, configureTNS, confirmDeposit, createKeystore, createSolanaAddress, createToronetSolanaAddress, createVirtualWallet, createWallet, decreaseStorageVersion, deleteKey, deleteName, deleteWallet, depositFunds, disallowBurn, disallowMint, disallowTransfer, enrollAddress, fetchVirtualWallet, fetchVirtualWalletByAddress, freezeAddress, generateVirtualWallet, getAddr, getAddressBalance, getAddressRole, getAddressTransactions, getAddressTransactionsAuth, getAddressTransactionsDollar, getAddressTransactionsEGP, getAddressTransactionsETH, getAddressTransactionsEuro, getAddressTransactionsKSH, getAddressTransactionsNaira, getAddressTransactionsPound, getAddressTransactionsToro, getAddressTransactionsZAR, getAdminByIndex, getAdminIndex, getAllowSelfAllowance, getAllowSelfEnroll, getAllowSelfTransactionFee, getAllowance, getBalance, getBalanceArbitrum, getBalanceBSC, getBalanceBase, getBalancePolygon, getBankListNGN, getBankListUSD, getBlockById, getBlockchainStatus, getBlockchainTransactions, getBlocksData, getBridgeBalance, getBridgeTokenBalance, getBridgeTokenFeeArbitrum, getBridgeTokenFeeBSC, getBridgeTokenFeeBase, getBridgeTokenFeeEstimate, getBridgeTokenFeePolygon, getBridgeTokenFeeSol, getBridgeTokenTransactions, getBridgeTransactions, getCommissionAddress, getCommissionPercentage, getCurrencyBalance, getDebuggerByIndex, getDebuggerIndex, getEventById, getFiatTransactionByTxid, getFiatTransactionsAddressRange, getFiatTransactionsRecorderRange, getFiatWithdrawalByTxid, getFiatWithdrawalsAddressRange, getFiatWithdrawalsRecorderRange, getKey, getLatestBlockData, getMaximumAllowance, getMinimumAllowance, getName, getNumberOfAdmin, getNumberOfDebugger, getNumberOfSuperAdmin, getOwner, getPendingTransaction, getProduct, getProject, getReceipt, getReserve, getRevertReason, getSDKConfig, getSelfAllowance, getSelfMaximumAllowance, getSelfMinimumAllowance, getSelfTransactionFee, getSelfTransactionFeeFixed, getSelfTransactionFeePercentage, getSolBalance, getSolLatestBlock, getSolTokenBalance, getSolTokenTransactions, getSolTransactions, getStorageVersion, getSuperAdminByIndex, getSuperAdminIndex, getSupportedAssetsExchangeRates, getTokenBalance, getTokenBalanceArbitrum, getTokenBalanceBSC, getTokenBalanceBase, getTokenBalancePolygon, getTokenDecimal, getTokenName, getTokenSymbol, getTokenTransactionsArbitrum, getTokenTransactionsBSC, getTokenTransactionsBase, getTokenTransactionsPolygon, getToller, getTotalCap, getTotalCirculating, getTotalReserving, getTransaction, getTransactionById, getTransactionFee, getTransactionFeeFixed, getTransactionFeePercentage, getTransactionReceiptById, getTransactionsArbitrum, getTransactionsBSC, getTransactionsBase, getTransactionsDollarWrapper, getTransactionsEGPWrapper, getTransactionsETHWrapper, getTransactionsEuroWrapper, getTransactionsKSHWrapper, getTransactionsNairaWrapper, getTransactionsPolygon, getTransactionsPoundWrapper, getTransactionsRangeWrapper, getTransactionsToroWrapper, getTransactionsZARWrapper, getVirtualWalletByAddress, getWalletKey, importKey, importWalletFromPrivateKeyAndPassword, increaseStorageVersion, initAdmin, initDebugger, initSuperAdmin, initTNS, initializeDeposit, initializeSDK, isAddrAssigned, isAddressKYCVerified, isAddressUtil, isAdmin, isBurnOn, isContractRegistered, isDebugger, isDeleteOn, isEnrolled, isFrozen, isMintOn, isNameUsed, isOwner, isSetOn, isStorageOn, isSuperAdmin, isTNSAvailable, isTransferOn, isUpdateOn, isValidSolanaAddress, makeInterWalletTransfer, makeInterWalletTransferTxn, mintCurrency, paymentInitializeCrypto, performKYCForCustomer, recordCryptoPayment, recordFiatWithdrawal, recordProduct, registerContract, removeAdmin, removeAllAdmins, removeAllDebuggers, removeAllSuperAdmins, removeDebugger, removeSuperAdmin, resetSDKConfig, retrieveVirtualWallet, setAllowance, setDeleteNameOff, setDeleteNameOn, setMaximumAllowance, setMinimumAllowance, setName, setSetNameOff, setSetNameOn, setStorageOff, setStorageOn, setStorageVersion, setTransactionFee, setTransactionFeeFixed, setTransactionFeePercentage, setUpdateNameOff, setUpdateNameOn, setupKYC, transferCurrency, transferOwnership, transferSolToken, transferSolana, unfreezeAddress, unregisterContract, updateKeyPassword, updateName, updatePassword, updateProduct, updateVirtualWalletTransactions, updateVirtualWalletTxs, verifyBankAccountNameNGN, verifyDeposit, verifyKey, verifySolanaVirtualAddress, verifySolanaVirtualAddressEnc, verifyWalletPassword };
{
"name": "torosdk",
"version": "0.0.9",
"version": "0.1.0",
"description": "A comprehensive Node.js library for interacting with the Toronet blockchain. This package simplifies wallet management, TNS setup, balance queries, fiat deposits, inter-wallet transfers, KYC verification, and smart contract deployment on Toronet's EVM-compatible network. Perfect for developers building blockchain-based applications with Toronet.",

@@ -17,4 +17,15 @@ "main": "./dist/index.js",

},
"keywords": ["toronet", "blockchain", "wallet", "sdk", "crypto", "ethereum", "evm"],
"files": ["dist", "README.md"],
"keywords": [
"toronet",
"blockchain",
"wallet",
"sdk",
"crypto",
"ethereum",
"evm"
],
"files": [
"dist",
"README.md"
],
"engines": {

@@ -21,0 +32,0 @@ "node": ">=14.0.0"

+191
-4

@@ -5,3 +5,3 @@ # Toronet SDK

The Toronet SDK is a TypeScript-based toolkit for interacting with the Toronet blockchain. It empowers developers to manage wallets, query blockchain data, handle fiat transactions, verify user identity, manage virtual wallets, and more — all from a developer-friendly interface.
The Toronet SDK is a TypeScript-based toolkit for interacting with the Toronet blockchain. It empowers developers to manage wallets, query blockchain data, handle fiat transactions, verify user identity, manage virtual wallets, bridge tokens from multiple chains (Solana, Base, Polygon, BSC, Arbitrum), and more — all from a developer-friendly interface.

@@ -88,2 +88,10 @@ ---

- **Multi-Chain Bridge Support**
- Bridge tokens from Solana, Base, Polygon, BSC, and Arbitrum to Toronet.
- Query balances and transactions on external chains.
- Transfer tokens on supported chains.
- Initialize crypto deposits from external blockchains.
- Get bridge fee estimates.
- Solana-specific operations (address creation, validation, SPL token transfers).
---

@@ -731,2 +739,174 @@

### 🌉 Multi-Chain Bridge Operations
The SDK supports bridging tokens from multiple blockchain networks to Toronet. Supported chains include Solana, Base, Polygon, BSC, and Arbitrum.
#### Solana Bridge Operations
```typescript
import {
getSolBalance,
getSolTokenBalance,
transferSolana,
transferSolToken,
bridgeTokenSol,
getBridgeTokenFeeSol,
isValidSolanaAddress,
BridgeNetwork
} from "torosdk";
// Validate Solana address
const isValid = await isValidSolanaAddress("3uwR7HMDuK6dXwZAfx8jHwPcyXsYmFuHWJv3zvJxRE9w");
// Get SOL balance
const solBalance = await getSolBalance({
address: "3uwR7HMDuK6dXwZAfx8jHwPcyXsYmFuHWJv3zvJxRE9w"
});
// Get USDC balance on Solana
const usdcBalance = await getSolTokenBalance({
address: "3uwR7HMDuK6dXwZAfx8jHwPcyXsYmFuHWJv3zvJxRE9w",
contractaddress: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
});
// Bridge USDC from Solana to Toronet
await bridgeTokenSol({
from: "0xYourToronetAddress",
pwd: "YourPassword",
network: BridgeNetwork.Solana,
contractaddress: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
tokenname: "USDC",
amount: "100"
});
```
#### EVM Chain Bridge Operations (Base, Polygon, BSC, Arbitrum)
```typescript
import {
getBalanceBase,
getTokenBalanceBase,
bridgeTokenBase,
getBalancePolygon,
getTokenBalancePolygon,
bridgeTokenPolygon,
getBalanceBSC,
getTokenBalanceBSC,
bridgeTokenBSC,
getBalanceArbitrum,
getTokenBalanceArbitrum,
bridgeTokenArbitrum,
BridgeNetwork
} from "torosdk";
// Get balance on Base
const baseBalance = await getBalanceBase({
address: "0xff9602fd3a10038ac2b6d9b03277dc5c7d154ada"
});
// Get USDC balance on Polygon
const polyUSDC = await getTokenBalancePolygon({
address: "0xff9602fd3a10038ac2b6d9b03277dc5c7d154ada",
contractaddress: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
tokenname: "USDC"
});
// Bridge USDC from Polygon to Toronet
await bridgeTokenPolygon({
from: "0xYourToronetAddress",
pwd: "YourPassword",
network: BridgeNetwork.Polygon,
contractaddress: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
tokenname: "USDC",
amount: "50"
});
// Bridge USDT from BSC to Toronet
await bridgeTokenBSC({
from: "0xYourToronetAddress",
pwd: "YourPassword",
network: BridgeNetwork.BSC,
contractaddress: "0x55d398326f99059ff775485246999027b3197955",
tokenname: "USDT",
amount: "100"
});
```
#### Using Generic Bridge Functions
```typescript
import {
getBridgeBalance,
getBridgeTokenBalance,
getBridgeTransactions,
getBridgeTokenTransactions,
bridgeTokenFromChain,
getBridgeTokenFeeEstimate,
BridgeNetwork
} from "torosdk";
// Get balance on any supported external chain
const balance = await getBridgeBalance(BridgeNetwork.Base, {
address: "0xff9602fd3a10038ac2b6d9b03277dc5c7d154ada"
});
// Get token balance on external chain
const tokenBalance = await getBridgeTokenBalance(BridgeNetwork.Polygon, {
address: "0xff9602fd3a10038ac2b6d9b03277dc5c7d154ada",
contractaddress: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
tokenname: "USDC"
});
// Get transactions on external chain
const transactions = await getBridgeTransactions(BridgeNetwork.BSC, {
address: "0xff9602fd3a10038ac2b6d9b03277dc5c7d154ada"
});
// Bridge token from any external chain to Toronet
await bridgeTokenFromChain(BridgeNetwork.Arbitrum, {
from: "0xYourToronetAddress",
pwd: "YourPassword",
network: BridgeNetwork.Arbitrum,
contractaddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
tokenname: "USDC",
amount: "75"
});
// Get bridge fee estimate
const fee = await getBridgeTokenFeeEstimate(BridgeNetwork.Base, {
network: BridgeNetwork.Base,
contractaddress: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
amount: "50"
});
```
#### Crypto Payment Initialization
```typescript
import {
paymentInitializeCrypto,
recordCryptoPayment
} from "torosdk";
// Initialize crypto deposit from Solana
const deposit = await paymentInitializeCrypto({
address: "0xYourToronetAddress",
pwd: "YourPassword",
currency: "USDCSOL", // Currency codes: USDCSOL, USDTBSC, USDCPOLY, USDCARB, USDCBASE
token: "TORO",
amount: "100",
paymenttype: "crypto"
}, "0xAdminAddress", "adminPassword");
// Record completed crypto payment
await recordCryptoPayment({
currency: "USDCSOL",
txid: "3uwR7HMDuK6dXwZAfx8jHwPcyXsYmFuHWJv3zvJxRE9w_8e21df8325dc5e88"
}, "0xAdminAddress", "adminPassword");
```
For more detailed bridge examples, see [CODE_SAMPLES.md](CODE_SAMPLES.md#multi-chain-bridge-operations).
---
## Supported Currencies

@@ -757,3 +937,10 @@

│ ├── payments.ts
│ ├── kyc.ts
│ ├── bridge/ # Multi-chain bridge operations
│ │ ├── solana.ts # Solana bridge operations
│ │ ├── base.ts # Base chain operations
│ │ ├── polygon.ts # Polygon chain operations
│ │ ├── bsc.ts # BSC chain operations
│ │ ├── arbitrum.ts # Arbitrum chain operations
│ │ ├── payments.ts # Crypto payment operations
│ │ └── index.ts
│ └── config.ts

@@ -768,4 +955,3 @@

│ ├── paymentService.ts
│ ├── kycService.ts
│ ├── blockchainService.ts
│ ├── bridge_service.ts # Bridge service wrappers
│ └── utils.ts

@@ -777,2 +963,3 @@

├── types/ # Global types and enums
│ └── bridge.ts # Bridge type definitions
├── utils/

@@ -779,0 +966,0 @@ ├── index.ts # SDK entry

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display