Skip to content

Commit 4f357bc

Browse files
authored
Merge pull request #6085 from BitGo/COIN-3996-fetch-sdk-cosmos-batch
feat(sdk-coin-fetch): add SDK Skeleton for Fetch
2 parents ad6eef7 + 2990b21 commit 4f357bc

29 files changed

+434
-0
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
/modules/sdk-coin-cspr/ @BitGo/ethalt-team
6262
/modules/sdk-coin-dot/ @BitGo/ethalt-team
6363
/modules/sdk-coin-eos/ @BitGo/ethalt-team
64+
/modules/sdk-coin-fetch/ @BitGo/ethalt-team
6465
/modules/sdk-coin-flr/ @BitGo/ethalt-team
6566
/modules/sdk-coin-ethlike/ @BitGo/ethalt-team
6667
/modules/sdk-coin-hbar/ @BitGo/ethalt-team

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ COPY --from=builder /tmp/bitgo/modules/sdk-coin-cronos /var/modules/sdk-coin-cro
7676
COPY --from=builder /tmp/bitgo/modules/sdk-coin-cspr /var/modules/sdk-coin-cspr/
7777
COPY --from=builder /tmp/bitgo/modules/sdk-coin-dot /var/modules/sdk-coin-dot/
7878
COPY --from=builder /tmp/bitgo/modules/sdk-coin-etc /var/modules/sdk-coin-etc/
79+
COPY --from=builder /tmp/bitgo/modules/sdk-coin-fetch /var/modules/sdk-coin-fetch/
7980
COPY --from=builder /tmp/bitgo/modules/sdk-coin-flr /var/modules/sdk-coin-flr/
8081
COPY --from=builder /tmp/bitgo/modules/sdk-coin-hash /var/modules/sdk-coin-hash/
8182
COPY --from=builder /tmp/bitgo/modules/sdk-coin-hbar /var/modules/sdk-coin-hbar/
@@ -166,6 +167,7 @@ cd /var/modules/sdk-coin-cronos && yarn link && \
166167
cd /var/modules/sdk-coin-cspr && yarn link && \
167168
cd /var/modules/sdk-coin-dot && yarn link && \
168169
cd /var/modules/sdk-coin-etc && yarn link && \
170+
cd /var/modules/sdk-coin-fetch && yarn link && \
169171
cd /var/modules/sdk-coin-flr && yarn link && \
170172
cd /var/modules/sdk-coin-hash && yarn link && \
171173
cd /var/modules/sdk-coin-hbar && yarn link && \
@@ -259,6 +261,7 @@ RUN cd /var/bitgo-express && \
259261
yarn link @bitgo/sdk-coin-cspr && \
260262
yarn link @bitgo/sdk-coin-dot && \
261263
yarn link @bitgo/sdk-coin-etc && \
264+
yarn link @bitgo/sdk-coin-fetch && \
262265
yarn link @bitgo/sdk-coin-flr && \
263266
yarn link @bitgo/sdk-coin-hash && \
264267
yarn link @bitgo/sdk-coin-hbar && \

modules/account-lib/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"@bitgo/sdk-coin-dot": "^4.1.56",
4646
"@bitgo/sdk-coin-etc": "^2.2.45",
4747
"@bitgo/sdk-coin-eth": "^24.4.1",
48+
"@bitgo/sdk-coin-fetch": "^1.0.0",
4849
"@bitgo/sdk-coin-flr": "^1.2.2",
4950
"@bitgo/sdk-coin-hash": "^3.0.47",
5051
"@bitgo/sdk-coin-hbar": "^2.0.78",

modules/account-lib/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ export { Mantra };
113113
import * as Cronos from '@bitgo/sdk-coin-cronos';
114114
export { Cronos };
115115

116+
import * as Fetch from '@bitgo/sdk-coin-fetch';
117+
export { Fetch };
118+
116119
import * as Sol from '@bitgo/sdk-coin-sol';
117120
export { Sol };
118121

@@ -263,6 +266,8 @@ const coinBuilderMap = {
263266
tbaby: Baby.TransactionBuilder,
264267
cronos: Cronos.TransactionBuilder,
265268
tcronos: Cronos.TransactionBuilder,
269+
fetch: Fetch.TransactionBuilder,
270+
tfetch: Fetch.TransactionBuilder,
266271
flr: Flr.TransactionBuilder,
267272
tflr: Flr.TransactionBuilder,
268273
sgb: Sgb.TransactionBuilder,

modules/bitgo/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
"@bitgo/sdk-coin-eth": "^24.4.1",
7979
"@bitgo/sdk-coin-ethlike": "^1.2.13",
8080
"@bitgo/sdk-coin-ethw": "^20.0.78",
81+
"@bitgo/sdk-coin-fetch": "^1.0.0",
8182
"@bitgo/sdk-coin-flr": "^1.2.2",
8283
"@bitgo/sdk-coin-hash": "^3.0.47",
8384
"@bitgo/sdk-coin-hbar": "^2.0.78",

modules/bitgo/src/v2/coinFactory.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ import {
4747
Eth,
4848
Ethw,
4949
EthLikeCoin,
50+
Fetch,
5051
Flr,
5152
TethLikeCoin,
5253
FiatAED,
@@ -117,6 +118,7 @@ import {
117118
Teos,
118119
Tetc,
119120
Teth,
121+
Tfetch,
120122
Tflr,
121123
Tmon,
122124
TfiatAED,
@@ -211,6 +213,7 @@ function registerCoinConstructors(globalCoinFactory: CoinFactory): void {
211213
globalCoinFactory.register('fiatgbp', FiatGBP.createInstance);
212214
globalCoinFactory.register('fiatsgd', FiatSGD.createInstance);
213215
globalCoinFactory.register('fiatusd', FiatUsd.createInstance);
216+
globalCoinFactory.register('fetch', Fetch.createInstance);
214217
globalCoinFactory.register('flr', Flr.createInstance);
215218
globalCoinFactory.register('gteth', Gteth.createInstance);
216219
globalCoinFactory.register('hash', Hash.createInstance);
@@ -277,6 +280,7 @@ function registerCoinConstructors(globalCoinFactory: CoinFactory): void {
277280
globalCoinFactory.register('tfiatgbp', TfiatGBP.createInstance);
278281
globalCoinFactory.register('tfiatsgd', TfiatSGD.createInstance);
279282
globalCoinFactory.register('tfiatusd', TfiatUsd.createInstance);
283+
globalCoinFactory.register('tfetch', Tfetch.createInstance);
280284
globalCoinFactory.register('tflr', Tflr.createInstance);
281285
globalCoinFactory.register('tmon', Tmon.createInstance);
282286
globalCoinFactory.register('thash', Thash.createInstance);

modules/bitgo/src/v2/coins/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { Dot, Tdot } from '@bitgo/sdk-coin-dot';
2727
import { Eos, EosToken, Teos } from '@bitgo/sdk-coin-eos';
2828
import { Etc, Tetc } from '@bitgo/sdk-coin-etc';
2929
import { Erc20Token, Eth, Gteth, Hteth, Teth } from '@bitgo/sdk-coin-eth';
30+
import { Fetch, Tfetch } from '@bitgo/sdk-coin-fetch';
3031
import { Flr, Tflr } from '@bitgo/sdk-coin-flr';
3132
import { Ethw } from '@bitgo/sdk-coin-ethw';
3233
import { EthLikeCoin, TethLikeCoin } from '@bitgo/sdk-coin-ethlike';
@@ -97,6 +98,7 @@ export { Erc20Token, Eth, Gteth, Hteth, Teth };
9798
export { Ethw };
9899
export { EthLikeCoin, TethLikeCoin };
99100
export { Etc, Tetc };
101+
export { Fetch, Tfetch };
100102
export { Flr, Tflr };
101103
export { Hash, Thash };
102104
export { Hbar, Thbar };

modules/bitgo/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@
146146
{
147147
"path": "../sdk-coin-ethw"
148148
},
149+
{
150+
"path": "../sdk-coin-fetch"
151+
},
149152
{
150153
"path": "../sdk-coin-flr"
151154
},
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
.idea
3+
public
4+
dist

modules/sdk-coin-fetch/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
.idea/
3+
dist/

0 commit comments

Comments
 (0)