Skip to content

Commit

Permalink
feat(abstract-eth): add abstractethliketsscoin class
Browse files Browse the repository at this point in the history
  • Loading branch information
gianchandania committed Oct 12, 2023
1 parent f86018e commit 09c2d77
Show file tree
Hide file tree
Showing 9 changed files with 291 additions and 37 deletions.
17 changes: 17 additions & 0 deletions modules/abstract-eth/src/abstractEthLikeTssCoin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* @prettier
*/
import { MPCAlgorithm } from '@bitgo/sdk-core';
import { AbstractEthLikeCoin } from './abstractEthLikeCoin';

export abstract class AbstractEthLikeTssCoin extends AbstractEthLikeCoin {
/** @inheritDoc */
supportsTss(): boolean {
return true;
}

/** @inheritDoc */
getMPCAlgorithm(): MPCAlgorithm {
return 'ecdsa';
}
}
4 changes: 2 additions & 2 deletions modules/abstract-eth/src/ethLikeToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
import { coins, EthLikeTokenConfig, tokens } from '@bitgo/statics';

import { BitGoBase, CoinConstructor, NamedCoinConstructor } from '@bitgo/sdk-core';
import { AbstractEthLikeCoin } from './abstractEthLikeCoin';
import { AbstractEthLikeTssCoin } from './abstractEthLikeTssCoin';
import { TransactionBuilder as EthTransactionBuilder, TransactionPrebuild } from '@bitgo/sdk-coin-eth';

export type CoinNames = {
[network: string]: string;
};

export class EthLikeToken extends AbstractEthLikeCoin {
export class EthLikeToken extends AbstractEthLikeTssCoin {
public readonly tokenConfig: EthLikeTokenConfig;

protected constructor(bitgo: BitGoBase, tokenConfig: EthLikeTokenConfig, coinNames: CoinNames) {
Expand Down
1 change: 1 addition & 0 deletions modules/abstract-eth/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './abstractEthLikeCoin';
export * from './ethLikeToken';
export * from './abstractEthLikeTssCoin';
16 changes: 3 additions & 13 deletions modules/sdk-coin-arbeth/src/arbeth.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { BaseCoin, BitGoBase, MPCAlgorithm } from '@bitgo/sdk-core';
import { BaseCoin, BitGoBase } from '@bitgo/sdk-core';
import { BaseCoin as StaticsBaseCoin, coins } from '@bitgo/statics';
import { AbstractEthLikeCoin } from '@bitgo/abstract-eth';
import { AbstractEthLikeTssCoin } from '@bitgo/abstract-eth';
import { TransactionBuilder as EthTransactionBuilder } from '@bitgo/sdk-coin-eth';
import { TransactionBuilder } from './lib';

export class Arbeth extends AbstractEthLikeCoin {
export class Arbeth extends AbstractEthLikeTssCoin {
protected constructor(bitgo: BitGoBase, staticsCoin?: Readonly<StaticsBaseCoin>) {
super(bitgo, staticsCoin);
}
Expand All @@ -16,14 +16,4 @@ export class Arbeth extends AbstractEthLikeCoin {
protected getTransactionBuilder(): EthTransactionBuilder {
return new TransactionBuilder(coins.get(this.getBaseChain()));
}

/** @inheritDoc */
supportsTss(): boolean {
return true;
}

/** @inheritDoc */
getMPCAlgorithm(): MPCAlgorithm {
return 'ecdsa';
}
}
91 changes: 91 additions & 0 deletions modules/sdk-coin-arbeth/test/fixtures/ecdsa.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
export const keyShares = {
A: {
pShare: {
i: 1,
l: 'e65cbd8defc738ffd27c15b65cee4762aefcbf3273a95998c5cadaa11442ebc3b12ba69dad1d17c60de45fc40771547343f609689cb8b6b359f6eb7eee09786dd25d06ec3be3a4c83173e2e127655224094f93ee26f533708cfd0c4fe2714afcc9bdc8b9aa1ba2ae4a63387a85a75bd823aa3b49c1ecb35676d8f3a166f9070ee88e297dfa0c6ce6f32b4b7a945c9e299d5e9211ae5e378edbcb02cdafd39913acf132af878133f22bcbc9954a68562380e9df269190eeadf65227d7073a3633aa0c5c294d5c8ed69843704cc04e120183d15e201bb53db1c39b54dcba92f42ee368581560e53672e511cc1548b6d71b3004d56a0c8328f752683872553dc30950134061352cbfbe26415adea17ec9b9dbb026a903a7c0a8c3529e2eca364d99506121be5fdc9c70f9bab698bf061eb8a9f48d06eccf4b6464b6ad7d1c6cd70c8f36460324a16b29d768539e16d6697cb7c66aa7fdaa60f049b875ce9035a5a8c31d77543b86ba66754c5953853bdb751f344fa09ad5a6fefadb8da2dc23f268',
m: '88de0d1674fbeb991f46216e11b75cabedd35c1da97b1f0249d934560fee3dedeb6f2f56b29f8298ac7d7477ebc3529cc3b69334603e32fdf038989d5dbd15714a363fd1a6e8d1761d2872f656ec8a0b1ea306cb65718ae09ed118a38e748f1706b251bfc72542cf11ce0a701bd1c4fa56e7bb375609af2e19d963d9de1954c51c515bb0e6a0a65148d699d28ff267d4630378b699c06b3f65b8d285b5cc1c35bb3d61da18a22061ffb004800c296ccbf207f60ee8496606d2758cd5ca34df2f50bdb5eecaa715b06f149dbbc682a9e790184f795cae9994b40a4dd3652cbd8ea9603453c26cb8dbb3da73c42f5e83e7675e508a3ef3e73304ba0d092e85b9e270bace611334e208f949c0769b031d02bdc75ca7faa260844d7484a715e1c72620266b2c5407e5b23454160dee3a0b3f7593af55a0f118e17ee1d79b8ad9a0853f311886fc5b143a64956e050f700dd9b09ed7bd7de7960a17d5a253dea875ad9ecab7738ec519c52c67535237b959d974343fc2b3ab17f59d5d9d5a01ab06fa',
n: 'e65cbd8defc738ffd27c15b65cee4762aefcbf3273a95998c5cadaa11442ebc3b12ba69dad1d17c60de45fc40771547343f609689cb8b6b359f6eb7eee09786dd25d06ec3be3a4c83173e2e127655224094f93ee26f533708cfd0c4fe2714afcc9bdc8b9aa1ba2ae4a63387a85a75bd823aa3b49c1ecb35676d8f3a166f9070ee88e297dfa0c6ce6f32b4b7a945c9e299d5e9211ae5e378edbcb02cdafd39913acf132af878133f22bcbc9954a68562380e9df269190eeadf65227d7073a36359f590605471edd0bf4bae0ec7e019ff4680827c94fa5a9b066801d3b910c879bfa5e94e9dadc5d6066a8f46268f9d966b65db666c28bdc32da60b63ef14c67609194c8356762a7e99f0d4039e97e58fa6e77483a01e2714975dabc2d2fd3843e849d3f8e9914c931dee0fc8c5c99ec7b3427f809c7f5fb5c297bcd8c46e7c7e317930efe7fac4b80e0308b7cca32cc0365c3b5e8ad9507d6cf3be3904231ea06e920083532c4ab04f58dab2f81eaef4da77a269ccfb8ea58a8d46bbb7e8ca4c7',
y: '03dadfcde88f0aae3ab252e509913ee9efb7d97e04e60851a12a18209debd06fb4',
u: '1efeddd6219a691991dca5d2ef30a7846c55f5939f6a253668c4b7835a840bbb',
chaincode: '91c2381160c232e5f22a0611eed78a1e3b2452ec331cd908fba48cb82c69cbbd',
},
nShares: {
2: {
i: 2,
j: 1,
n: 'e65cbd8defc738ffd27c15b65cee4762aefcbf3273a95998c5cadaa11442ebc3b12ba69dad1d17c60de45fc40771547343f609689cb8b6b359f6eb7eee09786dd25d06ec3be3a4c83173e2e127655224094f93ee26f533708cfd0c4fe2714afcc9bdc8b9aa1ba2ae4a63387a85a75bd823aa3b49c1ecb35676d8f3a166f9070ee88e297dfa0c6ce6f32b4b7a945c9e299d5e9211ae5e378edbcb02cdafd39913acf132af878133f22bcbc9954a68562380e9df269190eeadf65227d7073a36359f590605471edd0bf4bae0ec7e019ff4680827c94fa5a9b066801d3b910c879bfa5e94e9dadc5d6066a8f46268f9d966b65db666c28bdc32da60b63ef14c67609194c8356762a7e99f0d4039e97e58fa6e77483a01e2714975dabc2d2fd3843e849d3f8e9914c931dee0fc8c5c99ec7b3427f809c7f5fb5c297bcd8c46e7c7e317930efe7fac4b80e0308b7cca32cc0365c3b5e8ad9507d6cf3be3904231ea06e920083532c4ab04f58dab2f81eaef4da77a269ccfb8ea58a8d46bbb7e8ca4c7',
y: '03dadfcde88f0aae3ab252e509913ee9efb7d97e04e60851a12a18209debd06fb4',
u: '8e3e91e06d7bfed569594b6f35bcf46a8c0a8aff3bfa6ac8bc12cb0e00726ae3',
chaincode: '91c2381160c232e5f22a0611eed78a1e3b2452ec331cd908fba48cb82c69cbbd',
},
3: {
i: 3,
j: 1,
n: 'e65cbd8defc738ffd27c15b65cee4762aefcbf3273a95998c5cadaa11442ebc3b12ba69dad1d17c60de45fc40771547343f609689cb8b6b359f6eb7eee09786dd25d06ec3be3a4c83173e2e127655224094f93ee26f533708cfd0c4fe2714afcc9bdc8b9aa1ba2ae4a63387a85a75bd823aa3b49c1ecb35676d8f3a166f9070ee88e297dfa0c6ce6f32b4b7a945c9e299d5e9211ae5e378edbcb02cdafd39913acf132af878133f22bcbc9954a68562380e9df269190eeadf65227d7073a36359f590605471edd0bf4bae0ec7e019ff4680827c94fa5a9b066801d3b910c879bfa5e94e9dadc5d6066a8f46268f9d966b65db666c28bdc32da60b63ef14c67609194c8356762a7e99f0d4039e97e58fa6e77483a01e2714975dabc2d2fd3843e849d3f8e9914c931dee0fc8c5c99ec7b3427f809c7f5fb5c297bcd8c46e7c7e317930efe7fac4b80e0308b7cca32cc0365c3b5e8ad9507d6cf3be3904231ea06e920083532c4ab04f58dab2f81eaef4da77a269ccfb8ea58a8d46bbb7e8ca4c7',
y: '03dadfcde88f0aae3ab252e509913ee9efb7d97e04e60851a12a18209debd06fb4',
u: 'fd7e45eab95d949140d5f10b7c494150abbf206ad88ab05b0f60de98a660ca0b',
chaincode: '91c2381160c232e5f22a0611eed78a1e3b2452ec331cd908fba48cb82c69cbbd',
},
},
},

B: {
pShare: {
i: 2,
l: 'd2d8d2d69836fa45ea00a7ea63bd643a6039e816cf25b133a60f5a20159c24e22719c61d58d172c7c0e8bf68f0b167bc9c19ea10d419aee24fad529980f505d96c8cc330dd53c45ccb7ed1ef3ae1af051c8e7009ada67d0c47685dc261a20332d43e9f89f4c07934b14f08b337fa778df93d23b57f815f2ddc1d0b65d18d0010df94c2c5bcfca689ca73610a4369d7e966c688678e5198833ca963253109401c91f74405b46856f956ee679d4c436792e4e7af90ec441804ce4462a3dd59f4ea0be8efb6b79d88d4d415faa17c35f4108c520e15ce3f515c921b75387737b4a9a972e4eca009a7654b51d27161842534f8c70ad51c4257d4e4781271b6c6c07269019630ed9f62fcbf10f0622689d0e4e4f6cd4bbd0e4ca86491dcfbf052d5f320f64beee7b9071900d28a00c42c600e58062553287e23702319f6c80521bad50e412a344e8e3e13be5ab724c77579e8a0a53d76ee66d9461950c7e9eee98ffe69efa84afa19239fddf2a57899ff09fc447e8f1ddf1ccece34bbf42e0cf56400',
m: '436f5886828d2f5bd8984fae3e7d4d3301e1e11753a629c0c614ec39d57d8ad20a9eaf9fbf54febeab3abc33d8d3cb37fb176f419b1992873faf79722edb95daec954a11f13b3bab78e09c47bf346abc601ccd01f121f0708193756e9f1355f2d49ec7c0bba5d2b0e23ce3dae837422fe7b807b4f795d983633e780e61f6a46f96acaf1adacd3d23ae0363be5915fad85ec0f00ecfe65bc88aecacb08d6fe74d49302483d4c5495d083e992e38035c195546665741a5845363509ef25482fc9512d3db0a30213a3e350955f1012fde3de6cc802113c5656c4794144455c09d6c30f26ca7666ab0a033c72b8cc85041aedd7128bd993e8d064c049cc49b2fd13e20e4b1291cdde7cef98543affc8ad5e9baa4f47a98151f5c26f1d3def00c545bf9ed78d2d476aed68487386ab23810812f772394e2ade1fa65bcf60f2cd6431a20ebc9f6472050765bccea8a73b1f8262218554ee2be5d0a6b9fcb256edf642c278acdad343b9993be7a438c68696c44dbeb44f3cf18fc58d3741fbe57111b0c',
n: 'd2d8d2d69836fa45ea00a7ea63bd643a6039e816cf25b133a60f5a20159c24e22719c61d58d172c7c0e8bf68f0b167bc9c19ea10d419aee24fad529980f505d96c8cc330dd53c45ccb7ed1ef3ae1af051c8e7009ada67d0c47685dc261a20332d43e9f89f4c07934b14f08b337fa778df93d23b57f815f2ddc1d0b65d18d0010df94c2c5bcfca689ca73610a4369d7e966c688678e5198833ca963253109401c91f74405b46856f956ee679d4c436792e4e7af90ec441804ce4462a3dd59f4ec0a049432d5db6ded2972e701d54828eb159e7f5d71bc8923d89c642c83627ee205b8b49409aec78d958a4564139c90651e90ef79063cd52609c90c0a7f2f44762a6bc8fa85d720dd9d7a33beb7f18e42e1c6b9e3cda0406627af36c1d81252a2812e71b69ae433aacd885967112415029b78b0654eeeddfb9ebdad792644f7d6dad699af7cb3914f4368fcb2ef9d6daa6db7e09eeb60fb2c99ae81143ee2126f1de5d4523938d0501dea4d69c2f8845b06cd63358f49cdfdb6da6c2b55305ac1',
y: '021eb992544750383bb64f5d95ddb5d3df49d63e4d8352fc8c892de494095b776b',
u: '54659d9820ac3df605d0a75bd3615c86ad6fbd716018d33570f15df028ae9042',
chaincode: 'bfbb8924f120d09984ff045b7790d176c805d465b0cb31a6bd738b356070beca',
},
nShares: {
1: {
i: 1,
j: 2,
n: 'd2d8d2d69836fa45ea00a7ea63bd643a6039e816cf25b133a60f5a20159c24e22719c61d58d172c7c0e8bf68f0b167bc9c19ea10d419aee24fad529980f505d96c8cc330dd53c45ccb7ed1ef3ae1af051c8e7009ada67d0c47685dc261a20332d43e9f89f4c07934b14f08b337fa778df93d23b57f815f2ddc1d0b65d18d0010df94c2c5bcfca689ca73610a4369d7e966c688678e5198833ca963253109401c91f74405b46856f956ee679d4c436792e4e7af90ec441804ce4462a3dd59f4ec0a049432d5db6ded2972e701d54828eb159e7f5d71bc8923d89c642c83627ee205b8b49409aec78d958a4564139c90651e90ef79063cd52609c90c0a7f2f44762a6bc8fa85d720dd9d7a33beb7f18e42e1c6b9e3cda0406627af36c1d81252a2812e71b69ae433aacd885967112415029b78b0654eeeddfb9ebdad792644f7d6dad699af7cb3914f4368fcb2ef9d6daa6db7e09eeb60fb2c99ae81143ee2126f1de5d4523938d0501dea4d69c2f8845b06cd63358f49cdfdb6da6c2b55305ac1',
y: '021eb992544750383bb64f5d95ddb5d3df49d63e4d8352fc8c892de494095b776b',
u: '11ecf949a725aad995a0a36a1b72a13b8510fcee8d1464070ecf5b98957a10da',
chaincode: 'bfbb8924f120d09984ff045b7790d176c805d465b0cb31a6bd738b356070beca',
},
3: {
i: 3,
j: 2,
n: 'd2d8d2d69836fa45ea00a7ea63bd643a6039e816cf25b133a60f5a20159c24e22719c61d58d172c7c0e8bf68f0b167bc9c19ea10d419aee24fad529980f505d96c8cc330dd53c45ccb7ed1ef3ae1af051c8e7009ada67d0c47685dc261a20332d43e9f89f4c07934b14f08b337fa778df93d23b57f815f2ddc1d0b65d18d0010df94c2c5bcfca689ca73610a4369d7e966c688678e5198833ca963253109401c91f74405b46856f956ee679d4c436792e4e7af90ec441804ce4462a3dd59f4ec0a049432d5db6ded2972e701d54828eb159e7f5d71bc8923d89c642c83627ee205b8b49409aec78d958a4564139c90651e90ef79063cd52609c90c0a7f2f44762a6bc8fa85d720dd9d7a33beb7f18e42e1c6b9e3cda0406627af36c1d81252a2812e71b69ae433aacd885967112415029b78b0654eeeddfb9ebdad792644f7d6dad699af7cb3914f4368fcb2ef9d6daa6db7e09eeb60fb2c99ae81143ee2126f1de5d4523938d0501dea4d69c2f8845b06cd63358f49cdfdb6da6c2b55305ac1',
y: '021eb992544750383bb64f5d95ddb5d3df49d63e4d8352fc8c892de494095b776b',
u: '96de41e69a32d1127600ab4d8b5017d1d5ce7df4331d4263d3136047bbe30faa',
chaincode: 'bfbb8924f120d09984ff045b7790d176c805d465b0cb31a6bd738b356070beca',
},
},
},

C: {
pShare: {
i: 3,
l: 'a8f1829543147680f3f01e6f46891437ce418c8d9c260cf236e46bb6e8c9842511fa2a4ed186e76d8d828aa08a39425a58160b067e5e591c2a05c804d97d27ef3d764de5c9fba393f6529f77406b6c93e5e26ff6dece414ba0ba6b57577988823ab0d146d8ba76efe5826616f71fa4b853eb900a7913bdb7191f3ca1aa123e73aafe9428d4513b88c389129e5f154d9aad1da5662e95a4f9fbc5905b174fb9b19c26da4f5b435801231520546ea52e40fd188219801e4835c8126c7afea9bc05fe4bcf3de265b23451e6df32f925a10e8b45184a127a82f6d2d33787e8263b61a5251ab0bac850a5b278534a747de1b4191dd31d33547aae48fd9fe0ea38521fde119ff88907d4a8582971796d5acf833acaa67033b7a13960a76647306408ccd59a47876f62ecd0f49108be7b99f2f8e60af0a77e9fc485b89ad91159af22ce1cc3a2a620f43096522d77fc2af6511f3da45af13068653283ad93a66ff91cccc1669a05faf9c7ff743073157d9ba3689755ef4abf61aa211e27a07fbe16aac0',
m: '4d380173d62861956f101a141a3e127367d374b3c6125e02f64744e13992e340074e98e2e238694c340d0e7fb867087cd54067aa1452fe185be83ca89ade3c4f963b712ff57f2218a8e495a3ec913f7fde349948437686c8b58d9323b899cbda3a8b04fd24cbe477154f6a4abb1b9d23b318e9d6680305e94e808bc712f35f56629b66e3166a819192d20b496156fb09cae09685fa8511ce6472615222d6ab5a2a74bbfa9379d2b1805727bdc2c84f311c669ee6ca97ae6bad7a9bc08a962517e650608eb16beba4a121cb6e8a3c67f033661beba467cb0c3d3042f0d7eccef72fd28600b52f245adbe874a260c9a749a7e0b2b80482da996e007c830410f0e01d7e6384efe8279811bdbaeca8983c430df028bb38ead1432954331a42d374b8991d98a4e45b511fce5d57911537ac88bba54754967bc84dda6dbb6b71b9688873b0ea66fa5b22eaf9fdc461a845ea78effeb86f45854c7fce8b4ada588df824522d11451e7877289724dbea1591d5e81e67d31a59ed587b8c4112cd137df8c1',
n: 'a8f1829543147680f3f01e6f46891437ce418c8d9c260cf236e46bb6e8c9842511fa2a4ed186e76d8d828aa08a39425a58160b067e5e591c2a05c804d97d27ef3d764de5c9fba393f6529f77406b6c93e5e26ff6dece414ba0ba6b57577988823ab0d146d8ba76efe5826616f71fa4b853eb900a7913bdb7191f3ca1aa123e73aafe9428d4513b88c389129e5f154d9aad1da5662e95a4f9fbc5905b174fb9b19c26da4f5b435801231520546ea52e40fd188219801e4835c8126c7afea9bc07b109ea5ea63981e15c2c38d022ed608cf24e53553f368020f47b1b21e368c1fa3c8fbdd7ce284bcb1ad9dd01cba7c2ee0a5d73b3d068e50f36ea74da58a6f67e030fa70f99c5a5c8d602cbe787a56b3753eed205842d675ac7799245642549e0f1a0097e1377275011d96826f1b0463712f36f21e770b7d16704f43cc4a660890c9214bc13eb8b1cd099d7d6d2cef4bb91940c239259e49a2ad7d9942fa193da56c6dbc87c225fc1adc62de3fc6ab71ac851fcbedf3b58b4298735cce4114afb',
y: '02406c4eeee2d3ae661f9a3a5dcd13bb4be68974aa1e8b471b28376f7d25a8859f',
u: 'ae7a83e594e843dad5ab653edcf01314fb899c8a9785a9b61870c23711248223',
chaincode: 'cd678be1f1bef0a458cdce1f1e36251f9d78bcb46af3ff2ab97ea888c688314e',
},
nShares: {
1: {
i: 1,
j: 3,
n: 'a8f1829543147680f3f01e6f46891437ce418c8d9c260cf236e46bb6e8c9842511fa2a4ed186e76d8d828aa08a39425a58160b067e5e591c2a05c804d97d27ef3d764de5c9fba393f6529f77406b6c93e5e26ff6dece414ba0ba6b57577988823ab0d146d8ba76efe5826616f71fa4b853eb900a7913bdb7191f3ca1aa123e73aafe9428d4513b88c389129e5f154d9aad1da5662e95a4f9fbc5905b174fb9b19c26da4f5b435801231520546ea52e40fd188219801e4835c8126c7afea9bc07b109ea5ea63981e15c2c38d022ed608cf24e53553f368020f47b1b21e368c1fa3c8fbdd7ce284bcb1ad9dd01cba7c2ee0a5d73b3d068e50f36ea74da58a6f67e030fa70f99c5a5c8d602cbe787a56b3753eed205842d675ac7799245642549e0f1a0097e1377275011d96826f1b0463712f36f21e770b7d16704f43cc4a660890c9214bc13eb8b1cd099d7d6d2cef4bb91940c239259e49a2ad7d9942fa193da56c6dbc87c225fc1adc62de3fc6ab71ac851fcbedf3b58b4298735cce4114afb',
y: '02406c4eeee2d3ae661f9a3a5dcd13bb4be68974aa1e8b471b28376f7d25a8859f',
u: 'dd047eb0beb9ee2f7688fed5f9f53bc6baebbace6551b7b41a30d1d37b7249c4',
chaincode: 'cd678be1f1bef0a458cdce1f1e36251f9d78bcb46af3ff2ab97ea888c688314e',
},
2: {
i: 2,
j: 3,
n: 'a8f1829543147680f3f01e6f46891437ce418c8d9c260cf236e46bb6e8c9842511fa2a4ed186e76d8d828aa08a39425a58160b067e5e591c2a05c804d97d27ef3d764de5c9fba393f6529f77406b6c93e5e26ff6dece414ba0ba6b57577988823ab0d146d8ba76efe5826616f71fa4b853eb900a7913bdb7191f3ca1aa123e73aafe9428d4513b88c389129e5f154d9aad1da5662e95a4f9fbc5905b174fb9b19c26da4f5b435801231520546ea52e40fd188219801e4835c8126c7afea9bc07b109ea5ea63981e15c2c38d022ed608cf24e53553f368020f47b1b21e368c1fa3c8fbdd7ce284bcb1ad9dd01cba7c2ee0a5d73b3d068e50f36ea74da58a6f67e030fa70f99c5a5c8d602cbe787a56b3753eed205842d675ac7799245642549e0f1a0097e1377275011d96826f1b0463712f36f21e770b7d16704f43cc4a660890c9214bc13eb8b1cd099d7d6d2cef4bb91940c239259e49a2ad7d9942fa193da56c6dbc87c225fc1adc62de3fc6ab71ac851fcbedf3b58b4298735cce4114afb',
y: '02406c4eeee2d3ae661f9a3a5dcd13bb4be68974aa1e8b471b28376f7d25a8859f',
u: '45bf814b29d11905261a320a6b72a76e7de33d3926c7609739679abede304553',
chaincode: 'cd678be1f1bef0a458cdce1f1e36251f9d78bcb46af3ff2ab97ea888c688314e',
},
},
},
};
6 changes: 6 additions & 0 deletions modules/sdk-coin-arbeth/test/unit/getBuilder.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { TransactionBuilder } from '../../src';
import { coins } from '@bitgo/statics';

export const getBuilder = (coin: string): TransactionBuilder => {
return new TransactionBuilder(coins.get(coin));
};
Loading

0 comments on commit 09c2d77

Please sign in to comment.