UNPKG

@toruslabs/constants

Version:
1 lines 3.48 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Constants=t():e.Constants=t()}(self,(()=>(()=>{"use strict";var e={d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{AUTHJS_SERVER_URL:()=>S,FND_SERVER:()=>T,KEY_TYPE:()=>u,LEGACY_NETWORKS_ROUTE_MAP:()=>r,METADATA_MAP:()=>s,MULTI_CLUSTER_NETWORKS:()=>o,NETWORK_MAP:()=>E,PROXY_CONTRACT_ADDRESS:()=>a,SESSION_SERVER_API_URL:()=>A,SESSION_SERVER_SOCKET_URL:()=>N,SIGNER_MAP:()=>p,SIG_TYPE:()=>d,TORUS_LEGACY_NETWORK:()=>i,TORUS_SAPPHIRE_NETWORK:()=>n,abi:()=>b});const i={MAINNET:"mainnet",TESTNET:"testnet",CYAN:"cyan",AQUA:"aqua",CELESTE:"celeste"},n={SAPPHIRE_DEVNET:"sapphire_devnet",SAPPHIRE_MAINNET:"sapphire_mainnet"},a={[i.MAINNET]:"0xf20336e16B5182637f09821c27BDe29b0AFcfe80",[i.TESTNET]:"0xd084604e5FA387FbC2Da8bAab07fDD6aDED4614A",[i.CYAN]:"0x9f072ba19b3370e512aa1b4bfcdaf97283168005",[i.AQUA]:"0x29Dea82a0509153b91040ee13cDBba0f03efb625",[i.CELESTE]:"0x6Bffb4e89453069E7487f0fa5c9f4a2D771cce6c"},o=[],r={[i.AQUA]:{migrationCompleted:!0,networkIdentifier:"aqua",networkMigratedTo:n.SAPPHIRE_MAINNET},[i.CELESTE]:{migrationCompleted:!0,networkIdentifier:"celeste",networkMigratedTo:n.SAPPHIRE_MAINNET},[i.CYAN]:{migrationCompleted:!0,networkIdentifier:"cyan",networkMigratedTo:n.SAPPHIRE_MAINNET},[i.MAINNET]:{migrationCompleted:!0,networkIdentifier:"mainnet",networkMigratedTo:n.SAPPHIRE_MAINNET},[i.TESTNET]:{migrationCompleted:!0,networkIdentifier:"teal",networkMigratedTo:n.SAPPHIRE_DEVNET}},E={[i.MAINNET]:"mainnet",[i.TESTNET]:"goerli",[i.CYAN]:"polygon-mainnet",[i.AQUA]:"polygon-mainnet",[i.CELESTE]:"polygon-mainnet"},p={[n.SAPPHIRE_MAINNET]:"https://api.web3auth.io/signer-service",[n.SAPPHIRE_DEVNET]:"https://api.web3auth.io/signer-service",[i.MAINNET]:"https://api.web3auth.io/signer-service",[i.TESTNET]:"https://api.web3auth.io/signer-service",[i.CYAN]:"https://api.web3auth.io/signer-polygon-service",[i.AQUA]:"https://api.web3auth.io/signer-polygon-service",[i.CELESTE]:"https://api.web3auth.io/signer-polygon-service"},s={[i.MAINNET]:"https://api.web3auth.io/metadata-service",[i.TESTNET]:"https://api.web3auth.io/metadata-service",[i.CYAN]:"https://api.web3auth.io/metadata-service",[i.AQUA]:"https://api.web3auth.io/metadata-service",[i.CELESTE]:"https://api.web3auth.io/metadata-service"},T="https://api.web3auth.io/fnd-service",A="https://api.web3auth.io/session-service",N="https://session.web3auth.io",S="https://api.web3auth.io/authjs-service",u={SECP256K1:"secp256k1",ED25519:"ed25519"},d={ECDSA_SECP256K1:"ecdsa-secp256k1",ED25519:"ed25519",BIP340:"bip340"},b=[{inputs:[{internalType:"string",name:"_verifier",type:"string"},{internalType:"bytes32",name:"hashedVerifierId",type:"bytes32"}],name:"getNodeSet",outputs:[{internalType:"uint256",name:"currentEpoch",type:"uint256"},{internalType:"string[]",name:"torusNodeEndpoints",type:"string[]"},{internalType:"uint256[]",name:"torusNodePubX",type:"uint256[]"},{internalType:"uint256[]",name:"torusNodePubY",type:"uint256[]"},{internalType:"uint256[]",name:"torusIndexes",type:"uint256[]"}],stateMutability:"view",type:"function"}];return t})()));