shared

package
v0.1.0-alpha.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

func (r *Response) UnmarshalJSON(data []byte) (err error)

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) AsUnion

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

type ResponseSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType

type ResponseSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType string

asset type.

const (
	ResponseSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsTypeErc1155 ResponseSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType = "ERC1155"
)

func (ResponseSimulationAccountSummaryAssetsDiffsAssetErc1155TokenDetailsType) IsKnown

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

type ResponseSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType

type ResponseSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType string

asset type.

const (
	ResponseSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsTypeErc20 ResponseSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType = "ERC20"
)

func (ResponseSimulationAccountSummaryAssetsDiffsAssetErc20TokenDetailsType) IsKnown

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

type ResponseSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType

type ResponseSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType string

asset type.

const (
	ResponseSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsTypeErc721 ResponseSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType = "ERC721"
)

func (ResponseSimulationAccountSummaryAssetsDiffsAssetErc721TokenDetailsType) IsKnown

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

type ResponseSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType

type ResponseSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType string

asset type.

const (
	ResponseSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsTypeNative ResponseSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType = "NATIVE"
)

func (ResponseSimulationAccountSummaryAssetsDiffsAssetNativeAssetDetailsType) IsKnown

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

type ResponseSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType

type ResponseSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType string

asset type.

const (
	ResponseSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsTypeNonerc ResponseSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType = "NONERC"
)

func (ResponseSimulationAccountSummaryAssetsDiffsAssetNonercTokenDetailsType) IsKnown

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

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) AsUnion

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

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

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

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) AsUnion

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

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

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

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

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) AsUnion

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

type ResponseSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType

type ResponseSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType string

asset type.

const (
	ResponseSimulationAccountSummaryExposuresAssetErc1155TokenDetailsTypeErc1155 ResponseSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType = "ERC1155"
)

func (ResponseSimulationAccountSummaryExposuresAssetErc1155TokenDetailsType) IsKnown

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

type ResponseSimulationAccountSummaryExposuresAssetErc20TokenDetailsType

type ResponseSimulationAccountSummaryExposuresAssetErc20TokenDetailsType string

asset type.

const (
	ResponseSimulationAccountSummaryExposuresAssetErc20TokenDetailsTypeErc20 ResponseSimulationAccountSummaryExposuresAssetErc20TokenDetailsType = "ERC20"
)

func (ResponseSimulationAccountSummaryExposuresAssetErc20TokenDetailsType) IsKnown

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

type ResponseSimulationAccountSummaryExposuresAssetErc721TokenDetailsType

type ResponseSimulationAccountSummaryExposuresAssetErc721TokenDetailsType string

asset type.

const (
	ResponseSimulationAccountSummaryExposuresAssetErc721TokenDetailsTypeErc721 ResponseSimulationAccountSummaryExposuresAssetErc721TokenDetailsType = "ERC721"
)

func (ResponseSimulationAccountSummaryExposuresAssetErc721TokenDetailsType) IsKnown

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

type ResponseSimulationAccountSummaryExposuresAssetNonercTokenDetailsType

type ResponseSimulationAccountSummaryExposuresAssetNonercTokenDetailsType string

asset type.

const (
	ResponseSimulationAccountSummaryExposuresAssetNonercTokenDetailsTypeNonerc ResponseSimulationAccountSummaryExposuresAssetNonercTokenDetailsType = "NONERC"
)

func (ResponseSimulationAccountSummaryExposuresAssetNonercTokenDetailsType) IsKnown

type ResponseSimulationAccountSummaryExposuresAssetType

type ResponseSimulationAccountSummaryExposuresAssetType string

asset type.

const (
	ResponseSimulationAccountSummaryExposuresAssetTypeErc20   ResponseSimulationAccountSummaryExposuresAssetType = "ERC20"
	ResponseSimulationAccountSummaryExposuresAssetTypeErc1155 ResponseSimulationAccountSummaryExposuresAssetType = "ERC1155"
	ResponseSimulationAccountSummaryExposuresAssetTypeErc721  ResponseSimulationAccountSummaryExposuresAssetType = "ERC721"
	ResponseSimulationAccountSummaryExposuresAssetTypeNonerc  ResponseSimulationAccountSummaryExposuresAssetType = "NONERC"
)

func (ResponseSimulationAccountSummaryExposuresAssetType) IsKnown

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) AsUnion

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 (*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

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

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

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

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

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

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 (*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 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 (*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 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 (*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

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

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

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

type ResponseSimulationExposuresAssetType

type ResponseSimulationExposuresAssetType string

asset type.

const (
	ResponseSimulationExposuresAssetTypeErc20   ResponseSimulationExposuresAssetType = "ERC20"
	ResponseSimulationExposuresAssetTypeErc1155 ResponseSimulationExposuresAssetType = "ERC1155"
	ResponseSimulationExposuresAssetTypeErc721  ResponseSimulationExposuresAssetType = "ERC721"
	ResponseSimulationExposuresAssetTypeNonerc  ResponseSimulationExposuresAssetType = "NONERC"
)

func (ResponseSimulationExposuresAssetType) IsKnown

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 (*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) AsUnion

func (*ResponseSimulationExposuresSpendersErc1155ExposureExposure) UnmarshalJSON

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

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

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

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

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) AsUnion

func (*ResponseSimulationExposuresSpendersErc20ExposureExposure) UnmarshalJSON

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

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

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

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

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) AsUnion

func (*ResponseSimulationExposuresSpendersErc721ExposureExposure) UnmarshalJSON

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

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

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

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

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

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL