github.com/diadata-org/diadata@v1.4.593/pkg/dia/helpers/alephium-helper/multicall-contract_response.go (about) 1 package alephiumhelper 2 3 const ByteVecType = "ByteVec" 4 const U256Type = "U256" 5 6 type Field struct { 7 Type string `json:"type"` 8 Value string `json:"value"` 9 } 10 11 type Contract struct { 12 Address string `json:"address"` 13 } 14 15 type CallContractResult struct { 16 Type string `json:"type"` 17 Error *string `json:"error"` 18 Returns []Field `json:"returns"` 19 Contracts []Contract `json:"contracts"` 20 } 21 22 type MulticallContractResponse struct { 23 Results []CallContractResult `json:"results"` 24 } 25 26 type OutputField struct { 27 Field 28 ResponseResult string 29 } 30 31 type OutputResult struct { 32 Address string 33 Results []OutputField 34 }