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

[various] Payload updates, cleanup TODOs, coverage, documentation #45

Merged
merged 14 commits into from
Jun 6, 2024

Conversation

gregnazario
Copy link
Contributor

@gregnazario gregnazario commented Jun 6, 2024

Description

  • Mainly adds predetermined payloads. Since we have FeePayer, and Multisig, we have to build payloads, rather than have functions that sign transactions as they go. This will replace the APTTransferTransaction eventually
  • Added a TransactionSigner type so we can move between Account and another paradigm easily if we need to change how it works for signing transactions
  • Additional helper functions for serializing individual items
  • Add code upload support

Test Plan

Related Links

@gregnazario gregnazario requested a review from a team as a code owner June 6, 2024 14:31
Copy link
Contributor

@brianolson brianolson left a comment

Choose a reason for hiding this comment

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

I bet we can improve handling of fungible_asset.json
otherwise good

const testEd25519PublicKey = "0xde19e5d1880cac87d57484ce9ed2e84cf0f9599f12e7cc3a52e4e7657a763f2c"
const testEd25519Address = "0x978c213990c4833df71548df7ce49d54c759d6b6d932de22b24d56060b7af2aa"

// These come from fungible_asset.json
Copy link
Contributor

Choose a reason for hiding this comment

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

embed the json into the binary so that it can be read and parsed?
https://pkg.go.dev/embed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This ideally would be built on a case by case basis, embedding in the binary could be interesting, but also less realistic.

@gregnazario gregnazario merged commit 68d5489 into main Jun 6, 2024
1 check passed
@gregnazario gregnazario deleted the payload-updates branch June 6, 2024 17:01
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