Skip to content

Commit b10ac05

Browse files
committed
chore(sdk-coin-bera): add bera Cartio testnet
Ticket: WIN-4388
1 parent 5e27a5c commit b10ac05

File tree

8 files changed

+21
-134
lines changed

8 files changed

+21
-134
lines changed

modules/sdk-coin-bera/src/lib/resources.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { coins, EthereumNetwork } from '@bitgo/statics';
33

44
export const testnetCommon = EthereumCommon.custom(
55
{
6-
name: 'Berachain bArtio',
6+
name: 'Berachain cArtio',
77
networkId: (coins.get('tbera').network as EthereumNetwork).chainId,
88
chainId: (coins.get('tbera').network as EthereumNetwork).chainId,
99
},

modules/sdk-coin-bera/test/resources.ts

Lines changed: 8 additions & 10 deletions
Large diffs are not rendered by default.

modules/sdk-coin-bera/test/unit/bera.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe('Bera', function () {
8888
bera.should.be.an.instanceof(Bera);
8989
bera.getChain().should.equal('bera');
9090
bera.getFamily().should.equal('bera');
91-
bera.getFullName().should.equal('berachain');
91+
bera.getFullName().should.equal('Bera');
9292
bera.getBaseFactor().should.equal(1e18);
9393
});
9494

modules/sdk-coin-bera/test/unit/transactionBuilder/addressInitialization.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('Bera address initialization', () => {
4848
txBuilder.sign({ key: testData.KEYPAIR_PRV.getKeys().prv });
4949
const tx = await txBuilder.build();
5050
const txJson = tx.toJson();
51-
should.equal(txJson.deployedAddress, '0xfaa32fa9edbc6fd8bdfc765c218fe8f83267c6da');
51+
should.equal(txJson.deployedAddress, '0xd9d189aa6907a4fafd3c66e8cc178011b1f443f5');
5252
should.equal(txJson.to, testData.FORWARDER_FACTORY_ADDRESS);
5353
});
5454

modules/sdk-coin-bera/test/unit/transactionBuilder/send.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('Bera transaction builder send', () => {
4040
txBuilder.sign({ key: testData.PRIVATE_KEY_1 });
4141
const tx = await txBuilder.build();
4242

43-
should.equal(tx.toJson().chainId, 0x138d4);
43+
should.equal(tx.toJson().chainId, 0x13880);
4444
should.equal(tx.toBroadcastFormat(), testData.SEND_TX_BROADCAST_LEGACY);
4545
should.equal(tx.signature.length, 2);
4646
should.equal(tx.inputs.length, 1);

modules/sdk-coin-bera/test/unit/transactionBuilder/walletInitialization.ts

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

modules/statics/src/coins.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ export const coins = CoinMap.fromCoins([
13841384
account(
13851385
'ac3c225e-55a9-4236-b907-a4cccc30a2fd',
13861386
'bera',
1387-
'berachain',
1387+
'Bera',
13881388
Networks.main.bera,
13891389
18,
13901390
UnderlyingAsset.BERA,

modules/statics/src/networks.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,16 +1090,14 @@ class Berachain extends Mainnet implements EthereumNetwork {
10901090
class BerachainTestnet extends Testnet implements EthereumNetwork {
10911091
name = 'BerachainTestnet';
10921092
family = CoinFamily.BERA;
1093-
explorerUrl = 'https://bartio.beratrail.io/tx/';
1094-
accountExplorerUrl = 'https://bartio.beratrail.io/address/';
1095-
chainId = 80084;
1096-
nativeCoinOperationHashPrefix = '80084';
1097-
tokenOperationHashPrefix = '80084-ERC20';
1098-
forwarderFactoryAddress = '0xccadf4198de4957d07d80673684ed19310579fc4';
1099-
forwarderImplementationAddress = '0xc75fb848eb0bb04e3faedbee0fc8144e8d62b83d';
1100-
walletFactoryAddress = '0x6e4a83086c6dd9fbce203c1ebb69eda1aba872d7';
1101-
walletImplementationAddress = '0xb8d48d310818b15a6960f9afbef49dc96d2bd2d3';
1102-
batcherContractAddress = '0xf499549720116c3dEA867D4fC279C43aCA172712';
1093+
explorerUrl = 'https://80000.testnet.routescan.io/tx/';
1094+
accountExplorerUrl = 'https://80000.testnet.routescan.io/address/';
1095+
chainId = 80000;
1096+
nativeCoinOperationHashPrefix = '80000';
1097+
tokenOperationHashPrefix = '80000-ERC20';
1098+
batcherContractAddress = '0xedf1a0016d9c41d2ad0c275e1ba708361a90c0d1';
1099+
forwarderFactoryAddress = '0x37996e762fa8b671869740c79eb33f625b3bf92a';
1100+
forwarderImplementationAddress = '0xd5fe1c1f216b775dfd30638fa7164d41321ef79b';
11031101
}
11041102

11051103
class Oas extends Mainnet implements EthereumNetwork {

0 commit comments

Comments
 (0)