Derrick Hammer
|
6283e8c1b1
|
*Fix for loop iteration
|
2022-08-28 02:49:48 -04:00 |
Derrick Hammer
|
61e10d8121
|
*getMethods needs to be bound to the server instance
|
2022-08-28 02:49:20 -04:00 |
Derrick Hammer
|
16e8eab836
|
*Remove use of anyOf and set Avj allowUnionTypes
*Compile schema to validateRpcRequest
*Use errorsText to generate errors for validation
|
2022-08-28 02:48:53 -04:00 |
Derrick Hammer
|
44af1cf765
|
*add default to the Plugin type as an optional property
|
2022-08-28 00:27:48 -04:00 |
Derrick Hammer
|
17da91a558
|
*Importing a plugin may be ESM and so check for the default property
|
2022-08-28 00:27:20 -04:00 |
Derrick Hammer
|
7cfad02ae5
|
*remove globby and just use fs/path
|
2022-08-28 00:26:24 -04:00 |
Derrick Hammer
|
b9bb588a35
|
*pokt-rpc-endpoints needs to be imported dynamically
|
2022-08-27 22:25:05 -04:00 |
Derrick Hammer
|
d0b65f4dc2
|
*globby needs to be imported dynamically
|
2022-08-27 22:24:43 -04:00 |
Derrick Hammer
|
4d00de2b40
|
*Make data type any
|
2022-08-27 14:52:02 -04:00 |
Derrick Hammer
|
0c577c43bd
|
*Add getMethods to RPCServer for plugin api
|
2022-08-26 22:38:32 -04:00 |
Derrick Hammer
|
ad9d838d20
|
*Fix typo
|
2022-08-26 22:30:11 -04:00 |
Derrick Hammer
|
d73bb04a3d
|
*RPCMethod handler type needs to return a promise
|
2022-08-26 22:21:21 -04:00 |
Derrick Hammer
|
c2dfe1f162
|
*Rename PluginAPI to PluginApiManager
*Rename RelayPluginAPI to PluginAPI
|
2022-08-26 22:14:02 -04:00 |
Derrick Hammer
|
ba20b1f36e
|
*Dont put api methods in an api namespace
|
2022-08-26 22:12:13 -04:00 |
Derrick Hammer
|
b91fd5d8b5
|
*Add types to package.json
|
2022-08-26 21:58:42 -04:00 |
Derrick Hammer
|
48a5928256
|
*Super refactor for the beginning of a new rpc server, changed protocol and simple plugin system
*Remove all rpc methods to prepare them for becoming plugins
|
2022-08-26 21:52:19 -04:00 |
Derrick Hammer
|
a0cab03073
|
*Remove local pokt node support while waiting on pokt v1
|
2022-08-24 13:05:38 -04:00 |
Derrick Hammer
|
61a0991bcd
|
*Use @lumeweb/pokt-rpc-endpoints
|
2022-08-24 11:15:07 -04:00 |
Derrick Hammer
|
f89a8e93a4
|
*reorder logic to boot up the relay server only after the SSL is ready
|
2022-08-24 11:10:50 -04:00 |
Derrick Hammer
|
573ebec0a4
|
*Don't retry on boot, but catch any retry failures
|
2022-08-22 12:39:09 -04:00 |
Derrick Hammer
|
7f135c80b1
|
*Use promise-retry to make a best effort attempt at downloading the ssl cert and key in-case we have portal rate limits or downtime
|
2022-08-22 12:22:54 -04:00 |
Derrick Hammer
|
1a9f08cbba
|
*Add error to RPCResponse, dont put inside data
|
2022-08-22 11:45:51 -04:00 |
Derrick Hammer
|
b37b3052ec
|
*Update force to bypassCache
|
2022-08-18 19:29:06 -04:00 |
Derrick Hammer
|
8c16ad5469
|
*Change pokt sol-mainnet to solana-mainnet
|
2022-08-18 19:28:49 -04:00 |
Derrick Hammer
|
00492de90c
|
*Add status code server to be used for extension proxy
|
2022-08-14 06:37:00 -04:00 |
Derrick Hammer
|
62409ac6d3
|
*Refactor IPFS to use an external IPFS node
|
2022-08-14 06:33:23 -04:00 |
Derrick Hammer
|
f6a58ad4b6
|
*heavy simplification to not use in memory stores and use default on-disk repo
|
2022-08-06 10:10:02 -04:00 |
Derrick Hammer
|
8510c96cad
|
*Remove unused functions
|
2022-08-05 20:06:08 -04:00 |
Derrick Hammer
|
927efddfed
|
*Add size property to normal files
|
2022-08-05 20:04:57 -04:00 |
Derrick Hammer
|
a58f7fec4e
|
*Remove slice
|
2022-08-05 09:55:24 -04:00 |
Derrick Hammer
|
80c48b3a1c
|
*Return error if hash is a directory since we don't want to download it all
|
2022-08-05 09:54:39 -04:00 |
Derrick Hammer
|
33fa36411b
|
*Handle base36 ipns keys
|
2022-08-05 07:50:19 -04:00 |
Derrick Hammer
|
ffd3eec605
|
*Trim extra forward slashes
|
2022-08-05 02:40:55 -04:00 |
Derrick Hammer
|
f22c4dd847
|
*Use validateChain
|
2022-08-05 02:39:40 -04:00 |
Derrick Hammer
|
d3e234c7b7
|
*Make files array an object with name and size
|
2022-08-05 02:16:21 -04:00 |
Derrick Hammer
|
05c4fc40d9
|
*Use context var, not hns string
|
2022-08-05 02:15:32 -04:00 |
Derrick Hammer
|
03062d3bfc
|
*Add new dependencies
|
2022-08-05 00:06:59 -04:00 |
Derrick Hammer
|
50051076d9
|
Exit on SIGINT or SIGTERM
|
2022-08-05 00:06:31 -04:00 |
Derrick Hammer
|
1fd1c932ca
|
*Set context to RpcContext and ass type asserts
|
2022-08-05 00:01:03 -04:00 |
Derrick Hammer
|
c95917f789
|
*Add get_methods to the misc chain
|
2022-08-05 00:00:29 -04:00 |
Derrick Hammer
|
ec649d2d93
|
*add validateChain higher order function for RPC validation
|
2022-08-04 23:56:11 -04:00 |
Derrick Hammer
|
383ec64692
|
*Update rpc method list
|
2022-08-04 23:45:09 -04:00 |
Derrick Hammer
|
c90d207b7c
|
*Add first version of the ipfs rpc methods
|
2022-08-04 23:44:50 -04:00 |
Derrick Hammer
|
44e1366856
|
*Refactor RPCConnection::processRequest to handle and process streams
|
2022-08-04 23:43:02 -04:00 |
Derrick Hammer
|
26e12d19a4
|
*Add a streams api for use with rpc
|
2022-08-04 23:41:40 -04:00 |
Derrick Hammer
|
e0b91b02c0
|
*add a misc group of rpc functions starting with ping
|
2022-08-04 23:40:30 -04:00 |
Derrick Hammer
|
3c5b04893f
|
*Use ERR_INVALID_CHAIN
|
2022-08-04 23:39:08 -04:00 |
Derrick Hammer
|
65b02ea1f3
|
*Add error constants
|
2022-08-04 23:38:44 -04:00 |
Derrick Hammer
|
8b17fbf3d2
|
*Add rpcError helper method and change all rpc error handling to the function and use error constants
|
2022-08-04 23:38:30 -04:00 |
Derrick Hammer
|
a36735a356
|
*SslData type not needed
|
2022-08-04 23:35:23 -04:00 |