From 7dfac000f1de9623b26921d5bd08df32b0500b9f Mon Sep 17 00:00:00 2001 From: Bhupendra Shekhawat Date: Wed, 31 Jul 2024 18:01:08 +0530 Subject: [PATCH] feat(etc): add non-bitgo recovery and unsigned sweep support for etc --- electron/main/index.ts | 3 + package-lock.json | 363 ++++++++++++++++++ package.json | 1 + scripts/build-icons.js | 1 + .../BuildUnsignedSweepCoin.tsx | 2 + .../NonBitGoRecoveryCoin.tsx | 2 + src/helpers/config.ts | 4 + 7 files changed, 376 insertions(+) diff --git a/electron/main/index.ts b/electron/main/index.ts index d598134b..d4aa3e17 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -31,6 +31,7 @@ import { Dot, Tdot } from '@bitgo/sdk-coin-dot'; import { Eos, Teos } from '@bitgo/sdk-coin-eos'; import { AbstractEthLikeNewCoins, Erc20Token, Eth, Hteth } from '@bitgo/sdk-coin-eth'; import { Ethw } from '@bitgo/sdk-coin-ethw'; +import { Etc, Tetc } from '@bitgo-beta/sdk-coin-etc'; import { Ltc } from '@bitgo/sdk-coin-ltc'; import { Near, TNear } from '@bitgo/sdk-coin-near'; import { Opeth, Topeth, OpethToken } from '@bitgo/sdk-coin-opeth'; @@ -82,6 +83,8 @@ sdk.register('tbtc', Tbtc.createInstance); sdk.register('eth', Eth.createInstance); sdk.register('hteth', Hteth.createInstance); sdk.register('ethw', Ethw.createInstance); +sdk.register('etc', Etc.createInstance); +sdk.register('tetc', Tetc.createInstance); sdk.register('eos', Eos.createInstance); sdk.register('teos', Teos.createInstance); sdk.register('xlm', Xlm.createInstance); diff --git a/package-lock.json b/package-lock.json index d9d24cdb..02444d46 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.0-placeholder-version", "license": "Apache-2.0", "dependencies": { + "@bitgo-beta/sdk-coin-etc": "1.2.3-alpha.173", "@bitgo/abstract-cosmos": "10.1.1", "@bitgo/abstract-utxo": "8.12.1", "@bitgo/sdk-api": "1.52.0", @@ -2197,6 +2198,368 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, + "node_modules/@bitgo-beta/abstract-eth": { + "version": "1.2.3-alpha.175", + "resolved": "https://registry.npmjs.org/@bitgo-beta/abstract-eth/-/abstract-eth-1.2.3-alpha.175.tgz", + "integrity": "sha512-j5s78IItQLk7Um0TVzlWz7uxjlKAnRgF1/64TdCaQWgiEPu3LfGBUEfvLGCF+/MZhuikPo9ZXCh7AAXKPjP0OA==", + "dependencies": { + "@bitgo-beta/sdk-core": "2.4.1-alpha.175", + "@bitgo-beta/sdk-lib-mpc": "8.2.1-alpha.130", + "@bitgo-beta/statics": "10.0.1-alpha.175", + "@bitgo-beta/utxo-lib": "4.0.1-alpha.175", + "@ethereumjs/common": "^2.6.5", + "@ethereumjs/tx": "^3.3.0", + "@metamask/eth-sig-util": "^5.0.2", + "bignumber.js": "^9.1.1", + "bn.js": "^5.2.1", + "debug": "^3.1.0", + "ethereumjs-abi": "^0.6.5", + "ethereumjs-util": "7.1.5", + "ethers": "^5.1.3", + "keccak": "^3.0.3", + "lodash": "4.17.21", + "secp256k1": "5.0.0", + "superagent": "^9.0.1" + }, + "engines": { + "node": ">=18 <21" + } + }, + "node_modules/@bitgo-beta/abstract-eth/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/@bitgo-beta/abstract-eth/node_modules/node-addon-api": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", + "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==" + }, + "node_modules/@bitgo-beta/abstract-eth/node_modules/secp256k1": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-5.0.0.tgz", + "integrity": "sha512-TKWX8xvoGHrxVdqbYeZM9w+izTF4b9z3NhSaDkdn81btvuh+ivbIMGT/zQvDtTFWhRlThpoz6LEYTr7n8A5GcA==", + "hasInstallScript": true, + "dependencies": { + "elliptic": "^6.5.4", + "node-addon-api": "^5.0.0", + "node-gyp-build": "^4.2.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@bitgo-beta/blake2b": { + "version": "3.2.1-alpha.175", + "resolved": "https://registry.npmjs.org/@bitgo-beta/blake2b/-/blake2b-3.2.1-alpha.175.tgz", + "integrity": "sha512-iroQkG4/jk7bvwupSVnpT0EteWC1OY1OJqJ/hZ0OjEcE8RlQhISYQZxREigfEzIv+wDxkD0w/4QhruENAIULeQ==", + "dependencies": { + "@bitgo-beta/blake2b-wasm": "3.2.1-alpha.176", + "nanoassert": "^2.0.0" + } + }, + "node_modules/@bitgo-beta/blake2b-wasm": { + "version": "3.2.1-alpha.176", + "resolved": "https://registry.npmjs.org/@bitgo-beta/blake2b-wasm/-/blake2b-wasm-3.2.1-alpha.176.tgz", + "integrity": "sha512-z55AO18zJ9bMtLkVGPA98uaxu2yvcUFwddjXAs1WD66TunLVy2W85ShhEKpZHoxKmc71KaOHx1A3D/bsBe+k9A==", + "dependencies": { + "nanoassert": "^1.0.0" + } + }, + "node_modules/@bitgo-beta/blake2b-wasm/node_modules/nanoassert": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/nanoassert/-/nanoassert-1.1.0.tgz", + "integrity": "sha512-C40jQ3NzfkP53NsO8kEOFd79p4b9kDXQMwgiY1z8ZwrDZgUyom0AHwGegF4Dm99L+YoYhuaB0ceerUcXmqr1rQ==" + }, + "node_modules/@bitgo-beta/bls-dkg": { + "version": "1.3.1-alpha.176", + "resolved": "https://registry.npmjs.org/@bitgo-beta/bls-dkg/-/bls-dkg-1.3.1-alpha.176.tgz", + "integrity": "sha512-CpNbLwGGNgY9PBNOpNfnwrhBEGHjhBf26hda7eYYX5xTj3KQTfBs29RFriIuJTFizTTeFTPd2tFR9fQDVyLBdw==", + "dependencies": { + "noble-bls12-381": "^0.7.2" + } + }, + "node_modules/@bitgo-beta/sdk-coin-etc": { + "version": "1.2.3-alpha.173", + "resolved": "https://registry.npmjs.org/@bitgo-beta/sdk-coin-etc/-/sdk-coin-etc-1.2.3-alpha.173.tgz", + "integrity": "sha512-mVdC5puUjFjKgmERR4y6GDkSwp9BvNrSWXJ75oJhan1Dw+Ohk5KGGBt/qzotz1qulMnYGR3bHT5yn7153cSWzQ==", + "dependencies": { + "@bitgo-beta/abstract-eth": "1.2.3-alpha.175", + "@bitgo-beta/sdk-coin-eth": "2.4.1-alpha.175", + "@bitgo-beta/sdk-core": "2.4.1-alpha.175", + "@bitgo-beta/statics": "10.0.1-alpha.175", + "@ethereumjs/common": "^2.6.5", + "ethereumjs-abi": "^0.6.5" + }, + "engines": { + "node": ">=18 <21" + } + }, + "node_modules/@bitgo-beta/sdk-coin-eth": { + "version": "2.4.1-alpha.175", + "resolved": "https://registry.npmjs.org/@bitgo-beta/sdk-coin-eth/-/sdk-coin-eth-2.4.1-alpha.175.tgz", + "integrity": "sha512-aUF8qzwBw+I7UbXjWsw8YrvFxu3p0+Ln3ijADjEmdrEk7ZidpISniiYMzII+IEUEhtLvX1WUqhO9NFmNHCbP2Q==", + "dependencies": { + "@bitgo-beta/abstract-eth": "1.2.3-alpha.175", + "@bitgo-beta/sdk-core": "2.4.1-alpha.175", + "@bitgo-beta/statics": "10.0.1-alpha.175", + "@bitgo-beta/utxo-lib": "4.0.1-alpha.175", + "@ethereumjs/tx": "^3.3.0", + "@ethereumjs/util": "8.0.3", + "bignumber.js": "^9.1.1", + "ethereumjs-abi": "^0.6.5", + "ethereumjs-util": "7.1.5", + "ethers": "^5.1.3", + "lodash": "^4.17.14", + "secp256k1": "5.0.0", + "superagent": "^9.0.1" + }, + "engines": { + "node": ">=18 <21" + } + }, + "node_modules/@bitgo-beta/sdk-coin-eth/node_modules/node-addon-api": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", + "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==" + }, + "node_modules/@bitgo-beta/sdk-coin-eth/node_modules/secp256k1": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-5.0.0.tgz", + "integrity": "sha512-TKWX8xvoGHrxVdqbYeZM9w+izTF4b9z3NhSaDkdn81btvuh+ivbIMGT/zQvDtTFWhRlThpoz6LEYTr7n8A5GcA==", + "hasInstallScript": true, + "dependencies": { + "elliptic": "^6.5.4", + "node-addon-api": "^5.0.0", + "node-gyp-build": "^4.2.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@bitgo-beta/sdk-core": { + "version": "2.4.1-alpha.175", + "resolved": "https://registry.npmjs.org/@bitgo-beta/sdk-core/-/sdk-core-2.4.1-alpha.175.tgz", + "integrity": "sha512-I33F72GY63ggavsLF5i8mANJgsP6qWblxjPExewbeWLMowNdUT9EvVdH3+cvBPzrvDGRbyu1lX1uPBkWReuKvA==", + "dependencies": { + "@bitgo-beta/bls-dkg": "1.3.1-alpha.176", + "@bitgo-beta/sdk-lib-mpc": "8.2.1-alpha.130", + "@bitgo-beta/sjcl": "1.0.1-alpha.124", + "@bitgo-beta/statics": "10.0.1-alpha.175", + "@bitgo-beta/utxo-lib": "4.0.1-alpha.175", + "@bitgo/public-types": "2.33.3", + "@noble/secp256k1": "1.6.3", + "@stablelib/hex": "^1.0.0", + "@types/elliptic": "^6.4.12", + "@types/superagent": "4.1.15", + "bech32": "^2.0.0", + "big.js": "^3.1.3", + "bigint-crypto-utils": "3.1.4", + "bignumber.js": "^9.1.1", + "bitcoinjs-message": "npm:@bitgo-forks/bitcoinjs-message@1.0.0-master.2", + "bolt11": "^1.4.0", + "bs58": "^4.0.1", + "create-hmac": "^1.1.7", + "debug": "^3.1.0", + "elliptic": "^6.5.2", + "ethereumjs-util": "7.1.5", + "fp-ts": "^2.12.2", + "io-ts": "2.1.3", + "io-ts-types": "0.5.16", + "keccak": "3.0.3", + "libsodium-wrappers-sumo": "^0.7.9", + "lodash": "^4.17.15", + "noble-bls12-381": "0.7.2", + "openpgp": "5.10.1", + "paillier-bigint": "3.3.0", + "secp256k1": "5.0.0", + "strip-hex-prefix": "^1.0.0", + "superagent": "^9.0.1", + "tweetnacl": "^1.0.3", + "uuid": "^8.3.2" + } + }, + "node_modules/@bitgo-beta/sdk-core/node_modules/@bitgo/public-types": { + "version": "2.33.3", + "resolved": "https://registry.npmjs.org/@bitgo/public-types/-/public-types-2.33.3.tgz", + "integrity": "sha512-yPsrMRx+bgLYvFGu6mlIXuZ5cdOoqv3pVcShlHUsRnngLdd0BSq9U11MN6zjKVCFHYIFKsnxoGKUpopuRn06jQ==", + "dependencies": { + "@api-ts/io-ts-http": "1.0.0", + "fp-ts": "2.16.2", + "io-ts": "2.1.3", + "io-ts-types": "0.5.16", + "monocle-ts": "2.3.13", + "newtype-ts": "0.3.5" + } + }, + "node_modules/@bitgo-beta/sdk-core/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/@bitgo-beta/sdk-core/node_modules/fp-ts": { + "version": "2.16.2", + "resolved": "https://registry.npmjs.org/fp-ts/-/fp-ts-2.16.2.tgz", + "integrity": "sha512-CkqAjnIKFqvo3sCyoBTqgJvF+bHrSik584S9nhTjtBESLx26cbtVMR/T9a6ApChOcSDAaM3JydDmWDUn4EEXng==" + }, + "node_modules/@bitgo-beta/sdk-core/node_modules/keccak": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.3.tgz", + "integrity": "sha512-JZrLIAJWuZxKbCilMpNz5Vj7Vtb4scDG3dMXLOsbzBmQGyjwE61BbW7bJkfKKCShXiQZt3T6sBgALRtmd+nZaQ==", + "hasInstallScript": true, + "dependencies": { + "node-addon-api": "^2.0.0", + "node-gyp-build": "^4.2.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/@bitgo-beta/sdk-core/node_modules/node-addon-api": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-2.0.2.tgz", + "integrity": "sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA==" + }, + "node_modules/@bitgo-beta/sdk-core/node_modules/secp256k1": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-5.0.0.tgz", + "integrity": "sha512-TKWX8xvoGHrxVdqbYeZM9w+izTF4b9z3NhSaDkdn81btvuh+ivbIMGT/zQvDtTFWhRlThpoz6LEYTr7n8A5GcA==", + "hasInstallScript": true, + "dependencies": { + "elliptic": "^6.5.4", + "node-addon-api": "^5.0.0", + "node-gyp-build": "^4.2.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@bitgo-beta/sdk-core/node_modules/secp256k1/node_modules/node-addon-api": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", + "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==" + }, + "node_modules/@bitgo-beta/sdk-lib-mpc": { + "version": "8.2.1-alpha.130", + "resolved": "https://registry.npmjs.org/@bitgo-beta/sdk-lib-mpc/-/sdk-lib-mpc-8.2.1-alpha.130.tgz", + "integrity": "sha512-CtU4pag+4hvnB92vvHv46Qaq7fCh12HilvOTZ9dcKqU5HdhCDGow4p4UWLSiIP7ui0oR3y4O9R/+AbYDvw2/qQ==", + "dependencies": { + "@noble/curves": "1.4.0", + "@silencelaboratories/dkls-wasm-ll-node": "1.1.2", + "@silencelaboratories/dkls-wasm-ll-web": "1.1.2", + "@types/superagent": "4.1.15", + "@wasmer/wasi": "^1.2.2", + "bigint-crypto-utils": "3.1.4", + "bigint-mod-arith": "3.1.2", + "cbor-x": "1.5.9", + "fp-ts": "2.16.2", + "io-ts": "2.1.3", + "libsodium-wrappers-sumo": "^0.7.9", + "openpgp": "5.10.1", + "paillier-bigint": "3.3.0", + "secp256k1": "5.0.0" + }, + "peerDependencies": { + "@silencelaboratories/dkls-wasm-ll-bundler": "1.1.2" + }, + "peerDependenciesMeta": { + "@silencelaboratories/dkls-wasm-ll-bundler": { + "optional": true + } + } + }, + "node_modules/@bitgo-beta/sdk-lib-mpc/node_modules/@noble/curves": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.0.tgz", + "integrity": "sha512-p+4cb332SFCrReJkCYe8Xzm0OWi4Jji5jVdIZRL/PmacmDkFNw6MrrV+gGpiPxLHbV+zKFRywUWbaseT+tZRXg==", + "dependencies": { + "@noble/hashes": "1.4.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@bitgo-beta/sdk-lib-mpc/node_modules/@noble/hashes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@bitgo-beta/sdk-lib-mpc/node_modules/fp-ts": { + "version": "2.16.2", + "resolved": "https://registry.npmjs.org/fp-ts/-/fp-ts-2.16.2.tgz", + "integrity": "sha512-CkqAjnIKFqvo3sCyoBTqgJvF+bHrSik584S9nhTjtBESLx26cbtVMR/T9a6ApChOcSDAaM3JydDmWDUn4EEXng==" + }, + "node_modules/@bitgo-beta/sdk-lib-mpc/node_modules/node-addon-api": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", + "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==" + }, + "node_modules/@bitgo-beta/sdk-lib-mpc/node_modules/secp256k1": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-5.0.0.tgz", + "integrity": "sha512-TKWX8xvoGHrxVdqbYeZM9w+izTF4b9z3NhSaDkdn81btvuh+ivbIMGT/zQvDtTFWhRlThpoz6LEYTr7n8A5GcA==", + "hasInstallScript": true, + "dependencies": { + "elliptic": "^6.5.4", + "node-addon-api": "^5.0.0", + "node-gyp-build": "^4.2.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@bitgo-beta/sjcl": { + "version": "1.0.1-alpha.124", + "resolved": "https://registry.npmjs.org/@bitgo-beta/sjcl/-/sjcl-1.0.1-alpha.124.tgz", + "integrity": "sha512-CuFTxL522PSs41UxP4HNoiWH0RWC2for8bbpB4HOQApuGbgCPP0ntVA7H+HQSi2P/ANaRijjm3AupwbQA9/2JA==" + }, + "node_modules/@bitgo-beta/statics": { + "version": "10.0.1-alpha.175", + "resolved": "https://registry.npmjs.org/@bitgo-beta/statics/-/statics-10.0.1-alpha.175.tgz", + "integrity": "sha512-o568sOz3+ct59vTBqKMCItdaWrYGKHGUcz5GE+8D5OS65CS5TgWqnMzYoCdLAVRczh2PwLemfvoIu4CJb6V55g==" + }, + "node_modules/@bitgo-beta/utxo-lib": { + "version": "4.0.1-alpha.175", + "resolved": "https://registry.npmjs.org/@bitgo-beta/utxo-lib/-/utxo-lib-4.0.1-alpha.175.tgz", + "integrity": "sha512-Y9RxR6JbQvxpQ2JvqlzqBL6CMEkE3nd2LtcaYW0PDUfzDi0dFHGUINqAXZuGCA7SFVE4JCHc53C7yuy4nfSUKw==", + "dependencies": { + "@bitgo-beta/blake2b": "3.2.1-alpha.175", + "@brandonblack/musig": "^0.0.1-alpha.0", + "@noble/secp256k1": "1.6.3", + "bech32": "^2.0.0", + "bip174": "npm:@bitgo-forks/bip174@3.1.0-master.4", + "bip32": "^3.0.1", + "bitcoin-ops": "^1.3.0", + "bitcoinjs-lib": "npm:@bitgo-forks/bitcoinjs-lib@7.1.0-master.9", + "bn.js": "^5.2.1", + "bs58check": "^2.1.2", + "cashaddress": "^1.1.0", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "ecpair": "npm:@bitgo/ecpair@2.1.0-rc.0", + "elliptic": "^6.5.2", + "fastpriorityqueue": "^0.7.1", + "typeforce": "^1.11.3", + "varuint-bitcoin": "^1.1.2" + }, + "engines": { + "node": ">=10.22.0 <21", + "npm": ">=3.10.10" + } + }, "node_modules/@bitgo-forks/avalanchejs": { "version": "4.1.0-alpha.1", "resolved": "https://registry.npmjs.org/@bitgo-forks/avalanchejs/-/avalanchejs-4.1.0-alpha.1.tgz", diff --git a/package.json b/package.json index 8ffb0b9b..7818c22e 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "@bitgo/sdk-coin-xrp": "2.1.11", "@bitgo/sdk-coin-zec": "2.0.30", "@bitgo/sdk-coin-zeta": "2.0.30", + "@bitgo-beta/sdk-coin-etc": "1.2.3-alpha.173", "@bitgo/utxo-lib": "10.1.0", "@ethereumjs/common": "2.6.5", "@lottiefiles/react-lottie-player": "3.4.9", diff --git a/scripts/build-icons.js b/scripts/build-icons.js index 09573f67..bdddb662 100644 --- a/scripts/build-icons.js +++ b/scripts/build-icons.js @@ -13,6 +13,7 @@ const coins = [ 'zec', 'btg', 'eth', + 'etc', 'trx', 'bsv', 'eos', diff --git a/src/containers/BuildUnsignedSweepCoin/BuildUnsignedSweepCoin.tsx b/src/containers/BuildUnsignedSweepCoin/BuildUnsignedSweepCoin.tsx index 2acdfb34..8689fcf0 100644 --- a/src/containers/BuildUnsignedSweepCoin/BuildUnsignedSweepCoin.tsx +++ b/src/containers/BuildUnsignedSweepCoin/BuildUnsignedSweepCoin.tsx @@ -112,6 +112,8 @@ function Form() { ); case 'eth': case 'hteth': + case 'etc': + case 'tetc': case 'arbeth': case 'tarbeth': case 'opeth': diff --git a/src/containers/NonBitGoRecoveryCoin/NonBitGoRecoveryCoin.tsx b/src/containers/NonBitGoRecoveryCoin/NonBitGoRecoveryCoin.tsx index c3c6c0b0..3225c16d 100644 --- a/src/containers/NonBitGoRecoveryCoin/NonBitGoRecoveryCoin.tsx +++ b/src/containers/NonBitGoRecoveryCoin/NonBitGoRecoveryCoin.tsx @@ -332,6 +332,8 @@ function Form() { ); case 'eth': case 'hteth': + case 'etc': + case 'tetc': case 'arbeth': case 'tarbeth': case 'opeth': diff --git a/src/helpers/config.ts b/src/helpers/config.ts index d96494c0..9a2e1499 100644 --- a/src/helpers/config.ts +++ b/src/helpers/config.ts @@ -618,6 +618,7 @@ export const buildUnsignedSweepCoins: Record< allCoinMetas.zec, allCoinMetas.btg, allCoinMetas.eth, + allCoinMetas.etc, allCoinMetas.ethw, allCoinMetas.erc20, allCoinMetas.trx, @@ -646,6 +647,7 @@ export const buildUnsignedSweepCoins: Record< allCoinMetas.txrp, allCoinMetas.txlm, allCoinMetas.hteth, + allCoinMetas.tetc, allCoinMetas.hterc20, allCoinMetas.ttrx, allCoinMetas.ttrxToken, @@ -681,6 +683,7 @@ export const nonBitgoRecoveryCoins: Record = allCoinMetas.zec, allCoinMetas.btg, allCoinMetas.eth, + allCoinMetas.etc, allCoinMetas.ethw, allCoinMetas.erc20, allCoinMetas.trx, @@ -719,6 +722,7 @@ export const nonBitgoRecoveryCoins: Record = allCoinMetas.txrp, allCoinMetas.txlm, allCoinMetas.hteth, + allCoinMetas.tetc, allCoinMetas.hterc20, allCoinMetas.ttrx, allCoinMetas.ttrxToken,