-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add the NoAccountAuthenticator
variant
#467
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left initial comments. can we gat a PR description on what we are changing/adding here and why?
Added! |
b04e8e7
to
45d2d3d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a first round
- Please fix the linting errors - can run
pnpm lint
on the sdk root folder - When we have a property
publicKey?:PublicKey
it means thepublicKey
is of typePublicKey
orundefined
- please use this syntax - Please update CHANGELOG
- Also, tests are failing
45d2d3d
to
adf489b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's address the PR comments, clean up the PR (lint and format errors) - then can do another final round
adf489b
to
6df62ec
Compare
6df62ec
to
c1778b9
Compare
Some are unavoidable, so I added
Done accordingly.
Updated.
They passed locally. It requires a custom localnet. Probably, this PR should wait until the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whats the migration process? looks like we first need to have the feature on mainnet? or are we good with only on devnet/testnet?
Can we make sure tests are passing with the localnet on main branch before merging it in?
6381bf8
to
e1f7ca3
Compare
a404a42
to
fcc63fe
Compare
fcc63fe
to
05a3001
Compare
05a3001
to
8b1d7bf
Compare
I rebased and fixed the conflicts. |
73ad632
to
5fc34d5
Compare
Thank you! We’re now waiting on the security review and the testnet/mainnet release before merging this PR. |
e495b5c
to
d645837
Compare
07ca3c5
to
a7807b2
Compare
This PR adds the documentation for the change in aptos-labs/aptos-ts-sdk#467 (AIP-92: https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-92.md).
a7807b2
to
0b3205e
Compare
Simulation API Update: Allows users to simulate transactions without providing public keys by updating simulateTransaction to accept PublicKey | null instead of PublicKey. If null is provided, NoAccountAuthenticator is used as an authenticator. Multisig V2 Example Update: The multisig v2 example (multisig_v2.ts) is updated to reflect the change in the multisig transaction simulation behavior. To pre-check the multisig payload before creation, an entry function payload simulation with the multisig account as the sender and 0x0 as the fee payer is used.
b3d142c
to
12e84d1
Compare
Includes the transaction simulation enhancement support: * https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-92.md * #467
Includes the transaction simulation enhancement support: https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-92.md Add the NoAccountAuthenticator variant #467
Includes the transaction simulation enhancement support: https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-92.md Add the NoAccountAuthenticator variant #467
* Add the documentation for the transaction simulation enhancement This PR adds the documentation for the change in aptos-labs/aptos-ts-sdk#467 (AIP-92: https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-92.md). * Update apps/nextra/pages/en/build/sdks/ts-sdk/building-transactions/multi-agent-transactions.mdx Co-authored-by: Greg Nazario <[email protected]> * Update apps/nextra/pages/en/build/sdks/ts-sdk/building-transactions/simulating-transactions.mdx Co-authored-by: Greg Nazario <[email protected]> * Update apps/nextra/pages/en/build/sdks/ts-sdk/building-transactions/simulating-transactions.mdx Co-authored-by: Greg Nazario <[email protected]> * Update apps/nextra/pages/en/build/sdks/ts-sdk/building-transactions/simulating-transactions.mdx Co-authored-by: Greg Nazario <[email protected]> * Update apps/nextra/pages/en/build/sdks/ts-sdk/building-transactions/simulating-transactions.mdx Co-authored-by: Greg Nazario <[email protected]> * Update apps/nextra/pages/en/build/sdks/ts-sdk/building-transactions/simulating-transactions.mdx Co-authored-by: Greg Nazario <[email protected]> * Update multi-agent-transactions.mdx --------- Co-authored-by: Greg Nazario <[email protected]>
Description
This PR updates the TypeScript SDK to support the simulation enhancement AIP: https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-92.md.
Key Changes:
Simulation API Update: Allows users to simulate transactions without providing public keys by updating simulateTransaction to accept
PublicKey | null
instead ofPublicKey
. If null is provided,NoAccountAuthenticator
is used as an authenticator. This new authenticator variant is supported by the Aptos VM as per this PR.Multisig V2 Example Update: The multisig v2 example (multisig_v2.ts) is updated to reflect the change in the multisig transaction simulation behavior. To pre-check the multisig payload before creation, an entry function payload simulation with the multisig account as the sender and 0x0 as the fee payer is used.
Test Plan
This PR includes the following test scenarios:
0x0
and no public key of the fee payer provided.NoAccountAuthenticator
is used.Related Links
N.A.