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

[Tests] Update test suite to use scripts and secp256k1 #74

Closed
wants to merge 11 commits into from

Conversation

xbtmatt
Copy link
Contributor

@xbtmatt xbtmatt commented Oct 17, 2023

Description

Updated the test suite to use secp256k1 and scripts

Test suite

TODO:

  • Add 1 - n signers for the functions
  • Verify the order of signers in the contract with assertions

Argument types

  • basic argument types
  • vector argument types
  • option argument types

Authenticators & payloads

Ed25519 (1 sender, 1 signer)

  • public entry function
  • private entry function
  • script

Secp256k1 (1 sender, 1 signer)

  • public entry function
  • private entry function
  • script

MultiEd25519 (k-of-n signers)

  • TODO

Multi Agent (1 sender, n - 1 secondary signers, n signers)

  • public entry function Ed25519
  • private entry function Ed25519
  • script Ed25519
  • public entry function Secp256k1
  • private entry function Secp256k1
  • script Secp256k1

Fee Payer (1 sender, 1 fee payer, 0 - n signers)

  • public entry function Ed25519
  • private entry function Ed25519
  • script Ed25519
  • public entry function Secp256k1
  • private entry function Secp256k1
  • script Secp256k1

Miscellaneous:

  • view function of all the argument types listed above
  • type tags, including various nested generics

Test Plan

pnpm jest transaction_arguments.test.ts --verbose

@xbtmatt xbtmatt marked this pull request as ready for review October 17, 2023 11:13
@xbtmatt xbtmatt force-pushed the args-test-suite branch 2 times, most recently from 2072861 to 71ec61d Compare October 18, 2023 19:52
@xbtmatt xbtmatt changed the title [Tests] Update test suite to use secp256k1 and scripts [Tests] Update test suite to use scripts (and secp256k1 when ready) Oct 18, 2023
@xbtmatt xbtmatt changed the title [Tests] Update test suite to use scripts (and secp256k1 when ready) [Tests] Update test suite to use scripts and secp256k1 Oct 25, 2023
@xbtmatt xbtmatt closed this Nov 1, 2023
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.

1 participant