Commit Graph

182 Commits

Author SHA1 Message Date
Slavomir 4a37555293 Fix tests 2021-07-11 19:10:06 +02:00
Slavomir 13636d3a55 Add TODOs 2021-07-11 18:08:29 +02:00
Slavomir 3d7eea9a78 Refactor websocket subscriptions 2021-07-11 18:03:56 +02:00
Slavomir b3a107beda Fix request and comments 2021-07-11 17:58:41 +02:00
Slavomir b5290cbfb8 Fix DataBytesOrJSON unmarshaling 2021-07-11 13:59:34 +02:00
Slavomir 87aac3d6a0 Nil account data is not an error 2021-07-10 18:10:58 +02:00
Slavomir ec2eda79c5 Add more tests; refactor account data encoding/decoding 2021-07-10 17:51:19 +02:00
Slavomir ef6edbfabd Fix existing tests 2021-07-10 15:12:23 +02:00
Slavomir 36a0805cfe Add TODOs to tests 2021-07-09 18:45:20 +02:00
Slavomir 0952b02f6f Remove duplicate test; rename tests 2021-07-09 18:30:07 +02:00
Slavomir 8a0f582db6 Use uint64 2021-07-09 17:56:15 +02:00
Slavomir 1979dbf4bf Add tests and improve API signatures 2021-07-09 17:36:53 +02:00
Slavomir 506f465695 Add tests for response parsing 2021-07-07 17:52:58 +02:00
Slavomir 5d59487bbd Add tests for response parsing 2021-07-07 17:42:23 +02:00
Slavomir 2e95c01d4c RPC: each method has its own file 2021-07-07 14:29:22 +02:00
Slavomir 85781927fb Add debug: NewWithCustomRPCClient 2021-07-06 22:31:39 +02:00
Slavomir b6c09dc745 Rename `github.com/dfuse-io/solana-go` to `github.com/gagliardetto/solana-go` 2021-07-06 18:18:26 +02:00
Slavomir c862096cfa Rename rpc/ws/method.go -> rpc/ws/methods.go 2021-07-02 19:20:51 +02:00
Slavomir d3c2c7ba9b Refactor rpc/ws 2021-07-02 17:43:08 +02:00
Slavomir 002b3ea730 Improve naming, comments 2021-07-02 15:42:26 +02:00
Slavomir 52d6398ba8 Refactor RPC/SimulateTransaction; add SimulateTransactionWithOpts 2021-07-02 15:30:57 +02:00
Slavomir f5144eb02f Refactor RPC/SendTransaction; add SendTransactionWithOpts 2021-07-02 15:22:43 +02:00
Slavomir f74e455236 Refactor RPC/RequestAirdrop 2021-07-02 15:07:03 +02:00
Slavomir 946fa25183 Add RPC/minimumLedgerSlot 2021-07-02 15:02:24 +02:00
Slavomir 4852d12cf3 Add RPC/getVoteAccounts 2021-07-02 14:50:53 +02:00
Slavomir 6a5a71777d Add RPC/getVersion 2021-07-02 14:27:49 +02:00
Slavomir 223da4de58 Add RPC/getTransactionCount 2021-07-02 14:24:14 +02:00
Slavomir dd2d5478e9 Add RPC/getTransaction 2021-07-02 14:20:40 +02:00
Slavomir e24be63947 Add RPC/getTokenSupply 2021-07-02 13:50:14 +02:00
Slavomir 6b85f242c7 Add RPC/getTokenLargestAccounts 2021-07-02 13:45:03 +02:00
Slavomir ff5aa5449d Add RPC/getTokenAccountsByOwner 2021-07-02 13:30:03 +02:00
Slavomir 770cf4afe1 Add RPC/getTokenAccountsByDelegate 2021-07-01 22:58:17 +02:00
Slavomir 79462352f1 Add RPC/getTokenAccountBalance 2021-07-01 22:43:18 +02:00
Slavomir 1af934f700 Add RPC/getSupply 2021-07-01 22:31:18 +02:00
Slavomir e4dbcdb3c5 Add RPC/getStakeActivation 2021-07-01 22:24:58 +02:00
Slavomir ebaff46e1e Add RPC/getSlotLeaders 2021-07-01 22:16:47 +02:00
Slavomir 8435d331f3 Add RPC/getSlotLeader 2021-07-01 22:13:21 +02:00
Slavomir 7806a230cf Fix RPC/GetSlot 2021-07-01 22:10:11 +02:00
Slavomir a431f0a26d Add RPC/getSignatureStatuses 2021-07-01 22:01:13 +02:00
Slavomir 7a1bca98fa Transform DeprecatedTransactionMetaStatus into a map 2021-07-01 22:00:39 +02:00
Slavomir 998905b8f8 Add RPC/getSignaturesForAddress 2021-07-01 21:39:39 +02:00
Slavomir fe590b548c Add RPC/getSnapshotSlot 2021-07-01 18:42:15 +02:00
Slavomir 3605c7b3ef Add RPC/getRecentPerformanceSamples 2021-07-01 18:38:02 +02:00
Slavomir 76750a9d90 Clean up RPC/GetRecentBlockhash 2021-07-01 18:30:39 +02:00
Slavomir 6172f0e834 RPC: refactor GetProgramAccounts 2021-07-01 18:27:39 +02:00
Slavomir 529897bd00 RPC: distinguish between GetMultipleAccounts and GetMultipleAccountsWithOpts 2021-07-01 18:02:09 +02:00
Slavomir 5c43d3e89e Add RPC/getMultipleAccounts 2021-07-01 17:58:52 +02:00
Slavomir f2aa90e708 Add missing checks 2021-07-01 17:58:38 +02:00
Slavomir 2b6bbe35d4 Refactor RPC/GetMinimumBalanceForRentExemption 2021-07-01 17:49:20 +02:00
Slavomir 4c9703315b Add RPC/getMaxShredInsertSlot 2021-07-01 17:45:09 +02:00
Slavomir b995cb08a5 Add RPC/getMaxRetransmitSlot 2021-07-01 17:21:12 +02:00
Slavomir f93bc68379 Add RPC/getLeaderSchedule 2021-07-01 17:11:43 +02:00
Slavomir e88e97275c Add RPC/getLargestAccounts 2021-07-01 16:53:03 +02:00
Slavomir 77a8c1a604 Simplify code 2021-07-01 16:44:07 +02:00
Slavomir 20dc75f770 Add RPC/getInflationReward 2021-07-01 16:22:57 +02:00
Slavomir c01b779faf Add RPC/getInflationRate 2021-07-01 16:12:19 +02:00
Slavomir 71f4de74a7 Add RPC/getInflationGovernor 2021-07-01 16:08:32 +02:00
Slavomir 689c15b6b5 Add RPC/getIdentity 2021-07-01 16:03:18 +02:00
Slavomir 18b50cfa50 Add RPC/getHealth 2021-07-01 16:00:31 +02:00
Slavomir 276b3be196 Add RPC/getGenesisHash 2021-07-01 15:56:43 +02:00
Slavomir 2246dc4a28 Remove debug 2021-07-01 15:56:32 +02:00
Slavomir f39dddd168 Add RPC/getFirstAvailableBlock 2021-07-01 15:54:34 +02:00
Slavomir 615174cb7f Add RPC/getFees 2021-07-01 15:40:21 +02:00
Slavomir d46cafb7e0 Add RPC/getFeeRateGovernor 2021-07-01 15:33:32 +02:00
Slavomir 70ce94c209 Add RPC/getFeeCalculatorForBlockhash 2021-07-01 15:24:49 +02:00
Slavomir 49983db2dc Hashes: Use solana.Hash instead of solana.PublicKey 2021-07-01 15:24:34 +02:00
Slavomir 2b6f37bdbc Add RPC/getEpochSchedule 2021-07-01 14:34:33 +02:00
Slavomir 0764db71c7 Add RPC/getEpochInfo 2021-07-01 14:29:35 +02:00
Slavomir c5be85c9ac Add RPC/getClusterNodes 2021-07-01 13:43:10 +02:00
Slavomir bcfb3ee794 RPC/GetBlockTime: more comments 2021-07-01 13:33:54 +02:00
Slavomir 9d670a8a67 Add RPC/getBlockTime 2021-07-01 13:31:17 +02:00
Slavomir 3f3f7e87db Add RPC/getBlocksWithLimit 2021-07-01 13:27:39 +02:00
Slavomir 9f58c50f96 Add RPC/getBlocks 2021-07-01 13:18:42 +02:00
Slavomir 9bebc48cb4 Add RPC/getBlockCommitment 2021-07-01 13:04:36 +02:00
Slavomir 22ddab1305 Add RPC/getBlockProduction 2021-07-01 12:55:54 +02:00
Slavomir 5768c696fe Add RPC/getBlockHeight 2021-07-01 12:15:27 +02:00
Slavomir 170752e3c5 RPC: add getBlock 2021-06-30 23:35:30 +02:00
Slavomir f623a9117b RPC/getBalance: cleanup 2021-06-30 21:22:38 +02:00
Slavomir 781a627a0c RPC/getAccountInfo: make encoding and commitment optional 2021-06-30 21:14:04 +02:00
Slavomir b2078abb38 Comment BlockReward 2021-06-30 21:07:11 +02:00
Slavomir e23f38c674 RPC: Extend getAccountInfo; add GetAccountInfoWithOpts; add comments to Account 2021-06-30 21:06:50 +02:00
Slavomir 7b5326e463 RPC: move deprecated methods into a dedicated file 2021-06-30 14:17:04 +02:00
Slavomir efad3e9472 Add doc comments to existing rpc methods 2021-06-30 14:12:35 +02:00
Julien Cassis fd950b41cc Added new instructions 2020-12-21 09:59:46 -05:00
Julien Cassis 4718a0c39b Added Account flag decoding support 2020-12-16 17:54:18 -05:00
Matthieu Vachon 2c248b4b00 Refactoring around Transaction, fixed all tests, skip WS tests for now 2020-12-16 15:34:07 -05:00
billettc 4e3f16df71 GetSlot is no more returning a pointer 2020-12-09 09:21:23 -05:00
billettc e0f5cbae99 GetSlot not return a pointer 2020-12-09 09:19:04 -05:00
billettc c1302ccafd fix pub key json binding 2020-12-08 12:28:42 -05:00
billettc b78592564e fix account subscription missing data 2020-12-07 13:36:27 -05:00
Julien Cassis 026969ce35 cleaned up error handling 2020-11-26 20:06:13 -05:00
billettc 35b0380396 slnc `spl token register` working. 2020-11-26 12:51:11 -05:00
billettc 038648af29 wip register token. fail to send trx over rpc ... 2020-11-25 16:09:55 -05:00
billettc 520413a05c wip 2020-11-25 14:25:32 -05:00
billettc d7226cdc7b added ping message so ws client do not get disconnected from the server
added address public key in programResult
change some lock and unlock call timing
2020-11-24 08:43:37 -05:00
billettc 5fa02f1541 New text decoder
New decode use into get transactions
2020-11-20 14:24:07 -05:00
Julien Cassis 5a21265242 added more debug logs 2020-11-18 16:14:19 -05:00
Julien Cassis 6ca7856809 added return to error handler 2020-11-18 15:31:56 -05:00
Julien Cassis ec87d9570a move traceEnabled to logging.IsTraceEnabled 2020-11-16 13:39:07 -05:00
Julien Cassis b781f1bfc7 downgrade logger 2020-11-16 13:31:05 -05:00