mirror of
https://github.com/Brotocol-xyz/bro-sdk.git
synced 2026-04-29 20:05:14 +08:00
refactor: rebrand to Brotocol
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { XLinkSDK } from "../src"
|
||||
import { BroSDK } from "../src"
|
||||
import { KnownRoute } from "../src/utils/buildSupportedRoutes"
|
||||
|
||||
async function print(matchers: {
|
||||
@@ -7,7 +7,7 @@ async function print(matchers: {
|
||||
chain: string[]
|
||||
token: string[]
|
||||
}): Promise<void> {
|
||||
const sdk = new XLinkSDK({
|
||||
const sdk = new BroSDK({
|
||||
debugLog: matchers.debug,
|
||||
})
|
||||
const supportedRoutes = await sdk
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { XLinkSDK } from "../src"
|
||||
import { BroSDK } from "../src"
|
||||
import { getAllAddresses } from "../src/evmUtils/contractHelpers"
|
||||
import { getXLinkSDKContext } from "../src/lowlevelUnstableInfos"
|
||||
import { getSDKContext } from "../src/lowlevelUnstableInfos"
|
||||
import { _allKnownEVMChains } from "../src/utils/types/knownIds"
|
||||
|
||||
async function print(matchers: { chain: string[] }): Promise<void> {
|
||||
@@ -8,8 +8,8 @@ async function print(matchers: { chain: string[] }): Promise<void> {
|
||||
matchers.chain.some(m => c.includes(m)),
|
||||
)
|
||||
|
||||
const sdk = new XLinkSDK()
|
||||
const ctx = getXLinkSDKContext(sdk)
|
||||
const sdk = new BroSDK()
|
||||
const ctx = getSDKContext(sdk)
|
||||
|
||||
await Promise.all(
|
||||
chainIds.map(chainId =>
|
||||
|
||||
Reference in New Issue
Block a user