Commit Graph

280 Commits

Author SHA1 Message Date
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 6f8e49d78b Clean up go.mod 2021-07-10 23:23:14 +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 3282b0f2c8 Use io.ReadFull 2021-07-10 14:57:22 +02:00
Slavomir 544f6d10e6 More tests and fixes 2021-07-10 14:44:20 +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 c1ec3144b7 Add MustSignatureFromBase58 2021-07-01 22:00:09 +02:00
Slavomir 998905b8f8 Add RPC/getSignaturesForAddress 2021-07-01 21:39:39 +02:00
Slavomir f4e24044c0 Add solana.Signature{}.IsZero() 2021-07-01 21:38:20 +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