@gooddollar/goodprotocol
Version:
GoodDollar Protocol
107 lines (106 loc) • 6.17 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "IncentiveControllerMock",
"sourceName": "contracts/mocks/IncentiveControllerMock.sol",
"abi": [
{
"inputs": [
{
"internalType": "contract AaveMock",
"name": "_aave",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "aave",
"outputs": [
{
"internalType": "contract AaveMock",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "assets",
"type": "address[]"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "claimRewards",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "assets",
"type": "address[]"
},
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "getRewardsBalance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "increaseRewardsBalance",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b5060405161041d38038061041d83398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b61038a806100936000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80633111e7b314610051578063819faf7b146100775780638b599f26146100a257806391a41eab146100ce575b600080fd5b61006461005f366004610239565b6100e3565b6040519081526020015b60405180910390f35b60005461008a906001600160a01b031681565b6040516001600160a01b03909116815260200161006e565b6100646100b0366004610295565b6001600160a01b031660009081526001602052604090205492915050565b6100e16100dc3660046102e8565b6101a1565b005b3360009081526001602052604081205483111561010d573360009081526001602052604090205492505b6000546040516340c10f1960e01b81526001600160a01b03848116600483015260248201869052909116906340c10f1990604401600060405180830381600087803b15801561015b57600080fd5b505af115801561016f573d6000803e3d6000fd5b50503360009081526001602052604081208054879450909250610193908490610328565b909155509295945050505050565b6001600160a01b038216600090815260016020526040812080548392906101c9908490610341565b90915550505050565b60008083601f8401126101e457600080fd5b5081356001600160401b038111156101fb57600080fd5b6020830191508360208260051b850101111561021657600080fd5b9250929050565b80356001600160a01b038116811461023457600080fd5b919050565b6000806000806060858703121561024f57600080fd5b84356001600160401b0381111561026557600080fd5b610271878288016101d2565b9095509350506020850135915061028a6040860161021d565b905092959194509250565b6000806000604084860312156102aa57600080fd5b83356001600160401b038111156102c057600080fd5b6102cc868287016101d2565b90945092506102df90506020850161021d565b90509250925092565b600080604083850312156102fb57600080fd5b6103048361021d565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561033b5761033b610312565b92915050565b8082018082111561033b5761033b61031256fea2646970667358221220c4b9617b6623a3cca6cfe3fc85828cf019caabcd91e54a7413c7a0bd680cb3a364736f6c63430008130033",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80633111e7b314610051578063819faf7b146100775780638b599f26146100a257806391a41eab146100ce575b600080fd5b61006461005f366004610239565b6100e3565b6040519081526020015b60405180910390f35b60005461008a906001600160a01b031681565b6040516001600160a01b03909116815260200161006e565b6100646100b0366004610295565b6001600160a01b031660009081526001602052604090205492915050565b6100e16100dc3660046102e8565b6101a1565b005b3360009081526001602052604081205483111561010d573360009081526001602052604090205492505b6000546040516340c10f1960e01b81526001600160a01b03848116600483015260248201869052909116906340c10f1990604401600060405180830381600087803b15801561015b57600080fd5b505af115801561016f573d6000803e3d6000fd5b50503360009081526001602052604081208054879450909250610193908490610328565b909155509295945050505050565b6001600160a01b038216600090815260016020526040812080548392906101c9908490610341565b90915550505050565b60008083601f8401126101e457600080fd5b5081356001600160401b038111156101fb57600080fd5b6020830191508360208260051b850101111561021657600080fd5b9250929050565b80356001600160a01b038116811461023457600080fd5b919050565b6000806000806060858703121561024f57600080fd5b84356001600160401b0381111561026557600080fd5b610271878288016101d2565b9095509350506020850135915061028a6040860161021d565b905092959194509250565b6000806000604084860312156102aa57600080fd5b83356001600160401b038111156102c057600080fd5b6102cc868287016101d2565b90945092506102df90506020850161021d565b90509250925092565b600080604083850312156102fb57600080fd5b6103048361021d565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561033b5761033b610312565b92915050565b8082018082111561033b5761033b61031256fea2646970667358221220c4b9617b6623a3cca6cfe3fc85828cf019caabcd91e54a7413c7a0bd680cb3a364736f6c63430008130033",
"linkReferences": {},
"deployedLinkReferences": {}
}