We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f716375 + 8961b05 commit 18a0facCopy full SHA for 18a0fac
ETC.md
@@ -23,7 +23,7 @@ Create a new file called `broadcastETCTransaction.js`
23
and add the following script:
24
25
```js
26
-const axios = require('axios');
+import axios from 'axios';
27
28
// Replace with your API key
29
const apiKey = 'your-api-key-here';
electron/main/index.ts
@@ -31,6 +31,7 @@ import { Dot, Tdot } from '@bitgo/sdk-coin-dot';
31
import { Eos, Teos } from '@bitgo/sdk-coin-eos';
32
import { AbstractEthLikeNewCoins, Erc20Token, Eth, Hteth } from '@bitgo/sdk-coin-eth';
33
import { Ethw } from '@bitgo/sdk-coin-ethw';
34
+import { Etc, Tetc } from '@bitgo/sdk-coin-etc';
35
import { Ltc } from '@bitgo/sdk-coin-ltc';
36
import { Near, TNear } from '@bitgo/sdk-coin-near';
37
import { Opeth, Topeth, OpethToken } from '@bitgo/sdk-coin-opeth';
@@ -83,6 +84,8 @@ sdk.register('tbtc', Tbtc.createInstance);
83
84
sdk.register('eth', Eth.createInstance);
85
sdk.register('hteth', Hteth.createInstance);
86
sdk.register('ethw', Ethw.createInstance);
87
+sdk.register('etc', Etc.createInstance);
88
+sdk.register('tetc', Tetc.createInstance);
89
sdk.register('eos', Eos.createInstance);
90
sdk.register('teos', Teos.createInstance);
91
sdk.register('xlm', Xlm.createInstance);
package-lock.json
package.json
@@ -29,6 +29,7 @@
"@bitgo/sdk-coin-doge": "2.0.32",
30
"@bitgo/sdk-coin-dot": "4.1.10",
"@bitgo/sdk-coin-eos": "2.1.25",
+ "@bitgo/sdk-coin-etc": "2.2.0",
"@bitgo/sdk-coin-eth": "24.2.21",
"@bitgo/sdk-coin-ethlike": "1.1.13",
"@bitgo/sdk-coin-ethw": "20.0.32",
scripts/build-icons.js
@@ -13,6 +13,7 @@ const coins = [
13
'zec',
14
'btg',
15
'eth',
16
+ 'etc',
17
'trx',
18
'bsv',
19
'eos',
src/containers/BuildUnsignedSweepCoin/BuildUnsignedSweepCoin.tsx
@@ -2,7 +2,7 @@ import { useNavigate, useParams } from 'react-router-dom';
2
import { CoinsSelectAutocomplete } from '~/components';
3
import { useAlertBanner } from '~/contexts';
4
import {
5
- assert,
+ assert, getEip1559Params,
6
getEthLikeRecoveryChainId,
7
getTokenChain,
8
includePubsFor,
@@ -112,6 +112,8 @@ function Form() {
112
);
113
case 'eth':
114
case 'hteth':
115
+ case 'etc':
116
+ case 'tetc':
117
case 'arbeth':
118
case 'tarbeth':
119
case 'opeth':
@@ -135,10 +137,7 @@ function Form() {
135
137
await updateKeysFromIds(coin, values);
136
138
const recoverData = await window.commands.recover(coin, {
139
...rest,
- eip1559: {
- maxFeePerGas: toWei(maxFeePerGas),
140
- maxPriorityFeePerGas: toWei(maxPriorityFeePerGas),
141
- },
+ eip1559: getEip1559Params(coin, maxFeePerGas, maxPriorityFeePerGas),
142
replayProtectionOptions: {
143
chain: getEthLikeRecoveryChainId(coin, bitGoEnvironment),
144
hardfork: 'london',
src/containers/NonBitGoRecoveryCoin/NonBitGoRecoveryCoin.tsx
@@ -332,6 +332,8 @@ function Form() {
332
333
334
335
336
337
338
339
src/helpers/config.ts
@@ -632,6 +632,7 @@ export const buildUnsignedSweepCoins: Record<
632
allCoinMetas.zec,
633
allCoinMetas.btg,
634
allCoinMetas.eth,
635
+ allCoinMetas.etc,
636
allCoinMetas.ethw,
637
allCoinMetas.erc20,
638
allCoinMetas.trx,
@@ -661,6 +662,7 @@ export const buildUnsignedSweepCoins: Record<
661
662
allCoinMetas.txrp,
663
allCoinMetas.txlm,
664
allCoinMetas.hteth,
665
+ allCoinMetas.tetc,
666
allCoinMetas.hterc20,
667
allCoinMetas.ttrx,
668
allCoinMetas.ttrxToken,
@@ -697,6 +699,7 @@ export const nonBitgoRecoveryCoins: Record<BitgoEnv, readonly CoinMetadata[]> =
697
699
698
700
701
702
703
704
705
@@ -736,6 +739,7 @@ export const nonBitgoRecoveryCoins: Record<BitgoEnv, readonly CoinMetadata[]> =
736
739
737
740
738
741
742
743
744
745
src/helpers/index.ts
@@ -260,9 +260,13 @@ export function isBscChain(coin: string) {
260
return (coin === 'bsc' || coin === 'tbsc')
261
}
262
263
+export function isEtcChain(coin: string) {
264
+ return (coin === 'etc' || coin === 'tetc')
265
+}
266
+
267
export function getEip1559Params(coin: string, maxFeePerGas: number, maxPriorityFeePerGas: number) {
- // bsc and tbsc doesn't support EIP-1559
- if (isBscChain(coin)) {
268
+ // bsc/tbsc and etc/tetc doesn't support EIP-1559
269
+ if (isBscChain(coin) || isEtcChain(coin)) {
270
return undefined;
271
272
return {
0 commit comments