@ayanworks/polygon-did-registry-contract 2.0.1-alpha.7 → 2.0.1-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,134 @@
1
+ {
2
+ "manifestVersion": "3.2",
3
+ "proxies": [
4
+ {
5
+ "address": "0xdEBc41520F2d8203b282c4dc6c5973e61a14c727",
6
+ "txHash": "0xac189bd320f5843bf7bd58d308b3e62bc86ff4ab71649981bc7e203101b87bc2",
7
+ "kind": "transparent"
8
+ }
9
+ ],
10
+ "impls": {
11
+ "4ea697d213312244614a688367167de1e84d9fd58fa073c2461c24e28152def1": {
12
+ "address": "0x4DF4c35cfaa1a6bC2463205091fd91db259F17Fa",
13
+ "txHash": "0xb5b3d39dc771662ebc6a3b53c908d0e12fe6786988b5f300bd80d614475808f0",
14
+ "layout": {
15
+ "solcVersion": "0.8.16",
16
+ "storage": [
17
+ {
18
+ "label": "owner",
19
+ "offset": 0,
20
+ "slot": "0",
21
+ "type": "t_address",
22
+ "contract": "PolygonDidRegistry",
23
+ "src": "contracts/PolygonDidRegistry.sol:9"
24
+ },
25
+ {
26
+ "label": "polyDIDs",
27
+ "offset": 0,
28
+ "slot": "1",
29
+ "type": "t_mapping(t_address,t_struct(PolyDID)13_storage)",
30
+ "contract": "PolygonDidRegistry",
31
+ "src": "contracts/PolygonDidRegistry.sol:17"
32
+ },
33
+ {
34
+ "label": "resourceData",
35
+ "offset": 0,
36
+ "slot": "2",
37
+ "type": "t_mapping(t_address,t_mapping(t_string_memory_ptr,t_string_storage))",
38
+ "contract": "PolygonDidRegistry",
39
+ "src": "contracts/PolygonDidRegistry.sol:18"
40
+ },
41
+ {
42
+ "label": "keysById",
43
+ "offset": 0,
44
+ "slot": "3",
45
+ "type": "t_mapping(t_address,t_array(t_string_storage)dyn_storage)",
46
+ "contract": "PolygonDidRegistry",
47
+ "src": "contracts/PolygonDidRegistry.sol:19"
48
+ },
49
+ {
50
+ "label": "initialized",
51
+ "offset": 0,
52
+ "slot": "4",
53
+ "type": "t_bool",
54
+ "contract": "PolygonDidRegistry",
55
+ "src": "contracts/PolygonDidRegistry.sol:29"
56
+ }
57
+ ],
58
+ "types": {
59
+ "t_address": {
60
+ "label": "address",
61
+ "numberOfBytes": "20"
62
+ },
63
+ "t_array(t_string_storage)dyn_storage": {
64
+ "label": "string[]",
65
+ "numberOfBytes": "32"
66
+ },
67
+ "t_bool": {
68
+ "label": "bool",
69
+ "numberOfBytes": "1"
70
+ },
71
+ "t_mapping(t_address,t_array(t_string_storage)dyn_storage)": {
72
+ "label": "mapping(address => string[])",
73
+ "numberOfBytes": "32"
74
+ },
75
+ "t_mapping(t_address,t_mapping(t_string_memory_ptr,t_string_storage))": {
76
+ "label": "mapping(address => mapping(string => string))",
77
+ "numberOfBytes": "32"
78
+ },
79
+ "t_mapping(t_address,t_struct(PolyDID)13_storage)": {
80
+ "label": "mapping(address => struct PolygonDidRegistry.PolyDID)",
81
+ "numberOfBytes": "32"
82
+ },
83
+ "t_mapping(t_string_memory_ptr,t_string_storage)": {
84
+ "label": "mapping(string => string)",
85
+ "numberOfBytes": "32"
86
+ },
87
+ "t_string_memory_ptr": {
88
+ "label": "string",
89
+ "numberOfBytes": "32"
90
+ },
91
+ "t_string_storage": {
92
+ "label": "string",
93
+ "numberOfBytes": "32"
94
+ },
95
+ "t_struct(PolyDID)13_storage": {
96
+ "label": "struct PolygonDidRegistry.PolyDID",
97
+ "members": [
98
+ {
99
+ "label": "controller",
100
+ "type": "t_address",
101
+ "offset": 0,
102
+ "slot": "0"
103
+ },
104
+ {
105
+ "label": "created",
106
+ "type": "t_uint256",
107
+ "offset": 0,
108
+ "slot": "1"
109
+ },
110
+ {
111
+ "label": "updated",
112
+ "type": "t_uint256",
113
+ "offset": 0,
114
+ "slot": "2"
115
+ },
116
+ {
117
+ "label": "didDoc",
118
+ "type": "t_string_storage",
119
+ "offset": 0,
120
+ "slot": "3"
121
+ }
122
+ ],
123
+ "numberOfBytes": "128"
124
+ },
125
+ "t_uint256": {
126
+ "label": "uint256",
127
+ "numberOfBytes": "32"
128
+ }
129
+ },
130
+ "namespaces": {}
131
+ }
132
+ }
133
+ }
134
+ }
package/hardhat.config.js CHANGED
@@ -23,12 +23,12 @@ module.exports = {
23
23
  hardhat: {},
24
24
  amoy: {
25
25
  url: process.env.AMOY_RPCURL,
26
- accounts: [`0x${process.env.SIGNER}`],
26
+ accounts: [`0x${process.env.SIGNER_TESTNET}`],
27
27
  },
28
28
  //Use for mainnet deployment
29
29
  // polygon: {
30
- // url: process.env.RPCURL_POLYON_MAINNET,
31
- // accounts: [`0x${process.env.SIGNER}`],
30
+ // url: process.env.MAINNET_RPCURL,
31
+ // accounts: [`0x${process.env.SIGNER_MAINNET}`],
32
32
  // },
33
33
  },
34
34
  etherscan: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ayanworks/polygon-did-registry-contract",
3
- "version": "2.0.1-alpha.7",
3
+ "version": "2.0.1-alpha.8",
4
4
  "description": "Smart Contract to register DID on Polygon",
5
5
  "main": "build/index.js",
6
6
  "directories": {
@@ -6,7 +6,7 @@ const { describe, it } = require('node:test')
6
6
  const PolygonDIDRegistryJSON = require('../artifacts/contracts/PolygonDidRegistry.sol/PolygonDidRegistry.json')
7
7
 
8
8
  let PolygonUpgradableInstance, PolygonUpgradableInstance_test
9
- walletKey = process.env.SIGNER
9
+ walletKey = process.env.SIGNER_TESTNET
10
10
 
11
11
  // Upgradable with Proxy
12
12
  // Deployment Testing 1.0