@metamask-institutional/defi-adapters / response
- GetEventsRequestInput
- AdapterErrorResponse
- AdapterResponse
- DefiPositionResponse
- DisplayPosition
- DefiProfitsResponse
- PricePerShareResponse
- DisplayProtocolTokenUnderlyingRate
- APRResponse
- APYResponse
- TotalValueLockResponse
- DisplayProtocolTokenTvl
- DefiMovementsResponse
- DisplayMovementsByBlock
Ƭ GetEventsRequestInput: Object
Name | Type |
---|---|
userAddress |
string |
fromBlock |
number |
toBlock |
number |
protocolTokenAddress |
string |
protocolId |
Protocol |
chainId |
Chain |
productId |
string |
tokenId? |
string |
Ƭ AdapterErrorResponse: Object
Name | Type |
---|---|
error |
{ message : string ; details? : any } |
error.message |
string |
error.details? |
any |
Ƭ AdapterResponse<ProtocolResponse
>: ProtocolDetails
& ProtocolResponse
& { success
: true
} | AdapterErrorResponse
& { success
: false
} | AdapterErrorResponse
& { success
: false
}
Name |
---|
ProtocolResponse |
Ƭ DefiPositionResponse: AdapterResponse
<{ tokens
: DisplayPosition
<ProtocolPosition
>[] }>
Ƭ DisplayPosition<PositionBalance
>: Omit
<PositionBalance
, "tokens"
> & { balance
: string
; tokens?
: DisplayPosition
<Underlying
>[] } & PositionBalance
["type"
] extends typeof Underlying
| typeof UnderlyingClaimable
? { iconUrl
: string
} : Record
<string
, never
>
Name | Type |
---|---|
PositionBalance |
extends TokenBalance & { type : TokenType ; tokens? : Underlying [] } |
Ƭ DefiProfitsResponse: AdapterResponse
<ProfitsWithRange
>
Ƭ PricePerShareResponse: AdapterResponse
<{ tokens
: DisplayProtocolTokenUnderlyingRate
[] }>
Ƭ DisplayProtocolTokenUnderlyingRate: Omit
<ProtocolTokenUnderlyingRate
, "tokens"
> & { tokens?
: UnderlyingTokenRate
& { underlyingRate
: string
; iconUrl
: string
}[] }
Ƭ APRResponse: AdapterResponse
<{ tokens
: ProtocolTokenApr
[] }>
Ƭ APYResponse: AdapterResponse
<{ tokens
: ProtocolTokenApy
[] }>
Ƭ TotalValueLockResponse: AdapterResponse
<{ tokens
: DisplayProtocolTokenTvl
[] }>
Ƭ DisplayProtocolTokenTvl: Omit
<ProtocolTokenTvl
, "tokens"
> & { totalSupply
: string
; tokens?
: UnderlyingTokenTvl
& { totalSupply
: string
; iconUrl
: string
}[] }
Ƭ DefiMovementsResponse: AdapterResponse
<{ movements
: DisplayMovementsByBlock
[] }>
Ƭ DisplayMovementsByBlock: Omit
<MovementsByBlock
, "tokens"
> & { tokens?
: Underlying
& { balance
: string
}[] }