Skip to content

ts: fix methods namespace typing loss and deprecate non-methods namespaces#1539

Merged
armaniferrante merged 3 commits intosolana-foundation:masterfrom
callensm:master
Mar 2, 2022
Merged

ts: fix methods namespace typing loss and deprecate non-methods namespaces#1539
armaniferrante merged 3 commits intosolana-foundation:masterfrom
callensm:master

Conversation

@callensm
Copy link
Copy Markdown
Contributor

@callensm callensm commented Mar 1, 2022

resolves #1434
resolves #1442

@armaniferrante armaniferrante merged commit 80be428 into solana-foundation:master Mar 2, 2022
NBNARADHYA pushed a commit to MLH-Fellowship/anchor that referenced this pull request Mar 8, 2022
NBNARADHYA pushed a commit to MLH-Fellowship/anchor that referenced this pull request Mar 9, 2022
NBNARADHYA pushed a commit to MLH-Fellowship/anchor that referenced this pull request Mar 9, 2022
NBNARADHYA pushed a commit to MLH-Fellowship/anchor that referenced this pull request Mar 9, 2022
NBNARADHYA pushed a commit to MLH-Fellowship/anchor that referenced this pull request Mar 9, 2022
NBNARADHYA pushed a commit to MLH-Fellowship/anchor that referenced this pull request Mar 9, 2022
@Beardev118
Copy link
Copy Markdown

Which method can use instead of deprecated rpc?

@callensm
Copy link
Copy Markdown
Contributor Author

the program.methods namespace is now the preferred namespace to use.

@Beardev118
Copy link
Copy Markdown

Okay, thank you

@gabRiel-bit20
Copy link
Copy Markdown

Will be worth add some documentation pointing to methods when marking rpc, instruction deprecated.

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.

ts: Mark all program namespaces (except for methods) as deprecated TS: Builder API types are cascaded as any after .method call.

4 participants