2024-11-02 16:46:46 +01:00
|
|
|
package models
|
|
|
|
|
|
|
|
import dataserviceapi "github.com/grassrootseconomics/ussd-data-service/pkg/api"
|
|
|
|
|
2024-11-03 15:34:26 +01:00
|
|
|
//type VoucherHoldingResponse struct {
|
|
|
|
// Ok bool `json:"ok"`
|
|
|
|
// Description string `json:"description"`
|
|
|
|
// Result VoucherResult `json:"result"`
|
|
|
|
//}
|
2024-11-02 16:46:46 +01:00
|
|
|
|
|
|
|
// VoucherResult holds the list of token holdings
|
|
|
|
type VoucherResult struct {
|
|
|
|
Holdings []dataserviceapi.TokenHoldings `json:"holdings"`
|
|
|
|
}
|
2024-11-03 15:34:26 +01:00
|
|
|
|
|
|
|
type VoucherDataResult struct {
|
|
|
|
TokenName string `json:"tokenName"`
|
|
|
|
TokenSymbol string `json:"tokenSymbol"`
|
|
|
|
TokenDecimals string `json:"tokenDecimals"`
|
|
|
|
SinkAddress string `json:"sinkAddress"`
|
|
|
|
}
|