-
Notifications
You must be signed in to change notification settings - Fork 11.6k
[SDK] Adds .move
plugin
#19194
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
[SDK] Adds .move
plugin
#19194
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
sdk/typescript/src/transactions/plugins/NameResolutionPlugin.ts
Outdated
Show resolved
Hide resolved
sdk/typescript/src/transactions/plugins/NameResolutionPlugin.ts
Outdated
Show resolved
Hide resolved
sdk/typescript/src/transactions/plugins/NameResolutionPlugin.ts
Outdated
Show resolved
Hide resolved
2f79205
to
e71945f
Compare
65e231d
to
0fed76b
Compare
for (const t of splitType) { | ||
if (t.includes(NAME_SEPARATOR) && !isValidNamedPackage(t)) return false; | ||
} | ||
return true; |
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.
not a blocker, but this isn't really validating that the type is a valid format, only that the namedType part is. At some point it would probably good if this returned false if you just pass in a package name, or have mis matching angle brackets, etc...
0fed76b
to
d9731aa
Compare
d9731aa
to
32b7d51
Compare
32b7d51
to
e247e1c
Compare
## Description Introduces the TS plugin that will be used for replacing names with actual addresses. ## Test plan Currently contains unit tests. Once we have a live setup (mainnet / testnet), we'll also setup an actual e2e test (similar to zksend). --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK: - [ ] REST API: --------- Co-authored-by: Michael Hayes <michael.hayes@mystenlabs.com>
Description
Introduces the TS plugin that will be used for replacing names with actual addresses.
Test plan
Currently contains unit tests. Once we have a live setup (mainnet / testnet), we'll also setup an actual e2e test (similar to zksend).
Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.