Skip to content

Commit 9b3aeb0

Browse files
Aurora testnet (#3465)
Co-authored-by: kirill <kirill@hmt.ai>
1 parent c285fec commit 9b3aeb0

File tree

50 files changed

+203
-445
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+203
-445
lines changed

.github/workflows/cd-subgraph.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- name: ethereum
2323
- name: polygon
2424
- name: sepolia
25+
- name: aurora-testnet
2526
fail-fast: true
2627
max-parallel: 3
2728
steps:

packages/apps/dashboard/client/src/shared/ui/NetworkIcon/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { ChainId } from '@human-protocol/sdk/src/enums';
22

3+
import AuroraIcon from '@/shared/ui/icons/AuroraIcon';
34
import BinanceSmartChainIcon from '@/shared/ui/icons/BinanceSmartChainIcon';
45
import EthereumIcon from '@/shared/ui/icons/EthereumIcon';
56
import HumanIcon from '@/shared/ui/icons/HumanIcon';
@@ -17,6 +18,8 @@ export const NetworkIcon = ({ chainId }: { chainId: ChainId }) => {
1718
case 137:
1819
case 80002:
1920
return <PolygonIcon />;
21+
case 1313161555:
22+
return <AuroraIcon />;
2023
default:
2124
return <HumanIcon />;
2225
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import type { FC } from 'react';
2+
3+
import SvgIcon, { type SvgIconProps } from '@mui/material/SvgIcon';
4+
5+
const AuroraIcon: FC<SvgIconProps> = (props) => {
6+
return (
7+
<SvgIcon width="16" height="17" viewBox="0 0 16 17" fill="none" {...props}>
8+
<path
9+
d="M8.00027 1.2429C8.3305 1.24186 8.65444 1.33327 8.93541 1.50679C9.21639 1.68032 9.44318 1.92902 9.59013 2.22477L14.5901 12.2247C14.7258 12.4958 14.7899 12.797 14.7764 13.0998C14.7629 13.4026 14.6721 13.6969 14.5128 13.9548C14.3535 14.2126 14.1309 14.4255 13.8662 14.5731C13.6014 14.7207 13.3033 14.7981 13.0002 14.798H3.00029C2.69723 14.798 2.39921 14.7205 2.13455 14.5729C1.86988 14.4252 1.64736 14.2124 1.48811 13.9545C1.32886 13.6967 1.23818 13.4024 1.22468 13.0997C1.21117 12.7969 1.2753 12.4957 1.41096 12.2247L6.41041 2.22477C6.55735 1.92902 6.78415 1.68032 7.06512 1.50679C7.3461 1.33327 7.67003 1.24186 8.00027 1.2429ZM8.00027 0.0205078C7.44323 0.0204525 6.89717 0.175489 6.42327 0.468252C5.94937 0.761015 5.56633 1.17994 5.31708 1.6781L0.317097 11.6781C0.0882338 12.1355 -0.0198864 12.6438 0.00300726 13.1547C0.025901 13.6657 0.179048 14.1623 0.447902 14.5974C0.716755 15.0325 1.09239 15.3917 1.53911 15.6407C1.98584 15.8898 2.48882 16.0205 3.00029 16.0204H13.0002C13.5117 16.0204 14.0146 15.8896 14.4612 15.6405C14.9079 15.3914 15.2834 15.0323 15.5522 14.5972C15.821 14.1621 15.9741 13.6655 15.997 13.1546C16.0199 12.6437 15.9117 12.1354 15.6829 11.6781L10.6835 1.6781C10.4342 1.17994 10.0512 0.761015 9.57726 0.468252C9.10336 0.175489 8.55731 0.0204525 8.00027 0.0205078Z"
10+
fill="currentColor"
11+
/>
12+
</SvgIcon>
13+
);
14+
};
15+
16+
export default AuroraIcon;

packages/apps/dashboard/server/src/common/config/network-config.service.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ export class NetworkConfigService {
6262
rpcUrl: this.configService.get<string>('RPC_URL_BSC_TESTNET'),
6363
},
6464
}),
65+
...(this.configService.get<string>('RPC_URL_AURORA_TESTNET') && {
66+
auroratest: {
67+
chainId: ChainId.AURORA_TESTNET,
68+
rpcUrl: this.configService.get<string>('RPC_URL_AURORA_TESTNET'),
69+
},
70+
}),
6571
...(this.configService.get<string>('RPC_URL_LOCALHOST') && {
6672
localhost: {
6773
chainId: ChainId.LOCALHOST,

packages/apps/dashboard/server/src/common/utils/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const TESTNET_CHAIN_IDS = [
66
ChainId.BSC_TESTNET,
77
ChainId.POLYGON_AMOY,
88
ChainId.SEPOLIA,
9+
ChainId.AURORA_TESTNET,
910
];
1011
export const MAINNET_CHAIN_IDS = [
1112
ChainId.MAINNET,

packages/apps/dashboard/server/src/modules/networks/network.service.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ describe('NetworksService', () => {
2424
process.env.RPC_URL_POLYGON = 'https://testrpc.com';
2525
process.env.RPC_URL_BSC_MAINNET = 'https://testrpc.com';
2626
process.env.RPC_URL_ETHEREUM = 'https://testrpc.com';
27+
process.env.RPC_URL_AURORA_TESTNET = 'https://testrpc.com';
2728
process.env.WEB3_ENV = 'mainnet';
2829
});
2930

packages/apps/faucet/client/src/constants/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ export const FAUCET_CHAIN_IDS = [
44
ChainId.SEPOLIA,
55
ChainId.BSC_TESTNET,
66
ChainId.POLYGON_AMOY,
7+
ChainId.AURORA_TESTNET,
78
];

packages/apps/faucet/server/.env.example

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ ADDRESS_WAITING_TIME=3600
1313
RPC_URL_SEPOLIA=""
1414
RPC_URL_BSC_TESTNET=""
1515
RPC_URL_POLYGON_AMOY=""
16-
RPC_URL_MOONBASE_ALPHA=""
17-
RPC_URL_AVALANCHE_TESTNET=""
18-
RPC_URL_CELO_ALFAJORES=""
19-
RPC_URL_XLAYER_TESTNET=""
16+
RPC_URL_AURORA_TESTNET=""
2017

2118
# Balance threshold
2219
FAUCET_MIN_BALANCE=

packages/apps/faucet/server/src/constants/networks.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ export const FAUCET_NETWORKS: {
1616
[ChainId.POLYGON_AMOY]: {
1717
rpcUrl: process.env.RPC_URL_POLYGON_AMOY || '',
1818
},
19+
[ChainId.AURORA_TESTNET]: {
20+
rpcUrl: process.env.RPC_URL_AURORA_TESTNET || '',
21+
},
1922
[ChainId.LOCALHOST]: {
2023
rpcUrl: process.env.RPC_PORT
2124
? `http://127.0.0.1:${process.env.RPC_PORT}`

packages/apps/fortune/exchange-oracle/server/src/common/config/env-schema.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ export const envValidator = Joi.object({
2222
RPC_URL_BSC: Joi.string(),
2323
RPC_URL_POLYGON_AMOY: Joi.string(),
2424
RPC_URL_SEPOLIA: Joi.string(),
25-
RPC_URL_MOONBEAM: Joi.string(),
2625
RPC_URL_BSC_TESTNET: Joi.string(),
27-
RPC_URL_XLAYER: Joi.string(),
26+
RPC_URL_AURORA_TESTNET: Joi.string(),
2827
RPC_URL_LOCALHOST: Joi.string(),
2928
// S3
3029
S3_ENDPOINT: Joi.string(),

0 commit comments

Comments
 (0)