UNPKG

@sega-so/sega-sdk

Version:

An SDK for building applications on top of SEGA.

2 lines 1.02 kB
"use strict";var c=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var S=Object.prototype.hasOwnProperty;var m=(t,n)=>{for(var e in n)c(t,e,{get:n[e],enumerable:!0})},w=(t,n,e,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of p(n))!S.call(t,o)&&o!==e&&c(t,o,{get:()=>n[o],enumerable:!(i=a(n,o))||i.enumerable});return t};var g=t=>w(c({},"__esModule",{value:!0}),t);var N={};m(N,{Network:()=>r,getConnection:()=>h});module.exports=g(N);var s=require("@solana/web3.js"),r=(e=>(e.SonicMainnet="SonicMainnet",e.SonicTestnetV1="SonicTestnetV1",e))(r||{});function h(t,n=!0){let i=t==="SonicMainnet"?"SonicMainnet":"SonicTestnetV1";return new s.Connection(n?M[i]:k[i])}var k={SonicMainnet:"https://api.mainnet-alpha.sonic.game",SonicTestnetV1:"https://api.testnet.v1.sonic.game"},M={SonicMainnet:"https://archival-mainnet.sonic.game",SonicTestnetV1:"https://archival-testnet.sonic.game"};0&&(module.exports={Network,getConnection}); //# sourceMappingURL=network.js.map