@sky-mavis/tanto-connect
Version:
Tanto Connect
31 lines (27 loc) • 1.15 kB
JavaScript
;
var chain = require('./chain.cjs');
const RONIN_WALLET_RDNS = 'com.roninchain.wallet';
const DEFAULT_DELAY_TIME = 700;
const WAYPOINT_ORIGIN_STAGING = 'https://id.skymavis.one';
const WC_SUPPORTED_CHAIN_IDS = [chain.ChainIds.RoninMainnet, chain.ChainIds.RoninTestnet];
const WC_RPC_MAP = {
[chain.ChainIds.RoninMainnet]: 'https://api.roninchain.com/rpc',
[chain.ChainIds.RoninTestnet]: 'https://saigon-testnet.roninchain.com/rpc',
};
const WC_CAIP_CHAIN = 'eip155';
const WC_SUPPORTED_METHODS = [
'eth_sendTransaction',
'eth_sign',
'personal_sign',
'eth_signTypedData',
'eth_signTypedData_v4',
];
const WC_SUPPORTED_OPTIONAL_METHODS = ['eth_accounts', 'eth_requestAccounts'];
exports.DEFAULT_DELAY_TIME = DEFAULT_DELAY_TIME;
exports.RONIN_WALLET_RDNS = RONIN_WALLET_RDNS;
exports.WAYPOINT_ORIGIN_STAGING = WAYPOINT_ORIGIN_STAGING;
exports.WC_CAIP_CHAIN = WC_CAIP_CHAIN;
exports.WC_RPC_MAP = WC_RPC_MAP;
exports.WC_SUPPORTED_CHAIN_IDS = WC_SUPPORTED_CHAIN_IDS;
exports.WC_SUPPORTED_METHODS = WC_SUPPORTED_METHODS;
exports.WC_SUPPORTED_OPTIONAL_METHODS = WC_SUPPORTED_OPTIONAL_METHODS;