Skip to content

Commit

Permalink
feat: removal of hedera network (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
rongquan1 authored Dec 4, 2024
1 parent ee28e40 commit 1f526db
Show file tree
Hide file tree
Showing 15 changed files with 153 additions and 540 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ npx -p @tradetrust-tt/tradetrust-cli tradetrust <arguments>
| Amoy | amoy | 80002 | Polygon | Testnet |
| XDC Network | xdc | 50 | XDC Network | Mainnet |
| Apothem | xdcapothem | 51 | XDC Network | Testnet |
| Hedera Mainnet | hederamainnet | 295 | Hedera | Mainnet |
| Hedera Testnet | hederatestnet | 296 | Hedera | Testnet |
| Stability | stability | 101010 | Stability | Mainnet |
| Stability Testnet | stabilitytestnet | 20180427 | Stability | Testnet |
| Astron | Astron | 1338 | Astron | Mainnet |
Expand Down
173 changes: 142 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@
"dependencies": {
"@govtechsg/oa-encryption": "^1.3.3",
"@snyk/protect": "^1.1196.0",
"@tradetrust-tt/dnsprove": "^2.14.2",
"@tradetrust-tt/document-store": "^2.7.0",
"@tradetrust-tt/token-registry": "^4.12.1",
"@tradetrust-tt/tradetrust": "^6.9.6",
"@tradetrust-tt/tradetrust-config": "^1.15.1",
"@tradetrust-tt/tt-verify": "^8.10.2",
"@tradetrust-tt/dnsprove": "^2.15.0",
"@tradetrust-tt/document-store": "^4.1.0",
"@tradetrust-tt/token-registry": "^4.15.0",
"@tradetrust-tt/tradetrust": "^6.9.7",
"@tradetrust-tt/tradetrust-config": "^1.16.0",
"@tradetrust-tt/tt-verify": "^9.2.0",
"ajv": "^8.4.0",
"ajv-formats": "^2.1.0",
"chalk": "^4.1.2",
Expand Down
1 change: 0 additions & 1 deletion src/commands/config/config.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ export enum TestNetwork {
Sepolia = "sepolia",
Amoy = "amoy (polygon)",
Apothem = "apothem (xdc)",
Hedera = "hedera (testnet)",
StabilityTestnet = "stability (testnet)",
}
2 changes: 0 additions & 2 deletions src/commands/config/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export const handler = async (args: CreateConfigCommand): Promise<void> => {
TestNetwork.Sepolia,
TestNetwork.Amoy,
TestNetwork.Apothem,
TestNetwork.Hedera,
TestNetwork.StabilityTestnet,
];
const { network } = await inquirer.prompt({
Expand All @@ -91,7 +90,6 @@ const convertNetworkToNetworkCmdName = (selectedNetwork: TestNetwork): NetworkCm
[TestNetwork.Sepolia]: NetworkCmdName.Sepolia,
[TestNetwork.Amoy]: NetworkCmdName.Amoy,
[TestNetwork.Apothem]: NetworkCmdName.XDCApothem,
[TestNetwork.Hedera]: NetworkCmdName.HederaTestnet,
[TestNetwork.StabilityTestnet]: NetworkCmdName.StabilityTestnet,
};
return network[selectedNetwork];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,6 @@ Array [
"netId": "137",
"type": "openatts",
},
Object {
"addr": "0x740240f8d049420fC63C7ab2f0ad2910Ad6f9452",
"dnssec": true,
"net": "ethereum",
"netId": "295",
"type": "openatts",
},
Object {
"addr": "0xb901968B6fC194f5518fee12d4cb719e4F0aF105",
"dnssec": true,
"net": "ethereum",
"netId": "295",
"type": "openatts",
},
Object {
"addr": "0x48399Fb88bcD031C556F53e93F690EEC07963Af3",
"dnssec": true,
Expand Down
18 changes: 1 addition & 17 deletions src/common/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { providers } from "ethers";
import type { GasStationFunction } from "./gas-station";
import { gasStation } from "./gas-station";

export type networkCurrency = "ETH" | "MATIC" | "XDC" | "HBAR" | "FREE" | "ASTRON";
export type networkCurrency = "ETH" | "MATIC" | "XDC" | "FREE" | "ASTRON";

type SupportedNetwork = {
explorer: string;
Expand All @@ -21,8 +21,6 @@ export enum NetworkCmdName {
Amoy = "amoy",
XDC = "xdc",
XDCApothem = "xdcapothem",
HederaMainnet = "hederamainnet",
HederaTestnet = "hederatestnet",
StabilityTestnet = "stabilitytestnet",
Stability = "stability",
Astron = "astron",
Expand Down Expand Up @@ -92,20 +90,6 @@ export const supportedNetwork: {
networkName: NetworkCmdName.XDCApothem,
currency: "XDC",
},
[NetworkCmdName.HederaMainnet]: {
explorer: "https://hashscan.io/mainnet",
provider: jsonRpcProvider("https://mainnet.hashio.io/api"),
networkId: 295,
networkName: NetworkCmdName.HederaMainnet,
currency: "HBAR",
},
[NetworkCmdName.HederaTestnet]: {
explorer: "https://hashscan.io/testnet",
provider: jsonRpcProvider("https://testnet.hashio.io/api"),
networkId: 296,
networkName: NetworkCmdName.HederaTestnet,
currency: "HBAR",
},
[NetworkCmdName.Stability]: {
explorer: "https://stability.blockscout.com",
provider: jsonRpcProvider(`https://gtn.stabilityprotocol.com/zgt/tradeTrust`),
Expand Down
Loading

0 comments on commit 1f526db

Please sign in to comment.