Commit Graph

199 Commits

Author SHA1 Message Date
Justin Starry 24bb060292 feat: remove commitment option from requestAirdrop 2020-06-14 21:57:04 -07:00
Justin Starry e622bb12b3 feat: add getFeeCalculatorForBlockhash method 2020-06-14 21:57:04 -07:00
Justin Starry 8f03677801 feat: remove getInflation in favor of getInflationGovernor 2020-06-14 21:57:04 -07:00
Justin Starry 8547ae43ce feat: add skipPreflight option 2020-06-14 21:57:04 -07:00
Tyera Eulberg e2e4b47103 feat: add singleGossip commitment level 2020-06-14 21:57:04 -07:00
Justin Starry 925c225885 feat: add support for getFirstAvailableBlock method 2020-06-14 21:57:04 -07:00
Justin Starry 1b8fe71230 feat: add getLargestAccounts rpc api 2020-06-14 21:57:04 -07:00
Justin Starry 9c677c7d3d feat: add support for getSupply RPC method 2020-06-14 21:57:04 -07:00
Justin Starry 722adb66c2 feat: add commitment param to subscription apis 2020-06-14 21:57:04 -07:00
Justin Starry 7f9a2e477f fix: fix getEpochInfo type definition 2020-06-14 21:57:04 -07:00
Justin Starry 6558e05fd0 feat: add minimumLedgerSlot api 2020-06-14 21:57:04 -07:00
Justin Starry 839e93480c feat: update transaction confirming apis 2020-06-14 21:57:04 -07:00
Justin Starry 3b71ec1ff6 feat: add root and single commitment levels 2020-06-14 21:57:04 -07:00
Justin Starry 4b613a4574 feat: add getBlockTime method 2020-06-14 21:57:04 -07:00
Justin Starry 742c83f15b fix: add type defs for getEpochInfo 2020-06-14 21:57:04 -07:00
Justin Starry a112d9cedf fix: add type def for NonceAccount.fromAccountData 2020-06-14 21:57:04 -07:00
Justin Starry 02a278b3b2 fix: add version to ContactInfo 2020-06-14 21:57:04 -07:00
Justin Starry c584fbdf39 feat: add support for more system instructions 2020-06-14 21:57:04 -07:00
Justin Starry c5802bcbb6 feat: allow passing seed to createNonceAccount 2020-06-14 21:57:04 -07:00
Justin Starry 5662808b4c fix: isAccountWritable takes a number 2020-06-14 21:57:04 -07:00
Justin Starry 14a41bc47b feat: expose transaction message publicly 2020-06-14 21:57:04 -07:00
Trent Nelson 7e642d5456 fix: rename `signData` to `serializeMessage()` 2020-06-14 21:57:04 -07:00
Trent Nelson 8142aa6c1d feat: allow external signatures on `Transactions`
Adds a helper for adding externally created signature/pubkey pairs
to `Transactions`
2020-06-14 21:57:04 -07:00
Trent Nelson 7d3781e19f feat: expose `Transaction._getSignData()` as `Transaction.signData` 2020-06-14 21:57:04 -07:00
Justin Starry 62251a8bc2 chore: split out meta type 2020-06-14 21:57:04 -07:00
Justin Starry ae53742e1a feat: add getConfirmedTransaction and getConfirmedSignaturesForAddress 2020-06-14 21:57:04 -07:00
Justin Starry e6fb146809 feat: specify program account when using bpf loader 2020-06-14 21:57:04 -07:00
Justin Starry 3a2fe7fdbc feat: update getSignatureStatus methods 2020-06-14 21:57:04 -07:00
Justin Starry 7989c10b7a feat: return null when account info not found 2020-06-14 21:57:04 -07:00
Justin Starry 4c85bccda7 fix: add NONCE_ACCOUNT_LENGTH to type defs 2020-06-14 21:57:04 -07:00
Justin Starry 9b05e9d21e fix: add getNonce method to defs 2020-06-14 21:57:04 -07:00
Justin Starry b0316f82b5 feat: add err field to status results 2020-06-14 21:57:04 -07:00
Justin Starry 6f363e5221 feat: use new getSignatureStatuses endpoint and naming 2020-06-14 21:57:04 -07:00
Justin Starry 0fa84bb06c fix: getConfirmedBlock missing arg in defs 2020-06-14 21:57:04 -07:00
Justin Starry aeedd3867f feat: rename testnet util methods 2020-06-14 21:57:04 -07:00
Justin Starry a2c6c991b8 feat: add root subscription api 2020-06-14 21:57:04 -07:00
Justin Starry a571e3dc65 feat: update getSignatureStatus api 2020-06-14 21:57:04 -07:00
Justin Starry be53ab5aa4 feat: add context to pubsub notification callbacks 2020-06-14 21:57:04 -07:00
Justin Starry 1c31e527e2 feat: update getSignatureStatus 2020-06-14 21:57:04 -07:00
Justin Starry 402c160ae9 feat: use crypto-hash instead of hasha 2020-06-14 21:57:04 -07:00
Justin Starry b2d30d6655 fix: update TS SystemInstruction API and add missing flow method 2020-06-14 21:57:04 -07:00
Trent Nelson 890e21c451 fix: update NonceAccount to upstream changes 2020-06-14 21:57:04 -07:00
Justin Starry 6ed2bad9d0 feat: add API for decoding system instructions 2020-06-14 21:57:04 -07:00
Tyera Eulberg 662ce22cdd fix: add method to type definitions 2020-06-14 21:57:04 -07:00
Justin Starry aba7e14f3a feat: add API for decoding stake instructions 2020-06-14 21:57:04 -07:00
Justin Starry 01e65d2070 fix: add def checks and fix typescript def 2020-06-14 21:57:04 -07:00
Tyera Eulberg d417c7499a fix: update feeCalculator layout 2020-06-14 21:57:04 -07:00
Justin Starry 0cdf532419 feat: expose instruction types and refactor 2020-06-14 21:57:04 -07:00
Justin Starry 8cf98ec4e2 chore: prettier fixes 2020-06-14 21:57:04 -07:00
Justin Starry ea1295300d fix: add system program nonce methods to def files 2020-06-14 21:57:04 -07:00
Justin Starry 38213694bd fix: add tx nonce information types to definitions 2020-06-14 21:57:04 -07:00
Justin Starry 6a7115b8bd fix: allow Uint8Array and Array<number> where Buffer is accepted 2020-06-14 21:57:04 -07:00
Justin Starry 60045eae99 fix: rename ContactInfo id attribute to pubkey 2020-06-14 21:57:04 -07:00
Justin Starry b3aa9fda87 fix: add missing apis to flow and ts definitions 2020-06-14 21:57:04 -07:00
Justin Starry 7073310e2b fix: add Buffer to loader elf data arg type 2020-06-14 21:57:04 -07:00
Justin Starry 740b7a3b23 feat: add onSignature pub sub api 2020-06-14 21:57:04 -07:00
Justin Starry e03fa4b962 fix: add typescript type declaration to npm bundle 2020-06-14 21:57:04 -07:00
Justin Starry 30446807b9 fix: update outdated module.flow.js 2020-06-14 21:57:04 -07:00
Justin Starry 7181d3aeea fix: update stake program api 2020-06-14 21:57:04 -07:00
Tyera Eulberg 43e90a1967 fix: update rpc sendTransaction format to upstream 2020-06-14 21:57:04 -07:00
Tyera Eulberg d26c4ce75c chore: update flow definitions 2020-06-14 21:57:04 -07:00
Jack May 09f004c047 fix: remove GetBlock from module flow 2020-06-14 21:57:04 -07:00
Jack May a51e0211d4 fix: add getMinimumBalanceForRentExemption and getBlock to flow 2020-06-14 21:57:04 -07:00
Tyera Eulberg 3595892fab fix: add integration test and fix various exposed bugs 2020-06-14 21:57:04 -07:00
Tyera Eulberg 532b28e96e feat: add stake program methods; refactor instruction type handling 2020-06-14 21:57:04 -07:00
Rob Walker e0e3094370 fix(system-program): add base pubkey to create_account_with_seed 2020-06-14 21:57:04 -07:00
Tyera Eulberg b2243802b5 fix: make sol-to-lamport const name more clear 2020-06-14 21:57:04 -07:00
Rob Walker 0760853871 feat(system-program): add createAccountWithSeed 2020-06-14 21:57:04 -07:00
Sunny Gleason 286891fa51 feat: slot change callback (provides real-time fork information) 2020-06-14 21:57:04 -07:00
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