f8fb6f524e
* moved contracts from gitlab to main codebase * added missing event param * removed erroneous from description * updates: * changed maths of token -> MB conversion * new tests for changed maths * length check on cosmos address * begun code doc * code documentation * small comment cleanup * cont. w tests, may have found bug in maths re: using not whole tokens: investigating * finished code doc * included requested changes to contract * change to maths operations, shrunk test error to < .9 * updates: * updated tests * updated readme * removed commented out code, changed variable name to be more informative * removed unnecessary byte32 length check
404 lines
11 KiB
JSON
404 lines
11 KiB
JSON
{
|
|
"_format": "hh-sol-cache-2",
|
|
"files": {
|
|
"/home/max/dev/nymtech/nym/contracts/basic-bandwidth-generation/contracts/BandwidthGenerator.sol": {
|
|
"lastModificationDate": 1639657373736,
|
|
"contentHash": "ac31a05f19ad88d4c28011a830d29b56",
|
|
"sourceName": "contracts/BandwidthGenerator.sol",
|
|
"solcConfig": {
|
|
"version": "0.6.6",
|
|
"settings": {
|
|
"optimizer": {
|
|
"enabled": true,
|
|
"runs": 200
|
|
},
|
|
"outputSelection": {
|
|
"*": {
|
|
"*": [
|
|
"abi",
|
|
"evm.bytecode",
|
|
"evm.deployedBytecode",
|
|
"evm.methodIdentifiers"
|
|
],
|
|
"": [
|
|
"ast"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"imports": [
|
|
"./CosmosToken.sol",
|
|
"./Gravity.sol",
|
|
"@openzeppelin/contracts/access/Ownable.sol",
|
|
"@openzeppelin/contracts/math/SafeMath.sol"
|
|
],
|
|
"versionPragmas": [
|
|
"0.6.6"
|
|
],
|
|
"artifacts": [
|
|
"BandwidthGenerator"
|
|
]
|
|
},
|
|
"/home/max/dev/nymtech/nym/contracts/basic-bandwidth-generation/contracts/CosmosToken.sol": {
|
|
"lastModificationDate": 1639657191231,
|
|
"contentHash": "0f05f96ee3c1151b6cd4b699aa3167e9",
|
|
"sourceName": "contracts/CosmosToken.sol",
|
|
"solcConfig": {
|
|
"version": "0.6.6",
|
|
"settings": {
|
|
"optimizer": {
|
|
"enabled": true,
|
|
"runs": 200
|
|
},
|
|
"outputSelection": {
|
|
"*": {
|
|
"*": [
|
|
"abi",
|
|
"evm.bytecode",
|
|
"evm.deployedBytecode",
|
|
"evm.methodIdentifiers"
|
|
],
|
|
"": [
|
|
"ast"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"imports": [
|
|
"@openzeppelin/contracts/token/ERC20/ERC20.sol"
|
|
],
|
|
"versionPragmas": [
|
|
"^0.6.6"
|
|
],
|
|
"artifacts": [
|
|
"CosmosERC20"
|
|
]
|
|
},
|
|
"/home/max/dev/nymtech/nym/contracts/basic-bandwidth-generation/contracts/Gravity.sol": {
|
|
"lastModificationDate": 1639657191231,
|
|
"contentHash": "eaa1cd71cea24d419ef5f67a66dc672e",
|
|
"sourceName": "contracts/Gravity.sol",
|
|
"solcConfig": {
|
|
"version": "0.6.6",
|
|
"settings": {
|
|
"optimizer": {
|
|
"enabled": true,
|
|
"runs": 200
|
|
},
|
|
"outputSelection": {
|
|
"*": {
|
|
"*": [
|
|
"abi",
|
|
"evm.bytecode",
|
|
"evm.deployedBytecode",
|
|
"evm.methodIdentifiers"
|
|
],
|
|
"": [
|
|
"ast"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"imports": [
|
|
"@openzeppelin/contracts/math/SafeMath.sol",
|
|
"@openzeppelin/contracts/token/ERC20/IERC20.sol",
|
|
"@openzeppelin/contracts/token/ERC20/SafeERC20.sol",
|
|
"@openzeppelin/contracts/utils/Address.sol",
|
|
"@openzeppelin/contracts/utils/ReentrancyGuard.sol",
|
|
"./CosmosToken.sol"
|
|
],
|
|
"versionPragmas": [
|
|
"^0.6.6"
|
|
],
|
|
"artifacts": [
|
|
"Gravity"
|
|
]
|
|
},
|
|
"/home/max/dev/nymtech/nym/contracts/basic-bandwidth-generation/node_modules/@openzeppelin/contracts/access/Ownable.sol": {
|
|
"lastModificationDate": 1639657303711,
|
|
"contentHash": "6748815a5b45c4aeeda56819f41190e0",
|
|
"sourceName": "@openzeppelin/contracts/access/Ownable.sol",
|
|
"solcConfig": {
|
|
"version": "0.6.6",
|
|
"settings": {
|
|
"optimizer": {
|
|
"enabled": true,
|
|
"runs": 200
|
|
},
|
|
"outputSelection": {
|
|
"*": {
|
|
"*": [
|
|
"abi",
|
|
"evm.bytecode",
|
|
"evm.deployedBytecode",
|
|
"evm.methodIdentifiers"
|
|
],
|
|
"": [
|
|
"ast"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"imports": [
|
|
"../utils/Context.sol"
|
|
],
|
|
"versionPragmas": [
|
|
">=0.6.0 <0.8.0"
|
|
],
|
|
"artifacts": [
|
|
"Ownable"
|
|
]
|
|
},
|
|
"/home/max/dev/nymtech/nym/contracts/basic-bandwidth-generation/node_modules/@openzeppelin/contracts/math/SafeMath.sol": {
|
|
"lastModificationDate": 1639657303763,
|
|
"contentHash": "e03e12206057e809eb76c5f681170c32",
|
|
"sourceName": "@openzeppelin/contracts/math/SafeMath.sol",
|
|
"solcConfig": {
|
|
"version": "0.6.6",
|
|
"settings": {
|
|
"optimizer": {
|
|
"enabled": true,
|
|
"runs": 200
|
|
},
|
|
"outputSelection": {
|
|
"*": {
|
|
"*": [
|
|
"abi",
|
|
"evm.bytecode",
|
|
"evm.deployedBytecode",
|
|
"evm.methodIdentifiers"
|
|
],
|
|
"": [
|
|
"ast"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"imports": [],
|
|
"versionPragmas": [
|
|
">=0.6.0 <0.8.0"
|
|
],
|
|
"artifacts": [
|
|
"SafeMath"
|
|
]
|
|
},
|
|
"/home/max/dev/nymtech/nym/contracts/basic-bandwidth-generation/node_modules/@openzeppelin/contracts/token/ERC20/ERC20.sol": {
|
|
"lastModificationDate": 1639657303507,
|
|
"contentHash": "8065b340476f61365c076897199425f1",
|
|
"sourceName": "@openzeppelin/contracts/token/ERC20/ERC20.sol",
|
|
"solcConfig": {
|
|
"version": "0.6.6",
|
|
"settings": {
|
|
"optimizer": {
|
|
"enabled": true,
|
|
"runs": 200
|
|
},
|
|
"outputSelection": {
|
|
"*": {
|
|
"*": [
|
|
"abi",
|
|
"evm.bytecode",
|
|
"evm.deployedBytecode",
|
|
"evm.methodIdentifiers"
|
|
],
|
|
"": [
|
|
"ast"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"imports": [
|
|
"../../utils/Context.sol",
|
|
"./IERC20.sol",
|
|
"../../math/SafeMath.sol"
|
|
],
|
|
"versionPragmas": [
|
|
">=0.6.0 <0.8.0"
|
|
],
|
|
"artifacts": [
|
|
"ERC20"
|
|
]
|
|
},
|
|
"/home/max/dev/nymtech/nym/contracts/basic-bandwidth-generation/node_modules/@openzeppelin/contracts/utils/Context.sol": {
|
|
"lastModificationDate": 1639657303395,
|
|
"contentHash": "2adbd82f6d055a4751566d4671512b03",
|
|
"sourceName": "@openzeppelin/contracts/utils/Context.sol",
|
|
"solcConfig": {
|
|
"version": "0.6.6",
|
|
"settings": {
|
|
"optimizer": {
|
|
"enabled": true,
|
|
"runs": 200
|
|
},
|
|
"outputSelection": {
|
|
"*": {
|
|
"*": [
|
|
"abi",
|
|
"evm.bytecode",
|
|
"evm.deployedBytecode",
|
|
"evm.methodIdentifiers"
|
|
],
|
|
"": [
|
|
"ast"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"imports": [],
|
|
"versionPragmas": [
|
|
">=0.6.0 <0.8.0"
|
|
],
|
|
"artifacts": [
|
|
"Context"
|
|
]
|
|
},
|
|
"/home/max/dev/nymtech/nym/contracts/basic-bandwidth-generation/node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol": {
|
|
"lastModificationDate": 1639657303639,
|
|
"contentHash": "e0a41531d159d3a32f84b7a3ecf9fabb",
|
|
"sourceName": "@openzeppelin/contracts/token/ERC20/IERC20.sol",
|
|
"solcConfig": {
|
|
"version": "0.6.6",
|
|
"settings": {
|
|
"optimizer": {
|
|
"enabled": true,
|
|
"runs": 200
|
|
},
|
|
"outputSelection": {
|
|
"*": {
|
|
"*": [
|
|
"abi",
|
|
"evm.bytecode",
|
|
"evm.deployedBytecode",
|
|
"evm.methodIdentifiers"
|
|
],
|
|
"": [
|
|
"ast"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"imports": [],
|
|
"versionPragmas": [
|
|
">=0.6.0 <0.8.0"
|
|
],
|
|
"artifacts": [
|
|
"IERC20"
|
|
]
|
|
},
|
|
"/home/max/dev/nymtech/nym/contracts/basic-bandwidth-generation/node_modules/@openzeppelin/contracts/token/ERC20/SafeERC20.sol": {
|
|
"lastModificationDate": 1639657303759,
|
|
"contentHash": "33e22842646d746e5c4124c2fdc051aa",
|
|
"sourceName": "@openzeppelin/contracts/token/ERC20/SafeERC20.sol",
|
|
"solcConfig": {
|
|
"version": "0.6.6",
|
|
"settings": {
|
|
"optimizer": {
|
|
"enabled": true,
|
|
"runs": 200
|
|
},
|
|
"outputSelection": {
|
|
"*": {
|
|
"*": [
|
|
"abi",
|
|
"evm.bytecode",
|
|
"evm.deployedBytecode",
|
|
"evm.methodIdentifiers"
|
|
],
|
|
"": [
|
|
"ast"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"imports": [
|
|
"./IERC20.sol",
|
|
"../../math/SafeMath.sol",
|
|
"../../utils/Address.sol"
|
|
],
|
|
"versionPragmas": [
|
|
">=0.6.0 <0.8.0"
|
|
],
|
|
"artifacts": [
|
|
"SafeERC20"
|
|
]
|
|
},
|
|
"/home/max/dev/nymtech/nym/contracts/basic-bandwidth-generation/node_modules/@openzeppelin/contracts/utils/Address.sol": {
|
|
"lastModificationDate": 1639657303363,
|
|
"contentHash": "7aa46886ff5abe7515496208a5e2ce5a",
|
|
"sourceName": "@openzeppelin/contracts/utils/Address.sol",
|
|
"solcConfig": {
|
|
"version": "0.6.6",
|
|
"settings": {
|
|
"optimizer": {
|
|
"enabled": true,
|
|
"runs": 200
|
|
},
|
|
"outputSelection": {
|
|
"*": {
|
|
"*": [
|
|
"abi",
|
|
"evm.bytecode",
|
|
"evm.deployedBytecode",
|
|
"evm.methodIdentifiers"
|
|
],
|
|
"": [
|
|
"ast"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"imports": [],
|
|
"versionPragmas": [
|
|
">=0.6.2 <0.8.0"
|
|
],
|
|
"artifacts": [
|
|
"Address"
|
|
]
|
|
},
|
|
"/home/max/dev/nymtech/nym/contracts/basic-bandwidth-generation/node_modules/@openzeppelin/contracts/utils/ReentrancyGuard.sol": {
|
|
"lastModificationDate": 1639657303747,
|
|
"contentHash": "1c60f58cee45c61469e1aea31e4dd879",
|
|
"sourceName": "@openzeppelin/contracts/utils/ReentrancyGuard.sol",
|
|
"solcConfig": {
|
|
"version": "0.6.6",
|
|
"settings": {
|
|
"optimizer": {
|
|
"enabled": true,
|
|
"runs": 200
|
|
},
|
|
"outputSelection": {
|
|
"*": {
|
|
"*": [
|
|
"abi",
|
|
"evm.bytecode",
|
|
"evm.deployedBytecode",
|
|
"evm.methodIdentifiers"
|
|
],
|
|
"": [
|
|
"ast"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"imports": [],
|
|
"versionPragmas": [
|
|
">=0.6.0 <0.8.0"
|
|
],
|
|
"artifacts": [
|
|
"ReentrancyGuard"
|
|
]
|
|
}
|
|
}
|
|
}
|