Skip to content

Commit

Permalink
Merge pull request #32 from ayanworks/feat/mainnet-deployment-and-tes…
Browse files Browse the repository at this point in the history
…ting
  • Loading branch information
sairanjit authored May 29, 2024
2 parents f109309 + 8d1fec4 commit ecfecaf
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 4 deletions.
134 changes: 134 additions & 0 deletions .openzeppelin/polygon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
{
"manifestVersion": "3.2",
"proxies": [
{
"address": "0xdEBc41520F2d8203b282c4dc6c5973e61a14c727",
"txHash": "0xac189bd320f5843bf7bd58d308b3e62bc86ff4ab71649981bc7e203101b87bc2",
"kind": "transparent"
}
],
"impls": {
"4ea697d213312244614a688367167de1e84d9fd58fa073c2461c24e28152def1": {
"address": "0x4DF4c35cfaa1a6bC2463205091fd91db259F17Fa",
"txHash": "0xb5b3d39dc771662ebc6a3b53c908d0e12fe6786988b5f300bd80d614475808f0",
"layout": {
"solcVersion": "0.8.16",
"storage": [
{
"label": "owner",
"offset": 0,
"slot": "0",
"type": "t_address",
"contract": "PolygonDidRegistry",
"src": "contracts/PolygonDidRegistry.sol:9"
},
{
"label": "polyDIDs",
"offset": 0,
"slot": "1",
"type": "t_mapping(t_address,t_struct(PolyDID)13_storage)",
"contract": "PolygonDidRegistry",
"src": "contracts/PolygonDidRegistry.sol:17"
},
{
"label": "resourceData",
"offset": 0,
"slot": "2",
"type": "t_mapping(t_address,t_mapping(t_string_memory_ptr,t_string_storage))",
"contract": "PolygonDidRegistry",
"src": "contracts/PolygonDidRegistry.sol:18"
},
{
"label": "keysById",
"offset": 0,
"slot": "3",
"type": "t_mapping(t_address,t_array(t_string_storage)dyn_storage)",
"contract": "PolygonDidRegistry",
"src": "contracts/PolygonDidRegistry.sol:19"
},
{
"label": "initialized",
"offset": 0,
"slot": "4",
"type": "t_bool",
"contract": "PolygonDidRegistry",
"src": "contracts/PolygonDidRegistry.sol:29"
}
],
"types": {
"t_address": {
"label": "address",
"numberOfBytes": "20"
},
"t_array(t_string_storage)dyn_storage": {
"label": "string[]",
"numberOfBytes": "32"
},
"t_bool": {
"label": "bool",
"numberOfBytes": "1"
},
"t_mapping(t_address,t_array(t_string_storage)dyn_storage)": {
"label": "mapping(address => string[])",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_mapping(t_string_memory_ptr,t_string_storage))": {
"label": "mapping(address => mapping(string => string))",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_struct(PolyDID)13_storage)": {
"label": "mapping(address => struct PolygonDidRegistry.PolyDID)",
"numberOfBytes": "32"
},
"t_mapping(t_string_memory_ptr,t_string_storage)": {
"label": "mapping(string => string)",
"numberOfBytes": "32"
},
"t_string_memory_ptr": {
"label": "string",
"numberOfBytes": "32"
},
"t_string_storage": {
"label": "string",
"numberOfBytes": "32"
},
"t_struct(PolyDID)13_storage": {
"label": "struct PolygonDidRegistry.PolyDID",
"members": [
{
"label": "controller",
"type": "t_address",
"offset": 0,
"slot": "0"
},
{
"label": "created",
"type": "t_uint256",
"offset": 0,
"slot": "1"
},
{
"label": "updated",
"type": "t_uint256",
"offset": 0,
"slot": "2"
},
{
"label": "didDoc",
"type": "t_string_storage",
"offset": 0,
"slot": "3"
}
],
"numberOfBytes": "128"
},
"t_uint256": {
"label": "uint256",
"numberOfBytes": "32"
}
},
"namespaces": {}
}
}
}
}
6 changes: 3 additions & 3 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ module.exports = {
hardhat: {},
amoy: {
url: process.env.AMOY_RPCURL,
accounts: [`0x${process.env.SIGNER}`],
accounts: [`0x${process.env.SIGNER_TESTNET}`],
},
//Use for mainnet deployment
// polygon: {
// url: process.env.RPCURL_POLYON_MAINNET,
// accounts: [`0x${process.env.SIGNER}`],
// url: process.env.MAINNET_RPCURL,
// accounts: [`0x${process.env.SIGNER_MAINNET}`],
// },
},
etherscan: {
Expand Down
2 changes: 1 addition & 1 deletion tests/polygon_did_registry_test.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { describe, it } = require('node:test')
const PolygonDIDRegistryJSON = require('../artifacts/contracts/PolygonDidRegistry.sol/PolygonDidRegistry.json')

let PolygonUpgradableInstance, PolygonUpgradableInstance_test
walletKey = process.env.SIGNER
walletKey = process.env.SIGNER_TESTNET

// Upgradable with Proxy
// Deployment Testing 1.0
Expand Down

0 comments on commit ecfecaf

Please sign in to comment.