mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-04-30 13:52:23 +08:00
Co-authored-by: ariyan-hashstack <ariyan_hashstack@hashstack.finance> Co-authored-by: akiraonstarknet <zkdice@proton.me>
64 lines
1.1 KiB
JavaScript
64 lines
1.1 KiB
JavaScript
const ERC4626Abi = [
|
|
{
|
|
"name": "asset",
|
|
"type": "function",
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"type": "core::starknet::contract_address::ContractAddress"
|
|
}
|
|
],
|
|
"state_mutability": "view"
|
|
},
|
|
{
|
|
"name": "balanceOf",
|
|
"type": "function",
|
|
"inputs": [
|
|
{
|
|
"name": "account",
|
|
"type": "core::starknet::contract_address::ContractAddress"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"type": "core::integer::u256"
|
|
}
|
|
],
|
|
"state_mutability": "view",
|
|
"customInput": 'address',
|
|
},
|
|
{
|
|
"name": "total_assets",
|
|
"type": "function",
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"type": "core::integer::u256"
|
|
}
|
|
],
|
|
"state_mutability": "view"
|
|
},
|
|
{
|
|
"name": "preview_redeem",
|
|
"type": "function",
|
|
"inputs": [
|
|
{
|
|
"name": "shares",
|
|
"type": "core::integer::u256"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"type": "core::integer::u256"
|
|
}
|
|
],
|
|
"state_mutability": "view"
|
|
},
|
|
]
|
|
|
|
const ERC4626AbiMap = {}
|
|
ERC4626Abi.forEach(i => ERC4626AbiMap[i.name] = i)
|
|
|
|
module.exports = {
|
|
ERC4626AbiMap
|
|
} |