Skip to content

Commit

Permalink
feat: supporting types for portal bridge (#58)
Browse files Browse the repository at this point in the history
* feat: added SOL TER OAS SOLT TERT OAST to ChainID and ChainKey

* refactor: changed mnemonic for SOL TER OAS to be lowercase

* refactor: added comments on non EVM chain IDs

* feat: added portal metadata

* fix: test with es2020

* Revert "fix: test with es2020"

This reverts commit 9986a9f.
  • Loading branch information
H3xept committed May 9, 2022
1 parent 4b36e61 commit 0b813e3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
Binary file added src/assets/icons/bridges/wormhole_portal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ export enum ChainKey {
MOO = 'moo',
MAM = 'mam',
AUR = 'aur',
TER = 'sol',
OAS = 'sol',
SOL = 'sol',

// Testnets
ROP = 'rop',
Expand All @@ -100,6 +103,9 @@ export enum ChainKey {
FUST = 'fust',
TLOT = 'tlot',
RSKT = 'rskt',
SOLT = 'solt',
OAST = 'solt',
TERT = 'solt',
}

export enum ChainId {
Expand Down Expand Up @@ -134,6 +140,9 @@ export enum ChainId {
MOO = 1284,
MAM = 1088,
AUR = 1313161554,
SOL = 1151111081099710, // this id is made up by the LiFi team!
TER = 1161011141099710, // this id is made up by the LiFi team!
OAS = 111971151099710, // this id is made up by the LiFi team!

// Testnets
ROP = 3,
Expand All @@ -151,6 +160,9 @@ export enum ChainId {
FUST = 123,
TLOT = 41,
RSKT = 31,
SOLT = 11511110811610111, // this id is made up by the LiFi team!
TERT = 11610111411610111, // this id is made up by the LiFi team!
OAST = 1119711511610111, // this id is made up by the LiFi team!
}

export interface Token {
Expand Down
11 changes: 11 additions & 0 deletions src/bridges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export enum BridgeTool {
avalanche = 'avalanche',
optimism = 'optimism',
across = 'across',
portal = 'portal',
}

export interface Bridge {
Expand Down Expand Up @@ -143,6 +144,16 @@ export const supportedBridges: Array<Bridge> = [
supportUrl: 'https://discord.gg/t4SZySkn',
docsUrl: 'https://docs.across.to/',
},
{
key: BridgeTool.portal,
name: 'Wormhole Portal',
logoURI:
'https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/bridges/wormhole_portal.png',
bridgeUrl: 'https://portalbridge.com/',
discordUrl: 'https://discord.com/invite/wormholecrypto',
supportUrl: 'https://discord.com/invite/wormholecrypto',
docsUrl: 'https://docs.wormholenetwork.com/wormhole/',
},
// {
// key: BridgeTool.,
// name: '',
Expand Down

0 comments on commit 0b813e3

Please sign in to comment.