Mohamed Sohail kamikazechaser
kamikazechaser commented on pull request urdt/ussd#117 2024-10-24 15:08:08 +02:00
api-structs

Yeah 0 is fine. If there is no matching tracking id, result.otx will be null.

kamikazechaser commented on pull request urdt/ussd#117 2024-10-24 14:51:27 +02:00
api-structs

Check the HTTP response code first. If it is >= 400 (Not found), you can then unmarshal to an api.ErrResp.

kamikazechaser pushed to main at grassrootseconomics/bootstrap 2024-10-08 08:37:30 +02:00
1b6dcf9ad7 fix: add missing steps
kamikazechaser commented on issue urdt/ussd#88 2024-10-03 14:38:17 +02:00
Data endpoint API (importable structs)

Data API endpoints

  1. Last 10 tx: /api/v1/transfers/last10/:address
  2. Token holdings with balances: /api/v1/holdings/:address
kamikazechaser commented on issue urdt/ussd#88 2024-10-02 14:47:26 +02:00
Data endpoint API (importable structs)

NATS to watch the TRANSFERS stream.

kamikazechaser created branch main in grassrootseconomics/bootstrap 2024-09-27 13:51:33 +02:00
kamikazechaser pushed to main at grassrootseconomics/bootstrap 2024-09-27 13:51:33 +02:00
db784fb6ef dev: add reth devnet bootstrap script
kamikazechaser created repository grassrootseconomics/bootstrap 2024-09-27 13:47:29 +02:00
kamikazechaser opened issue urdt/ussd#88 2024-09-25 16:03:33 +02:00
Data endpoint API
kamikazechaser commented on issue urdt/ussd#86 2024-09-25 14:21:20 +02:00
Voucher list menu item

This is the expected JSON response when querying for a user's current holdings.

[ { "symbol": "MUMO", "address": "0x078b3a26596218507781722A4e8825BFB9570Fba"…

kamikazechaser commented on issue urdt/ussd#65 2024-09-19 16:41:31 +02:00
Default/Selected token behaviour

REST endpoint that returns the latest token the user received or 0x0..000.

kamikazechaser opened issue urdt/ussd#65 2024-09-19 11:18:31 +02:00
Default/Selected token behaviour
kamikazechaser opened issue urdt/ussd#37 2024-09-06 10:25:41 +02:00
Pull the go-vise dep via the go module mirror and keep it updated via renovatebot
kamikazechaser commented on issue urdt/ussd#31 2024-09-06 10:00:43 +02:00
Replace log with structured logging log/slog

Looks good. However, the existing one go-vise/logging could be implemented as a slog Handler. By accepting slog.Logger, anyone can bring their own logger.

I can…

kamikazechaser opened issue urdt/ussd#32 2024-09-04 13:11:53 +02:00
Embed all static files for distribution
kamikazechaser commented on pull request urdt/ussd#28 2024-09-04 13:07:48 +02:00
wip-flag-migration

Exit in main if any setup fails.

kamikazechaser opened issue urdt/ussd#31 2024-09-04 13:04:34 +02:00
Replace log with structured logging log/slog
kamikazechaser commented on issue urdt/ussd#21 2024-09-04 08:41:34 +02:00
Implement Africa's talking on HTTP server

Since go-vise is state-aware, we can just extract the last input.

kamikazechaser commented on issue urdt/ussd#22 2024-09-04 08:22:35 +02:00
Provide staging environment for Africa's Talking HTTP client interface to test shortcode

Set up a host

AT sends webhooks only, the server is expected to reply to the webhook request with the next menu. For testing, we could use Dialoguss as an AT simulator.

kamikazechaser commented on issue urdt/ussd#9 2024-08-29 17:24:38 +02:00
Use ints in calculations

For transfer values, the API will expect the number in string represented (big)int. And because it is possible for the USSD wallet to hold any token, you will need to know the decimals beforehand.…