Skip to content

Commit

Permalink
fix: trim structure
Browse files Browse the repository at this point in the history
  • Loading branch information
veralygit committed Oct 29, 2024
1 parent d874aad commit cdd72f6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 48 deletions.
16 changes: 8 additions & 8 deletions packages/sdk/src/api/jsonrpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@ export const rpc = {
return Math.floor(Math.random() * 100000)
},
bitcoin: {
mainnet: new JsonRpc(getRpcUrl(apiConfig.apis.bitcoin.mainnet.batter)),
testnet: new JsonRpc(getRpcUrl(apiConfig.apis.bitcoin.testnet.batter)),
signet: new JsonRpc(getRpcUrl(apiConfig.apis.bitcoin.signet.batter)),
regtest: new JsonRpc(getRpcUrl(apiConfig.apis.bitcoin.regtest.batter))
mainnet: new JsonRpc(getRpcUrl(apiConfig.apis.bitcoin.mainnet)),
testnet: new JsonRpc(getRpcUrl(apiConfig.apis.bitcoin.testnet)),
signet: new JsonRpc(getRpcUrl(apiConfig.apis.bitcoin.signet)),
regtest: new JsonRpc(getRpcUrl(apiConfig.apis.bitcoin.regtest))
},
"fractal-bitcoin": {
mainnet: new JsonRpc(getRpcUrl(apiConfig.apis["fractal-bitcoin"].mainnet.batter)),
testnet: new JsonRpc(getRpcUrl(apiConfig.apis["fractal-bitcoin"].testnet.batter)),
mainnet: new JsonRpc(getRpcUrl(apiConfig.apis["fractal-bitcoin"].mainnet)),
testnet: new JsonRpc(getRpcUrl(apiConfig.apis["fractal-bitcoin"].testnet)),
// unused
signet: new JsonRpc(getRpcUrl(apiConfig.apis["fractal-bitcoin"].signet.batter)),
regtest: new JsonRpc(getRpcUrl(apiConfig.apis["fractal-bitcoin"].regtest.batter))
signet: new JsonRpc(getRpcUrl(apiConfig.apis["fractal-bitcoin"].signet)),
regtest: new JsonRpc(getRpcUrl(apiConfig.apis["fractal-bitcoin"].regtest))
}
} as const

Expand Down
48 changes: 8 additions & 40 deletions packages/sdk/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,16 @@ export const apiConfig = {
version: "0.0.0.10",
apis: {
bitcoin: {
mainnet: {
batter: "https://mainnet.ordit.io/",
orderbook: "1H4vvBnr62YWQmvNSt8Z4pDw3Vcv1n5xz7",
ipfs: "http://ipfs-gateway.ordit.io/"
},
regtest: {
batter: "https://regtest.ordit.io/",
orderbook: "bcrt1q2ys7qws8g072dqe3psp92pqz93ac6wmztexkh5",
ipfs: "http://ipfs-gateway.ordit.io/"
},
testnet: {
batter: "https://testnet.ordit.io/",
orderbook: "tb1qfnw26753j7kqu3q099sd48htvtk5wm4e0enmru",
ipfs: "http://ipfs-gateway.ordit.io/"
},
signet: {
batter: "https://signet.ordit.io/",
orderbook: "tb1qfnw26753j7kqu3q099sd48htvtk5wm4e0enmru",
ipfs: "http://ipfs-gateway.ordit.io/"
}
mainnet: "https://mainnet.ordit.io/",
regtest: "https://regtest.ordit.io/",
testnet: "https://testnet.ordit.io/",
signet: "https://signet.ordit.io/"
},
"fractal-bitcoin": {
mainnet: {
batter: "https://fractal.ordit.io/",
orderbook: "",
ipfs: "http://ipfs-gateway.ordit.io/"
},
regtest: {
batter: "https://fractal-regtest.ordit.io/",
orderbook: "",
ipfs: "http://ipfs-gateway.ordit.io/"
},
testnet: {
batter: "https://fractal-testnet.ordit.io/",
orderbook: "",
ipfs: "http://ipfs-gateway.ordit.io/"
},
signet: {
batter: "https://fractal-signet.ordit.io/",
orderbook: "",
ipfs: "http://ipfs-gateway.ordit.io/"
}
mainnet: "https://fractal.ordit.io/",
regtest: "https://fractal-regtest.ordit.io/",
testnet: "https://fractal-testnet.ordit.io/",
signet: "https://fractal-signet.ordit.io/"
}
}
}
Expand Down

0 comments on commit cdd72f6

Please sign in to comment.