Skip to content

Commit

Permalink
VG-7973 Use V3 explorers for test (#891)
Browse files Browse the repository at this point in the history
* Remove v2 explorers default values

* Update some cache from v2 to v3

* Fix test

* Fix clang format

* update more cached http calls
  • Loading branch information
BertrandD authored Aug 10, 2022
1 parent 0bf0899 commit a996d31
Show file tree
Hide file tree
Showing 47 changed files with 573 additions and 566 deletions.
2 changes: 1 addition & 1 deletion core/idl/wallet/configuration.djinni
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ SynchronizationEngines = interface +c {
# Default values you might want to use if you don’t know what values you should use.
ConfigurationDefaults = interface +c {
# The default Ledger API endpoint for the explorers.
const BLOCKCHAIN_DEFAULT_API_ENDPOINT: string = "https://explorers.api.live.ledger.com";
const BLOCKCHAIN_DEFAULT_API_ENDPOINT: string = "https://explorers.api.vault.ledger.com";
# The default Ledger API endpoint for the observers.
const BLOCKCHAIN_OBSERVER_WS_ENDPOINT: string = "wss://ws.ledgerwallet.com/blockchain/v2/{}/ws";
# The default derivation scheme for BIP44 derivation.
Expand Down
2 changes: 1 addition & 1 deletion core/src/api/ConfigurationDefaults.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace ledger {
BitcoinLikeBlockchainExplorer(configuration, {api::Configuration::BLOCKCHAIN_EXPLORER_API_ENDPOINT}) {
_http = http;
_parameters = parameters;
_explorerVersion = configuration->getString(api::Configuration::BLOCKCHAIN_EXPLORER_VERSION).value_or("v2");
_explorerVersion = configuration->getString(api::Configuration::BLOCKCHAIN_EXPLORER_VERSION).value_or("v3");
}

Future<String> LedgerApiBitcoinLikeBlockchainExplorer::pushLedgerApiTransaction(const std::vector<uint8_t> &transaction, const std::string &correlationId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace ledger {
RippleLikeBlockchainExplorer(configuration, {api::Configuration::BLOCKCHAIN_EXPLORER_API_ENDPOINT}) {
_http = http;
_parameters = parameters;
_explorerVersion = configuration->getString(api::Configuration::BLOCKCHAIN_EXPLORER_VERSION).value_or("v2");
_explorerVersion = configuration->getString(api::Configuration::BLOCKCHAIN_EXPLORER_VERSION).value_or("v3");
}

Future<String>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
GET https://explorers.api.live.ledger.com/blockchain/v2/btg/blocks/current
GET https://explorers.api.vault.ledger.com/blockchain/v3/btg/blocks/current
0
1
{"hash":"00000002e58fec3340bff49c71af407b30b956ff3ad51f05d28cea151dff5a65","height":720148,"time":"2022-01-08T00:13:18Z","txs":["9ceaceebf4750495d56f0c4fe32e018e5a5e573809cfeaae5e04bd30f98f290b","052fd762405513541d393234aa0b9fd590e108b38e2d6beca97a65c23dfb9f4a","dd78e763fcdbf23112564ef939dbb4c935465788d8b9fa83b0fd114637a25b38"]}
{"hash":"00000000e359e31fcf979c3035e7227d48532b618b8c0f9eb8ea33dde70ad37d","height":748182,"time":"2022-07-22T13:32:13Z","txs":["02537f8ac9cfa4cc5df25ba474f18e32af8cfc2e15c478be010301fdf4d31fa2","b7f97969a931fb56eaace1c71539ba29cc51aa1f43fad031bb24631ab0d76a03","5525b90712407e1dc7694acce937988a0f1020958d16fa6bcf5381799a0331be","7771f9ddcaa7c4f717e8c276cfe6d0ad4775885f6b3d90b4f15e9fa7be5ca912"]}

GET https://explorers.api.live.ledger.com/timestamp
GET https://explorers.api.vault.ledger.com/timestamp
0
1
{"timestamp":1641601718}
{"timestamp":1658497095}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
GET https://explorers.api.live.ledger.com/blockchain/v2/dgb/addresses/dgb1qgdg3hdysnpmaxpdpqqzhey2f5888av488hq0z6,dgb1qhhaj0w0vyp2kqu55g76r3a7at5x0hemftf50zv,dgb1qf2ezxzcx6hfg9z9nvkhcfxn6fy73lseq9lkv4v,dgb1qunv3urudt4guz8urkrlwxya2umjnnxatkjzwza,dgb1qjwcltx4r7q62nw3qvqs2kgjmqs996l5l534s2c,dgb1qgxkw4qu20xlcd0lp4ta08l0hauqa6tfztues43,dgb1qhr5kd8zv3tmnrtz4mlah7rl3t65wexpece8cc5,dgb1qvcygzknmrz4dvhffqsszw2k7g2fc3jde5hz589,dgb1qrwrtzg9nv3t3fv4vkhlywa8yuwnw0g5v4tt9fg,dgb1qa6v933rrkgs685v4ed48kpvp4wy9vtcdrj32y2,dgb1qps69g6ptyxkjqtg0xvhax6vpqmxl956tf9tc2k,dgb1qmszuzxxx2dcly2muuxvdac6z6pxhq278t5jndg,dgb1qwk5ql29es85ztyvewqzegskanwkqrvkteqnwtk,dgb1q23arpyc0m07kqduqwgxnqsst9uk8zw5twwlyhh,dgb1qhe8qhpvcfg8ctl2vg03u7kru4qjkdzd8fc8pc0,dgb1q6489qrw6j3g33v4sn7uuv5gtxr093uaua4lq3j,dgb1q7dyy2ttj860hqv2h84kl02k60slhl237h27ua7,dgb1qercc2gjjvcj5e7y4a8vs607cdyvq2hy3g2te9y,dgb1qe0c3uvhla3pd8482xc99ja46dexcspnv9errws,dgb1qvp4dq4mp3q5ssezz34duskac0jwkdpqxz8rx2e,dgb1qp7rdpqxqrgn534e87lw99k2wkldx2hzf5qrcuy,dgb1qanf9s76hek3hq0d23ffknpqf62dv9ptgf0em4l,dgb1qwpakwk6zkpfs2m4nf0hp9eevadkhj479vp9nnk,dgb1q4mqcjn0qpam538z8u5w0m2hfm3h78xpvtzeqdt,dgb1qp5a9sllq90q5m9475walgxs7eemqpa4r77zw0d,dgb1qhdyjr5vwspmp4v7032y33mteh8ys08hflye7uz,dgb1q9mudqh3tl4gutlx4a0gtkatf9etppfsgqx5vj3,dgb1qxl55xu4k59nqwvnlz82u9w77knegkuuxa45qja,dgb1qc9n5nshsmmpjymhht7kvlmu0u2rsrfrnsx0zey,dgb1qtsd96sk2w80tg9wysp9kj4hglexvvgp904cngn,dgb1qlxtuqpt57xcu2x73zvv5p35p9vm9chf239uhf3,dgb1qz0kfqemnpf7z6d9wsw3wm3y0v6pr6vtngxnlkg,dgb1qttevlz069amn0agzgtyjv7lw9hl78c0evs583d,dgb1q9z85resfvuj6wf6suv80cz63hs4n4x4ryhs5ym,dgb1qeg85nejqgfzmew36yj2v48z2eag383c929lf43,dgb1qp56glvv3lvj784fq6aw50f6y0uduhyws37nrk9,dgb1qym3d5svmtp7a7lglcyhv520z79z9c8g2lpzgq7,dgb1qdpx5ns2lk7dusznx4rzqrsdwj67y79ulxlryt0,dgb1qnva35x6ddwgv8x4mayy2ysmsdu5cwkjdagfevx,dgb1qzw47h8nvtx5dgx2tr6a8pjnktjyywyl6a0mywu/transactions?noToken=true&batch_size=1000
GET https://explorers.api.vault.ledger.com/blockchain/v3/dgb/addresses/dgb1qgdg3hdysnpmaxpdpqqzhey2f5888av488hq0z6,dgb1qhhaj0w0vyp2kqu55g76r3a7at5x0hemftf50zv,dgb1qf2ezxzcx6hfg9z9nvkhcfxn6fy73lseq9lkv4v,dgb1qunv3urudt4guz8urkrlwxya2umjnnxatkjzwza,dgb1qjwcltx4r7q62nw3qvqs2kgjmqs996l5l534s2c,dgb1qgxkw4qu20xlcd0lp4ta08l0hauqa6tfztues43,dgb1qhr5kd8zv3tmnrtz4mlah7rl3t65wexpece8cc5,dgb1qvcygzknmrz4dvhffqsszw2k7g2fc3jde5hz589,dgb1qrwrtzg9nv3t3fv4vkhlywa8yuwnw0g5v4tt9fg,dgb1qa6v933rrkgs685v4ed48kpvp4wy9vtcdrj32y2,dgb1qps69g6ptyxkjqtg0xvhax6vpqmxl956tf9tc2k,dgb1qmszuzxxx2dcly2muuxvdac6z6pxhq278t5jndg,dgb1qwk5ql29es85ztyvewqzegskanwkqrvkteqnwtk,dgb1q23arpyc0m07kqduqwgxnqsst9uk8zw5twwlyhh,dgb1qhe8qhpvcfg8ctl2vg03u7kru4qjkdzd8fc8pc0,dgb1q6489qrw6j3g33v4sn7uuv5gtxr093uaua4lq3j,dgb1q7dyy2ttj860hqv2h84kl02k60slhl237h27ua7,dgb1qercc2gjjvcj5e7y4a8vs607cdyvq2hy3g2te9y,dgb1qe0c3uvhla3pd8482xc99ja46dexcspnv9errws,dgb1qvp4dq4mp3q5ssezz34duskac0jwkdpqxz8rx2e,dgb1qp7rdpqxqrgn534e87lw99k2wkldx2hzf5qrcuy,dgb1qanf9s76hek3hq0d23ffknpqf62dv9ptgf0em4l,dgb1qwpakwk6zkpfs2m4nf0hp9eevadkhj479vp9nnk,dgb1q4mqcjn0qpam538z8u5w0m2hfm3h78xpvtzeqdt,dgb1qp5a9sllq90q5m9475walgxs7eemqpa4r77zw0d,dgb1qhdyjr5vwspmp4v7032y33mteh8ys08hflye7uz,dgb1q9mudqh3tl4gutlx4a0gtkatf9etppfsgqx5vj3,dgb1qxl55xu4k59nqwvnlz82u9w77knegkuuxa45qja,dgb1qc9n5nshsmmpjymhht7kvlmu0u2rsrfrnsx0zey,dgb1qtsd96sk2w80tg9wysp9kj4hglexvvgp904cngn,dgb1qlxtuqpt57xcu2x73zvv5p35p9vm9chf239uhf3,dgb1qz0kfqemnpf7z6d9wsw3wm3y0v6pr6vtngxnlkg,dgb1qttevlz069amn0agzgtyjv7lw9hl78c0evs583d,dgb1q9z85resfvuj6wf6suv80cz63hs4n4x4ryhs5ym,dgb1qeg85nejqgfzmew36yj2v48z2eag383c929lf43,dgb1qp56glvv3lvj784fq6aw50f6y0uduhyws37nrk9,dgb1qym3d5svmtp7a7lglcyhv520z79z9c8g2lpzgq7,dgb1qdpx5ns2lk7dusznx4rzqrsdwj67y79ulxlryt0,dgb1qnva35x6ddwgv8x4mayy2ysmsdu5cwkjdagfevx,dgb1qzw47h8nvtx5dgx2tr6a8pjnktjyywyl6a0mywu/transactions?no_token=true&batch_size=1000
0
1
{"truncated":false,"txs":[]}

GET https://explorers.api.live.ledger.com/blockchain/v2/dgb/blocks/current
GET https://explorers.api.vault.ledger.com/blockchain/v3/dgb/blocks/current
0
1
{"hash":"f81e0676497f131feb79ec834708df9f662e41b3c9db6712804e9b421a257cc9","height":15229383,"time":"2022-06-14T08:59:21Z","txs":["01d027a4c31ac24e180fcedced1b1ddc637b29e58395d96f2a101f2bbd124055"]}
{"hash":"4c326294c05128351a6e1c5978e83fd93e9b12c6e7f0c46674a0d4ef5efc378d","height":15506935,"time":"2022-08-01T10:03:58Z","txs":["c3d1d657c820e1073715df489b467b077af975ed21d0ef27b3d942fed8b049f8","c6e0a1de549331119af0b5ff5d10fdedea2896e9c372c4fb8e284a5c504c33ea","b81d526f4bb44aed2715da16b29615849eef7fbd9ae834b9f609cf202703c4d7","0b6fc06e0a46e4abe1c18a2af6b54f202751495a4fba8c1a390c5a9a8a2ce971","0068498221ad35af48929d7a633728159bfc6f24a2d999031b04b7a2f83e7c8e","978329a2657c9acce7389a81b5501a5f7a202edc499ffff3512d2219e689c8ad","6fa70edcc0ed5eb53c999ab261e7a7714e95f2cd5e8b3dbe82c332fc3e7413c2","35a01be8a5c49dca94000d94f012177891e89c92f7aa8a61a960b9b4e96838f7","229c15b117b38a96aee3d81791db48cd82872f834526ffdf5f6b7ac8aa3e88c8"]}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit a996d31

Please sign in to comment.