-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devop: add token id for additional validation
- Loading branch information
Showing
18 changed files
with
109 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
packages/extension/src/providers/polkadot/networks/assethub/assets.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { KnownTokenDisplay } from "@/providers/polkadot/types"; | ||
|
||
const assets: KnownTokenDisplay[] = [ | ||
// { | ||
// name: "Acala", | ||
// symbol: "ACA", | ||
// coingeckoID: "acala", | ||
// icon: require("./icons/ACA.png"), | ||
// }, | ||
// { | ||
// name: "Polkadot", | ||
// symbol: "DOT", | ||
// coingeckoID: "polkadot", | ||
// icon: require("../../icons/polkadot.svg"), | ||
// }, | ||
// { | ||
// name: "Acala Dollar", | ||
// symbol: "aUSD", | ||
// icon: require("./icons/AUSD.png"), | ||
// coingeckoID: "acala-dollar", | ||
// }, | ||
// { | ||
// name: "Liquid DOT", | ||
// symbol: "LDOT", | ||
// icon: require("./icons/LDOT.png"), | ||
// }, | ||
]; | ||
|
||
export default assets; |
Binary file added
BIN
+24.4 KB
packages/extension/src/providers/polkadot/networks/assethub/icons/ded.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.04 KB
packages/extension/src/providers/polkadot/networks/assethub/icons/usdc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.47 KB
packages/extension/src/providers/polkadot/networks/assethub/icons/usdt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions
35
packages/extension/src/providers/polkadot/networks/assethub/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { NetworkNames } from "@enkryptcom/types"; | ||
import { toBN } from "web3-utils"; | ||
import { | ||
SubstrateNetwork, | ||
SubstrateNetworkOptions, | ||
} from "@/providers/polkadot/types/substrate-network"; | ||
import { subscanActivity } from "@/providers/polkadot/libs/activity-handlers"; | ||
import wrapActivityHandler from "@/libs/activity-state/wrap-activity-handler"; | ||
import assetHandler from "@/providers/polkadot/libs/asset-handler"; | ||
|
||
const assetHubOptions: SubstrateNetworkOptions = { | ||
name: NetworkNames.AssetHub, | ||
name_long: "Asset Hub", | ||
homePage: "https://polkadot.network", | ||
blockExplorerTX: "https://assethub-polkadot.subscan.io/extrinsic/[[txHash]]", | ||
blockExplorerAddr: "https://assethub-polkadot.subscan.io/account/[[address]]", | ||
isTestNetwork: false, | ||
currencyName: "DOT", | ||
currencyNameLong: "Polkadot", | ||
icon: require("../icons/assethub.png"), | ||
decimals: 10, | ||
prefix: 0, | ||
node: "wss://statemint-rpc.dwellir.com/", | ||
coingeckoID: "polkadot", | ||
genesisHash: | ||
"0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f", | ||
activityHandler: wrapActivityHandler(subscanActivity), | ||
existentialDeposit: toBN("10000000000"), | ||
assetHandler, | ||
knownTokens: [], | ||
}; | ||
|
||
const assetHub = new SubstrateNetwork(assetHubOptions); | ||
|
||
export default assetHub; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+8.62 KB
packages/extension/src/providers/polkadot/networks/icons/assethub.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d95ee88
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Virus total analysis
chrome:
https://www.virustotal.com/gui/file/a85c963d12225bc1eac667c560ef5efbb088ab1c90de2fe89aacd3ff9e2e50ce
firefox:
https://www.virustotal.com/gui/file/3ab23ef9af811da74d91941fc43ee48009d5074744c5b2ed4288c116ae5a90e6