Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
Updated goerli address location
Browse files Browse the repository at this point in the history
  • Loading branch information
bmuller committed Sep 23, 2022
1 parent 6c84d31 commit ec0429b
Show file tree
Hide file tree
Showing 5 changed files with 290 additions and 4 deletions.
143 changes: 143 additions & 0 deletions .openzeppelin/goerli.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
{
"manifestVersion": "3.2",
"admin": {
"address": "0xdaBcd340974cf9582E6661780292b4965966f532",
"txHash": "0xe443bb3d123a88b6a870a4039b16c26a1868e729a1844a70856942cbee53c519"
},
"proxies": [
{
"address": "0x277cC837062c6a67dd9eddb484615D89668c1aC0",
"txHash": "0x9e7645645c2cc2dda3b592929015d544cfe26dc5616e5edb0d15ec3dc5e99c0d",
"kind": "transparent"
}
],
"impls": {
"18f9a6e1e1679f8436fd484e21a59f88c3a4be9de5c18af15026169f5b3dbff7": {
"address": "0x5742d7d51Cce6A14e66019F5f1eB867550Fb5CF6",
"txHash": "0x570ea4cb3c374a289f8d7ed3ed44053aa7caa9af54539b45e609d38bf1625290",
"layout": {
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:62",
"retypedFrom": "bool"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:67"
},
{
"label": "__gap",
"offset": 0,
"slot": "1",
"type": "t_array(t_uint256)50_storage",
"contract": "ContextUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
},
{
"label": "_balances",
"offset": 0,
"slot": "51",
"type": "t_mapping(t_address,t_uint256)",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:37"
},
{
"label": "_allowances",
"offset": 0,
"slot": "52",
"type": "t_mapping(t_address,t_mapping(t_address,t_uint256))",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:39"
},
{
"label": "_totalSupply",
"offset": 0,
"slot": "53",
"type": "t_uint256",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:41"
},
{
"label": "_name",
"offset": 0,
"slot": "54",
"type": "t_string_storage",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:43"
},
{
"label": "_symbol",
"offset": 0,
"slot": "55",
"type": "t_string_storage",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:44"
},
{
"label": "__gap",
"offset": 0,
"slot": "56",
"type": "t_array(t_uint256)45_storage",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:394"
},
{
"label": "pidContract",
"offset": 0,
"slot": "101",
"type": "t_address",
"contract": "KnowYourCustomerEth",
"src": "contracts/KnowYourCustomerEth.sol:18"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_uint256)45_storage": {
"label": "uint256[45]",
"numberOfBytes": "1440"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]",
"numberOfBytes": "1600"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_mapping(t_address,t_mapping(t_address,t_uint256))": {
"label": "mapping(address => mapping(address => uint256))",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_uint256)": {
"label": "mapping(address => uint256)",
"numberOfBytes": "32"
},
"t_string_storage": {
"label": "string",
"numberOfBytes": "32"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
}
}
}
}
}
143 changes: 143 additions & 0 deletions .openzeppelin/mainnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
{
"manifestVersion": "3.2",
"admin": {
"address": "0x92CAd1604795231e263e926A7DF9d01347d84Fb2",
"txHash": "0x82a564dccc80052bc43841991f3a1157cf92d1c659706c6d9aecad960d611a21"
},
"proxies": [
{
"address": "0x1fE5a8457FCbfE571571A5c4Ce4Bb4eb84c38C23",
"txHash": "0x4ce982704160f97cc26de0aae6ecb0502ee69f1034af10bcb3e1b1679ad0abf8",
"kind": "transparent"
}
],
"impls": {
"18f9a6e1e1679f8436fd484e21a59f88c3a4be9de5c18af15026169f5b3dbff7": {
"address": "0x39d60243317e94139673A0774C69c23b2c8CeDE0",
"txHash": "0x263f43685a950f0f81cbac4b197d1fdd50391fd57fe1977b354b99b934ec4dbc",
"layout": {
"storage": [
{
"label": "_initialized",
"offset": 0,
"slot": "0",
"type": "t_uint8",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:62",
"retypedFrom": "bool"
},
{
"label": "_initializing",
"offset": 1,
"slot": "0",
"type": "t_bool",
"contract": "Initializable",
"src": "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol:67"
},
{
"label": "__gap",
"offset": 0,
"slot": "1",
"type": "t_array(t_uint256)50_storage",
"contract": "ContextUpgradeable",
"src": "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol:36"
},
{
"label": "_balances",
"offset": 0,
"slot": "51",
"type": "t_mapping(t_address,t_uint256)",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:37"
},
{
"label": "_allowances",
"offset": 0,
"slot": "52",
"type": "t_mapping(t_address,t_mapping(t_address,t_uint256))",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:39"
},
{
"label": "_totalSupply",
"offset": 0,
"slot": "53",
"type": "t_uint256",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:41"
},
{
"label": "_name",
"offset": 0,
"slot": "54",
"type": "t_string_storage",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:43"
},
{
"label": "_symbol",
"offset": 0,
"slot": "55",
"type": "t_string_storage",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:44"
},
{
"label": "__gap",
"offset": 0,
"slot": "56",
"type": "t_array(t_uint256)45_storage",
"contract": "ERC20Upgradeable",
"src": "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol:394"
},
{
"label": "pidContract",
"offset": 0,
"slot": "101",
"type": "t_address",
"contract": "KnowYourCustomerEth",
"src": "contracts/KnowYourCustomerEth.sol:18"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_uint256)45_storage": {
"label": "uint256[45]",
"numberOfBytes": "1440"
},
"t_array(t_uint256)50_storage": {
"label": "uint256[50]",
"numberOfBytes": "1600"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_mapping(t_address,t_mapping(t_address,t_uint256))": {
"label": "mapping(address => mapping(address => uint256))",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_uint256)": {
"label": "mapping(address => uint256)",
"numberOfBytes": "32"
},
"t_string_storage": {
"label": "string",
"numberOfBytes": "32"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
},
"t_uint8": {
"label": "uint8",
"numberOfBytes": "1"
}
}
}
}
}
}
2 changes: 1 addition & 1 deletion contracts/KnowYourCustomerEth.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ contract KnowYourCustomerEth is ERC20Upgradeable {
return super.transferFrom(from, to, amount);
}

function transfer(address to, uint256 amount) public virtual override sanctionsClear(to) returns (bool) {
function transfer(address to, uint256 amount) public virtual override sanctionsClear(to) sanctionsClear(msg.sender) returns (bool) {
return super.transfer(to, amount);
}

Expand Down
4 changes: 2 additions & 2 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ module.exports = {
},
},
networks: {
rinkeby: {
url: process.env.RINKEBY_URL || '',
goerli: {
url: process.env.GOERLI_URL || '',
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
mainnet: {
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Runtime Environment's members available in the global scope.
const { ethers, upgrades } = require('hardhat')

const PID_CONTRACT = '0x9ec6232742b6068ce733645AF16BA277Fa412B0A'
const PID_CONTRACT = '0x0F2255E8aD232c5740879e3B495EA858D93C3016'

async function main() {
// Hardhat always runs the compile task when running scripts with its command
Expand Down

0 comments on commit ec0429b

Please sign in to comment.