354 Commits

Author SHA1 Message Date
Michael Vines
e7097340f2 feat: add account change notifications 2020-06-14 21:57:04 -07:00
Jack May
f871b0410a fix: Remove fs dep, bpf_loader now takes ELF as bytes 2020-06-14 21:57:04 -07:00
Michael Vines
378e766178 test: timeout++ 2020-06-14 21:57:04 -07:00
Michael Vines
f168cdfd70 fix: multiple transaction instructions are now supported 2020-06-14 21:57:04 -07:00
Michael Vines
e50b705de3 fix: remove decimal string support from PublicKey ctor 2020-06-14 21:57:04 -07:00
jackcmay
02787df7b9 Add BpfLoader (#34)
feat: Add BpfLoader
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
96c685eb5d fix: PublicKey.toBuffer() now zero pads correctly 2020-06-14 21:57:04 -07:00
Michael Vines
bc097ec04b test: add confirmation retries when testing live 2020-06-14 21:57:04 -07:00
Michael Vines
779b5c38a2 test: add missing awaits 2020-06-14 21:57:04 -07:00
Michael Vines
ad7c0bec64 fix: export sendAndConfirmTransaction 2020-06-14 21:57:04 -07:00
Michael Vines
83d12f50df fix: add lastId caching 2020-06-14 21:57:04 -07:00
Michael Vines
aaf86ff2ba test: bump jest timeout 2020-06-14 21:57:04 -07:00
Michael Vines
9c8cc0bd24 fix: wait for the next lastId before sending a new transaction 2020-06-14 21:57:04 -07:00
Michael Vines
d9b98918b6 Revert "test: disable flaky test until it can be debugged"
This reverts commit 75b52d0fa5bdeb3b49d91b7c227036b9acd0d451.
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
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
cace23bd0e test: disable flaky test until it can be debugged 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
1436eca398 feat: add unstable API for dynamic program loading 2020-06-14 21:57:04 -07:00
Michael Vines
1dade364cc test: bump jest timeout 2020-06-14 21:57:04 -07:00
Michael Vines
d40712999c test: add delegate mismatch test case 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
ab2d6c9ede test: add .toString() test 2020-06-14 21:57:04 -07:00
Michael Vines
95efc7c3b0 fix: support creating a PublicKey from a base58 string 2020-06-14 21:57:04 -07:00
Michael Vines
aa1d6ba4d4 fix: zero pad correctly 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
70fb01ddd6 test: update test to match AccountInfo userdata refactor 2020-06-14 21:57:04 -07:00
Michael Vines
a3aecba1d0 Improve rpc result validation 2020-06-14 21:57:04 -07:00
Michael Vines
92af6e3341 Add getSignatureStatus() 2020-06-14 21:57:04 -07:00
Michael Vines
8ccbe888d3 Add breadcrumbs to some other available endpoints 2020-06-14 21:57:04 -07:00
Michael Vines
e3703cec29 Add BudgetProgram.payOnBoth 2020-06-14 21:57:04 -07:00
Michael Vines
63382b7e6b Add basic system-program tests 2020-06-14 21:57:04 -07:00
Michael Vines
ffbc23684c Improve budget-program tests 2020-06-14 21:57:04 -07:00
Michael Vines
4a484158f3 s/contract_id/program_id/g 2020-06-14 21:57:04 -07:00
Michael Vines
7148b0f7d8 Add getAccountInfo 2020-06-14 21:57:04 -07:00
Michael Vines
d009e7e91b s/contract/program/ 2020-06-14 21:57:04 -07:00
Michael Vines
a96ab72e8e Add support for built-in contracts 2020-06-14 21:57:04 -07:00
Michael Vines
7dad281f69 Create TransferTokensTransaction class 2020-06-14 21:57:04 -07:00
Michael Vines
fa5f3d81fd Update airdrop return type 2020-06-14 21:57:04 -07:00
Michael Vines
ad5390bbae Switch testnet url 2020-06-14 21:57:04 -07:00
Michael Vines
29148ef898 Add preliminary sendTokens() implementation 2020-06-14 21:57:04 -07:00
Michael Vines
0aa5d2c71a Add a couple of negative tests 2020-06-14 21:57:04 -07:00
Michael Vines
9da3188a2d eslint: Suppress 'JestMockFn' is not defined 2020-06-14 21:57:04 -07:00
Michael Vines
92e602bd87 Mock Connection tests 2020-06-14 21:57:04 -07:00
Michael Vines
41a658c336 Add most of sendTokens() implementation 2020-06-14 21:57:04 -07:00
Michael Vines
392672a5a7 Implement requestAirdrop 2020-06-14 21:57:04 -07:00
Michael Vines
4df189513e Add Connection class 2020-06-14 21:57:04 -07:00