-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[shuffle] Correctly generate Typescript bindings to Move scripts #9398
[shuffle] Correctly generate Typescript bindings to Move scripts #9398
Conversation
9c1c930
to
99315e2
Compare
d012401
to
ea0efb8
Compare
deb03dc
to
dce7a0e
Compare
language/transaction-builder/generator/tests/diem.goldenfile.yaml
Outdated
Show resolved
Hide resolved
In order to make the PR smaller, I'll be adding the commit that JIT generates the typescript. That way, |
a17526e
to
0d45797
Compare
0d45797
to
dc69f1d
Compare
LEC dependency change summary:
|
LSR dependency change summary:
|
release binaries dependency change summary:
|
This is configured to run on CI via codegen-unit-test but ignored locally to keep test suite fast for other devs. Closes: #9398
Forge Test Result
❗ Forge Test failed - non-zero exit code for Repro cmd:
|
Cluster Test Result
Repro cmd:
🎉 Land-blocking cluster test passed! 👌 |
💔 Test Failed - ci-test |
Forge Test Result
Repro cmd:
🎉 Land-blocking forge test passed! 👌 |
Cluster Test Result
Repro cmd:
🎉 Land-blocking cluster test passed! 👌 |
/land |
./scripts/dev_setup.sh -s
This is configured to run on CI via codegen-unit-test but ignored locally to keep test suite fast for other devs. Closes: diem#9398
Forge Test Result
Repro cmd:
🎉 Land-blocking forge test passed! 👌 |
Cluster Test Result
Repro cmd:
🎉 Land-blocking cluster test passed! 👌 |
dc69f1d
to
c800ee1
Compare
Dependency update reviewbcs updated: 0.1.2 --> 0.1.3
Cilck to show detailsClick to show version diff summary
Click to show changed files
serde-generate updated: 0.19.1 --> 0.20.2
Cilck to show detailsClick to show version diff summary
Click to show changed files
serde-reflection updated: 0.3.2 --> 0.3.4
Cilck to show detailsClick to show version diff summary
Click to show changed files
Click to show the files that differ in crates.io from the git source
|
Motivation
Prior to this PR, typescript generation was broken with mismatched types, and incorrect imports.
Here, we correctly generate typescript bindings to move scripts, with zero manual tweaking and just-in-time (JIT) generate typescript libraries for interactions with move scripts, right as a developer enters the shuffle REPL.
Notable highlights:
module
withmoduleName
, and asserts the new ABI against a goldenfile.BigInt
was erroneously used as the primitive overbigint
.shuffle new,console,test
Have you read the Contributing Guidelines on pull requests?
yes
Test Plan
** Ignore files under
generated/
from review.Related PRs
Unblocks #9322, which adds a script function typescript demo.