Skip to content

Commit

Permalink
feat(node rpc): Add Ghostnet RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
RomarQ committed Jul 1, 2022
1 parent 154190c commit e335bcf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/context/Tezos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import Logger from 'src/utils/logger';

export enum NetworkKind {
Mainnet = 'mainnet',
Ithacanet = 'ithacanet',
Ghostnet = 'ghostnet',
Jakartanet = 'jakartanet',
}

export const DEFAULT_RPC = {
[NetworkKind.Mainnet]: 'https://mainnet.visualtez.com',
[NetworkKind.Ithacanet]: 'https://ithacanet.visualtez.com',
[NetworkKind.Ghostnet]: 'https://ghostnet.visualtez.com',
[NetworkKind.Jakartanet]: 'https://jakartanet.visualtez.com',
};

Expand Down
3 changes: 1 addition & 2 deletions src/services/wallet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ const getNetwork = (network: NetworkKind): NetworkType => {
switch (network) {
case NetworkKind.Mainnet:
return NetworkType.MAINNET;
case NetworkKind.Ithacanet:
return NetworkType.ITHACANET;
case NetworkKind.Ghostnet:
case NetworkKind.Jakartanet:
default:
return NetworkType.CUSTOM;
Expand Down
6 changes: 1 addition & 5 deletions src/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"storage_prefix": "@VisualTez",
"networks": [
"mainnet",
"ithacanet",
"ghostnet",
"jakartanet"
],
"protocols": [
Expand All @@ -13,10 +13,6 @@
{
"name": "Jakarta",
"id": "PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY"
},
{
"name": "Ithaca",
"id": "Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A"
}
],
"node_monitor": {
Expand Down

0 comments on commit e335bcf

Please sign in to comment.