Commit Graph

130 Commits

Author SHA1 Message Date
Tyera Eulberg 2d5ace244a fix: getConfirmedBlock result pattern fixup 2020-06-14 21:57:04 -07:00
Tyera Eulberg a461d5f25f fix: update ConfirmedBlock handling to match solana upstream 2020-06-14 21:57:04 -07:00
Sunny Gleason 5212a98b83 feat: implement new response format for __WithCommitment() methods 2020-06-14 21:57:04 -07:00
Justin Starry f3d9ab75e6 feat: add getVersion method 2020-06-14 21:57:04 -07:00
Justin Starry 189807f5a5 feat: add commitment param to JSON RPC API requests (#549)
* feat: add commitment param to json rpc requests

* fix: tests and examples

* fix: docs

* fix: epoch info test

* fix: budget example

* fix: test timeout

* fix: remove MAX_COMMITMENT and RECENT_COMMITMENT types
2020-06-14 21:57:04 -07:00
Tyera Eulberg d0c89f7fa3 fix: update accounts to readonly/writable 2020-06-14 21:57:04 -07:00
Sunny Gleason 67c9b50249 feat: get_epoch_schedule rpc (#536) 2020-06-14 21:57:04 -07:00
Jack May 0d582c180f fix: update module.flow (#537) 2020-06-14 21:57:04 -07:00
Michael Vines c705ac01f5 fix: adapt tests to higher default transaction signature fee (#531) 2020-06-14 21:57:04 -07:00
Tyera Eulberg 7191159377 fix: update node exit rpc to match solana changes 2020-06-14 21:57:04 -07:00
Parth 7038468edb fix: finalize tx need to have rent sysvar (#506) 2020-06-14 21:57:04 -07:00
Jack May b4922e8aef fix: token program moved to its own repo (#502) 2020-06-14 21:57:04 -07:00
Jack May c31ca1fc1b fix: flow expose transactionInstruction (#499) 2020-06-14 21:57:04 -07:00
Justin Starry ef0bad0910 fix: udpate PublicKey flow def (#496) 2020-06-14 21:57:04 -07:00
Michael Vines 1b70081399 fix: add Account.rent_epoch field and rebuild bpf test fixtures (#466)
* fix: add Account.rent_epoch field

* fix: rebuild bpf test fixtures
2020-06-14 21:57:04 -07:00
Tyera Eulberg a3bf378d0d fix: update from getEpochVoteAccounts to getVoteAccounts rpc 2020-06-14 21:57:04 -07:00
Michael Vines 2eeaf668fa fix: add missing getSlot API 2020-06-14 21:57:04 -07:00
Justin Starry 677c075ade fix: add transaction instruction ctor to flow def (#408) 2020-06-14 21:57:04 -07:00
Michael Vines 6c32bca04d fix: export VOTE_ACCOUNT_KEY (#422) 2020-06-14 21:57:04 -07:00
Michael Vines c929516f52 feat: add vote account decoder (#418) 2020-06-14 21:57:04 -07:00
Tyera Eulberg f46faee251 fix: update keybaseId to keybaseUsername 2020-06-14 21:57:04 -07:00
Justin Starry 2e3c5e7820 fix: end of life native loader (#404) 2020-06-14 21:57:04 -07:00
Justin Starry 6f05930076 feat: validator info deserialization (#403) 2020-06-14 21:57:04 -07:00
Tyera Eulberg 0e7c8cd01f fix: expose getProgramAccounts RPC method 2020-06-14 21:57:04 -07:00
Michael Vines 684605fd5c fix: add burnPercent field to FeeCalculator (#381) 2020-06-14 21:57:04 -07:00
Trent Nelson 034f31d3bc Expose `getTotalSupply` RPC method (#370) 2020-06-14 21:57:04 -07:00
Michael Vines 10e3a26338 feat: expose feeCalculator 2020-06-14 21:57:04 -07:00
Tyera Eulberg c99d8dd15c fix: Add preliminary handling for credit-only account designation 2020-06-14 21:57:04 -07:00
Michael Vines 48f0bcc2bf fix: pay transaction fees from system accounts 2020-06-14 21:57:04 -07:00
Michael Vines 456f34e95b fix: add fullnodeExit() 2020-06-14 21:57:04 -07:00
Michael Vines a2cd9180b5 feat: add getSlotLeader()/getClusterNodes() 2020-06-14 21:57:04 -07:00
Tyera Eulberg c1bbb9b291 s/move/transfer in system program to match solana 2020-06-14 21:57:04 -07:00
Tyera Eulberg 507fac06ee fix: Appease flow 2020-06-14 21:57:04 -07:00
Tyera Eulberg efd0392706 BREAKING CHANGE: requires Solana version v0.13.0 or greater
feat: Update to current solana tx format
2020-06-14 21:57:04 -07:00
Michael Vines c78ca47547 chore: npm run pretty 2020-06-14 21:57:04 -07:00
Michael Vines a4835edf3c fix(flow): Add ProgramAccountChangeCallback type 2020-06-14 21:57:04 -07:00
Michael Vines 6fe0e08a80 fix: rename userdata to data 2020-06-14 21:57:04 -07:00
Tyera Eulberg f6afbe1a72 fix: Plumb program-based subscriptions 2020-06-14 21:57:04 -07:00
Michael Vines be8821e0d0 fix: rename tokens to lamports 2020-06-14 21:57:04 -07:00
Michael Vines 294dd4f4e7 fix: Rename lastId to blockhash 2020-06-14 21:57:04 -07:00
Michael Vines 5b9665098a fix: getConfirmationTime() was removed upstream 2020-06-14 21:57:04 -07:00
Michael Vines 41865547ee fix: remove spawn 2020-06-14 21:57:04 -07:00
Michael Vines 88abaa3cc9 fix: rename getFinality to getConfirmationTime 2020-06-14 21:57:04 -07:00
Michael Vines 62c1efc955 fix: add testnetChannelEndpoint() 2020-06-14 21:57:04 -07:00
Michael Vines f1db055199 fix: flowtype catchup 2020-06-14 21:57:04 -07:00
Michael Vines 2962eef2c7 fix: add sendAndConfirmRawTransaction() 2020-06-14 21:57:04 -07:00
Michael Vines 4acccb3976 fix: add flowtype for SignaturePubkeyPair 2020-06-14 21:57:04 -07:00
Michael Vines 0026b44531 feat: add support for partial Transaction signing 2020-06-14 21:57:04 -07:00
Michael Vines ac4bfaad32 feat: add sendRawTransaction() 2020-06-14 21:57:04 -07:00
Michael Vines fa7e2722d1 fix: support multiple Transaction signatures 2020-06-14 21:57:04 -07:00
Michael Vines 67ccac9418 fix: catch up to account field renaming 2020-06-14 21:57:04 -07:00
Tyera Eulberg 5ce16c2cbb fix: return signature from transfer transactions 2020-06-14 21:57:04 -07:00
Michael Vines 1d6abb17cf refactor: employ prettier 2020-06-14 21:57:04 -07:00
Michael Vines 9a043344d5 fix: sendAndConfirmTransaction now returns the transaction signature 2020-06-14 21:57:04 -07:00
Michael Vines c424b48cd2 fix(flow): add transaction instructions field 2020-06-14 21:57:04 -07:00
Michael Vines 4897ed0872 fix: add BpfLoader flow definition 2020-06-14 21:57:04 -07:00
Michael Vines f3242c12a6 fix(flow): correct onAccountChange prototype 2020-06-14 21:57:04 -07:00
Michael Vines 66e572f2a8 fix(flow): correct removeAccountChangeListener prototype 2020-06-14 21:57:04 -07:00
Michael Vines e7097340f2 feat: add account change notifications 2020-06-14 21:57:04 -07:00
Michael Vines 99e6b44d03 fix: expose token program instructions 2020-06-14 21:57:04 -07:00
Michael Vines bb0730f86e fix(flow): add Transaction.add() 2020-06-14 21:57:04 -07:00
Michael Vines b8d586c67e feat: add room in the API for Transactions with multiple Instructions 2020-06-14 21:57:04 -07:00
Michael Vines 90c9df15ef fix: retry transactions on AccountInUse errors 2020-06-14 21:57:04 -07:00
Michael Vines 0510dbae6c fix(flow): add sendAndConfirmTransaction 2020-06-14 21:57:04 -07:00
Michael Vines 00890ef9e0 fix: add Token::setOwner 2020-06-14 21:57:04 -07:00
Michael Vines 9d63f28cdf fix(flow): correct newAccount prototype 2020-06-14 21:57:04 -07:00
Michael Vines c848d64e3c fix(flow): add revoke() 2020-06-14 21:57:04 -07:00
Michael Vines 220589eb5d fix(flow): add missing optional programId arg 2020-06-14 21:57:04 -07:00
Michael Vines 757cf3ec16 fix: catchup to upstream loader changes 2020-06-14 21:57:04 -07:00
Michael Vines 00fd0fc435 feat: support user-supplied Token programs 2020-06-14 21:57:04 -07:00
Michael Vines a9fc62d891 feat: expose ERC20 token originalAmount field 2020-06-14 21:57:04 -07:00
Michael Vines 011a2abd0c fix: catch up to recent upstream changes 2020-06-14 21:57:04 -07:00
Michael Vines 96242110bf fix: add Token flowtype declarations 2020-06-14 21:57:04 -07:00
Michael Vines c931127748 fix: add flow definition for load() 2020-06-14 21:57:04 -07:00
Michael Vines ad2fa3ceaf feat: Add ERC20-like Token 2020-06-14 21:57:04 -07:00
Michael Vines 4f1112534d fix: remove duplicate PublicKey flow definition 2020-06-14 21:57:04 -07:00
Michael Vines ca6965f8c2 feat: wrap public key in a class 2020-06-14 21:57:04 -07:00
Michael Vines 935d520ec9 refactor: AccountInfo userdata is now never null 2020-06-14 21:57:04 -07:00
Michael Vines c7100964a8 fix: add missing type exports 2020-06-14 21:57:04 -07:00
Michael Vines 721ce794e8 feat(flow): add initial flow library definition 2020-06-14 21:57:04 -07:00