Skip to content

Commit 55c37d5

Browse files
committed
fix endpoints
1 parent 715b564 commit 55c37d5

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed

apps/vyper/src/app/app.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { CustomTooltip } from '@remix-ui/helper'
1616
import { Form } from 'react-bootstrap'
1717
import CustomAccordionToggle from './components/CustomAccordionToggle'
1818
import { VyperCompilationResultWrapper, VyperCompilationErrorsWrapper, VyperCompilationError } from './utils/types'
19+
import { endpointUrls } from '@remix-endpoints-helper'
1920

2021
interface AppState {
2122
status: 'idle' | 'inProgress'
@@ -107,7 +108,7 @@ const App = () => {
107108
}
108109

109110
function compilerUrl() {
110-
return state.environment === 'remote' ? 'https://vyper2.remixproject.org/' : state.localUrl
111+
return state.environment === 'remote' ? `${endpointUrls.vyper2}` : state.localUrl
111112
}
112113

113114
function resetCompilerResultState() {

apps/vyper/src/app/utils/compiler.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export async function compile(url: string, contract: Contract): Promise<VyperCom
8282
[contractName] : { content : contract.content }
8383
}
8484
}
85-
85+
console.log('compilePackage', `${url}compile`)
8686
let response = await axios.post(`${url}compile`, compilePackage )
8787

8888
if (response.status === 404) {

apps/vyper/src/app/utils/remix-client.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ import { Contract, compileContract } from './compiler'
66
import { ExampleContract } from '../components/VyperResult'
77
import EventEmitter from 'events'
88
import { CustomRemixApi } from '@remix-api'
9-
10-
export type VyperComplierAddress = 'https://vyper2.remixproject.org/' | 'http://localhost:8000/'
9+
import { endpointUrls } from '@remix-endpoints-helper'
1110
export class RemixClient extends PluginClient<any, CustomRemixApi> {
1211
private client = createClient<Api, Readonly<RemixApi>>(this)
13-
compilerUrl: VyperComplierAddress = 'https://vyper2.remixproject.org/'
12+
compilerUrl: string = endpointUrls.vyper2
1413
compilerOutput: any
1514
eventEmitter = new EventEmitter()
1615

libs/endpoints-helper/src/index.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ type EndpointUrls = {
1616
};
1717

1818
const defaultUrls: EndpointUrls = {
19-
corsProxy: 'https://gitproxy.api.remix.live',
20-
solidityScan: 'https://solidityscan.api.remix.live',
21-
ipfsGateway: 'https://jqgt.api.remix.live',
22-
commonCorsProxy: 'https://common-corsproxy.api.remix.live',
23-
github: 'https://github.api.remix.live',
24-
solcoder: 'https://solcoder.api.remix.live',
25-
ghfolderpull: 'https://ghfolderpull.api.remix.live',
26-
embedly: 'https://embedly.api.remix.live',
27-
gptChat: 'https://gpt-chat.api.remix.live',
28-
rag: 'https://rag.api.remix.live',
29-
vyper2: 'https://vyper2.api.remix.live',
30-
completion: 'https://completion.api.remix.live',
31-
solidityScanWebSocket: 'wss://solidityscan.api.remix.live',
32-
gitHubLoginProxy: 'https://github-login-proxy.api.remix.live',
19+
corsProxy: 'https://gitproxy.api.remix.live/',
20+
solidityScan: 'https://solidityscan.api.remix.live/',
21+
ipfsGateway: 'https://jqgt.api.remix.live/',
22+
commonCorsProxy: 'https://common-corsproxy.api.remix.live/',
23+
github: 'https://github.api.remix.live/',
24+
solcoder: 'https://solcoder.api.remix.live/',
25+
ghfolderpull: 'https://ghfolderpull.api.remix.live/',
26+
embedly: 'https://embedly.api.remix.live/',
27+
gptChat: 'https://gpt-chat.api.remix.live/',
28+
rag: 'https://rag.api.remix.live/',
29+
vyper2: 'https://vyper2.api.remix.live/',
30+
completion: 'https://completion.api.remix.live/',
31+
solidityScanWebSocket: 'wss://solidityscan.api.remix.live/',
32+
gitHubLoginProxy: 'https://github-login-proxy.api.remix.live/',
3333
};
3434

3535
const endpointPathMap: Record<keyof EndpointUrls, string> = {

libs/remix-lib/src/helpers/aaConstants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const aaSupportedNetworks = {
1313
}
1414

1515
export const getPimlicoBundlerURL = (chainId) => {
16-
return `https://pimlico.remixproject.org/api/proxy/${chainId}`
16+
return `https://pimlico.api.remix.live/api/proxy/${chainId}`
1717
}
1818

1919
export const aaLocalStorageKey = 'smartAccounts'

libs/remix-url-resolver/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ type EndpointUrls = {
77
};
88

99
const defaultUrls: EndpointUrls = {
10-
ipfsGateway: 'https://jqgt.remixproject.org',
11-
ghfolderpull: 'https://ghfolderpull.remixproject.org',
10+
ipfsGateway: 'https://jqgt.api.remix.live',
11+
ghfolderpull: 'https://ghfolderpull.api.remix.live',
1212
};
1313

1414
const endpointPathMap: Record<keyof EndpointUrls, string> = {

libs/remixd/origins.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"package://a7df6d3c223593f3550b35e90d7b0b1f.mod",
1010
"package://6fd22d6fe5549ad4c4d8fd3ca0b7816b.mod",
1111
"https://ipfsgw.komputing.org",
12-
"https://jqgt.remixproject.org"
12+
"https://jqgt.api.remix.live"
1313
]
1414
}

0 commit comments

Comments
 (0)