Skip to content

Commit

Permalink
add ust test
Browse files Browse the repository at this point in the history
  • Loading branch information
yun-yeo committed Jan 28, 2022
1 parent a2f4c5a commit 4ff3f56
Show file tree
Hide file tree
Showing 26 changed files with 7,109 additions and 24,826 deletions.
13 changes: 7 additions & 6 deletions .ust.env
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# DEFAULT_GAS_PRICE= 50 GWEI by default

TOKEN=0xa693B19d2931d498c5B318dF961919BB4aee87a5
ATOKEN=0xc7CF58c2Ef8F5efAb862Eb7c5a88E787102825eB
STABLE_DEBT_TOKEN=0xbC1f8202ae0F698AC8A95440103E12f299106442
VARIABLE_DEBT_TOKEN=0xEE95902d3d70782F6a2fdDbF6D962d4562583Ed4
INTEREST_STRATEGY=0x7dEC63b466162DA25a4551C3A0b7246515234931
ATOKEN=0x6C35faC782Be2Db776cdF777196a47916806892b
STABLE_DEBT_TOKEN=0x107ed1832647436a0D39F09e65f4aA920242C0BB
VARIABLE_DEBT_TOKEN=0xd8aBEdc9CE320752e77C4A8706E64212EdE834B9
INTEREST_STRATEGY=0x0dEDCaE8Eb22A2EFB597aBde1834173C47Cff186
LTV=0
LIQUIDATION_THRESHOLD=0
LIQUIDATION_BONUS=0
Expand All @@ -13,9 +13,10 @@ DECIMALS=6
ENABLE_BORROW=true
ENABLE_AS_COLLATERAL=false
ENABLE_STABLE_BORROW=false
IPFS_HASH=QmZmGy1Bm1v3pPdJdYCCe7EyujW2i169eNq6txpQg4NsSn
IPFS_HASH=
CHAINLINK_ORACLE_PROXY=0xa20623070413d42a5C01Db2c8111640DD7A5A03a

# By default executor and governance addresses set to mainnet addresses
# Uncomment the following for kovan
#AAVE_SHORT_EXECUTOR=0x2012b02574f32a96b9cfb8ba7fdfd589d5c70f50
#AAVE_GOVERNANCE_V2=0xc2ebab3bac8f2f5028f5c7317027a41ebfca31d2
#AAVE_GOVERNANCE_V2=0xc2ebab3bac8f2f5028f5c7317027a41ebfca31d2

Large diffs are not rendered by default.

3,848 changes: 3,848 additions & 0 deletions artifacts/build-info/4c2a2252764a9eb98af799fa244238e8.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../build-info/ebbdadd2e204bd6b1f4422115c71b57e.json"
"buildInfo": "../../../build-info/0e44cf6626a9b0524b3394ddb7fb6239.json"
}
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b5061064c806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806306eefdf41461003b5780633fa572311461005f575b600080fd5b6100436100e6565b604080516001600160a01b039092168252519081900360200190f35b6100e460048036036101a081101561007657600080fd5b506001600160a01b0381358116916020810135821691604082013581169160608101358216916080820135169060a08101359060c08101359060e0810135906101008101359060ff6101208201351690610140810135151590610160810135151590610180013515156100fe565b005b73b53c1a33016b2dc2ff3653530bff1848a515c8c581565b600073b53c1a33016b2dc2ff3653530bff1848a515c8c56001600160a01b03166385c858b16040518163ffffffff1660e01b815260040160206040518083038186803b15801561014d57600080fd5b505afa158015610161573d6000803e3d6000fd5b505050506040513d602081101561017757600080fd5b5051604080516358b50cef60e11b815290519192506001600160a01b038f169163b16a19de91600480820192602092909190829003018186803b1580156101bd57600080fd5b505afa1580156101d1573d6000803e3d6000fd5b505050506040513d60208110156101e757600080fd5b50516001600160a01b038f8116911614610248576040805162461bcd60e51b815260206004820152601e60248201527f41544f4b454e3a2057524f4e475f554e4445524c59494e475f544f4b454e0000604482015290519081900360640190fd5b8b6001600160a01b031663b16a19de6040518163ffffffff1660e01b815260040160206040518083038186803b15801561028157600080fd5b505afa158015610295573d6000803e3d6000fd5b505050506040513d60208110156102ab57600080fd5b50516001600160a01b038f81169116146102f65760405162461bcd60e51b81526004018080602001828103825260238152602001806105cf6023913960400191505060405180910390fd5b8a6001600160a01b031663b16a19de6040518163ffffffff1660e01b815260040160206040518083038186803b15801561032f57600080fd5b505afa158015610343573d6000803e3d6000fd5b505050506040513d602081101561035957600080fd5b50516001600160a01b038f81169116146103a45760405162461bcd60e51b81526004018080602001828103825260258152602001806105f26025913960400191505060405180910390fd5b60408051636e801a7160e01b81526001600160a01b038f811660048301528e811660248301528d8116604483015260ff881660648301528c81166084830152915191831691636e801a719160a48082019260009290919082900301818387803b15801561041057600080fd5b505af1158015610424573d6000803e3d6000fd5b5050505083156104a057806001600160a01b031663eede87c18f856040518363ffffffff1660e01b815260040180836001600160a01b03168152602001821515815260200192505050600060405180830381600087803b15801561048757600080fd5b505af115801561049b573d6000803e3d6000fd5b505050505b806001600160a01b0316634b4e67538f886040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156104f757600080fd5b505af115801561050b573d6000803e3d6000fd5b50505050811561059557806001600160a01b0316637c4e560b8f8b8b8b6040518563ffffffff1660e01b815260040180856001600160a01b03168152602001848152602001838152602001828152602001945050505050600060405180830381600087803b15801561057c57600080fd5b505af1158015610590573d6000803e3d6000fd5b505050505b6040517fcf88c657fb0ecbed2a624b6b4c626e2ceda32ea9ed16ea81de6362a6d965bd0890600090a1505050505050505050505050505056fe535441424c455f444542543a2057524f4e475f554e4445524c59494e475f544f4b454e5641524941424c455f444542543a2057524f4e475f554e4445524c59494e475f544f4b454ea2646970667358221220527f105fd4db718b2b7ee46c86bb043b46695bebc5d2d8eb9221b8f1dfb688e664736f6c634300060c0033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c806306eefdf41461003b5780633fa572311461005f575b600080fd5b6100436100e6565b604080516001600160a01b039092168252519081900360200190f35b6100e460048036036101a081101561007657600080fd5b506001600160a01b0381358116916020810135821691604082013581169160608101358216916080820135169060a08101359060c08101359060e0810135906101008101359060ff6101208201351690610140810135151590610160810135151590610180013515156100fe565b005b73b53c1a33016b2dc2ff3653530bff1848a515c8c581565b600073b53c1a33016b2dc2ff3653530bff1848a515c8c56001600160a01b03166385c858b16040518163ffffffff1660e01b815260040160206040518083038186803b15801561014d57600080fd5b505afa158015610161573d6000803e3d6000fd5b505050506040513d602081101561017757600080fd5b5051604080516358b50cef60e11b815290519192506001600160a01b038f169163b16a19de91600480820192602092909190829003018186803b1580156101bd57600080fd5b505afa1580156101d1573d6000803e3d6000fd5b505050506040513d60208110156101e757600080fd5b50516001600160a01b038f8116911614610248576040805162461bcd60e51b815260206004820152601e60248201527f41544f4b454e3a2057524f4e475f554e4445524c59494e475f544f4b454e0000604482015290519081900360640190fd5b8b6001600160a01b031663b16a19de6040518163ffffffff1660e01b815260040160206040518083038186803b15801561028157600080fd5b505afa158015610295573d6000803e3d6000fd5b505050506040513d60208110156102ab57600080fd5b50516001600160a01b038f81169116146102f65760405162461bcd60e51b81526004018080602001828103825260238152602001806105cf6023913960400191505060405180910390fd5b8a6001600160a01b031663b16a19de6040518163ffffffff1660e01b815260040160206040518083038186803b15801561032f57600080fd5b505afa158015610343573d6000803e3d6000fd5b505050506040513d602081101561035957600080fd5b50516001600160a01b038f81169116146103a45760405162461bcd60e51b81526004018080602001828103825260258152602001806105f26025913960400191505060405180910390fd5b60408051636e801a7160e01b81526001600160a01b038f811660048301528e811660248301528d8116604483015260ff881660648301528c81166084830152915191831691636e801a719160a48082019260009290919082900301818387803b15801561041057600080fd5b505af1158015610424573d6000803e3d6000fd5b5050505083156104a057806001600160a01b031663eede87c18f856040518363ffffffff1660e01b815260040180836001600160a01b03168152602001821515815260200192505050600060405180830381600087803b15801561048757600080fd5b505af115801561049b573d6000803e3d6000fd5b505050505b806001600160a01b0316634b4e67538f886040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156104f757600080fd5b505af115801561050b573d6000803e3d6000fd5b50505050811561059557806001600160a01b0316637c4e560b8f8b8b8b6040518563ffffffff1660e01b815260040180856001600160a01b03168152602001848152602001838152602001828152602001945050505050600060405180830381600087803b15801561057c57600080fd5b505af1158015610590573d6000803e3d6000fd5b505050505b6040517fcf88c657fb0ecbed2a624b6b4c626e2ceda32ea9ed16ea81de6362a6d965bd0890600090a1505050505050505050505050505056fe535441424c455f444542543a2057524f4e475f554e4445524c59494e475f544f4b454e5641524941424c455f444542543a2057524f4e475f554e4445524c59494e475f544f4b454ea2646970667358221220527f105fd4db718b2b7ee46c86bb043b46695bebc5d2d8eb9221b8f1dfb688e664736f6c634300060c0033",
"bytecode": "0x608060405234801561001057600080fd5b5061064c806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806306eefdf41461003b5780633fa572311461005f575b600080fd5b6100436100e6565b604080516001600160a01b039092168252519081900360200190f35b6100e460048036036101a081101561007657600080fd5b506001600160a01b0381358116916020810135821691604082013581169160608101358216916080820135169060a08101359060c08101359060e0810135906101008101359060ff6101208201351690610140810135151590610160810135151590610180013515156100fe565b005b73b53c1a33016b2dc2ff3653530bff1848a515c8c581565b600073b53c1a33016b2dc2ff3653530bff1848a515c8c56001600160a01b03166385c858b16040518163ffffffff1660e01b815260040160206040518083038186803b15801561014d57600080fd5b505afa158015610161573d6000803e3d6000fd5b505050506040513d602081101561017757600080fd5b5051604080516358b50cef60e11b815290519192506001600160a01b038f169163b16a19de91600480820192602092909190829003018186803b1580156101bd57600080fd5b505afa1580156101d1573d6000803e3d6000fd5b505050506040513d60208110156101e757600080fd5b50516001600160a01b038f8116911614610248576040805162461bcd60e51b815260206004820152601e60248201527f41544f4b454e3a2057524f4e475f554e4445524c59494e475f544f4b454e0000604482015290519081900360640190fd5b8b6001600160a01b031663b16a19de6040518163ffffffff1660e01b815260040160206040518083038186803b15801561028157600080fd5b505afa158015610295573d6000803e3d6000fd5b505050506040513d60208110156102ab57600080fd5b50516001600160a01b038f81169116146102f65760405162461bcd60e51b81526004018080602001828103825260238152602001806105cf6023913960400191505060405180910390fd5b8a6001600160a01b031663b16a19de6040518163ffffffff1660e01b815260040160206040518083038186803b15801561032f57600080fd5b505afa158015610343573d6000803e3d6000fd5b505050506040513d602081101561035957600080fd5b50516001600160a01b038f81169116146103a45760405162461bcd60e51b81526004018080602001828103825260258152602001806105f26025913960400191505060405180910390fd5b60408051636e801a7160e01b81526001600160a01b038f811660048301528e811660248301528d8116604483015260ff881660648301528c81166084830152915191831691636e801a719160a48082019260009290919082900301818387803b15801561041057600080fd5b505af1158015610424573d6000803e3d6000fd5b5050505083156104a057806001600160a01b031663eede87c18f856040518363ffffffff1660e01b815260040180836001600160a01b03168152602001821515815260200192505050600060405180830381600087803b15801561048757600080fd5b505af115801561049b573d6000803e3d6000fd5b505050505b806001600160a01b0316634b4e67538f886040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156104f757600080fd5b505af115801561050b573d6000803e3d6000fd5b50505050811561059557806001600160a01b0316637c4e560b8f8b8b8b6040518563ffffffff1660e01b815260040180856001600160a01b03168152602001848152602001838152602001828152602001945050505050600060405180830381600087803b15801561057c57600080fd5b505af1158015610590573d6000803e3d6000fd5b505050505b6040517fcf88c657fb0ecbed2a624b6b4c626e2ceda32ea9ed16ea81de6362a6d965bd0890600090a1505050505050505050505050505056fe535441424c455f444542543a2057524f4e475f554e4445524c59494e475f544f4b454e5641524941424c455f444542543a2057524f4e475f554e4445524c59494e475f544f4b454ea2646970667358221220392baa87503be1f8ea455b94dfe484f868b7def49be5e3c1a94c4029053d920f64736f6c634300060c0033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c806306eefdf41461003b5780633fa572311461005f575b600080fd5b6100436100e6565b604080516001600160a01b039092168252519081900360200190f35b6100e460048036036101a081101561007657600080fd5b506001600160a01b0381358116916020810135821691604082013581169160608101358216916080820135169060a08101359060c08101359060e0810135906101008101359060ff6101208201351690610140810135151590610160810135151590610180013515156100fe565b005b73b53c1a33016b2dc2ff3653530bff1848a515c8c581565b600073b53c1a33016b2dc2ff3653530bff1848a515c8c56001600160a01b03166385c858b16040518163ffffffff1660e01b815260040160206040518083038186803b15801561014d57600080fd5b505afa158015610161573d6000803e3d6000fd5b505050506040513d602081101561017757600080fd5b5051604080516358b50cef60e11b815290519192506001600160a01b038f169163b16a19de91600480820192602092909190829003018186803b1580156101bd57600080fd5b505afa1580156101d1573d6000803e3d6000fd5b505050506040513d60208110156101e757600080fd5b50516001600160a01b038f8116911614610248576040805162461bcd60e51b815260206004820152601e60248201527f41544f4b454e3a2057524f4e475f554e4445524c59494e475f544f4b454e0000604482015290519081900360640190fd5b8b6001600160a01b031663b16a19de6040518163ffffffff1660e01b815260040160206040518083038186803b15801561028157600080fd5b505afa158015610295573d6000803e3d6000fd5b505050506040513d60208110156102ab57600080fd5b50516001600160a01b038f81169116146102f65760405162461bcd60e51b81526004018080602001828103825260238152602001806105cf6023913960400191505060405180910390fd5b8a6001600160a01b031663b16a19de6040518163ffffffff1660e01b815260040160206040518083038186803b15801561032f57600080fd5b505afa158015610343573d6000803e3d6000fd5b505050506040513d602081101561035957600080fd5b50516001600160a01b038f81169116146103a45760405162461bcd60e51b81526004018080602001828103825260258152602001806105f26025913960400191505060405180910390fd5b60408051636e801a7160e01b81526001600160a01b038f811660048301528e811660248301528d8116604483015260ff881660648301528c81166084830152915191831691636e801a719160a48082019260009290919082900301818387803b15801561041057600080fd5b505af1158015610424573d6000803e3d6000fd5b5050505083156104a057806001600160a01b031663eede87c18f856040518363ffffffff1660e01b815260040180836001600160a01b03168152602001821515815260200192505050600060405180830381600087803b15801561048757600080fd5b505af115801561049b573d6000803e3d6000fd5b505050505b806001600160a01b0316634b4e67538f886040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156104f757600080fd5b505af115801561050b573d6000803e3d6000fd5b50505050811561059557806001600160a01b0316637c4e560b8f8b8b8b6040518563ffffffff1660e01b815260040180856001600160a01b03168152602001848152602001838152602001828152602001945050505050600060405180830381600087803b15801561057c57600080fd5b505af1158015610590573d6000803e3d6000fd5b505050505b6040517fcf88c657fb0ecbed2a624b6b4c626e2ceda32ea9ed16ea81de6362a6d965bd0890600090a1505050505050505050505050505056fe535441424c455f444542543a2057524f4e475f554e4445524c59494e475f544f4b454e5641524941424c455f444542543a2057524f4e475f554e4445524c59494e475f544f4b454ea2646970667358221220392baa87503be1f8ea455b94dfe484f868b7def49be5e3c1a94c4029053d920f64736f6c634300060c0033",
"linkReferences": {},
"deployedLinkReferences": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/4c2a2252764a9eb98af799fa244238e8.json"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "IAaveDistributionManager",
"sourceName": "contracts/assetListing/interfaces/IAaveDistributionManager.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "asset",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "emission",
"type": "uint256"
}
],
"name": "AssetConfigUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "asset",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "AssetIndexUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "newDistributionEnd",
"type": "uint256"
}
],
"name": "DistributionEndUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "asset",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "UserIndexUpdated",
"type": "event"
},
{
"inputs": [],
"name": "DISTRIBUTION_END",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "asset",
"type": "address"
}
],
"name": "getAssetData",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getDistributionEnd",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
},
{
"internalType": "address",
"name": "asset",
"type": "address"
}
],
"name": "getUserAssetData",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "distributionEnd",
"type": "uint256"
}
],
"name": "setDistributionEnd",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/4c2a2252764a9eb98af799fa244238e8.json"
}
Loading

0 comments on commit 4ff3f56

Please sign in to comment.