Skip to content

Commit 1c3c6d6

Browse files
authored
Remove taurus from multi-network gateway (#500)
* Remove Taurus network case from getFileNetwork function in networkComposer.ts * Remove references to Taurus network from server configurations and update gateway description for clarity.
1 parent 754d862 commit 1c3c6d6

File tree

4 files changed

+4
-17
lines changed

4 files changed

+4
-17
lines changed

apps/backend/src/docs/reference/servers.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,11 @@ export const autoDriveServers = [
33
url: 'https://mainnet.auto-drive.autonomys.xyz/api',
44
description: 'Mainnet Auto Drive API',
55
},
6-
{
7-
url: 'https://taurus.auto-drive.autonomys.xyz/api',
8-
description: 'Testnet Auto Drive API',
9-
},
106
]
117

128
export const downloadServers = [
139
{
1410
url: 'https://public.auto-drive.autonomys.xyz/api',
1511
description: 'Download Auto Drive Gateway (Mainnet)',
1612
},
17-
{
18-
url: 'https://public.taurus.auto-drive.autonomys.xyz/api',
19-
description: 'Download Auto Drive Gateway (Testnet)',
20-
},
2113
]

apps/gateway/public/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<meta
77
name="description"
8-
content="A unified gateway solution designed to seamlessly connect and access files or folders permanently stored on Autonomys Mainnet & Taurus Testnet through a single, streamlined interface."
8+
content="A gateway solution designed to seamlessly connect and access files or folders permanently stored on Autonomys Network."
99
/>
1010
<title>Auto Drive Gateway | Autonomys</title>
1111
<link
@@ -51,8 +51,8 @@ <h2 class="text-4xl md:text-5xl font-bold mb-4 text-brand-secondary">
5151
</h2>
5252
<p class="text-lg md:text-xl text-muted-foreground max-w-3xl mx-auto">
5353
A unified gateway solution designed to seamlessly connect and access
54-
files or folders permanently stored on Autonomys Mainnet & Taurus
55-
Testnet through a single, streamlined interface.
54+
files or folders permanently stored on Autonomys Network through a
55+
single, streamlined interface.
5656
</p>
5757
</section>
5858

apps/gateway/src/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { env } from "./utils";
44

55
export const ApiPatternByNetwork: Partial<Record<NetworkId, string>> = {
66
[NetworkId.MAINNET]: process.env.MAINNET_API_PATTERN,
7-
[NetworkId.TAURUS]: process.env.TAURUS_API_PATTERN,
87
};
98

109
export const config = {

apps/gateway/src/networkComposer.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,14 @@ import { firstNonNull } from "./utils";
44
import { ApiPatternByNetwork, config } from "./config";
55

66
export const getFileNetwork = async (cid: string) => {
7-
const networks = [NetworkId.MAINNET, NetworkId.TAURUS] as const;
7+
const networks = [NetworkId.MAINNET] as const;
88

99
// Create reusable API instances to avoid memory leaks
1010
const apiInstances = {
1111
[NetworkId.MAINNET]: createAutoDriveApi({
1212
network: NetworkId.MAINNET,
1313
apiKey: config.autoDriveApiKey,
1414
}),
15-
[NetworkId.TAURUS]: createAutoDriveApi({
16-
network: NetworkId.TAURUS,
17-
apiKey: config.autoDriveApiKey,
18-
}),
1915
};
2016

2117
const promises = networks.map(async (network) => {

0 commit comments

Comments
 (0)