-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #427 from enkryptcom/develop
release: v1.38.0
- Loading branch information
Showing
26 changed files
with
277 additions
and
79 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
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
37 changes: 37 additions & 0 deletions
37
packages/extension/src/providers/polkadot/networks/assethub/assethub-dot.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,37 @@ | ||
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"; | ||
import assets from "./assets-dot"; | ||
import { toBase } from "@enkryptcom/utils"; | ||
|
||
const assetHubOptions: SubstrateNetworkOptions = { | ||
name: NetworkNames.AssetHubDOT, | ||
name_long: "Asset Hub | Polkadot", | ||
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(toBase("0.01", 10)), | ||
assetHandler, | ||
knownTokens: assets, | ||
}; | ||
|
||
const assetHub = new SubstrateNetwork(assetHubOptions); | ||
|
||
export default assetHub; |
37 changes: 37 additions & 0 deletions
37
packages/extension/src/providers/polkadot/networks/assethub/assethub-ksm.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,37 @@ | ||
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"; | ||
import assets from "./assets-ksm"; | ||
import { toBase } from "@enkryptcom/utils"; | ||
|
||
const assetHubOptions: SubstrateNetworkOptions = { | ||
name: NetworkNames.AssetHubKSM, | ||
name_long: "Asset Hub | Kusama", | ||
homePage: "https://kusama.network/", | ||
blockExplorerTX: "https://assethub-kusama.subscan.io/extrinsic/[[txHash]]", | ||
blockExplorerAddr: "https://assethub-kusama.subscan.io/account/[[address]]", | ||
isTestNetwork: false, | ||
currencyName: "KSM", | ||
currencyNameLong: "Kusama", | ||
icon: require("../icons/assethub.png"), | ||
decimals: 12, | ||
prefix: 2, | ||
node: "wss://kusama-asset-hub-rpc.polkadot.io/", | ||
coingeckoID: "kusama", | ||
genesisHash: | ||
"0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a", | ||
activityHandler: wrapActivityHandler(subscanActivity), | ||
existentialDeposit: toBN(toBase("0.000003333333", 12)), | ||
assetHandler, | ||
knownTokens: assets, | ||
}; | ||
|
||
const assetHub = new SubstrateNetwork(assetHubOptions); | ||
|
||
export default assetHub; |
26 changes: 26 additions & 0 deletions
26
packages/extension/src/providers/polkadot/networks/assethub/assets-dot.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,26 @@ | ||
import { KnownTokenDisplay } from "@/providers/polkadot/types"; | ||
|
||
const assets: KnownTokenDisplay[] = [ | ||
{ | ||
name: "USD Coin", | ||
symbol: "USDC", | ||
coingeckoID: "usd-coin", | ||
icon: require("./icons/usdc.png"), | ||
id: "1337", | ||
}, | ||
{ | ||
name: "Tether USD", | ||
symbol: "USDt", | ||
coingeckoID: "tether", | ||
icon: require("./icons/usdt.png"), | ||
id: "1984", | ||
}, | ||
{ | ||
name: "DOT is Dead", | ||
symbol: "DED", | ||
icon: require("./icons/ded.png"), | ||
id: "30", | ||
}, | ||
]; | ||
|
||
export default assets; |
20 changes: 20 additions & 0 deletions
20
packages/extension/src/providers/polkadot/networks/assethub/assets-ksm.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,20 @@ | ||
import { KnownTokenDisplay } from "@/providers/polkadot/types"; | ||
|
||
const assets: KnownTokenDisplay[] = [ | ||
{ | ||
name: "RMRK.app", | ||
symbol: "RMRK", | ||
coingeckoID: "rmrk", | ||
icon: require("./icons/rmrk.png"), | ||
id: "8", | ||
}, | ||
{ | ||
name: "Tether USD", | ||
symbol: "USDt", | ||
coingeckoID: "tether", | ||
icon: require("./icons/usdt.png"), | ||
id: "1984", | ||
}, | ||
]; | ||
|
||
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
+9.88 KB
packages/extension/src/providers/polkadot/networks/assethub/icons/rmrk.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.
4 changes: 4 additions & 0 deletions
4
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,4 @@ | ||
import assethubDOT from "./assethub-dot"; | ||
import assethubKSM from "./assethub-ksm"; | ||
|
||
export { assethubDOT, assethubKSM }; |
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
Oops, something went wrong.
f8a8afa
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/73f325c39675dc5bb5567257c361105e9d6f037dc746fbbf279c3e762946a5a1
firefox:
https://www.virustotal.com/gui/file/c242cf7f5158d28d0db8c7dcab201a6bbe125f3d4493a2ddce818ef143defbc7
f8a8afa
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/86d15cb50a9433ae89307254fae1d3a2339b6634ffa473a01ca3c241938f4a72
firefox:
https://www.virustotal.com/gui/file/59cd74ecf6a0766039f967ec49372081b1967e77b735fd6a98bdcfbd5f2f18a6