Skip to content

Commit

Permalink
Merge pull request #4203 from BitGo/WP-1288-update-thbar-usdc-token-a…
Browse files Browse the repository at this point in the history
…ddress

feat(statics): update thbar usdc token address
  • Loading branch information
alebusse authored Jan 18, 2024
2 parents ea906e2 + f83d2aa commit ab96af0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions modules/sdk-coin-hbar/test/fixtures/hbar.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export const rawTransactionForExplain =
'{"txHex":"224a0a140a0c0888cb98fb0510d2a8d3b20212041895d2021202180418d7e9462202087872260a240a100a08080010001895d20210ffd78ab2100a100a08080010001893d2021080d88ab210","txInfo":{"id":"[email protected]","hash":"987d0a89b58fbcc988f2cf00bcac1c0126db0ef4a8634dcc42fa3b38a2c9092e73c57b794938d82e75feb6d04f8d4f33","data":"0a140a0c0888cb98fb0510d2a8d3b20212041895d2021202180418d7e9462202087872260a240a100a08080010001895d20210ffd78ab2100a100a08080010001893d2021080d88ab210","fee":1160407,"from":"0.0.43285","startTime":"1600529800.643093586","validDuration":"120","node":"0.0.4","memo":"","amount":"2200000000","to":"0.0.43283"},"feeInfo":{"size":1000,"fee":1160407,"feeRate":1160407},"recipients":[{"amount":"2200000000","address":"0.0.43283","recipientLabel":null,"memo":{"type":"id","value":"1"}}],"walletId":"5f64df896fe0d400126128ca1e0942ea","walletContractAddress":"0.0.43285","amount":"2200000000","address":"0.0.43283","receivedCoin":{"name":"thbar","svg":"hbar","family":"hbar","modifier":100000000,"modifierExp":8,"fullDisplay":"Testnet Hedera HBAR","shortDisplay":"THBAR","hasMarketData":true,"hasTokens":false},"coin":"thbar","memo":{"type":"id","value":"1"}}';
export const UNSIGNED_TOKEN_TRANSFER =
'22590a180a0c089ded8af90510aac5d8b10112080800100018a8fb0412070800100018a912188094ebdc03220308b401722912270a090800100018d3fa8a01120c0a080800100018a8fb041013120c0a080800100018d5d0041014';
'22570a180a0c089ded8af90510aac5d8b10112080800100018a8fb0412070800100018a912188094ebdc03220308b401722712250a0708001000189666120c0a080800100018a8fb041013120c0a080800100018d5d0041014';
export const UNSIGNED_MULTI_TRANSFER =
'225c0a180a0c089ded8af90510aac5d8b10112080800100018a8fb0412070800100018a912188094ebdc03220308b401722c0a2a0a0c0a080800100018a8fb0410310a0c0a080800100018d5d00410140a0c0a080800100018f3e804101e';
export const UNSIGNED_TOKEN_MULTI_TRANSFER =
'22670a180a0c089ded8af90510aac5d8b10112080800100018a8fb0412070800100018a912188094ebdc03220308b401723712350a090800100018d3fa8a01120c0a080800100018a8fb041031120c0a080800100018d5d0041014120c0a080800100018f3e804101e';
'22650a180a0c089ded8af90510aac5d8b10112080800100018a8fb0412070800100018a912188094ebdc03220308b401723512330a0708001000189666120c0a080800100018a8fb041031120c0a080800100018d5d0041014120c0a080800100018f3e804101e';
export const UNSIGNED_TOKEN_ASSOCIATE =
'22460a180a0c089ded8af90510aac5d8b10112080800100018a8fb0412070800100018a912188094ebdc03220308b401c202150a080800100018a8fb0412090800100018d3fa8a01';
'22440a180a0c089ded8af90510aac5d8b10112080800100018a8fb0412070800100018a912188094ebdc03220308b401c202130a080800100018a8fb04120708001000189666';
16 changes: 8 additions & 8 deletions modules/sdk-coin-hbar/test/resources/hbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,28 +115,28 @@ export const WALLET_INIT_2_OWNERS =
'227f0a140a0c089ded8af90510aac5d8b101120418d5d00412021804188094ebdc03220208785a590a4e2a4c080212480a2212205a9111b5e6881ff20b9243a42ac1a9a67fa16cd4f01e58bab30c1fe611ea8cf90a221220592a4fbb7263c59d450e651df96620dc9208ee7c7d9d6f2fdcb91c53f883126110004a0508d0c8e103';

export const SIGNED_TOKEN_TRANSFER_TRANSACTION =
'1a660a640a205a9111b5e6881ff20b9243a42ac1a9a67fa16cd4f01e58bab30c1fe611ea8cf91a40538302d31bf54cbdccce4be213497a3c96476554bc480195e0ae3ca95fcbf322b6963daeda31dd651da2c7fd8a0da4ad683220d28e611fb861f3d52b75809d0c22590a180a0c089ded8af90510aac5d8b10112080800100018a8fb0412070800100018a912188094ebdc03220308b401722912270a090800100018d3fa8a01120c0a080800100018a8fb041013120c0a080800100018d5d0041014';
'1a660a640a205a9111b5e6881ff20b9243a42ac1a9a67fa16cd4f01e58bab30c1fe611ea8cf91a40e95fc3e84baf05107545edeb29e5d784438312f1dca1677f637e40890afd966c563452cb2484b09435cf3bfe754b46ab30488e871541fd31535f4234383ff40622570a180a0c089ded8af90510aac5d8b10112080800100018a8fb0412070800100018a912188094ebdc03220308b401722712250a0708001000189666120c0a080800100018a8fb041013120c0a080800100018d5d0041014';

export const NON_SIGNED_TOKEN_TRANSFER_TRANSACTION =
'22590a180a0c089ded8af90510aac5d8b10112080800100018a8fb0412070800100018a912188094ebdc03220308b401722912270a090800100018d3fa8a01120c0a080800100018a8fb041013120c0a080800100018d5d0041014';
'22570a180a0c089ded8af90510aac5d8b10112080800100018a8fb0412070800100018a912188094ebdc03220308b401722712250a0708001000189666120c0a080800100018a8fb041013120c0a080800100018d5d0041014';

export const SIGNED_TOKEN_MULTI_TRANSFER_TRANSACTION =
'22670a180a0c089ded8af90510aac5d8b10112080800100018a8fb0412070800100018a912188094ebdc03220308b401723712350a090800100018d3fa8a01120c0a080800100018a8fb041031120c0a080800100018d5d0041014120c0a080800100018f3e804101e';

export const NON_SIGNED_TOKEN_MULTI_TRANSFER_TRANSACTION =
'22670a180a0c089ded8af90510aac5d8b10112080800100018a8fb0412070800100018a912188094ebdc03220308b401723712350a090800100018d3fa8a01120c0a080800100018a8fb041031120c0a080800100018d5d0041014120c0a080800100018f3e804101e';
'22650a180a0c089ded8af90510aac5d8b10112080800100018a8fb0412070800100018a912188094ebdc03220308b401723512330a0708001000189666120c0a080800100018a8fb041031120c0a080800100018d5d0041014120c0a080800100018f3e804101e';

export const NON_SIGNED_TOKEN_MULTI_TRANSFER_TRANSACTION_SERIALIZED =
'1a660a640a205a9111b5e6881ff20b9243a42ac1a9a67fa16cd4f01e58bab30c1fe611ea8cf91a407ae66e232816533de47c327dbf6f58bfbf9025e5b5c179d88c937d765662a9c420decc48fc455f047e4123e96db117956927f5d26aff3e184d9fa449165d190b22670a180a0c089ded8af90510aac5d8b10112080800100018a8fb0412070800100018a912188094ebdc03220308b401723712350a090800100018d3fa8a01120c0a080800100018a8fb041031120c0a080800100018d5d0041014120c0a080800100018f3e804101e';
'1a660a640a205a9111b5e6881ff20b9243a42ac1a9a67fa16cd4f01e58bab30c1fe611ea8cf91a40ca950014c83f91a241a91b1dd7e9322bdfa3e0e5ef79a9d299f81ac68f4349352ad6f363bc0f5a4696225315748550f381ac6acf9bf5b88701c93f157d35890d22650a180a0c089ded8af90510aac5d8b10112080800100018a8fb0412070800100018a912188094ebdc03220308b401723512330a0708001000189666120c0a080800100018a8fb041031120c0a080800100018d5d0041014120c0a080800100018f3e804101e';

export const THREE_TIMES_SIGNED_TOKEN_TRANSACTION =
'1ab2020a640a205a9111b5e6881ff20b9243a42ac1a9a67fa16cd4f01e58bab30c1fe611ea8cf91a400db73d9720378ee6afa1d3a593319f503c2d0ac54040a1133c91e46b1fffad9f5ee875e5f1d22b6a7a520233bbca6fa1a2dd755b93a471c8b8df45431ca783010a640a20592a4fbb7263c59d450e651df96620dc9208ee7c7d9d6f2fdcb91c53f88312611a405c744e44967730d2cfec5a20a9359628baec27f18a3f6f87bfb7140478183f3283ced502e66a06a1cc3e2b94ebffbd173bdfce07ad5bd7d6c750ecadc436800b0a640a20fa344793601cef71348f994f30a168c2dd55f357426a180a5a724d7e03585e911a4009fc9046c537d3c1b3f43cfbf36abb60529efef3933fb875860eff1e75b827101d2ce0effa69c56447d9c7b923299a27356d779ec41d4f289333b9b7d2c78d0222580a180a0c089ded8af90510aac5d8b10112080800100018a8fb041206080010001804188094ebdc03220308b401722912270a090800100018d3fa8a01120c0a080800100018a8fb041013120c0a080800100018d5d0041014';
'1ab2020a640a205a9111b5e6881ff20b9243a42ac1a9a67fa16cd4f01e58bab30c1fe611ea8cf91a40ae49b7e9e4d75bcc8d485a77b79d3b3690708309dfe7f59bd3a4130ea849a592da3e3a299334bbff9379db50f35f82962a46afc4b09b3304245d9e274f25f3080a640a20592a4fbb7263c59d450e651df96620dc9208ee7c7d9d6f2fdcb91c53f88312611a40eb7092cc8c84630ea28df3d4dd1fdb136dcaab9edaad7a93cfedfa3baecdedd60a85019fc564cb7b3b36e2ae7f0f49717a71d9b3bcaf42e90d1e2b391cd6570c0a640a20fa344793601cef71348f994f30a168c2dd55f357426a180a5a724d7e03585e911a4092527012381c88e29b440a565b0402ed9e2717399145ad6ca711f7b6d4abc42eb42fcedc68dab59ec106bed6b1e6bd1cf2cd49b9d3ac5f0afb40b56f154b260822560a180a0c089ded8af90510aac5d8b10112080800100018a8fb041206080010001804188094ebdc03220308b401722712250a0708001000189666120c0a080800100018a8fb041013120c0a080800100018d5d0041014';

export const SIGNED_TOKEN_ASSOCIATE_TRANSACTION =
'1a660a640a205a9111b5e6881ff20b9243a42ac1a9a67fa16cd4f01e58bab30c1fe611ea8cf91a40c68d748efaeab742a3ecc0d2efcad07c315eebc0643975edf9d4bbfdbfca1b86a86b6bf9393271c15fcd28c514895c7b31fff19e1d3b4bb6f003e6f1da5f740922460a180a0c089ded8af90510aac5d8b10112080800100018a8fb0412070800100018a912188094ebdc03220308b401c202150a080800100018a8fb0412090800100018d3fa8a01';
'1a660a640a205a9111b5e6881ff20b9243a42ac1a9a67fa16cd4f01e58bab30c1fe611ea8cf91a4065282aa2df548eee1086780a8e7ea819b022fa220006e5c155b1e7af0a7cbae340722f8eba1b405fc004817d9a25cc33df55b93820abf900198981ebf6d6210222440a180a0c089ded8af90510aac5d8b10112080800100018a8fb0412070800100018a912188094ebdc03220308b401c202130a080800100018a8fb04120708001000189666';

export const NON_SIGNED_TOKEN_ASSOCIATE_TRANSACTION =
'22460a180a0c089ded8af90510aac5d8b10112080800100018a8fb0412070800100018a912188094ebdc03220308b401c202150a080800100018a8fb0412090800100018d3fa8a01';
'22440a180a0c089ded8af90510aac5d8b10112080800100018a8fb0412070800100018a912188094ebdc03220308b401c202130a080800100018a8fb04120708001000189666';

export const THREE_TIMES_SIGNED_TOKEN_ASSOCIATE_TRANSACTION =
'1ab2020a640a205a9111b5e6881ff20b9243a42ac1a9a67fa16cd4f01e58bab30c1fe611ea8cf91a40088f8e13f166957e92d8d8c6a904a56f394451e129abe8a376c78958d08e3bf4c94a0c0d9943f857c2d12badcaaa8bcc6fb3559573c0254c72f7d6989a066e000a640a20592a4fbb7263c59d450e651df96620dc9208ee7c7d9d6f2fdcb91c53f88312611a40a0ab2dc6a0daa6f94968e547a8df7b095e977d7f24c2187fa84fa1552793640c5875fabc1e9f0f7acd8db06cade1487715ce09c3351635b5628625034acb2e0b0a640a20fa344793601cef71348f994f30a168c2dd55f357426a180a5a724d7e03585e911a408ba0a70b96ddaf48f5d526db277282098e5db9dd7c014206b1bd62b58a55654db70a760af1e67cff44e5167acf23b08e2beee45aa72a960c6c68ee0fef19620422450a180a0c089ded8af90510aac5d8b10112080800100018a8fb041206080010001804188094ebdc03220308b401c202150a080800100018a8fb0412090800100018d3fa8a01';
'1ab2020a640a205a9111b5e6881ff20b9243a42ac1a9a67fa16cd4f01e58bab30c1fe611ea8cf91a4098bbf00ea401695033f13480d676283528dfc5d66a2cf773f46266c1fe6766ea6638d46d1f443fdfd327500b02fdf90fc7ad822deb4fb052a5ab1e3ff9e9e60a0a640a20592a4fbb7263c59d450e651df96620dc9208ee7c7d9d6f2fdcb91c53f88312611a402d9fb64718e85831908edeabf9adb0f832756f5d64e254958c91a115f3948f3d39b29aa0a2241755953792cad7e3ce8173b5417e87de6727697285a0ee6e230a0a640a20fa344793601cef71348f994f30a168c2dd55f357426a180a5a724d7e03585e911a407a0a04aa1fc7844e4525b93684035f19beca67ff53286705ade0dd72e2c03717207daedfa1c70b261f6e802f968f68419d3095a4e64ad14dfbbb02ea27bdf00422430a180a0c089ded8af90510aac5d8b10112080800100018a8fb041206080010001804188094ebdc03220308b401c202130a080800100018a8fb04120708001000189666';
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ describe('HBAR Token Associate Builder', () => {
txBuilder.tokens('thbar:usdc');
assert.throws(
() => txBuilder.tokens('thbar:usdc'),
(e: any) => e.message === 'Repeated token ID: 0.0.2276691'
(e: any) => e.message === 'Repeated token ID: 0.0.13078'
);
});

Expand Down
2 changes: 1 addition & 1 deletion modules/statics/src/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,7 @@ export const coins = CoinMap.fromCoins([
6,
UnderlyingAsset.USDC,
'0.0.3',
'0.0.2276691',
'0.0.13078',
AccountCoin.DEFAULT_FEATURES
),
ofc('837f0cab-cad1-4510-a8e4-f2c60e1a8760', 'ofcusd', 'USD', 2, UnderlyingAsset.USD, CoinKind.FIAT),
Expand Down

0 comments on commit ab96af0

Please sign in to comment.