Commit Graph

182 Commits

Author SHA1 Message Date
Slavomir f48fa055d9 Move UnixTimeSeconds to solana package 2021-09-11 17:09:40 +02:00
Slavomir 44d7fe738f jsonrpc: include complete RPC error contents 2021-09-08 17:14:51 +02:00
Slavomir 611f6cdfaf WS: fix ping/pong 2021-09-06 18:19:12 +02:00
Slavomir ef5ea7ca0f Improve confirmation error 2021-09-06 18:04:17 +02:00
Slavomir b0c07ef8ea Add LocalNet_WS 2021-09-06 18:02:53 +02:00
Slavomir b57a767108 Add SendAndConfirmTransaction 2021-09-06 18:02:45 +02:00
Slavomir b124787015 Improve naming 2021-09-06 17:58:08 +02:00
Slavomir 28104b6342 Use github.com/gagliardetto/binary 2021-09-04 14:03:55 +02:00
Slavomir ed736e9156
Merge pull request #2 from gagliardetto/native-programs
Refactor program utilities; refactor system program client
2021-08-31 23:34:18 +03:00
Slavomir e9ce078fed Add LocalNet_RPC 2021-08-22 16:31:34 +02:00
Slavomir 1ff7831043 Upgrade binary package 2021-08-21 17:53:13 +02:00
Slavomir 7c9a344746 Add rpc/errors 2021-08-11 17:02:20 +02:00
Slavomir bdc8d4c360 Use *solana.PublicKey for optional pubkeys 2021-08-02 16:37:18 +02:00
Leopold Schabel 67b495e4e5 Add GetConfirmedTransactionWithOpts 2021-07-29 12:55:30 +02:00
Slavomir 9c9f6d1799 Update examples 2021-07-28 23:52:51 +02:00
Slavomir 0cf0167349 Fix transaction binary marshaling 2021-07-27 23:53:48 +02:00
Slavomir 6e8a2ea355 Cleanup 2021-07-27 21:11:39 +02:00
Slavomir 35ffa63488 Fix mustJSONToInterface 2021-07-27 18:26:32 +02:00
Slavomir e0fe8a2867 RPC result types: Use native types instead of bin.* 2021-07-27 18:25:16 +02:00
Slavomir 63da73acd5 Rename endpoints variables 2021-07-27 17:55:40 +02:00
Slavomir 7d845d7ae6 Add WS subscription examples (channel) 2021-07-27 17:32:08 +02:00
Slavomir 55a9958fa3 Fix var name 2021-07-27 17:03:38 +02:00
Slavomir 2598fe4023 Add examples for RPC methods 2021-07-27 16:26:14 +02:00
Slavomir f636139b05 Fix and cleanup RPC 2021-07-27 16:24:08 +02:00
Slavomir 9c899e62f2 Refactor GetConfirmedSignaturesForAddress2 2021-07-25 22:57:41 +02:00
Slavomir b8e8a25c7d Fix comments, params of getBlockProduction, getLeaderSchedule 2021-07-25 22:31:30 +02:00
Slavomir 009b36183f Make endpoint variables more readable 2021-07-25 22:14:17 +02:00
Slavomir 34a9743eb3 Update commitment types list 2021-07-25 22:06:57 +02:00
Slavomir 28f7660fb8 RPC/GetBlock: check provided encoding before sending request. 2021-07-25 22:04:49 +02:00
Slavomir df2b78acca Cleanup rpc endpoints 2021-07-25 16:27:03 +02:00
Slavomir c5fd40384b Fix README 2021-07-21 18:27:07 +02:00
Slavomir b31c050a08 Implement MarshalText/UnmarshalText on solana.PublicKey so it can be used as map key 2021-07-21 18:05:58 +02:00
Slavomir d2b3d86f51 Use github.com/json-iterator/go instead of encoding/json 2021-07-21 18:05:20 +02:00
Slavomir 26cb759441 Cleanup 2021-07-21 17:07:47 +02:00
Slavomir 60a2775a45 Use github.com/buger/jsonparser instead of github.com/tidwall/gjson 2021-07-21 16:36:08 +02:00
Slavomir f0f399ab57 Refactor HTTP clients 2021-07-20 21:29:06 +02:00
Slavomir 58f43f60bd Add list of default RPC endpoints 2021-07-20 17:38:14 +02:00
Slavomir 9041cb5bc4 Add more tests 2021-07-20 17:29:06 +02:00
Slavomir f81c562eef RPC/ws: cleanup 2021-07-20 16:44:38 +02:00
Slavomir 5ec59eede6 RPC/ws: separate methods into different files. 2021-07-20 16:35:52 +02:00
Slavomir 947ac81bd3 RPC/ws: add SlotsUpdatesSubscribe 2021-07-20 16:13:07 +02:00
Slavomir 2c8e89bf11 Result types after method 2021-07-20 14:17:21 +02:00
Slavomir 318968d9b2 Sync with github.com/solana-labs/solana@dff9c88193da142693cabebfcd3bf68fa8e8b873 2021-07-20 14:10:52 +02:00
Slavomir bebf4e5249 Cleanup 2021-07-20 13:05:18 +02:00
Slavomir c6e3048063 Refactor and cleanup comments, parameters, methods 2021-07-19 21:57:25 +02:00
Slavomir 04a23a6b3d Don't use []uint8 as a slice of account idexes; use []uint16 instead 2021-07-19 11:28:55 +02:00
Slavomir d961b44ac4 Improve GetConfirmedSignaturesForAddress2 2021-07-15 14:37:37 +02:00
Slavomir f4fcaeb75c RPC: Improve GetConfirmedTransaction 2021-07-14 19:37:10 +02:00
Slavomir 7fbcc82f87 RPC: Refactor data methods 2021-07-12 16:00:27 +02:00
Slavomir 4add6ee371 Refactor Account data decoding/encoding 2021-07-11 23:49:42 +02:00