Skip to content

Commit

Permalink
Merge pull request #320 from BitGo/WIN-188-cosmos-sidechains-wrw-support
Browse files Browse the repository at this point in the history


Win 188 cosmos sidechains wrw support
  • Loading branch information
DinshawKothari authored Aug 8, 2023
2 parents 4a87f31 + e9b5eaf commit e68a9b1
Show file tree
Hide file tree
Showing 7 changed files with 32,618 additions and 21,679 deletions.
29 changes: 22 additions & 7 deletions electron/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ process.env.PUBLIC = app.isPackaged
: join(process.env.DIST_ELECTRON, '../public');

/* eslint-disable @typescript-eslint/unbound-method */
import { Atom, Tatom } from '@bitgo-beta/sdk-coin-atom';
import { Bld, Tbld } from '@bitgo-beta/sdk-coin-bld';
import { Hash, Thash } from '@bitgo-beta/sdk-coin-hash';
import { Injective, Tinjective } from '@bitgo-beta/sdk-coin-injective';
import { Sei, Tsei } from '@bitgo-beta/sdk-coin-sei';
import { Tia, Ttia } from '@bitgo-beta/sdk-coin-tia';
import { AbstractUtxoCoin } from '@bitgo/abstract-utxo';
import { BitGoAPI } from '@bitgo/sdk-api';
import { Ada, Tada } from '@bitgo/sdk-coin-ada';
import { Atom, Tatom } from '@bitgo-beta/sdk-coin-atom';
import { Osmo, Tosmo } from '@bitgo/sdk-coin-osmo';
import { AvaxC, TavaxC } from '@bitgo/sdk-coin-avaxc';
import { Bch } from '@bitgo/sdk-coin-bch';
import { Bcha } from '@bitgo/sdk-coin-bcha';
Expand All @@ -24,20 +28,21 @@ import { Erc20Token, Eth, Gteth } from '@bitgo/sdk-coin-eth';
import { Ethw } from '@bitgo/sdk-coin-ethw';
import { Ltc } from '@bitgo/sdk-coin-ltc';
import { Near, TNear } from '@bitgo/sdk-coin-near';
import { Osmo, Tosmo } from '@bitgo/sdk-coin-osmo';
import { Polygon, Tpolygon } from '@bitgo/sdk-coin-polygon';
import { Sol, Tsol } from '@bitgo/sdk-coin-sol';
import { Trx, Ttrx } from '@bitgo/sdk-coin-trx';
import { Txlm, Xlm } from '@bitgo/sdk-coin-xlm';
import { Txrp, Xrp } from '@bitgo/sdk-coin-xrp';
import { Sol, Tsol } from '@bitgo/sdk-coin-sol';
import { Zec } from '@bitgo/sdk-coin-zec';
import * as ecc from 'tiny-secp256k1';
import { BaseCoin } from '@bitgo/sdk-core';
import assert from 'assert';
import BIP32Factory from 'bip32';
import { app, BrowserWindow, dialog, ipcMain, shell } from 'electron';
import { BrowserWindow, app, dialog, ipcMain, shell } from 'electron';
import fs from 'node:fs/promises';
import { release } from 'os';
import { join } from 'path';
import { BaseCoin } from '@bitgo/sdk-core';
import assert from 'assert';
import * as ecc from 'tiny-secp256k1';

const bip32 = BIP32Factory(ecc);

Expand Down Expand Up @@ -99,6 +104,16 @@ sdk.register('atom', Atom.createInstance);
sdk.register('tatom', Tatom.createInstance);
sdk.register('osmo', Osmo.createInstance);
sdk.register('tosmo', Tosmo.createInstance);
sdk.register('tia', Tia.createInstance);
sdk.register('ttia', Ttia.createInstance);
sdk.register('injective', Injective.createInstance);
sdk.register('tinjective', Tinjective.createInstance);
sdk.register('bld', Bld.createInstance);
sdk.register('tbld', Tbld.createInstance);
sdk.register('hash', Hash.createInstance);
sdk.register('thash', Thash.createInstance);
sdk.register('sei', Sei.createInstance);
sdk.register('tsei', Tsei.createInstance);
Erc20Token.createTokenConstructors().forEach(({ name, coinConstructor }) => {
sdk.register(name, coinConstructor);
});
Expand Down
Loading

0 comments on commit e68a9b1

Please sign in to comment.