Documentation ¶
Index ¶
- type Response
- type ResponseSimulation
- type ResponseSimulationAccountSummary
- type ResponseSimulationAccountSummaryAssetsDiff
- type ResponseSimulationAccountSummaryAssetsDiffsAsset
- type ResponseSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetails
- type ResponseSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType
- type ResponseSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetails
- type ResponseSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType
- type ResponseSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetails
- type ResponseSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType
- type ResponseSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetails
- type ResponseSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType
- type ResponseSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetails
- type ResponseSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType
- type ResponseSimulationAccountSummaryAssetsDiffsAssetType
- type ResponseSimulationAccountSummaryAssetsDiffsAssetUnion
- type ResponseSimulationAccountSummaryAssetsDiffsIn
- type ResponseSimulationAccountSummaryAssetsDiffsInErc1155Diff
- type ResponseSimulationAccountSummaryAssetsDiffsInErc20Diff
- type ResponseSimulationAccountSummaryAssetsDiffsInErc721Diff
- type ResponseSimulationAccountSummaryAssetsDiffsInNativeDiff
- type ResponseSimulationAccountSummaryAssetsDiffsInUnion
- type ResponseSimulationAccountSummaryAssetsDiffsOut
- type ResponseSimulationAccountSummaryAssetsDiffsOutErc1155Diff
- type ResponseSimulationAccountSummaryAssetsDiffsOutErc20Diff
- type ResponseSimulationAccountSummaryAssetsDiffsOutErc721Diff
- type ResponseSimulationAccountSummaryAssetsDiffsOutNativeDiff
- type ResponseSimulationAccountSummaryAssetsDiffsOutUnion
- type ResponseSimulationAccountSummaryExposure
- type ResponseSimulationAccountSummaryExposuresAsset
- type ResponseSimulationAccountSummaryExposuresAssetErc1155TokenDetails
- type ResponseSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType
- type ResponseSimulationAccountSummaryExposuresAssetErc20TokenDetails
- type ResponseSimulationAccountSummaryExposuresAssetErc20TokenDetailsType
- type ResponseSimulationAccountSummaryExposuresAssetErc721TokenDetails
- type ResponseSimulationAccountSummaryExposuresAssetErc721TokenDetailsType
- type ResponseSimulationAccountSummaryExposuresAssetNonercTokenDetails
- type ResponseSimulationAccountSummaryExposuresAssetNonercTokenDetailsType
- type ResponseSimulationAccountSummaryExposuresAssetType
- type ResponseSimulationAccountSummaryExposuresAssetUnion
- type ResponseSimulationAccountSummaryExposuresSpender
- type ResponseSimulationAccountSummaryExposuresSpendersErc1155Exposure
- type ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposure
- type ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155Diff
- type ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20Diff
- type ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721Diff
- type ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiff
- type ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureUnion
- type ResponseSimulationAccountSummaryExposuresSpendersErc20Exposure
- type ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposure
- type ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155Diff
- type ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20Diff
- type ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721Diff
- type ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiff
- type ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureUnion
- type ResponseSimulationAccountSummaryExposuresSpendersErc721Exposure
- type ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposure
- type ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155Diff
- type ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20Diff
- type ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721Diff
- type ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiff
- type ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureUnion
- type ResponseSimulationAccountSummaryExposuresSpendersUnion
- type ResponseSimulationAccountSummaryTotalUsdDiff
- type ResponseSimulationAddressDetail
- type ResponseSimulationAssetsDiff
- type ResponseSimulationAssetsDiffsAsset
- type ResponseSimulationAssetsDiffsAssetErc1155TokenDetails
- type ResponseSimulationAssetsDiffsAssetErc1155TokenDetailsType
- type ResponseSimulationAssetsDiffsAssetErc20TokenDetails
- type ResponseSimulationAssetsDiffsAssetErc20TokenDetailsType
- type ResponseSimulationAssetsDiffsAssetErc721TokenDetails
- type ResponseSimulationAssetsDiffsAssetErc721TokenDetailsType
- type ResponseSimulationAssetsDiffsAssetNativeAssetDetails
- type ResponseSimulationAssetsDiffsAssetNativeAssetDetailsType
- type ResponseSimulationAssetsDiffsAssetNonercTokenDetails
- type ResponseSimulationAssetsDiffsAssetNonercTokenDetailsType
- type ResponseSimulationAssetsDiffsAssetType
- type ResponseSimulationAssetsDiffsAssetUnion
- type ResponseSimulationAssetsDiffsIn
- type ResponseSimulationAssetsDiffsInErc1155Diff
- type ResponseSimulationAssetsDiffsInErc20Diff
- type ResponseSimulationAssetsDiffsInErc721Diff
- type ResponseSimulationAssetsDiffsInNativeDiff
- type ResponseSimulationAssetsDiffsInUnion
- type ResponseSimulationAssetsDiffsOut
- type ResponseSimulationAssetsDiffsOutErc1155Diff
- type ResponseSimulationAssetsDiffsOutErc20Diff
- type ResponseSimulationAssetsDiffsOutErc721Diff
- type ResponseSimulationAssetsDiffsOutNativeDiff
- type ResponseSimulationAssetsDiffsOutUnion
- type ResponseSimulationExposure
- type ResponseSimulationExposuresAsset
- type ResponseSimulationExposuresAssetErc1155TokenDetails
- type ResponseSimulationExposuresAssetErc1155TokenDetailsType
- type ResponseSimulationExposuresAssetErc20TokenDetails
- type ResponseSimulationExposuresAssetErc20TokenDetailsType
- type ResponseSimulationExposuresAssetErc721TokenDetails
- type ResponseSimulationExposuresAssetErc721TokenDetailsType
- type ResponseSimulationExposuresAssetNonercTokenDetails
- type ResponseSimulationExposuresAssetNonercTokenDetailsType
- type ResponseSimulationExposuresAssetType
- type ResponseSimulationExposuresAssetUnion
- type ResponseSimulationExposuresSpender
- type ResponseSimulationExposuresSpendersErc1155Exposure
- type ResponseSimulationExposuresSpendersErc1155ExposureExposure
- type ResponseSimulationExposuresSpendersErc1155ExposureExposureErc1155Diff
- type ResponseSimulationExposuresSpendersErc1155ExposureExposureErc20Diff
- type ResponseSimulationExposuresSpendersErc1155ExposureExposureErc721Diff
- type ResponseSimulationExposuresSpendersErc1155ExposureExposureNativeDiff
- type ResponseSimulationExposuresSpendersErc1155ExposureExposureUnion
- type ResponseSimulationExposuresSpendersErc20Exposure
- type ResponseSimulationExposuresSpendersErc20ExposureExposure
- type ResponseSimulationExposuresSpendersErc20ExposureExposureErc1155Diff
- type ResponseSimulationExposuresSpendersErc20ExposureExposureErc20Diff
- type ResponseSimulationExposuresSpendersErc20ExposureExposureErc721Diff
- type ResponseSimulationExposuresSpendersErc20ExposureExposureNativeDiff
- type ResponseSimulationExposuresSpendersErc20ExposureExposureUnion
- type ResponseSimulationExposuresSpendersErc721Exposure
- type ResponseSimulationExposuresSpendersErc721ExposureExposure
- type ResponseSimulationExposuresSpendersErc721ExposureExposureErc1155Diff
- type ResponseSimulationExposuresSpendersErc721ExposureExposureErc20Diff
- type ResponseSimulationExposuresSpendersErc721ExposureExposureErc721Diff
- type ResponseSimulationExposuresSpendersErc721ExposureExposureNativeDiff
- type ResponseSimulationExposuresSpendersErc721ExposureExposureUnion
- type ResponseSimulationExposuresSpendersUnion
- type ResponseSimulationTotalUsdDiff
- type ResponseValidation
- type ResponseValidationFeature
- type ResponseValidationFeaturesType
- type ResponseValidationResultType
- type UnionString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { Features interface{} `json:"features"` Simulation ResponseSimulation `json:"simulation"` Validation ResponseValidation `json:"validation"` JSON responseJSON `json:"-"` }
func (*Response) UnmarshalJSON ¶
type ResponseSimulation ¶
type ResponseSimulation struct { // Account summary for the account address. account address is determined implicit // by the `from` field in the transaction request, or explicit by the // account_address field in the request. AccountSummary ResponseSimulationAccountSummary `json:"account_summary,required"` // a dictionary including additional information about each relevant address in the // transaction. AddressDetails map[string]ResponseSimulationAddressDetail `json:"address_details"` // dictionary describes the assets differences as a result of this transaction for // every involved address AssetsDiffs map[string][]ResponseSimulationAssetsDiff `json:"assets_diffs"` Error string `json:"error"` // dictionary describes the exposure differences as a result of this transaction // for every involved address (as a result of any approval / setApproval / permit // function) Exposures map[string][]ResponseSimulationExposure `json:"exposures"` // dictionary represents the usd value each address gained / lost during this // transaction TotalUsdDiff map[string]ResponseSimulationTotalUsdDiff `json:"total_usd_diff"` // a dictionary representing the usd value each address is exposed to, split by // spenders TotalUsdExposure map[string]map[string]string `json:"total_usd_exposure"` JSON responseSimulationJSON `json:"-"` }
func (*ResponseSimulation) UnmarshalJSON ¶
func (r *ResponseSimulation) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummary ¶
type ResponseSimulationAccountSummary struct { // All assets diffs related to the account address AssetsDiffs []ResponseSimulationAccountSummaryAssetsDiff `json:"assets_diffs,required"` // All assets exposures related to the account address Exposures []ResponseSimulationAccountSummaryExposure `json:"exposures,required"` // Total usd diff related to the account address TotalUsdDiff ResponseSimulationAccountSummaryTotalUsdDiff `json:"total_usd_diff,required"` // Total usd exposure related to the account address TotalUsdExposure map[string]string `json:"total_usd_exposure,required"` JSON responseSimulationAccountSummaryJSON `json:"-"` }
Account summary for the account address. account address is determined implicit by the `from` field in the transaction request, or explicit by the account_address field in the request.
func (*ResponseSimulationAccountSummary) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummary) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryAssetsDiff ¶
type ResponseSimulationAccountSummaryAssetsDiff struct { // description of the asset for the current diff Asset ResponseSimulationAccountSummaryAssetsDiffsAsset `json:"asset,required"` // amount of the asset that was transferred to the address in this transaction In []ResponseSimulationAccountSummaryAssetsDiffsIn `json:"in,required"` // amount of the asset that was transferred from the address in this transaction Out []ResponseSimulationAccountSummaryAssetsDiffsOut `json:"out,required"` JSON responseSimulationAccountSummaryAssetsDiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryAssetsDiff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryAssetsDiff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryAssetsDiffsAsset ¶
type ResponseSimulationAccountSummaryAssetsDiffsAsset struct { // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` // address of the token Address string `json:"address"` // url of the token logo LogoURL string `json:"logo_url"` // asset type. Type ResponseSimulationAccountSummaryAssetsDiffsAssetType `json:"type,required"` // asset's decimals Decimals int64 `json:"decimals"` ChainName string `json:"chain_name"` ChainID int64 `json:"chain_id"` JSON responseSimulationAccountSummaryAssetsDiffsAssetJSON `json:"-"` // contains filtered or unexported fields }
description of the asset for the current diff
func (*ResponseSimulationAccountSummaryAssetsDiffsAsset) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryAssetsDiffsAsset) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetails ¶
type ResponseSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetails struct { // address of the token Address string `json:"address,required"` // asset type. Type ResponseSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType `json:"type,required"` // url of the token logo LogoURL string `json:"logo_url"` // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` JSON responseSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetails) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetails) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType ¶
type ResponseSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType string
asset type.
const (
ResponseSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsTypeErc1155 ResponseSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType = "ERC1155"
)
func (ResponseSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType) IsKnown ¶
func (r ResponseSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType) IsKnown() bool
type ResponseSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetails ¶
type ResponseSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetails struct { // address of the token Address string `json:"address,required"` // asset's decimals Decimals int64 `json:"decimals,required"` // asset type. Type ResponseSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType `json:"type,required"` // url of the token logo LogoURL string `json:"logo_url"` // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` JSON responseSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetails) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetails) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType ¶
type ResponseSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType string
asset type.
const (
ResponseSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsTypeErc20 ResponseSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType = "ERC20"
)
func (ResponseSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType) IsKnown ¶
func (r ResponseSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType) IsKnown() bool
type ResponseSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetails ¶
type ResponseSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetails struct { // address of the token Address string `json:"address,required"` // asset type. Type ResponseSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType `json:"type,required"` // url of the token logo LogoURL string `json:"logo_url"` // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` JSON responseSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetails) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetails) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType ¶
type ResponseSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType string
asset type.
const (
ResponseSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsTypeErc721 ResponseSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType = "ERC721"
)
func (ResponseSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType) IsKnown ¶
func (r ResponseSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType) IsKnown() bool
type ResponseSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetails ¶
type ResponseSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetails struct { ChainID int64 `json:"chain_id,required"` ChainName string `json:"chain_name,required"` Decimals int64 `json:"decimals,required"` LogoURL string `json:"logo_url,required"` // asset type. Type ResponseSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType `json:"type,required"` // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` JSON responseSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetails) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetails) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType ¶
type ResponseSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType string
asset type.
const (
ResponseSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsTypeNative ResponseSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType = "NATIVE"
)
func (ResponseSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType) IsKnown ¶
func (r ResponseSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType) IsKnown() bool
type ResponseSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetails ¶
type ResponseSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetails struct { // address of the token Address string `json:"address,required"` // asset type. Type ResponseSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType `json:"type,required"` // url of the token logo LogoURL string `json:"logo_url"` // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` JSON responseSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetails) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetails) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType ¶
type ResponseSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType string
asset type.
const (
ResponseSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsTypeNonerc ResponseSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType = "NONERC"
)
func (ResponseSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType) IsKnown ¶
func (r ResponseSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType) IsKnown() bool
type ResponseSimulationAccountSummaryAssetsDiffsAssetType ¶
type ResponseSimulationAccountSummaryAssetsDiffsAssetType string
asset type.
const ( ResponseSimulationAccountSummaryAssetsDiffsAssetTypeErc20 ResponseSimulationAccountSummaryAssetsDiffsAssetType = "ERC20" ResponseSimulationAccountSummaryAssetsDiffsAssetTypeErc1155 ResponseSimulationAccountSummaryAssetsDiffsAssetType = "ERC1155" ResponseSimulationAccountSummaryAssetsDiffsAssetTypeErc721 ResponseSimulationAccountSummaryAssetsDiffsAssetType = "ERC721" ResponseSimulationAccountSummaryAssetsDiffsAssetTypeNonerc ResponseSimulationAccountSummaryAssetsDiffsAssetType = "NONERC" ResponseSimulationAccountSummaryAssetsDiffsAssetTypeNative ResponseSimulationAccountSummaryAssetsDiffsAssetType = "NATIVE" )
func (ResponseSimulationAccountSummaryAssetsDiffsAssetType) IsKnown ¶
func (r ResponseSimulationAccountSummaryAssetsDiffsAssetType) IsKnown() bool
type ResponseSimulationAccountSummaryAssetsDiffsAssetUnion ¶
type ResponseSimulationAccountSummaryAssetsDiffsAssetUnion interface {
// contains filtered or unexported methods
}
description of the asset for the current diff
Union satisfied by shared.ResponseSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetails, shared.ResponseSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetails, shared.ResponseSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetails, shared.ResponseSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetails or shared.ResponseSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetails.
type ResponseSimulationAccountSummaryAssetsDiffsIn ¶
type ResponseSimulationAccountSummaryAssetsDiffsIn struct { // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // user friendly description of the asset transfer Summary string `json:"summary"` // id of the token TokenID int64 `json:"token_id"` // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value"` // url of the token logo LogoURL string `json:"logo_url"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAccountSummaryAssetsDiffsInJSON `json:"-"` // contains filtered or unexported fields }
func (*ResponseSimulationAccountSummaryAssetsDiffsIn) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryAssetsDiffsIn) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryAssetsDiffsInErc1155Diff ¶
type ResponseSimulationAccountSummaryAssetsDiffsInErc1155Diff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // id of the token TokenID int64 `json:"token_id,required"` // url of the token logo LogoURL string `json:"logo_url"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` JSON responseSimulationAccountSummaryAssetsDiffsInErc1155DiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryAssetsDiffsInErc1155Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryAssetsDiffsInErc1155Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryAssetsDiffsInErc20Diff ¶
type ResponseSimulationAccountSummaryAssetsDiffsInErc20Diff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAccountSummaryAssetsDiffsInErc20DiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryAssetsDiffsInErc20Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryAssetsDiffsInErc20Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryAssetsDiffsInErc721Diff ¶
type ResponseSimulationAccountSummaryAssetsDiffsInErc721Diff struct { // id of the token TokenID int64 `json:"token_id,required"` // url of the token logo LogoURL string `json:"logo_url"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` JSON responseSimulationAccountSummaryAssetsDiffsInErc721DiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryAssetsDiffsInErc721Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryAssetsDiffsInErc721Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryAssetsDiffsInNativeDiff ¶
type ResponseSimulationAccountSummaryAssetsDiffsInNativeDiff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAccountSummaryAssetsDiffsInNativeDiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryAssetsDiffsInNativeDiff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryAssetsDiffsInNativeDiff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryAssetsDiffsInUnion ¶
type ResponseSimulationAccountSummaryAssetsDiffsInUnion interface {
// contains filtered or unexported methods
}
Union satisfied by shared.ResponseSimulationAccountSummaryAssetsDiffsInErc1155Diff, shared.ResponseSimulationAccountSummaryAssetsDiffsInErc721Diff, shared.ResponseSimulationAccountSummaryAssetsDiffsInErc20Diff or shared.ResponseSimulationAccountSummaryAssetsDiffsInNativeDiff.
type ResponseSimulationAccountSummaryAssetsDiffsOut ¶
type ResponseSimulationAccountSummaryAssetsDiffsOut struct { // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // user friendly description of the asset transfer Summary string `json:"summary"` // id of the token TokenID int64 `json:"token_id"` // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value"` // url of the token logo LogoURL string `json:"logo_url"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAccountSummaryAssetsDiffsOutJSON `json:"-"` // contains filtered or unexported fields }
func (*ResponseSimulationAccountSummaryAssetsDiffsOut) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryAssetsDiffsOut) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryAssetsDiffsOutErc1155Diff ¶
type ResponseSimulationAccountSummaryAssetsDiffsOutErc1155Diff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // id of the token TokenID int64 `json:"token_id,required"` // url of the token logo LogoURL string `json:"logo_url"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` JSON responseSimulationAccountSummaryAssetsDiffsOutErc1155DiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryAssetsDiffsOutErc1155Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryAssetsDiffsOutErc1155Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryAssetsDiffsOutErc20Diff ¶
type ResponseSimulationAccountSummaryAssetsDiffsOutErc20Diff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAccountSummaryAssetsDiffsOutErc20DiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryAssetsDiffsOutErc20Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryAssetsDiffsOutErc20Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryAssetsDiffsOutErc721Diff ¶
type ResponseSimulationAccountSummaryAssetsDiffsOutErc721Diff struct { // id of the token TokenID int64 `json:"token_id,required"` // url of the token logo LogoURL string `json:"logo_url"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` JSON responseSimulationAccountSummaryAssetsDiffsOutErc721DiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryAssetsDiffsOutErc721Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryAssetsDiffsOutErc721Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryAssetsDiffsOutNativeDiff ¶
type ResponseSimulationAccountSummaryAssetsDiffsOutNativeDiff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAccountSummaryAssetsDiffsOutNativeDiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryAssetsDiffsOutNativeDiff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryAssetsDiffsOutNativeDiff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryAssetsDiffsOutUnion ¶
type ResponseSimulationAccountSummaryAssetsDiffsOutUnion interface {
// contains filtered or unexported methods
}
Union satisfied by shared.ResponseSimulationAccountSummaryAssetsDiffsOutErc1155Diff, shared.ResponseSimulationAccountSummaryAssetsDiffsOutErc721Diff, shared.ResponseSimulationAccountSummaryAssetsDiffsOutErc20Diff or shared.ResponseSimulationAccountSummaryAssetsDiffsOutNativeDiff.
type ResponseSimulationAccountSummaryExposure ¶
type ResponseSimulationAccountSummaryExposure struct { // description of the asset for the current diff Asset ResponseSimulationAccountSummaryExposuresAsset `json:"asset,required"` // dictionary of spender addresses where the exposure has changed during this // transaction for the current address and asset Spenders map[string]ResponseSimulationAccountSummaryExposuresSpender `json:"spenders,required"` JSON responseSimulationAccountSummaryExposureJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryExposure) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposure) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresAsset ¶
type ResponseSimulationAccountSummaryExposuresAsset struct { // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` // address of the token Address string `json:"address,required"` // url of the token logo LogoURL string `json:"logo_url"` // asset type. Type ResponseSimulationAccountSummaryExposuresAssetType `json:"type,required"` // asset's decimals Decimals int64 `json:"decimals"` JSON responseSimulationAccountSummaryExposuresAssetJSON `json:"-"` // contains filtered or unexported fields }
description of the asset for the current diff
func (*ResponseSimulationAccountSummaryExposuresAsset) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresAsset) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresAssetErc1155TokenDetails ¶
type ResponseSimulationAccountSummaryExposuresAssetErc1155TokenDetails struct { // address of the token Address string `json:"address,required"` // asset type. Type ResponseSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType `json:"type,required"` // url of the token logo LogoURL string `json:"logo_url"` // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` JSON responseSimulationAccountSummaryExposuresAssetErc1155TokenDetailsJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryExposuresAssetErc1155TokenDetails) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresAssetErc1155TokenDetails) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType ¶
type ResponseSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType string
asset type.
const (
ResponseSimulationAccountSummaryExposuresAssetErc1155TokenDetailsTypeErc1155 ResponseSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType = "ERC1155"
)
func (ResponseSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType) IsKnown ¶
func (r ResponseSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType) IsKnown() bool
type ResponseSimulationAccountSummaryExposuresAssetErc20TokenDetails ¶
type ResponseSimulationAccountSummaryExposuresAssetErc20TokenDetails struct { // address of the token Address string `json:"address,required"` // asset's decimals Decimals int64 `json:"decimals,required"` // asset type. Type ResponseSimulationAccountSummaryExposuresAssetErc20TokenDetailsType `json:"type,required"` // url of the token logo LogoURL string `json:"logo_url"` // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` JSON responseSimulationAccountSummaryExposuresAssetErc20TokenDetailsJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryExposuresAssetErc20TokenDetails) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresAssetErc20TokenDetails) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresAssetErc20TokenDetailsType ¶
type ResponseSimulationAccountSummaryExposuresAssetErc20TokenDetailsType string
asset type.
const (
ResponseSimulationAccountSummaryExposuresAssetErc20TokenDetailsTypeErc20 ResponseSimulationAccountSummaryExposuresAssetErc20TokenDetailsType = "ERC20"
)
func (ResponseSimulationAccountSummaryExposuresAssetErc20TokenDetailsType) IsKnown ¶
func (r ResponseSimulationAccountSummaryExposuresAssetErc20TokenDetailsType) IsKnown() bool
type ResponseSimulationAccountSummaryExposuresAssetErc721TokenDetails ¶
type ResponseSimulationAccountSummaryExposuresAssetErc721TokenDetails struct { // address of the token Address string `json:"address,required"` // asset type. Type ResponseSimulationAccountSummaryExposuresAssetErc721TokenDetailsType `json:"type,required"` // url of the token logo LogoURL string `json:"logo_url"` // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` JSON responseSimulationAccountSummaryExposuresAssetErc721TokenDetailsJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryExposuresAssetErc721TokenDetails) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresAssetErc721TokenDetails) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresAssetErc721TokenDetailsType ¶
type ResponseSimulationAccountSummaryExposuresAssetErc721TokenDetailsType string
asset type.
const (
ResponseSimulationAccountSummaryExposuresAssetErc721TokenDetailsTypeErc721 ResponseSimulationAccountSummaryExposuresAssetErc721TokenDetailsType = "ERC721"
)
func (ResponseSimulationAccountSummaryExposuresAssetErc721TokenDetailsType) IsKnown ¶
func (r ResponseSimulationAccountSummaryExposuresAssetErc721TokenDetailsType) IsKnown() bool
type ResponseSimulationAccountSummaryExposuresAssetNonercTokenDetails ¶
type ResponseSimulationAccountSummaryExposuresAssetNonercTokenDetails struct { // address of the token Address string `json:"address,required"` // asset type. Type ResponseSimulationAccountSummaryExposuresAssetNonercTokenDetailsType `json:"type,required"` // url of the token logo LogoURL string `json:"logo_url"` // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` JSON responseSimulationAccountSummaryExposuresAssetNonercTokenDetailsJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryExposuresAssetNonercTokenDetails) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresAssetNonercTokenDetails) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresAssetNonercTokenDetailsType ¶
type ResponseSimulationAccountSummaryExposuresAssetNonercTokenDetailsType string
asset type.
const (
ResponseSimulationAccountSummaryExposuresAssetNonercTokenDetailsTypeNonerc ResponseSimulationAccountSummaryExposuresAssetNonercTokenDetailsType = "NONERC"
)
func (ResponseSimulationAccountSummaryExposuresAssetNonercTokenDetailsType) IsKnown ¶
func (r ResponseSimulationAccountSummaryExposuresAssetNonercTokenDetailsType) IsKnown() bool
type ResponseSimulationAccountSummaryExposuresAssetType ¶
type ResponseSimulationAccountSummaryExposuresAssetType string
asset type.
const ( ResponseSimulationAccountSummaryExposuresAssetTypeErc20 ResponseSimulationAccountSummaryExposuresAssetType = "ERC20" ResponseSimulationAccountSummaryExposuresAssetTypeErc1155 ResponseSimulationAccountSummaryExposuresAssetType = "ERC1155" ResponseSimulationAccountSummaryExposuresAssetTypeErc721 ResponseSimulationAccountSummaryExposuresAssetType = "ERC721" ResponseSimulationAccountSummaryExposuresAssetTypeNonerc ResponseSimulationAccountSummaryExposuresAssetType = "NONERC" )
func (ResponseSimulationAccountSummaryExposuresAssetType) IsKnown ¶
func (r ResponseSimulationAccountSummaryExposuresAssetType) IsKnown() bool
type ResponseSimulationAccountSummaryExposuresAssetUnion ¶
type ResponseSimulationAccountSummaryExposuresAssetUnion interface {
// contains filtered or unexported methods
}
description of the asset for the current diff
Union satisfied by shared.ResponseSimulationAccountSummaryExposuresAssetErc20TokenDetails, shared.ResponseSimulationAccountSummaryExposuresAssetErc1155TokenDetails, shared.ResponseSimulationAccountSummaryExposuresAssetErc721TokenDetails or shared.ResponseSimulationAccountSummaryExposuresAssetNonercTokenDetails.
type ResponseSimulationAccountSummaryExposuresSpender ¶
type ResponseSimulationAccountSummaryExposuresSpender struct { Exposure interface{} `json:"exposure"` // user friendly description of the approval Summary string `json:"summary"` // the amount that was asked in the approval request for this spender from the // current address and asset Approval int64 `json:"approval"` // the expiration time of the permit2 protocol Expiration time.Time `json:"expiration" format:"date-time"` // boolean indicates whether an is_approved_for_all function was used (missing in // case of ERC20 / ERC1155) IsApprovedForAll bool `json:"is_approved_for_all"` JSON responseSimulationAccountSummaryExposuresSpenderJSON `json:"-"` // contains filtered or unexported fields }
func (*ResponseSimulationAccountSummaryExposuresSpender) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresSpender) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresSpendersErc1155Exposure ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc1155Exposure struct { Exposure []ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposure `json:"exposure,required"` // boolean indicates whether an is_approved_for_all function was used (missing in // case of ERC20 / ERC1155) IsApprovedForAll bool `json:"is_approved_for_all,required"` // user friendly description of the approval Summary string `json:"summary"` JSON responseSimulationAccountSummaryExposuresSpendersErc1155ExposureJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryExposuresSpendersErc1155Exposure) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresSpendersErc1155Exposure) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposure ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposure struct { // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // user friendly description of the asset transfer Summary string `json:"summary"` // id of the token TokenID int64 `json:"token_id"` // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value"` // url of the token logo LogoURL string `json:"logo_url"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureJSON `json:"-"` // contains filtered or unexported fields }
func (*ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposure) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposure) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155Diff ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155Diff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // id of the token TokenID int64 `json:"token_id,required"` // url of the token logo LogoURL string `json:"logo_url"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` JSON responseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155DiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20Diff ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20Diff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20DiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721Diff ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721Diff struct { // id of the token TokenID int64 `json:"token_id,required"` // url of the token logo LogoURL string `json:"logo_url"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` JSON responseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721DiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiff ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureUnion ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by shared.ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc1155Diff, shared.ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc721Diff, shared.ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureErc20Diff or shared.ResponseSimulationAccountSummaryExposuresSpendersErc1155ExposureExposureNativeDiff.
type ResponseSimulationAccountSummaryExposuresSpendersErc20Exposure ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc20Exposure struct { // the amount that was asked in the approval request for this spender from the // current address and asset Approval int64 `json:"approval,required"` Exposure []ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposure `json:"exposure,required"` // the expiration time of the permit2 protocol Expiration time.Time `json:"expiration" format:"date-time"` // user friendly description of the approval Summary string `json:"summary"` JSON responseSimulationAccountSummaryExposuresSpendersErc20ExposureJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryExposuresSpendersErc20Exposure) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresSpendersErc20Exposure) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposure ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposure struct { // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // user friendly description of the asset transfer Summary string `json:"summary"` // id of the token TokenID int64 `json:"token_id"` // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value"` // url of the token logo LogoURL string `json:"logo_url"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureJSON `json:"-"` // contains filtered or unexported fields }
func (*ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposure) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposure) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155Diff ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155Diff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // id of the token TokenID int64 `json:"token_id,required"` // url of the token logo LogoURL string `json:"logo_url"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` JSON responseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155DiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20Diff ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20Diff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20DiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721Diff ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721Diff struct { // id of the token TokenID int64 `json:"token_id,required"` // url of the token logo LogoURL string `json:"logo_url"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` JSON responseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721DiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiff ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureUnion ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by shared.ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc1155Diff, shared.ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc721Diff, shared.ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureErc20Diff or shared.ResponseSimulationAccountSummaryExposuresSpendersErc20ExposureExposureNativeDiff.
type ResponseSimulationAccountSummaryExposuresSpendersErc721Exposure ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc721Exposure struct { Exposure []ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposure `json:"exposure,required"` // boolean indicates whether an is_approved_for_all function was used (missing in // case of ERC20 / ERC1155) IsApprovedForAll bool `json:"is_approved_for_all,required"` // user friendly description of the approval Summary string `json:"summary"` JSON responseSimulationAccountSummaryExposuresSpendersErc721ExposureJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryExposuresSpendersErc721Exposure) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresSpendersErc721Exposure) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposure ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposure struct { // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // user friendly description of the asset transfer Summary string `json:"summary"` // id of the token TokenID int64 `json:"token_id"` // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value"` // url of the token logo LogoURL string `json:"logo_url"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureJSON `json:"-"` // contains filtered or unexported fields }
func (*ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposure) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposure) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155Diff ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155Diff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // id of the token TokenID int64 `json:"token_id,required"` // url of the token logo LogoURL string `json:"logo_url"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` JSON responseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155DiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20Diff ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20Diff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20DiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721Diff ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721Diff struct { // id of the token TokenID int64 `json:"token_id,required"` // url of the token logo LogoURL string `json:"logo_url"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` JSON responseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721DiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiff ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiffJSON `json:"-"` }
func (*ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureUnion ¶
type ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by shared.ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc1155Diff, shared.ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc721Diff, shared.ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureErc20Diff or shared.ResponseSimulationAccountSummaryExposuresSpendersErc721ExposureExposureNativeDiff.
type ResponseSimulationAccountSummaryExposuresSpendersUnion ¶
type ResponseSimulationAccountSummaryExposuresSpendersUnion interface {
// contains filtered or unexported methods
}
Union satisfied by shared.ResponseSimulationAccountSummaryExposuresSpendersErc20Exposure, shared.ResponseSimulationAccountSummaryExposuresSpendersErc721Exposure or shared.ResponseSimulationAccountSummaryExposuresSpendersErc1155Exposure.
type ResponseSimulationAccountSummaryTotalUsdDiff ¶
type ResponseSimulationAccountSummaryTotalUsdDiff struct { In string `json:"in,required"` Out string `json:"out,required"` Total string `json:"total,required"` JSON responseSimulationAccountSummaryTotalUsdDiffJSON `json:"-"` }
Total usd diff related to the account address
func (*ResponseSimulationAccountSummaryTotalUsdDiff) UnmarshalJSON ¶
func (r *ResponseSimulationAccountSummaryTotalUsdDiff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAddressDetail ¶
type ResponseSimulationAddressDetail struct { // contains the contract's name if the address is a verified contract ContractName string `json:"contract_name"` // known name tag for the address NameTag string `json:"name_tag"` JSON responseSimulationAddressDetailJSON `json:"-"` }
func (*ResponseSimulationAddressDetail) UnmarshalJSON ¶
func (r *ResponseSimulationAddressDetail) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAssetsDiff ¶
type ResponseSimulationAssetsDiff struct { // description of the asset for the current diff Asset ResponseSimulationAssetsDiffsAsset `json:"asset,required"` // amount of the asset that was transferred to the address in this transaction In []ResponseSimulationAssetsDiffsIn `json:"in,required"` // amount of the asset that was transferred from the address in this transaction Out []ResponseSimulationAssetsDiffsOut `json:"out,required"` JSON responseSimulationAssetsDiffJSON `json:"-"` }
func (*ResponseSimulationAssetsDiff) UnmarshalJSON ¶
func (r *ResponseSimulationAssetsDiff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAssetsDiffsAsset ¶
type ResponseSimulationAssetsDiffsAsset struct { // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` // address of the token Address string `json:"address"` // url of the token logo LogoURL string `json:"logo_url"` // asset type. Type ResponseSimulationAssetsDiffsAssetType `json:"type,required"` // asset's decimals Decimals int64 `json:"decimals"` ChainName string `json:"chain_name"` ChainID int64 `json:"chain_id"` JSON responseSimulationAssetsDiffsAssetJSON `json:"-"` // contains filtered or unexported fields }
description of the asset for the current diff
func (ResponseSimulationAssetsDiffsAsset) AsUnion ¶
func (r ResponseSimulationAssetsDiffsAsset) AsUnion() ResponseSimulationAssetsDiffsAssetUnion
func (*ResponseSimulationAssetsDiffsAsset) UnmarshalJSON ¶
func (r *ResponseSimulationAssetsDiffsAsset) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAssetsDiffsAssetErc1155TokenDetails ¶
type ResponseSimulationAssetsDiffsAssetErc1155TokenDetails struct { // address of the token Address string `json:"address,required"` // asset type. Type ResponseSimulationAssetsDiffsAssetErc1155TokenDetailsType `json:"type,required"` // url of the token logo LogoURL string `json:"logo_url"` // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` JSON responseSimulationAssetsDiffsAssetErc1155TokenDetailsJSON `json:"-"` }
func (*ResponseSimulationAssetsDiffsAssetErc1155TokenDetails) UnmarshalJSON ¶
func (r *ResponseSimulationAssetsDiffsAssetErc1155TokenDetails) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAssetsDiffsAssetErc1155TokenDetailsType ¶
type ResponseSimulationAssetsDiffsAssetErc1155TokenDetailsType string
asset type.
const (
ResponseSimulationAssetsDiffsAssetErc1155TokenDetailsTypeErc1155 ResponseSimulationAssetsDiffsAssetErc1155TokenDetailsType = "ERC1155"
)
func (ResponseSimulationAssetsDiffsAssetErc1155TokenDetailsType) IsKnown ¶
func (r ResponseSimulationAssetsDiffsAssetErc1155TokenDetailsType) IsKnown() bool
type ResponseSimulationAssetsDiffsAssetErc20TokenDetails ¶
type ResponseSimulationAssetsDiffsAssetErc20TokenDetails struct { // address of the token Address string `json:"address,required"` // asset's decimals Decimals int64 `json:"decimals,required"` // asset type. Type ResponseSimulationAssetsDiffsAssetErc20TokenDetailsType `json:"type,required"` // url of the token logo LogoURL string `json:"logo_url"` // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` JSON responseSimulationAssetsDiffsAssetErc20TokenDetailsJSON `json:"-"` }
func (*ResponseSimulationAssetsDiffsAssetErc20TokenDetails) UnmarshalJSON ¶
func (r *ResponseSimulationAssetsDiffsAssetErc20TokenDetails) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAssetsDiffsAssetErc20TokenDetailsType ¶
type ResponseSimulationAssetsDiffsAssetErc20TokenDetailsType string
asset type.
const (
ResponseSimulationAssetsDiffsAssetErc20TokenDetailsTypeErc20 ResponseSimulationAssetsDiffsAssetErc20TokenDetailsType = "ERC20"
)
func (ResponseSimulationAssetsDiffsAssetErc20TokenDetailsType) IsKnown ¶
func (r ResponseSimulationAssetsDiffsAssetErc20TokenDetailsType) IsKnown() bool
type ResponseSimulationAssetsDiffsAssetErc721TokenDetails ¶
type ResponseSimulationAssetsDiffsAssetErc721TokenDetails struct { // address of the token Address string `json:"address,required"` // asset type. Type ResponseSimulationAssetsDiffsAssetErc721TokenDetailsType `json:"type,required"` // url of the token logo LogoURL string `json:"logo_url"` // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` JSON responseSimulationAssetsDiffsAssetErc721TokenDetailsJSON `json:"-"` }
func (*ResponseSimulationAssetsDiffsAssetErc721TokenDetails) UnmarshalJSON ¶
func (r *ResponseSimulationAssetsDiffsAssetErc721TokenDetails) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAssetsDiffsAssetErc721TokenDetailsType ¶
type ResponseSimulationAssetsDiffsAssetErc721TokenDetailsType string
asset type.
const (
ResponseSimulationAssetsDiffsAssetErc721TokenDetailsTypeErc721 ResponseSimulationAssetsDiffsAssetErc721TokenDetailsType = "ERC721"
)
func (ResponseSimulationAssetsDiffsAssetErc721TokenDetailsType) IsKnown ¶
func (r ResponseSimulationAssetsDiffsAssetErc721TokenDetailsType) IsKnown() bool
type ResponseSimulationAssetsDiffsAssetNativeAssetDetails ¶
type ResponseSimulationAssetsDiffsAssetNativeAssetDetails struct { ChainID int64 `json:"chain_id,required"` ChainName string `json:"chain_name,required"` Decimals int64 `json:"decimals,required"` LogoURL string `json:"logo_url,required"` // asset type. Type ResponseSimulationAssetsDiffsAssetNativeAssetDetailsType `json:"type,required"` // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` JSON responseSimulationAssetsDiffsAssetNativeAssetDetailsJSON `json:"-"` }
func (*ResponseSimulationAssetsDiffsAssetNativeAssetDetails) UnmarshalJSON ¶
func (r *ResponseSimulationAssetsDiffsAssetNativeAssetDetails) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAssetsDiffsAssetNativeAssetDetailsType ¶
type ResponseSimulationAssetsDiffsAssetNativeAssetDetailsType string
asset type.
const (
ResponseSimulationAssetsDiffsAssetNativeAssetDetailsTypeNative ResponseSimulationAssetsDiffsAssetNativeAssetDetailsType = "NATIVE"
)
func (ResponseSimulationAssetsDiffsAssetNativeAssetDetailsType) IsKnown ¶
func (r ResponseSimulationAssetsDiffsAssetNativeAssetDetailsType) IsKnown() bool
type ResponseSimulationAssetsDiffsAssetNonercTokenDetails ¶
type ResponseSimulationAssetsDiffsAssetNonercTokenDetails struct { // address of the token Address string `json:"address,required"` // asset type. Type ResponseSimulationAssetsDiffsAssetNonercTokenDetailsType `json:"type,required"` // url of the token logo LogoURL string `json:"logo_url"` // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` JSON responseSimulationAssetsDiffsAssetNonercTokenDetailsJSON `json:"-"` }
func (*ResponseSimulationAssetsDiffsAssetNonercTokenDetails) UnmarshalJSON ¶
func (r *ResponseSimulationAssetsDiffsAssetNonercTokenDetails) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAssetsDiffsAssetNonercTokenDetailsType ¶
type ResponseSimulationAssetsDiffsAssetNonercTokenDetailsType string
asset type.
const (
ResponseSimulationAssetsDiffsAssetNonercTokenDetailsTypeNonerc ResponseSimulationAssetsDiffsAssetNonercTokenDetailsType = "NONERC"
)
func (ResponseSimulationAssetsDiffsAssetNonercTokenDetailsType) IsKnown ¶
func (r ResponseSimulationAssetsDiffsAssetNonercTokenDetailsType) IsKnown() bool
type ResponseSimulationAssetsDiffsAssetType ¶
type ResponseSimulationAssetsDiffsAssetType string
asset type.
const ( ResponseSimulationAssetsDiffsAssetTypeErc20 ResponseSimulationAssetsDiffsAssetType = "ERC20" ResponseSimulationAssetsDiffsAssetTypeErc1155 ResponseSimulationAssetsDiffsAssetType = "ERC1155" ResponseSimulationAssetsDiffsAssetTypeErc721 ResponseSimulationAssetsDiffsAssetType = "ERC721" ResponseSimulationAssetsDiffsAssetTypeNonerc ResponseSimulationAssetsDiffsAssetType = "NONERC" ResponseSimulationAssetsDiffsAssetTypeNative ResponseSimulationAssetsDiffsAssetType = "NATIVE" )
func (ResponseSimulationAssetsDiffsAssetType) IsKnown ¶
func (r ResponseSimulationAssetsDiffsAssetType) IsKnown() bool
type ResponseSimulationAssetsDiffsAssetUnion ¶
type ResponseSimulationAssetsDiffsAssetUnion interface {
// contains filtered or unexported methods
}
description of the asset for the current diff
Union satisfied by shared.ResponseSimulationAssetsDiffsAssetErc20TokenDetails, shared.ResponseSimulationAssetsDiffsAssetErc1155TokenDetails, shared.ResponseSimulationAssetsDiffsAssetErc721TokenDetails, shared.ResponseSimulationAssetsDiffsAssetNonercTokenDetails or shared.ResponseSimulationAssetsDiffsAssetNativeAssetDetails.
type ResponseSimulationAssetsDiffsIn ¶
type ResponseSimulationAssetsDiffsIn struct { // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // user friendly description of the asset transfer Summary string `json:"summary"` // id of the token TokenID int64 `json:"token_id"` // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value"` // url of the token logo LogoURL string `json:"logo_url"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAssetsDiffsInJSON `json:"-"` // contains filtered or unexported fields }
func (ResponseSimulationAssetsDiffsIn) AsUnion ¶
func (r ResponseSimulationAssetsDiffsIn) AsUnion() ResponseSimulationAssetsDiffsInUnion
func (*ResponseSimulationAssetsDiffsIn) UnmarshalJSON ¶
func (r *ResponseSimulationAssetsDiffsIn) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAssetsDiffsInErc1155Diff ¶
type ResponseSimulationAssetsDiffsInErc1155Diff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // id of the token TokenID int64 `json:"token_id,required"` // url of the token logo LogoURL string `json:"logo_url"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` JSON responseSimulationAssetsDiffsInErc1155DiffJSON `json:"-"` }
func (*ResponseSimulationAssetsDiffsInErc1155Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAssetsDiffsInErc1155Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAssetsDiffsInErc20Diff ¶
type ResponseSimulationAssetsDiffsInErc20Diff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAssetsDiffsInErc20DiffJSON `json:"-"` }
func (*ResponseSimulationAssetsDiffsInErc20Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAssetsDiffsInErc20Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAssetsDiffsInErc721Diff ¶
type ResponseSimulationAssetsDiffsInErc721Diff struct { // id of the token TokenID int64 `json:"token_id,required"` // url of the token logo LogoURL string `json:"logo_url"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` JSON responseSimulationAssetsDiffsInErc721DiffJSON `json:"-"` }
func (*ResponseSimulationAssetsDiffsInErc721Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAssetsDiffsInErc721Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAssetsDiffsInNativeDiff ¶
type ResponseSimulationAssetsDiffsInNativeDiff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAssetsDiffsInNativeDiffJSON `json:"-"` }
func (*ResponseSimulationAssetsDiffsInNativeDiff) UnmarshalJSON ¶
func (r *ResponseSimulationAssetsDiffsInNativeDiff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAssetsDiffsInUnion ¶
type ResponseSimulationAssetsDiffsInUnion interface {
// contains filtered or unexported methods
}
Union satisfied by shared.ResponseSimulationAssetsDiffsInErc1155Diff, shared.ResponseSimulationAssetsDiffsInErc721Diff, shared.ResponseSimulationAssetsDiffsInErc20Diff or shared.ResponseSimulationAssetsDiffsInNativeDiff.
type ResponseSimulationAssetsDiffsOut ¶
type ResponseSimulationAssetsDiffsOut struct { // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // user friendly description of the asset transfer Summary string `json:"summary"` // id of the token TokenID int64 `json:"token_id"` // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value"` // url of the token logo LogoURL string `json:"logo_url"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAssetsDiffsOutJSON `json:"-"` // contains filtered or unexported fields }
func (ResponseSimulationAssetsDiffsOut) AsUnion ¶
func (r ResponseSimulationAssetsDiffsOut) AsUnion() ResponseSimulationAssetsDiffsOutUnion
func (*ResponseSimulationAssetsDiffsOut) UnmarshalJSON ¶
func (r *ResponseSimulationAssetsDiffsOut) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAssetsDiffsOutErc1155Diff ¶
type ResponseSimulationAssetsDiffsOutErc1155Diff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // id of the token TokenID int64 `json:"token_id,required"` // url of the token logo LogoURL string `json:"logo_url"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` JSON responseSimulationAssetsDiffsOutErc1155DiffJSON `json:"-"` }
func (*ResponseSimulationAssetsDiffsOutErc1155Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAssetsDiffsOutErc1155Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAssetsDiffsOutErc20Diff ¶
type ResponseSimulationAssetsDiffsOutErc20Diff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAssetsDiffsOutErc20DiffJSON `json:"-"` }
func (*ResponseSimulationAssetsDiffsOutErc20Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAssetsDiffsOutErc20Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAssetsDiffsOutErc721Diff ¶
type ResponseSimulationAssetsDiffsOutErc721Diff struct { // id of the token TokenID int64 `json:"token_id,required"` // url of the token logo LogoURL string `json:"logo_url"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` JSON responseSimulationAssetsDiffsOutErc721DiffJSON `json:"-"` }
func (*ResponseSimulationAssetsDiffsOutErc721Diff) UnmarshalJSON ¶
func (r *ResponseSimulationAssetsDiffsOutErc721Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAssetsDiffsOutNativeDiff ¶
type ResponseSimulationAssetsDiffsOutNativeDiff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationAssetsDiffsOutNativeDiffJSON `json:"-"` }
func (*ResponseSimulationAssetsDiffsOutNativeDiff) UnmarshalJSON ¶
func (r *ResponseSimulationAssetsDiffsOutNativeDiff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationAssetsDiffsOutUnion ¶
type ResponseSimulationAssetsDiffsOutUnion interface {
// contains filtered or unexported methods
}
Union satisfied by shared.ResponseSimulationAssetsDiffsOutErc1155Diff, shared.ResponseSimulationAssetsDiffsOutErc721Diff, shared.ResponseSimulationAssetsDiffsOutErc20Diff or shared.ResponseSimulationAssetsDiffsOutNativeDiff.
type ResponseSimulationExposure ¶
type ResponseSimulationExposure struct { // description of the asset for the current diff Asset ResponseSimulationExposuresAsset `json:"asset,required"` // dictionary of spender addresses where the exposure has changed during this // transaction for the current address and asset Spenders map[string]ResponseSimulationExposuresSpender `json:"spenders,required"` JSON responseSimulationExposureJSON `json:"-"` }
func (*ResponseSimulationExposure) UnmarshalJSON ¶
func (r *ResponseSimulationExposure) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresAsset ¶
type ResponseSimulationExposuresAsset struct { // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` // address of the token Address string `json:"address,required"` // url of the token logo LogoURL string `json:"logo_url"` // asset type. Type ResponseSimulationExposuresAssetType `json:"type,required"` // asset's decimals Decimals int64 `json:"decimals"` JSON responseSimulationExposuresAssetJSON `json:"-"` // contains filtered or unexported fields }
description of the asset for the current diff
func (ResponseSimulationExposuresAsset) AsUnion ¶
func (r ResponseSimulationExposuresAsset) AsUnion() ResponseSimulationExposuresAssetUnion
func (*ResponseSimulationExposuresAsset) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresAsset) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresAssetErc1155TokenDetails ¶
type ResponseSimulationExposuresAssetErc1155TokenDetails struct { // address of the token Address string `json:"address,required"` // asset type. Type ResponseSimulationExposuresAssetErc1155TokenDetailsType `json:"type,required"` // url of the token logo LogoURL string `json:"logo_url"` // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` JSON responseSimulationExposuresAssetErc1155TokenDetailsJSON `json:"-"` }
func (*ResponseSimulationExposuresAssetErc1155TokenDetails) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresAssetErc1155TokenDetails) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresAssetErc1155TokenDetailsType ¶
type ResponseSimulationExposuresAssetErc1155TokenDetailsType string
asset type.
const (
ResponseSimulationExposuresAssetErc1155TokenDetailsTypeErc1155 ResponseSimulationExposuresAssetErc1155TokenDetailsType = "ERC1155"
)
func (ResponseSimulationExposuresAssetErc1155TokenDetailsType) IsKnown ¶
func (r ResponseSimulationExposuresAssetErc1155TokenDetailsType) IsKnown() bool
type ResponseSimulationExposuresAssetErc20TokenDetails ¶
type ResponseSimulationExposuresAssetErc20TokenDetails struct { // address of the token Address string `json:"address,required"` // asset's decimals Decimals int64 `json:"decimals,required"` // asset type. Type ResponseSimulationExposuresAssetErc20TokenDetailsType `json:"type,required"` // url of the token logo LogoURL string `json:"logo_url"` // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` JSON responseSimulationExposuresAssetErc20TokenDetailsJSON `json:"-"` }
func (*ResponseSimulationExposuresAssetErc20TokenDetails) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresAssetErc20TokenDetails) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresAssetErc20TokenDetailsType ¶
type ResponseSimulationExposuresAssetErc20TokenDetailsType string
asset type.
const (
ResponseSimulationExposuresAssetErc20TokenDetailsTypeErc20 ResponseSimulationExposuresAssetErc20TokenDetailsType = "ERC20"
)
func (ResponseSimulationExposuresAssetErc20TokenDetailsType) IsKnown ¶
func (r ResponseSimulationExposuresAssetErc20TokenDetailsType) IsKnown() bool
type ResponseSimulationExposuresAssetErc721TokenDetails ¶
type ResponseSimulationExposuresAssetErc721TokenDetails struct { // address of the token Address string `json:"address,required"` // asset type. Type ResponseSimulationExposuresAssetErc721TokenDetailsType `json:"type,required"` // url of the token logo LogoURL string `json:"logo_url"` // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` JSON responseSimulationExposuresAssetErc721TokenDetailsJSON `json:"-"` }
func (*ResponseSimulationExposuresAssetErc721TokenDetails) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresAssetErc721TokenDetails) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresAssetErc721TokenDetailsType ¶
type ResponseSimulationExposuresAssetErc721TokenDetailsType string
asset type.
const (
ResponseSimulationExposuresAssetErc721TokenDetailsTypeErc721 ResponseSimulationExposuresAssetErc721TokenDetailsType = "ERC721"
)
func (ResponseSimulationExposuresAssetErc721TokenDetailsType) IsKnown ¶
func (r ResponseSimulationExposuresAssetErc721TokenDetailsType) IsKnown() bool
type ResponseSimulationExposuresAssetNonercTokenDetails ¶
type ResponseSimulationExposuresAssetNonercTokenDetails struct { // address of the token Address string `json:"address,required"` // asset type. Type ResponseSimulationExposuresAssetNonercTokenDetailsType `json:"type,required"` // url of the token logo LogoURL string `json:"logo_url"` // string represents the name of the asset Name string `json:"name"` // asset's symbol name Symbol string `json:"symbol"` JSON responseSimulationExposuresAssetNonercTokenDetailsJSON `json:"-"` }
func (*ResponseSimulationExposuresAssetNonercTokenDetails) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresAssetNonercTokenDetails) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresAssetNonercTokenDetailsType ¶
type ResponseSimulationExposuresAssetNonercTokenDetailsType string
asset type.
const (
ResponseSimulationExposuresAssetNonercTokenDetailsTypeNonerc ResponseSimulationExposuresAssetNonercTokenDetailsType = "NONERC"
)
func (ResponseSimulationExposuresAssetNonercTokenDetailsType) IsKnown ¶
func (r ResponseSimulationExposuresAssetNonercTokenDetailsType) IsKnown() bool
type ResponseSimulationExposuresAssetType ¶
type ResponseSimulationExposuresAssetType string
asset type.
const ( ResponseSimulationExposuresAssetTypeErc20 ResponseSimulationExposuresAssetType = "ERC20" ResponseSimulationExposuresAssetTypeErc1155 ResponseSimulationExposuresAssetType = "ERC1155" ResponseSimulationExposuresAssetTypeErc721 ResponseSimulationExposuresAssetType = "ERC721" ResponseSimulationExposuresAssetTypeNonerc ResponseSimulationExposuresAssetType = "NONERC" )
func (ResponseSimulationExposuresAssetType) IsKnown ¶
func (r ResponseSimulationExposuresAssetType) IsKnown() bool
type ResponseSimulationExposuresAssetUnion ¶
type ResponseSimulationExposuresAssetUnion interface {
// contains filtered or unexported methods
}
description of the asset for the current diff
Union satisfied by shared.ResponseSimulationExposuresAssetErc20TokenDetails, shared.ResponseSimulationExposuresAssetErc1155TokenDetails, shared.ResponseSimulationExposuresAssetErc721TokenDetails or shared.ResponseSimulationExposuresAssetNonercTokenDetails.
type ResponseSimulationExposuresSpender ¶
type ResponseSimulationExposuresSpender struct { Exposure interface{} `json:"exposure"` // user friendly description of the approval Summary string `json:"summary"` // the amount that was asked in the approval request for this spender from the // current address and asset Approval int64 `json:"approval"` // the expiration time of the permit2 protocol Expiration time.Time `json:"expiration" format:"date-time"` // boolean indicates whether an is_approved_for_all function was used (missing in // case of ERC20 / ERC1155) IsApprovedForAll bool `json:"is_approved_for_all"` JSON responseSimulationExposuresSpenderJSON `json:"-"` // contains filtered or unexported fields }
func (ResponseSimulationExposuresSpender) AsUnion ¶
func (r ResponseSimulationExposuresSpender) AsUnion() ResponseSimulationExposuresSpendersUnion
func (*ResponseSimulationExposuresSpender) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresSpender) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresSpendersErc1155Exposure ¶
type ResponseSimulationExposuresSpendersErc1155Exposure struct { Exposure []ResponseSimulationExposuresSpendersErc1155ExposureExposure `json:"exposure,required"` // boolean indicates whether an is_approved_for_all function was used (missing in // case of ERC20 / ERC1155) IsApprovedForAll bool `json:"is_approved_for_all,required"` // user friendly description of the approval Summary string `json:"summary"` JSON responseSimulationExposuresSpendersErc1155ExposureJSON `json:"-"` }
func (*ResponseSimulationExposuresSpendersErc1155Exposure) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresSpendersErc1155Exposure) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresSpendersErc1155ExposureExposure ¶
type ResponseSimulationExposuresSpendersErc1155ExposureExposure struct { // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // user friendly description of the asset transfer Summary string `json:"summary"` // id of the token TokenID int64 `json:"token_id"` // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value"` // url of the token logo LogoURL string `json:"logo_url"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationExposuresSpendersErc1155ExposureExposureJSON `json:"-"` // contains filtered or unexported fields }
func (*ResponseSimulationExposuresSpendersErc1155ExposureExposure) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresSpendersErc1155ExposureExposure) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresSpendersErc1155ExposureExposureErc1155Diff ¶
type ResponseSimulationExposuresSpendersErc1155ExposureExposureErc1155Diff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // id of the token TokenID int64 `json:"token_id,required"` // url of the token logo LogoURL string `json:"logo_url"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` JSON responseSimulationExposuresSpendersErc1155ExposureExposureErc1155DiffJSON `json:"-"` }
func (*ResponseSimulationExposuresSpendersErc1155ExposureExposureErc1155Diff) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresSpendersErc1155ExposureExposureErc1155Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresSpendersErc1155ExposureExposureErc20Diff ¶
type ResponseSimulationExposuresSpendersErc1155ExposureExposureErc20Diff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationExposuresSpendersErc1155ExposureExposureErc20DiffJSON `json:"-"` }
func (*ResponseSimulationExposuresSpendersErc1155ExposureExposureErc20Diff) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresSpendersErc1155ExposureExposureErc20Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresSpendersErc1155ExposureExposureErc721Diff ¶
type ResponseSimulationExposuresSpendersErc1155ExposureExposureErc721Diff struct { // id of the token TokenID int64 `json:"token_id,required"` // url of the token logo LogoURL string `json:"logo_url"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` JSON responseSimulationExposuresSpendersErc1155ExposureExposureErc721DiffJSON `json:"-"` }
func (*ResponseSimulationExposuresSpendersErc1155ExposureExposureErc721Diff) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresSpendersErc1155ExposureExposureErc721Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresSpendersErc1155ExposureExposureNativeDiff ¶
type ResponseSimulationExposuresSpendersErc1155ExposureExposureNativeDiff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationExposuresSpendersErc1155ExposureExposureNativeDiffJSON `json:"-"` }
func (*ResponseSimulationExposuresSpendersErc1155ExposureExposureNativeDiff) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresSpendersErc1155ExposureExposureNativeDiff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresSpendersErc1155ExposureExposureUnion ¶
type ResponseSimulationExposuresSpendersErc1155ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by shared.ResponseSimulationExposuresSpendersErc1155ExposureExposureErc1155Diff, shared.ResponseSimulationExposuresSpendersErc1155ExposureExposureErc721Diff, shared.ResponseSimulationExposuresSpendersErc1155ExposureExposureErc20Diff or shared.ResponseSimulationExposuresSpendersErc1155ExposureExposureNativeDiff.
type ResponseSimulationExposuresSpendersErc20Exposure ¶
type ResponseSimulationExposuresSpendersErc20Exposure struct { // the amount that was asked in the approval request for this spender from the // current address and asset Approval int64 `json:"approval,required"` Exposure []ResponseSimulationExposuresSpendersErc20ExposureExposure `json:"exposure,required"` // the expiration time of the permit2 protocol Expiration time.Time `json:"expiration" format:"date-time"` // user friendly description of the approval Summary string `json:"summary"` JSON responseSimulationExposuresSpendersErc20ExposureJSON `json:"-"` }
func (*ResponseSimulationExposuresSpendersErc20Exposure) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresSpendersErc20Exposure) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresSpendersErc20ExposureExposure ¶
type ResponseSimulationExposuresSpendersErc20ExposureExposure struct { // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // user friendly description of the asset transfer Summary string `json:"summary"` // id of the token TokenID int64 `json:"token_id"` // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value"` // url of the token logo LogoURL string `json:"logo_url"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationExposuresSpendersErc20ExposureExposureJSON `json:"-"` // contains filtered or unexported fields }
func (*ResponseSimulationExposuresSpendersErc20ExposureExposure) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresSpendersErc20ExposureExposure) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresSpendersErc20ExposureExposureErc1155Diff ¶
type ResponseSimulationExposuresSpendersErc20ExposureExposureErc1155Diff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // id of the token TokenID int64 `json:"token_id,required"` // url of the token logo LogoURL string `json:"logo_url"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` JSON responseSimulationExposuresSpendersErc20ExposureExposureErc1155DiffJSON `json:"-"` }
func (*ResponseSimulationExposuresSpendersErc20ExposureExposureErc1155Diff) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresSpendersErc20ExposureExposureErc1155Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresSpendersErc20ExposureExposureErc20Diff ¶
type ResponseSimulationExposuresSpendersErc20ExposureExposureErc20Diff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationExposuresSpendersErc20ExposureExposureErc20DiffJSON `json:"-"` }
func (*ResponseSimulationExposuresSpendersErc20ExposureExposureErc20Diff) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresSpendersErc20ExposureExposureErc20Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresSpendersErc20ExposureExposureErc721Diff ¶
type ResponseSimulationExposuresSpendersErc20ExposureExposureErc721Diff struct { // id of the token TokenID int64 `json:"token_id,required"` // url of the token logo LogoURL string `json:"logo_url"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` JSON responseSimulationExposuresSpendersErc20ExposureExposureErc721DiffJSON `json:"-"` }
func (*ResponseSimulationExposuresSpendersErc20ExposureExposureErc721Diff) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresSpendersErc20ExposureExposureErc721Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresSpendersErc20ExposureExposureNativeDiff ¶
type ResponseSimulationExposuresSpendersErc20ExposureExposureNativeDiff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationExposuresSpendersErc20ExposureExposureNativeDiffJSON `json:"-"` }
func (*ResponseSimulationExposuresSpendersErc20ExposureExposureNativeDiff) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresSpendersErc20ExposureExposureNativeDiff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresSpendersErc20ExposureExposureUnion ¶
type ResponseSimulationExposuresSpendersErc20ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by shared.ResponseSimulationExposuresSpendersErc20ExposureExposureErc1155Diff, shared.ResponseSimulationExposuresSpendersErc20ExposureExposureErc721Diff, shared.ResponseSimulationExposuresSpendersErc20ExposureExposureErc20Diff or shared.ResponseSimulationExposuresSpendersErc20ExposureExposureNativeDiff.
type ResponseSimulationExposuresSpendersErc721Exposure ¶
type ResponseSimulationExposuresSpendersErc721Exposure struct { Exposure []ResponseSimulationExposuresSpendersErc721ExposureExposure `json:"exposure,required"` // boolean indicates whether an is_approved_for_all function was used (missing in // case of ERC20 / ERC1155) IsApprovedForAll bool `json:"is_approved_for_all,required"` // user friendly description of the approval Summary string `json:"summary"` JSON responseSimulationExposuresSpendersErc721ExposureJSON `json:"-"` }
func (*ResponseSimulationExposuresSpendersErc721Exposure) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresSpendersErc721Exposure) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresSpendersErc721ExposureExposure ¶
type ResponseSimulationExposuresSpendersErc721ExposureExposure struct { // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // user friendly description of the asset transfer Summary string `json:"summary"` // id of the token TokenID int64 `json:"token_id"` // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value"` // url of the token logo LogoURL string `json:"logo_url"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationExposuresSpendersErc721ExposureExposureJSON `json:"-"` // contains filtered or unexported fields }
func (*ResponseSimulationExposuresSpendersErc721ExposureExposure) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresSpendersErc721ExposureExposure) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresSpendersErc721ExposureExposureErc1155Diff ¶
type ResponseSimulationExposuresSpendersErc721ExposureExposureErc1155Diff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // id of the token TokenID int64 `json:"token_id,required"` // url of the token logo LogoURL string `json:"logo_url"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` JSON responseSimulationExposuresSpendersErc721ExposureExposureErc1155DiffJSON `json:"-"` }
func (*ResponseSimulationExposuresSpendersErc721ExposureExposureErc1155Diff) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresSpendersErc721ExposureExposureErc1155Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresSpendersErc721ExposureExposureErc20Diff ¶
type ResponseSimulationExposuresSpendersErc721ExposureExposureErc20Diff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationExposuresSpendersErc721ExposureExposureErc20DiffJSON `json:"-"` }
func (*ResponseSimulationExposuresSpendersErc721ExposureExposureErc20Diff) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresSpendersErc721ExposureExposureErc20Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresSpendersErc721ExposureExposureErc721Diff ¶
type ResponseSimulationExposuresSpendersErc721ExposureExposureErc721Diff struct { // id of the token TokenID int64 `json:"token_id,required"` // url of the token logo LogoURL string `json:"logo_url"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` JSON responseSimulationExposuresSpendersErc721ExposureExposureErc721DiffJSON `json:"-"` }
func (*ResponseSimulationExposuresSpendersErc721ExposureExposureErc721Diff) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresSpendersErc721ExposureExposureErc721Diff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresSpendersErc721ExposureExposureNativeDiff ¶
type ResponseSimulationExposuresSpendersErc721ExposureExposureNativeDiff struct { // value before divided by decimal, that was transferred from this address RawValue int64 `json:"raw_value,required"` // user friendly description of the asset transfer Summary string `json:"summary"` // usd equal of the asset that was transferred from this address UsdPrice float64 `json:"usd_price"` // value after divided by decimals, that was transferred from this address Value float64 `json:"value"` JSON responseSimulationExposuresSpendersErc721ExposureExposureNativeDiffJSON `json:"-"` }
func (*ResponseSimulationExposuresSpendersErc721ExposureExposureNativeDiff) UnmarshalJSON ¶
func (r *ResponseSimulationExposuresSpendersErc721ExposureExposureNativeDiff) UnmarshalJSON(data []byte) (err error)
type ResponseSimulationExposuresSpendersErc721ExposureExposureUnion ¶
type ResponseSimulationExposuresSpendersErc721ExposureExposureUnion interface {
// contains filtered or unexported methods
}
Union satisfied by shared.ResponseSimulationExposuresSpendersErc721ExposureExposureErc1155Diff, shared.ResponseSimulationExposuresSpendersErc721ExposureExposureErc721Diff, shared.ResponseSimulationExposuresSpendersErc721ExposureExposureErc20Diff or shared.ResponseSimulationExposuresSpendersErc721ExposureExposureNativeDiff.
type ResponseSimulationExposuresSpendersUnion ¶
type ResponseSimulationExposuresSpendersUnion interface {
// contains filtered or unexported methods
}
Union satisfied by shared.ResponseSimulationExposuresSpendersErc20Exposure, shared.ResponseSimulationExposuresSpendersErc721Exposure or shared.ResponseSimulationExposuresSpendersErc1155Exposure.
type ResponseSimulationTotalUsdDiff ¶
type ResponseSimulationTotalUsdDiff struct { In string `json:"in,required"` Out string `json:"out,required"` Total string `json:"total,required"` JSON responseSimulationTotalUsdDiffJSON `json:"-"` }
func (*ResponseSimulationTotalUsdDiff) UnmarshalJSON ¶
func (r *ResponseSimulationTotalUsdDiff) UnmarshalJSON(data []byte) (err error)
type ResponseValidation ¶
type ResponseValidation struct { // A list of features about this transaction explaining the validation. Features []ResponseValidationFeature `json:"features,required"` // An enumeration. ResultType ResponseValidationResultType `json:"result_type,required"` // A textual classification that can be presented to the user explaining the // reason. Classification string `json:"classification"` // A textual description that can be presented to the user about what this // transaction is doing. Description string `json:"description"` // An error message if the validation failed. Error string `json:"error"` // A textual description about the reasons the transaction was flagged with // result_type. Reason string `json:"reason"` JSON responseValidationJSON `json:"-"` }
func (*ResponseValidation) UnmarshalJSON ¶
func (r *ResponseValidation) UnmarshalJSON(data []byte) (err error)
type ResponseValidationFeature ¶
type ResponseValidationFeature struct { // Textual description Description string `json:"description,required"` // Feature name FeatureID string `json:"feature_id,required"` // An enumeration. Type ResponseValidationFeaturesType `json:"type,required"` // Address the feature refers to Address string `json:"address"` JSON responseValidationFeatureJSON `json:"-"` }
func (*ResponseValidationFeature) UnmarshalJSON ¶
func (r *ResponseValidationFeature) UnmarshalJSON(data []byte) (err error)
type ResponseValidationFeaturesType ¶
type ResponseValidationFeaturesType string
An enumeration.
const ( ResponseValidationFeaturesTypeMalicious ResponseValidationFeaturesType = "Malicious" ResponseValidationFeaturesTypeWarning ResponseValidationFeaturesType = "Warning" ResponseValidationFeaturesTypeBenign ResponseValidationFeaturesType = "Benign" ResponseValidationFeaturesTypeInfo ResponseValidationFeaturesType = "Info" )
func (ResponseValidationFeaturesType) IsKnown ¶
func (r ResponseValidationFeaturesType) IsKnown() bool
type ResponseValidationResultType ¶
type ResponseValidationResultType string
An enumeration.
const ( ResponseValidationResultTypeMalicious ResponseValidationResultType = "Malicious" ResponseValidationResultTypeWarning ResponseValidationResultType = "Warning" ResponseValidationResultTypeBenign ResponseValidationResultType = "Benign" ResponseValidationResultTypeError ResponseValidationResultType = "Error" )
func (ResponseValidationResultType) IsKnown ¶
func (r ResponseValidationResultType) IsKnown() bool
type UnionString ¶
type UnionString string
func (UnionString) ImplementsValidateBulkTransactionResponseEventsParamsValueUnion ¶
func (UnionString) ImplementsValidateBulkTransactionResponseEventsParamsValueUnion()