fluid-contracts-public/deployments/arbitrum/dump/0x06afe41CA9292283536F8ed7F474f76ca64E011D.json

557 lines
122 KiB
JSON
Raw Permalink Normal View History

{
"address": "0x06afe41CA9292283536F8ed7F474f76ca64E011D",
"abi": [
{
"inputs": [
{
"internalType": "contract IFluidVaultResolver",
"name": "vaultResolver_",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "FluidVaultTicksBranchesResolver__AddressZero",
"type": "error"
},
{
"inputs": [],
"name": "VAULT_RESOLVER",
"outputs": [
{
"internalType": "contract IFluidVaultResolver",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getAllVaultsBranchesDebt",
"outputs": [
{
"components": [
{
"components": [
{
"internalType": "uint256",
"name": "debtRaw",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "collateralRaw",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "debtNormal",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "collateralNormal",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "branchId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "status",
"type": "uint256"
},
{
"internalType": "int256",
"name": "tick",
"type": "int256"
},
{
"internalType": "uint256",
"name": "partials",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ratio",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "debtFactor",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "baseBranchId",
"type": "uint256"
},
{
"internalType": "int256",
"name": "baseBranchTick",
"type": "int256"
}
],
"internalType": "struct Structs.BranchDebt[]",
"name": "branchDebt",
"type": "tuple[]"
}
],
"internalType": "struct Structs.BranchesDebt[]",
"name": "branchesDebt_",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "totalTicks_",
"type": "uint256"
}
],
"name": "getAllVaultsTicksDebt",
"outputs": [
{
"components": [
{
"components": [
{
"internalType": "uint256",
"name": "debtRaw",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "collateralRaw",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "debtNormal",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "collateralNormal",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ratio",
"type": "uint256"
},
{
"internalType": "int256",
"name": "tick",
"type": "int256"
}
],
"internalType": "struct Structs.TickDebt[]",
"name": "tickDebt",
"type": "tuple[]"
},
{
"internalType": "int256",
"name": "toTick",
"type": "int256"
}
],
"internalType": "struct Structs.VaultsTickDebt[]",
"name": "vaultsTickDebt_",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "vault_",
"type": "address"
},
{
"internalType": "uint256",
"name": "fromBranchId_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "toBranchId_",
"type": "uint256"
}
],
"name": "getBranchesDebt",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "debtRaw",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "collateralRaw",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "debtNormal",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "collateralNormal",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "branchId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "status",
"type": "uint256"
},
{
"internalType": "int256",
"name": "tick",
"type": "int256"
},
{
"internalType": "uint256",
"name": "partials",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ratio",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "debtFactor",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "baseBranchId",
"type": "uint256"
},
{
"internalType": "int256",
"name": "baseBranchTick",
"type": "int256"
}
],
"internalType": "struct Structs.BranchDebt[]",
"name": "branchesDebt_",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "vaults_",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "fromBranchIds_",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "toBranchIds_",
"type": "uint256[]"
}
],
"name": "getMultipleVaultsBranchesDebt",
"outputs": [
{
"components": [
{
"components": [
{
"internalType": "uint256",
"name": "debtRaw",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "collateralRaw",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "debtNormal",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "collateralNormal",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "branchId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "status",
"type": "uint256"
},
{
"internalType": "int256",
"name": "tick",
"type": "int256"
},
{
"internalType": "uint256",
"name": "partials",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ratio",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "debtFactor",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "baseBranchId",
"type": "uint256"
},
{
"internalType": "int256",
"name": "baseBranchTick",
"type": "int256"
}
],
"internalType": "struct Structs.BranchDebt[]",
"name": "branchDebt",
"type": "tuple[]"
}
],
"internalType": "struct Structs.BranchesDebt[]",
"name": "branchesDebt_",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "vaults_",
"type": "address[]"
},
{
"internalType": "int256[]",
"name": "fromTicks_",
"type": "int256[]"
},
{
"internalType": "uint256[]",
"name": "totalTicks_",
"type": "uint256[]"
}
],
"name": "getMultipleVaultsTicksDebt",
"outputs": [
{
"components": [
{
"components": [
{
"internalType": "uint256",
"name": "debtRaw",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "collateralRaw",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "debtNormal",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "collateralNormal",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ratio",
"type": "uint256"
},
{
"internalType": "int256",
"name": "tick",
"type": "int256"
}
],
"internalType": "struct Structs.TickDebt[]",
"name": "tickDebt",
"type": "tuple[]"
},
{
"internalType": "int256",
"name": "toTick",
"type": "int256"
}
],
"internalType": "struct Structs.VaultsTickDebt[]",
"name": "vaultsTickDebt_",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "vault_",
"type": "address"
},
{
"internalType": "int256",
"name": "fromTick_",
"type": "int256"
},
{
"internalType": "uint256",
"name": "totalTicks_",
"type": "uint256"
}
],
"name": "getTicksDebt",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "debtRaw",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "collateralRaw",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "debtNormal",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "collateralNormal",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ratio",
"type": "uint256"
},
{
"internalType": "int256",
"name": "tick",
"type": "int256"
}
],
"internalType": "struct Structs.TickDebt[]",
"name": "ticksDebt_",
"type": "tuple[]"
},
{
"internalType": "int256",
"name": "toTick_",
"type": "int256"
}
],
"stateMutability": "view",
"type": "function"
}
],
"transactionHash": "0xab513c396961a2badfebb7feb5428d617ac8a65fe5c2f3760d231c80cc613a05",
"receipt": {
"to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
"from": "0x0Ed35B1609Ec45c7079E80d11149a52717e4859A",
"contractAddress": null,
"transactionIndex": 3,
"gasUsed": "3826864",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"blockHash": "0xd17fb892d0b97cc9f1bbe575730aa34189d31201c02500eeb5cd9d9908cdea42",
"transactionHash": "0xab513c396961a2badfebb7feb5428d617ac8a65fe5c2f3760d231c80cc613a05",
"logs": [],
"blockNumber": 220708469,
"cumulativeGasUsed": "4142708",
"status": 1,
"byzantium": true
},
"args": [
"0x77648D39be25a1422467060e11E5b979463bEA3d"
],
"numDeployments": 2,
"solcInputHash": "09ef5f25427412692b8e9ff1980d94df",
"metadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract IFluidVaultResolver\",\"name\":\"vaultResolver_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"FluidVaultTicksBranchesResolver__AddressZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"VAULT_RESOLVER\",\"outputs\":[{\"internalType\":\"contract IFluidVaultResolver\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAllVaultsBranchesDebt\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"debtRaw\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralRaw\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"debtNormal\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralNormal\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"branchId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"status\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"tick\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"partials\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"ratio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"debtFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseBranchId\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"baseBranchTick\",\"type\":\"int256\"}],\"internalType\":\"struct Structs.BranchDebt[]\",\"name\":\"branchDebt\",\"type\":\"tuple[]\"}],\"internalType\":\"struct Structs.BranchesDebt[]\",\"name\":\"branchesDebt_\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"totalTicks_\",\"type\":\"uint256\"}],\"name\":\"getAllVaultsTicksDebt\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"debtRaw\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralRaw\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"debtNormal\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralNormal\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"ratio\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"tick\",\"type\":\"int256\"}],\"internalType\":\"struct Structs.TickDebt[]\",\"name\":\"tickDebt\",\"type\":\"tuple[]\"},{\"internalType\":\"int256\",\"name\":\"toTick\",\"type\":\"int256\"}],\"internalType\":\"struct Structs.VaultsTickDebt[]\",\"name\":\"vaultsTickDebt_\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"vault_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"fromBranchId_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"toBranchId_\",\"type\":\"uint256\"}],\"name\":\"getBranchesDebt\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"debtRaw\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralRaw\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"debtNormal\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"collateralNormal\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"branchId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"status\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"tick\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"partials\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"ratio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"debtFactor\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"baseBranchId\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"baseBranchTick\",\"type\":\"int256\"}],\"internalType\":\"struct Structs.BranchDebt[]\",\"name\":\"branchesDebt_\",\"type\":\"tuple[]\"}],\"stateMutability\
"bytecode": "0x60a06040523480156200001157600080fd5b50604051620027d0380380620027d0833981016040819052620000349162000068565b6001600160a01b038116608081905262000061576040516365b1d2ef60e11b815260040160405180910390fd5b506200009a565b6000602082840312156200007b57600080fd5b81516001600160a01b03811681146200009357600080fd5b9392505050565b6080516126ce620001026000396000818160e40152818161029d015281816104b6015281816105f5015281816107160152818161094501528181610b9b01528181610ef8015281816110c90152818161127f015281816113b401526119bc01526126ce6000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80637f3e2b481161005b5780637f3e2b48146100df578063a12a377a1461012b578063d17ac4a81461014b578063f2c8e5421461016b57600080fd5b80633009c6ba146100825780636791522f146100ab5780637cec0866146100be575b600080fd5b610095610090366004611ea9565b610173565b6040516100a29190611f85565b60405180910390f35b6100956100b936600461207b565b610297565b6100d16100cc366004612094565b61045d565b6040516100a29291906120c9565b6101067f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100a2565b61013e610139366004612147565b610808565b6040516100a29190612268565b61015e610159366004612094565b6108fa565b6040516100a291906122f0565b61013e610b95565b82516060908067ffffffffffffffff81111561019157610191611d13565b6040519080825280602002602001820160405280156101d757816020015b6040805180820190915260608152600060208201528152602001906001900390816101af5790505b50915060005b8181101561028e5761023b8682815181106101fa576101fa612303565b602002602001015186838151811061021457610214612303565b602002602001015186848151811061022e5761022e612303565b602002602001015161045d565b84838151811061024d5761024d612303565b602002602001015160000185848151811061026a5761026a612303565b6020908102919091018101510191909152528061028681612361565b9150506101dd565b50509392505050565b606060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a8d9f4936040518163ffffffff1660e01b8152600401600060405180830381865afa158015610306573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261034c9190810190612399565b80519091508067ffffffffffffffff81111561036a5761036a611d13565b6040519080825280602002602001820160405280156103b057816020015b6040805180820190915260608152600060208201528152602001906001900390816103885790505b50925060005b81811015610455576104028382815181106103d3576103d3612303565b60200260200101517f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8761045d565b85838151811061041457610414612303565b602002602001015160000186848151811061043157610431612303565b6020908102919091018101510191909152528061044d81612361565b9150506103b6565b505050919050565b6040517f03e883e000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152606091600091829161052991620fffff916002917f000000000000000000000000000000000000000000000000000000000000000016906303e883e090602401602060405180830381865afa1580156104fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105219190612428565b901c16610d31565b9050848112610538578461053a565b805b94507f80000000000000000000000000000000000000000000000000000000000000008513156107ff57600080861261057e5761057961010087612470565b6105a1565b600161010061058d88836124d8565b6105979190612470565b6105a19190612500565b6040517fa8bc069300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff89811660048301526024820183905291925060009182917f00000000000000000000000000000000000000000000000000000000000000009091169063a8bc069390604401602060405180830381865afa15801561063e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106629190612428565b9050600061067284610100612527565b61067d9060ff6124d8565b6106868a612573565b61069091906124d8565b91821b90911c91506106a490508688612500565b6106af9060016124d8565b935060006106bf89868585610dff565b6040517feb1db01800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffff
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80637f3e2b481161005b5780637f3e2b48146100df578063a12a377a1461012b578063d17ac4a81461014b578063f2c8e5421461016b57600080fd5b80633009c6ba146100825780636791522f146100ab5780637cec0866146100be575b600080fd5b610095610090366004611ea9565b610173565b6040516100a29190611f85565b60405180910390f35b6100956100b936600461207b565b610297565b6100d16100cc366004612094565b61045d565b6040516100a29291906120c9565b6101067f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100a2565b61013e610139366004612147565b610808565b6040516100a29190612268565b61015e610159366004612094565b6108fa565b6040516100a291906122f0565b61013e610b95565b82516060908067ffffffffffffffff81111561019157610191611d13565b6040519080825280602002602001820160405280156101d757816020015b6040805180820190915260608152600060208201528152602001906001900390816101af5790505b50915060005b8181101561028e5761023b8682815181106101fa576101fa612303565b602002602001015186838151811061021457610214612303565b602002602001015186848151811061022e5761022e612303565b602002602001015161045d565b84838151811061024d5761024d612303565b602002602001015160000185848151811061026a5761026a612303565b6020908102919091018101510191909152528061028681612361565b9150506101dd565b50509392505050565b606060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a8d9f4936040518163ffffffff1660e01b8152600401600060405180830381865afa158015610306573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261034c9190810190612399565b80519091508067ffffffffffffffff81111561036a5761036a611d13565b6040519080825280602002602001820160405280156103b057816020015b6040805180820190915260608152600060208201528152602001906001900390816103885790505b50925060005b81811015610455576104028382815181106103d3576103d3612303565b60200260200101517f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8761045d565b85838151811061041457610414612303565b602002602001015160000186848151811061043157610431612303565b6020908102919091018101510191909152528061044d81612361565b9150506103b6565b505050919050565b6040517f03e883e000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152606091600091829161052991620fffff916002917f000000000000000000000000000000000000000000000000000000000000000016906303e883e090602401602060405180830381865afa1580156104fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105219190612428565b901c16610d31565b9050848112610538578461053a565b805b94507f80000000000000000000000000000000000000000000000000000000000000008513156107ff57600080861261057e5761057961010087612470565b6105a1565b600161010061058d88836124d8565b6105979190612470565b6105a19190612500565b6040517fa8bc069300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff89811660048301526024820183905291925060009182917f00000000000000000000000000000000000000000000000000000000000000009091169063a8bc069390604401602060405180830381865afa15801561063e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106629190612428565b9050600061067284610100612527565b61067d9060ff6124d8565b6106868a612573565b61069091906124d8565b91821b90911c91506106a490508688612500565b6106af9060016124d8565b935060006106bf89868585610dff565b6040517feb1db01800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff808c1660048301819052929350600092839290916309f0d8cb917f00000000000000000000000000000000000000000000000000000000000000009091169063eb1db01890602401602060405180830381865afa15801561075f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107839190612428565b6040518263ffffffff1660e01b81526004016107a191815260200190565b608060405180830381865afa1580156107be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e291906125ab565b9350935050506107f78b888787878787
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"errors": {
"FluidVaultTicksBranchesResolver__AddressZero()": [
{
"notice": "thrown if an input param address is zero"
}
]
},
"kind": "user",
"methods": {
"constructor": {
"notice": "constructor sets the immutable vault resolver address"
}
},
"notice": "Fluid Vault protocol ticks & branches resolver",
"version": 1
},
"storageLayout": {
"storage": [],
"types": null
}
}