-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 typescript support #795
Merged
armaniferrante
merged 40 commits into
coral-xyz:master
from
StrataFoundation:feature/types
Oct 5, 2021
Merged
Changes from 39 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
9cdb365
Update accountsArray types
macalinao c2fc4d8
Adds types for InstructionFn
macalinao 6488b11
Adds more types
macalinao 5980b9c
More granular types
macalinao 65285cf
remove event parser export
macalinao e73f638
Account and state data types
macalinao aabe73c
Merge branch 'master' into igm/types
macalinao 8b9464d
Merge remote-tracking branch 'origin/master' into igm/types
macalinao 18d9989
Merge remote-tracking branch 'upstream/master' into igm/types
macalinao dfb9bd2
T
macalinao ea35d62
simulate.ts: remove duplicate event import
crispheaney c935f75
examples/escrow: refector tests to typescript
crispheaney 1f949f1
example/escrow: bash script to generate escrow type for test
crispheaney 26b6a04
examples/escrow: add idl typehint to Program
crispheaney e80c7db
.travis.yml: fix command for escrow test
crispheaney c377fbd
ts/account: use account names from IDL for keys in AccountNamespace
crispheaney 0a47d0d
ts/namespace/index: fix undefined error from undefined idl.accounts
crispheaney 3374f79
Add some fixes
ChewingGlass 17c697f
Merge remote-tracking branch 'serum/master' into feature/types
ChewingGlass 8be6d72
Merge remote-tracking branch 'serum/master' into feature/types
ChewingGlass d23f131
Update ts/package.json
ChewingGlass 99a7405
Update ts/package.json
ChewingGlass 9e17d95
Update ts/src/program/index.ts
ChewingGlass 064da53
Update ts/src/program/index.ts
ChewingGlass 20e88f7
Move idl parser
ChewingGlass 8274802
Merge branch 'feature/types' of github.com:ChewingGlassFund/anchor in…
ChewingGlass 1417b8e
Finish moving escrow
armaniferrante 22c5609
Add idl
ChewingGlass 39e9e1d
Merge branch 'feature/types' of github.com:ChewingGlassFund/anchor in…
ChewingGlass a044d0c
yarn lint:fix
armaniferrante b687944
Fix escrow and require defined provider
armaniferrante 58cfc6a
Remove yarn.lock
armaniferrante d3e7de3
update
armaniferrante 2731187
Generate ts file via anchor build
armaniferrante 986afd9
Anchor init typescript with types
armaniferrante ddbab9a
Merge branch 'master' into feature/types
armaniferrante 24950ae
ts lint
armaniferrante 50e8a68
fix provider
armaniferrante 5e3b45c
Update
armaniferrante 340b45b
Update
armaniferrante File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
{ | ||
"dependencies": { | ||
"@project-serum/anchor": "^0.9.0", | ||
"@project-serum/serum": "0.13.38", | ||
"@solana/web3.js": "^1.18.0", | ||
"@solana/spl-token": "^0.1.6" | ||
}, | ||
"devDependencies": { | ||
"ts-mocha": "^8.0.0" | ||
"@project-serum/anchor": "../../ts", | ||
"@project-serum/serum": "latest", | ||
"@solana/spl-token": "latest", | ||
"@solana/web3.js": "latest", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^14.14.37", | ||
"bn.js": "^5.2.0", | ||
"camelcase": "^6.2.0", | ||
"chai": "^4.3.4" | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Noticed a problem with this only now when started updating the project on which I work. Why do we change the account name to mixed case? @ChewingGlass