Commit Graph

67 Commits

Author SHA1 Message Date
Justin Starry 98ea058ebe feat: require programId and keys for TransactionInstruction 2021-03-17 09:10:17 +08:00
Justin Starry 08ff2d12f2 feat: add support for browser es modules 2021-02-08 07:57:05 +08:00
Justin Starry 6e13dbe206
feat: allow setting explicit fee payer for transaction (#13129) 2020-10-25 09:59:38 +08:00
Michael Vines a4cec5c189 chore: remove unnecessary if condition 2020-09-13 07:20:14 +00:00
Michael Vines a59d305e09 fix: support serialization of partially signed transactions 2020-09-13 07:20:14 +00:00
Justin Starry 4bb6c2fffb
fix: ensure signatures are ordered correctly (#12165) 2020-09-13 09:30:51 +08:00
Justin Starry e1abb64f41
feat: require feePayer account before tx serialization (#12109)
* feat: require feePayer account before tx serialization

* feat: add setSigners method

* feat: rename signPartial to partialSign
2020-09-10 14:04:09 +08:00
Jack May d4309b6481
feat: add Message.from method for decoding compiled messages (#11593) 2020-08-12 15:01:39 -07:00
Justin Starry 177c9c3aec feat: add simulateTransaction API 2020-08-11 17:08:27 +08:00
Justin Starry d0f4b24481 fix: remove instanceof checks 2020-07-30 11:44:46 -07:00
Trent Nelson a8b1d71ae6 fix: inconsistent tx message compilation accounting 2020-07-10 15:29:48 -06:00
Trent Nelson 3e3241125f fix: serializing an unsigned tx should throw 2020-07-10 15:29:48 -06:00
Justin Starry f31f66a7c3 fix: avoid double spend in sendAndConfirmTransaction 2020-06-19 15:25:41 +08:00
Justin Starry ad0e71d357 feat: make Transaction.populate method public and tweak MessageArgs 2020-06-14 21:57:04 -07:00
Justin Starry 09d1b7f39f fix: recent blockhash decoding for conf transactions 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 057b2861d3 fix: getConfirmedBlock ix programId parsing 2020-06-14 21:57:04 -07:00
Justin Starry b9ade46c41 chore: prettier fixes 2020-06-14 21:57:04 -07:00
Tyera Eulberg d9a271742f feat: add transaction signature verification 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
Trent Nelson cca9c5d922 fix: rename nonce instructions with VerbNoun scheme 2020-06-14 21:57:04 -07:00
Tyera Eulberg fc007b02ae fix: update getConfirmedBlock json-rpc formatting 2020-06-14 21:57:04 -07:00
Tyera Eulberg 4a547b0057 fix: remove legacy code 2020-06-14 21:57:04 -07:00
Tyera Eulberg aea0e83a40 fix: repair key handling in _getSignData and add Nonce live test 2020-06-14 21:57:04 -07:00
Tyera Eulberg bd0a9348f4 fix: add Nonce transaction construction option 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
Justin Starry 3c08e5b9c4 feat: add getConfirmedBlock api 2020-06-14 21:57:04 -07:00
Tyera Eulberg 086eb6f8b8 fix: add getBlocksSince Connection method 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
Tyera Eulberg daba1a7856 fix: add tx instruction->transfer data functionality 2020-06-14 21:57:04 -07:00
Tyera Eulberg fddf2e54e9 fix: enable serialization of unsigned transactions 2020-06-14 21:57:04 -07:00
Michael Vines c6f828b06a chore: run pretty 2020-06-14 21:57:04 -07:00
Michael Vines d000485f7c fix: increase PACKET_DATA_SIZE to match Solana v0.15.0 2020-06-14 21:57:04 -07:00
Tyera Eulberg 87c1becbef fix: Squash budget bugs 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
Tyera Eulberg 78ad376bcd fix: Appease flow 2020-06-14 21:57:04 -07:00
Tyera Eulberg 34cb08bd84 fix: Update transaction format; include numCreditOnlySignedAccounts and numCreditOnlyUnsignedAccounts bytes, remove programIds 2020-06-14 21:57:04 -07:00
Michael Vines f7a02e54df fix: correctly count duplicate signing keys 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
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 6fe0e08a80 fix: rename userdata to data 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 564d09fdfe fix: remove unwanted u64 length from raw Transaction bytes, it's RPC API specific 2020-06-14 21:57:04 -07:00
Tyera Eulberg 79bc47a631 fix: Add Transaction method to parse from wire fmt; update Transaction.serialize 2020-06-14 21:57:04 -07:00
Michael Vines 62c1efc955 fix: add testnetChannelEndpoint() 2020-06-14 21:57:04 -07:00
Michael Vines bfefb2403c chore: update eslint-plugin-jest 2020-06-14 21:57:04 -07:00
Michael Vines cd4da00a68 fix: avoid packaging bpf-sdk binaries that the user downloads 2020-06-14 21:57:04 -07:00