Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bring Rosetta dependencies up to date #261

Merged
merged 13 commits into from
Dec 28, 2021
Merged

bring Rosetta dependencies up to date #261

merged 13 commits into from
Dec 28, 2021

Conversation

pro-wh
Copy link
Collaborator

@pro-wh pro-wh commented Dec 18, 2021

I'm just starting to read through the various changelogs and stuff, but here's a placeholder PR to indicate that we're looking to upgrade to the latest of the Rosetta SDK and cli

Obsoletes: #214, #253, #254, #255.

@pro-wh pro-wh marked this pull request as draft December 18, 2021 00:48
@pro-wh
Copy link
Collaborator Author

pro-wh commented Dec 18, 2021

services/operations.go:727:4: too many errors

okay

@pro-wh pro-wh force-pushed the pro-wh/feature/update branch from a059351 to 365335b Compare December 22, 2021 01:50
@pro-wh pro-wh marked this pull request as ready for review December 22, 2021 01:51
tests/test.sh Outdated Show resolved Hide resolved
tests/test.sh Show resolved Hide resolved
@pro-wh
Copy link
Collaborator Author

pro-wh commented Dec 22, 2021

oh no load_env

####### the variable a6ed68a1cc964b430e1e40254347367f08e4eb5eeaf0852d5648022873b50c07 
...
Processed Input: {"network_identifier": {"blockchain": "Oasis","network": "6ed68a1cc964b430e1e40254347367f08e4eb5eeaf0852d5648022873b50c07"},"public_key": {"hex_bytes":"b94fbdc52da6f68d432b5ac056e28b7fb86b550c6a120660f82f1b1003e0cda0","curve_type":"edwards25519"}}

something is chopping off the a at the beginning of the network id

@pro-wh pro-wh force-pushed the pro-wh/feature/update branch 2 times, most recently from fef15d9 to 9e8d7cb Compare December 22, 2021 19:33
@pro-wh
Copy link
Collaborator Author

pro-wh commented Dec 22, 2021

coinbase/mesh-cli#267

in the meantime, I'm going to use our server's own /network/list to populate an env var directly in JSON format. this also makes us not need to add a dependency on jq.

tests/oasis.ros Outdated Show resolved Hide resolved
Copy link
Member

@tjanez tjanez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, @pro-wh. Really easy to review and navigate thanks to nicely breaken down commits!

I only have some minor inline nits and 3 suggestions for the git commit organization:

  • I would squash all 3 "/construction/*: update account_identifier" commits into a single one.

  • I would also squash all 3 "new arguments to NewServer" commits into a single one.

  • Can you squash the "add changelog" commit into the first commit ("bump rosetta and oasis-core versions")?

tests/test.sh Show resolved Hide resolved
.changelog/261.breaking.md Outdated Show resolved Hide resolved
.changelog/261.breaking.md Show resolved Hide resolved
.changelog/261.breaking.md Outdated Show resolved Hide resolved
@pro-wh
Copy link
Collaborator Author

pro-wh commented Dec 23, 2021

ok on the squashing.

@pro-wh pro-wh force-pushed the pro-wh/feature/update branch from 80263e4 to e28940d Compare December 23, 2021 22:02
@pro-wh
Copy link
Collaborator Author

pro-wh commented Dec 23, 2021

oh hey, shoutout to @songchenwen who did similar work in #214

@pro-wh pro-wh requested a review from tjanez December 23, 2021 23:59
Copy link
Member

@tjanez tjanez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

sender_amount_fee = 0 - {{amount_fee}};
available_amount = {{sender.balance.value}} - {{amount_fee}};
recipient_amount = random_number({"minimum": "1", "maximum": {{available_amount}}});
print_message({"recipient_amount": {{recipient_amount}}});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this print also for debugging or should be there?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have this one here to match an equivalent print_message in the Ethereum workflow:
https://github.com/coinbase/rosetta-ethereum/blob/56328e8f0855edcaf6385a7d850142d8ace3b849/rosetta-cli-conf/testnet/ethereum.ros#L59

I'm fine with removing it, since we don't have anyone or that specifically looks at this printout.

But the argument for leaving it in is (1) minimizing how much we diverge from an officially maintained upstream workflow, which should make maintenance easier and (2) hoping that it's useful debugging information to the extent that upstream left it in, which maybe we'll need too at some point

@pro-wh
Copy link
Collaborator Author

pro-wh commented Dec 28, 2021

thanks for reviewing, merging as is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants