Skip to content

Commit cad0700

Browse files
chore(root): publish modules
- @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - [email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected] - @bitgo/[email protected]
2 parents 9569b0a + 5cdf191 commit cad0700

File tree

248 files changed

+3214
-1645
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+3214
-1645
lines changed

CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
/modules/sdk-coin-ethlike/ @BitGo/ethalt-team
6767
/modules/sdk-coin-hbar/ @BitGo/ethalt-team
6868
/modules/sdk-coin-icp/ @BitGo/ethalt-team
69+
/modules/sdk-coin-mantra/ @BitGo/ethalt-team
6970
/modules/sdk-coin-near/ @BitGo/ethalt-team
7071
/modules/sdk-coin-oas/ @BitGo/ethalt-team
7172
/modules/sdk-coin-opeth/ @BitGo/ethalt-team
@@ -85,6 +86,9 @@
8586
/modules/sdk-coin-xtz/ @BitGo/ethalt-team
8687
/modules/sdk-coin-zketh/ @BitGo/ethalt-team
8788

89+
# Examples
90+
/examples/ @BitGo/ethalt-team
91+
8892
# Trade
8993
/modules/sdk-core/src/bitgo/address-book/ @BitGo/prime
9094
/modules/sdk-core/src/bitgo/trading/ @BitGo/prime

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ COPY --from=builder /tmp/bitgo/modules/sdk-coin-hbar /var/modules/sdk-coin-hbar/
8383
COPY --from=builder /tmp/bitgo/modules/sdk-coin-icp /var/modules/sdk-coin-icp/
8484
COPY --from=builder /tmp/bitgo/modules/sdk-coin-injective /var/modules/sdk-coin-injective/
8585
COPY --from=builder /tmp/bitgo/modules/sdk-coin-islm /var/modules/sdk-coin-islm/
86+
COPY --from=builder /tmp/bitgo/modules/sdk-coin-mantra /var/modules/sdk-coin-mantra/
8687
COPY --from=builder /tmp/bitgo/modules/sdk-coin-near /var/modules/sdk-coin-near/
8788
COPY --from=builder /tmp/bitgo/modules/sdk-coin-oas /var/modules/sdk-coin-oas/
8889
COPY --from=builder /tmp/bitgo/modules/sdk-coin-opeth /var/modules/sdk-coin-opeth/
@@ -168,6 +169,7 @@ cd /var/modules/sdk-coin-hbar && yarn link && \
168169
cd /var/modules/sdk-coin-icp && yarn link && \
169170
cd /var/modules/sdk-coin-injective && yarn link && \
170171
cd /var/modules/sdk-coin-islm && yarn link && \
172+
cd /var/modules/sdk-coin-mantra && yarn link && \
171173
cd /var/modules/sdk-coin-near && yarn link && \
172174
cd /var/modules/sdk-coin-oas && yarn link && \
173175
cd /var/modules/sdk-coin-opeth && yarn link && \
@@ -256,6 +258,7 @@ RUN cd /var/bitgo-express && \
256258
yarn link @bitgo/sdk-coin-icp && \
257259
yarn link @bitgo/sdk-coin-injective && \
258260
yarn link @bitgo/sdk-coin-islm && \
261+
yarn link @bitgo/sdk-coin-mantra && \
259262
yarn link @bitgo/sdk-coin-near && \
260263
yarn link @bitgo/sdk-coin-oas && \
261264
yarn link @bitgo/sdk-coin-opeth && \

examples/ts/apt/fund-forwarders.ts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/**
2+
* Send funds from a gas tank to a BitGo wallet's receive address.
3+
*
4+
* Copyright 2025, BitGo, Inc. All Rights Reserved.
5+
*/
6+
import { BitGoAPI } from '@bitgo/sdk-api';
7+
import { Tapt } from '@bitgo/sdk-coin-apt';
8+
import { FundForwarderParams } from '@bitgo/sdk-core';
9+
10+
const bitgo = new BitGoAPI({
11+
accessToken: '<access token>',
12+
env: 'test',
13+
});
14+
15+
const coin = 'tapt';
16+
bitgo.register(coin, Tapt.createInstance);
17+
18+
const walletId = '<wallet id>';
19+
20+
async function main() {
21+
bitgo.unlock({ otp: '000000' });
22+
const walletInstance = await bitgo.coin(coin).wallets().get({ id: walletId });
23+
24+
const fundForwarderParams: FundForwarderParams = {
25+
forwarders: [
26+
{
27+
forwarderAddress: '<forwarder address>',
28+
amount: '<amount>' // optional field
29+
},
30+
],
31+
}
32+
33+
const response = await walletInstance.fundForwarders(fundForwarderParams);
34+
console.log('Response', response);
35+
}
36+
37+
main().catch((e) => console.error(e));

examples/ts/btc/deprecated/custodialLightning/check-lightning-balance.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

examples/ts/btc/deprecated/custodialLightning/create-lightning-invoice.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

examples/ts/btc/deprecated/custodialLightning/make-lightning-deposit.ts

Lines changed: 0 additions & 35 deletions
This file was deleted.

examples/ts/btc/deprecated/custodialLightning/make-lightning-payment.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

examples/ts/btc/deprecated/custodialLightning/pay-lnurl-request.ts

Lines changed: 0 additions & 44 deletions
This file was deleted.

examples/ts/btc/deprecated/custodialLightning/withdraw-lightning-balance.ts

Lines changed: 0 additions & 35 deletions
This file was deleted.

examples/ts/eth/fund-forwarder.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { FundForwarderParams } from "@bitgo/sdk-core";
2+
13
/**
24
* Send funds from a fee address to a forwarder.
35
*
@@ -28,12 +30,16 @@ async function fundForwarder() {
2830
bitgo.authenticateWithAccessToken({ accessToken });
2931
const wallet = await bitgo.coin(coin).wallets().get({ id: walletId });
3032

31-
const fundForwarderOptions = {
32-
forwarderAddress: forwarderAddress,
33-
amount: amount,
34-
};
33+
const fundForwarderParams: FundForwarderParams = {
34+
forwarders: [
35+
{
36+
forwarderAddress,
37+
amount, // optional field
38+
},
39+
],
40+
}
3541

36-
const response = await wallet.fundForwarder(fundForwarderOptions);
42+
const response = await wallet.fundForwarders(fundForwarderParams);
3743
console.log('Response', response);
3844
}
3945

0 commit comments

Comments
 (0)