diff --git a/packages/xchain-midgard/README.md b/packages/xchain-midgard/README.md index 631367728..972191aaa 100644 --- a/packages/xchain-midgard/README.md +++ b/packages/xchain-midgard/README.md @@ -27,7 +27,6 @@ const data = midgardApi.getPool('BTC.BTC') ## Documentation [`Midgard Thorchain endpoint`](https://midgard.thorchain.info/v2/doc) -[`Midgard Thorswap endpoint`](https://midgard.thorswap.net/v2/doc) [`Midgard NineRelms endpoint`](https://midgard.ninerealms.com/v2/doc) ### Setting Headers for Nine Realms endpoints diff --git a/packages/xchain-midgard/src/config.ts b/packages/xchain-midgard/src/config.ts index e1598976c..5748756b1 100644 --- a/packages/xchain-midgard/src/config.ts +++ b/packages/xchain-midgard/src/config.ts @@ -1,2 +1 @@ -export const MIDGARD_API_TS_URL = 'https://midgard.thorswap.net/' export const MIDGARD_API_9R_URL = 'https://midgard.ninerealms.com/' diff --git a/packages/xchain-midgard/src/index.ts b/packages/xchain-midgard/src/index.ts index 8fa2715ec..9c2fc70e0 100644 --- a/packages/xchain-midgard/src/index.ts +++ b/packages/xchain-midgard/src/index.ts @@ -1,7 +1,7 @@ -import { MIDGARD_API_TS_URL } from './config' +import { MIDGARD_API_9R_URL } from './config' import { Configuration, DefaultApi } from './generated/midgardApi' -const baseUrl = MIDGARD_API_TS_URL +const baseUrl = MIDGARD_API_9R_URL const defaultConfig = new Configuration({ basePath: baseUrl }) export * from './generated/midgardApi' diff --git a/packages/xchain-thorchain-amm/package.json b/packages/xchain-thorchain-amm/package.json index 5f23d3f7a..40560fac7 100644 --- a/packages/xchain-thorchain-amm/package.json +++ b/packages/xchain-thorchain-amm/package.json @@ -53,8 +53,8 @@ "@xchainjs/xchain-litecoin": "^0.12.2", "@xchainjs/xchain-mayachain": "^0.2.5", "@xchainjs/xchain-midgard": "^0.5.2", - "@xchainjs/xchain-thorchain": "^0.28.6", - "@xchainjs/xchain-thornode": "^0.3.7", + "@xchainjs/xchain-thorchain": "^0.28.8", + "@xchainjs/xchain-thornode": "^0.3.6", "@xchainjs/xchain-thorchain-query": "^0.6.3", "@xchainjs/xchain-util": "^0.13.1", "@xchainjs/xchain-utxo-providers": "^0.2.2", @@ -89,8 +89,8 @@ "@xchainjs/xchain-litecoin": "^0.12.2", "@xchainjs/xchain-mayachain": "^0.2.5", "@xchainjs/xchain-midgard": "^0.5.2", - "@xchainjs/xchain-thorchain": "^0.28.6", "@xchainjs/xchain-thornode": "^0.3.7", + "@xchainjs/xchain-thorchain": "^0.28.8", "@xchainjs/xchain-thorchain-query": "^0.6.3", "@xchainjs/xchain-util": "^0.13.1", "@xchainjs/xchain-utxo-providers": "^0.2.2", diff --git a/packages/xchain-thorchain-amm/spec.md b/packages/xchain-thorchain-amm/spec.md index a70f0cfb2..17b964dab 100644 --- a/packages/xchain-thorchain-amm/spec.md +++ b/packages/xchain-thorchain-amm/spec.md @@ -26,10 +26,10 @@ Basic validation of a request before running the if sourceAsset <= 0 return "source asset is 0" -if source asset != RUNE && source asset not in active pool list (https://midgard.thorswap.net/v2/pools where status = "available") +if source asset != RUNE && source asset not in active pool list (https://midgard.ninerealms.com/v2/pools where status = "available") return "source asset not on pool list" -if destinationAsset != RUNE && destinationAsset not in active pool list (https://midgard.thorswap.net/v2/pools where status = "available") +if destinationAsset != RUNE && destinationAsset not in active pool list (https://midgard.ninerealms.com/v2/pools where status = "available") return "destination asset not on pool list" If valueofRUNE(inbound fee + outbound fee) > valueOfRUNE(inboundAsset) @@ -99,7 +99,7 @@ This will be the Min Outbound delay time. Could be more depending on network act ### Midgard Requirements 1. Mimir values -1. Outbound Queue (https://midgard.thorswap.net/v2/thorchain/queue) +1. Outbound Queue (https://midgard.ninerealms.com/v2/thorchain/queue) ### Logic @@ -120,7 +120,7 @@ runeValue = runeValueOf(outputAmount) if runeValue < minTxOutVolumeThreshold Return 6 // likley next block. -sumValue = runeValue + scheduled_outbound_value (https://midgard.thorswap.net/v2/thorchain/queue) +sumValue = runeValue + scheduled_outbound_value (https://midgard.ninerealms.com/v2/thorchain/queue) // reduce delay rate relative to the total scheduled value. In high volume // scenarios, this causes the network to send outbound transactions slower, @@ -356,8 +356,8 @@ Removes liquidity for a user ### Midgard Requirements -1. `LP Details https://midgard.thorswap.net/v2/member/{address}` -1. `Pool List https://midgard.thorswap.net/v2/pools ` +1. `LP Details https://midgard.ninerealms.com/v2/member/{address}` +1. `Pool List https://midgard.ninerealms.com/v2/pools ` See if the the pool is valid See if their wallet is a member of the pool. diff --git a/packages/xchain-thorchain-query/package.json b/packages/xchain-thorchain-query/package.json index 7e7b5428b..d2c10aa00 100644 --- a/packages/xchain-thorchain-query/package.json +++ b/packages/xchain-thorchain-query/package.json @@ -53,4 +53,4 @@ "publishConfig": { "access": "public" } -} +} \ No newline at end of file diff --git a/packages/xchain-thorchain-query/src/utils/thornode.ts b/packages/xchain-thorchain-query/src/utils/thornode.ts index afbe4ce2b..412866592 100644 --- a/packages/xchain-thorchain-query/src/utils/thornode.ts +++ b/packages/xchain-thorchain-query/src/utils/thornode.ts @@ -41,7 +41,7 @@ export type ThornodeConfig = { const defaultThornodeConfig: Record = { mainnet: { apiRetries: 3, - thornodeBaseUrls: [`https://thornode.ninerealms.com`, `https://thornode.thorswap.net`], + thornodeBaseUrls: [`https://thornode.ninerealms.com`], }, stagenet: { apiRetries: 3, diff --git a/packages/xchain-thorchain/package.json b/packages/xchain-thorchain/package.json index 7bcb4ec07..83e3a289b 100644 --- a/packages/xchain-thorchain/package.json +++ b/packages/xchain-thorchain/package.json @@ -1,6 +1,6 @@ { "name": "@xchainjs/xchain-thorchain", - "version": "0.28.7", + "version": "0.28.8", "description": "Custom Thorchain client and utilities used by XChainJS clients", "keywords": [ "THORChain", @@ -56,4 +56,4 @@ "axios": "^1.3.6", "bech32-buffer": "^0.2.0" } -} +} \ No newline at end of file diff --git a/packages/xchain-thorchain/src/const.ts b/packages/xchain-thorchain/src/const.ts index 0d54d76af..b429daa56 100644 --- a/packages/xchain-thorchain/src/const.ts +++ b/packages/xchain-thorchain/src/const.ts @@ -104,8 +104,8 @@ export const FallBackUrls = [ rpc: ['https://stagenet-rpc.ninerealms.com'], }, [Network.Mainnet]: { - node: ['https://thornode-v1.ninerealms.com', 'https://thornode.thorswap.net/'], - rpc: ['https://rpc-v1.ninerealms.com', 'https://rpc.thorswap.net'], + node: ['https://thornode-v1.ninerealms.com'], + rpc: ['https://rpc-v1.ninerealms.com'], }, }, ]