Closed elpiel closed 5 years ago
Implement the fromSql & toSql for BigNum
is Done, I've actually used a String representation which should be enough. Later on we can see for a better way of storing it in the Database and implement the ToSql
and FromSql
traits.
FromSql
with String was implemented in https://github.com/AdExNetwork/adex-validator-stack-rust/commit/8f4a9f28598e4b58c7cbb46b2d4b57c310511b5f
ToSql
with String was implemented in PR #19
Implement the Channel List API Endpoint: https://github.com/AdExNetwork/adex-validator-stack-js/blob/master/routes/channel.js#L84
Current status: Some Channel data is returned. TODOs:
page
query parameter #21validator
query parameter for filtering channels that contain a specific validator #21validUntil > now
#20channel_list
Handler limit per page to which we can pass the application configuration value #21ChannelRepository::list
forpage
,limit
&valid_until_ge
#20ChannelRepository::list
forvalidator
#22fromSql
&toSql
forBigNum
( I've opened an Issue in num-biging if they are able to help me to implement the BigUint for postgres and how to represent it in the database, for now it will remain ~u64
~String
)