@arcblock/erc721did-contract 0.3.6 → 0.3.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.
package/README.md CHANGED
@@ -48,6 +48,9 @@ npm run deploy -- --network bsc-test --tags deploy
48
48
  # deploy sepolia
49
49
  npm run deploy -- --network sepolia --tags deploy
50
50
 
51
+ # deploy optimism-goerli
52
+ npm run deploy -- --network optimism-goerli --tags deploy
53
+
51
54
  # generate lib
52
55
  npm run copy-to-lib
53
56
 
@@ -50,5 +50,18 @@
50
50
  "icon": "eth",
51
51
  "enable": false,
52
52
  "decimal": 18
53
+ },
54
+ {
55
+ "chainId": "420",
56
+ "chainName": "Optimism Goerli",
57
+ "contractFactoryAddress": "0xA44112bA00F1a4bc20374C99EC9547C6FA925db7",
58
+ "isTest": true,
59
+ "networkName": "optimism-goerli",
60
+ "symbol": "ETH (Optimism Goerli)",
61
+ "defaultRPC": "https://optimism-goerli.infura.io/v3/31276ea517a941c5b91d914fab83494e",
62
+ "explorer": "https://goerli-optimism.etherscan.io",
63
+ "icon": "optimism",
64
+ "enable": false,
65
+ "decimal": 18
53
66
  }
54
67
  ]
@@ -66,7 +66,7 @@ const CHAIN_MAP = {
66
66
  defaultRPC: `https://sepolia.infura.io/v3/${INFURA_PROJECT_ID}`,
67
67
  explorer: 'https://sepolia.etherscan.io',
68
68
  icon: 'eth',
69
- enable: false, // FIXME
69
+ enable: false, // FIXME: not support by DID Wallet
70
70
  decimal: 18,
71
71
  },
72
72
  97: {
@@ -80,6 +80,17 @@ const CHAIN_MAP = {
80
80
  enable: true,
81
81
  decimal: 18,
82
82
  },
83
+ 420: {
84
+ networkName: 'optimism-goerli',
85
+ chainName: 'Optimism Goerli',
86
+ chainId: '420',
87
+ symbol: 'ETH (Optimism Goerli)',
88
+ defaultRPC: `https://optimism-goerli.infura.io/v3/${INFURA_PROJECT_ID}`,
89
+ explorer: 'https://goerli-optimism.etherscan.io',
90
+ icon: 'optimism',
91
+ enable: false, // FIXME: not support by DID Wallet
92
+ decimal: 18,
93
+ },
83
94
  };
84
95
 
85
96
  const CUSTOM_CHAIN_MAP = {};
@@ -50,5 +50,18 @@
50
50
  "icon": "eth",
51
51
  "enable": false,
52
52
  "decimal": 18
53
+ },
54
+ {
55
+ "chainId": "420",
56
+ "chainName": "Optimism Goerli",
57
+ "contractFactoryAddress": "0xA44112bA00F1a4bc20374C99EC9547C6FA925db7",
58
+ "isTest": true,
59
+ "networkName": "optimism-goerli",
60
+ "symbol": "ETH (Optimism Goerli)",
61
+ "defaultRPC": "https://optimism-goerli.infura.io/v3/31276ea517a941c5b91d914fab83494e",
62
+ "explorer": "https://goerli-optimism.etherscan.io",
63
+ "icon": "optimism",
64
+ "enable": false,
65
+ "decimal": 18
53
66
  }
54
67
  ]
@@ -1044,6 +1044,19 @@ var require$$10 = [
1044
1044
  icon: "eth",
1045
1045
  enable: false,
1046
1046
  decimal: 18
1047
+ },
1048
+ {
1049
+ chainId: "420",
1050
+ chainName: "Optimism Goerli",
1051
+ contractFactoryAddress: "0xA44112bA00F1a4bc20374C99EC9547C6FA925db7",
1052
+ isTest: true,
1053
+ networkName: "optimism-goerli",
1054
+ symbol: "ETH (Optimism Goerli)",
1055
+ defaultRPC: "https://optimism-goerli.infura.io/v3/31276ea517a941c5b91d914fab83494e",
1056
+ explorer: "https://goerli-optimism.etherscan.io",
1057
+ icon: "optimism",
1058
+ enable: false,
1059
+ decimal: 18
1047
1060
  }
1048
1061
  ];
1049
1062
 
@@ -1132,7 +1145,7 @@ const CHAIN_MAP = {
1132
1145
  defaultRPC: `https://sepolia.infura.io/v3/${INFURA_PROJECT_ID}`,
1133
1146
  explorer: 'https://sepolia.etherscan.io',
1134
1147
  icon: 'eth',
1135
- enable: false, // FIXME
1148
+ enable: false, // FIXME: not support by DID Wallet
1136
1149
  decimal: 18,
1137
1150
  },
1138
1151
  97: {
@@ -1146,6 +1159,17 @@ const CHAIN_MAP = {
1146
1159
  enable: true,
1147
1160
  decimal: 18,
1148
1161
  },
1162
+ 420: {
1163
+ networkName: 'optimism-goerli',
1164
+ chainName: 'Optimism Goerli',
1165
+ chainId: '420',
1166
+ symbol: 'ETH (Optimism Goerli)',
1167
+ defaultRPC: `https://optimism-goerli.infura.io/v3/${INFURA_PROJECT_ID}`,
1168
+ explorer: 'https://goerli-optimism.etherscan.io',
1169
+ icon: 'optimism',
1170
+ enable: false, // FIXME: not support by DID Wallet
1171
+ decimal: 18,
1172
+ },
1149
1173
  };
1150
1174
 
1151
1175
  const CUSTOM_CHAIN_MAP = {};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.3.6",
6
+ "version": "0.3.8",
7
7
  "exports": {
8
8
  ".": {
9
9
  "import": "./lib/esm",
@@ -34,11 +34,11 @@
34
34
  "@ocap/merkle-tree": "1.18.34",
35
35
  "@ocap/wallet": "1.18.34",
36
36
  "@openzeppelin/contracts": "^4.9.2",
37
- "@rollup/plugin-commonjs": "^25.0.1",
37
+ "@rollup/plugin-commonjs": "^25.0.2",
38
38
  "@rollup/plugin-json": "^6.0.0",
39
39
  "@rollup/plugin-node-resolve": "^15.1.0",
40
40
  "@types/mocha": "^10.0.1",
41
- "@types/node": "^18.16.18",
41
+ "@types/node": "^18.16.19",
42
42
  "chai": "^4.3.7",
43
43
  "dotenv-flow": "^3.2.0",
44
44
  "envfile": "^6.18.0",
@@ -46,8 +46,8 @@
46
46
  "ethereum-waffle": "^3.4.4",
47
47
  "ethereumjs-util": "^7.1.5",
48
48
  "ethereumjs-wallet": "^1.0.2",
49
- "glob": "^10.2.7",
50
- "hardhat": "^2.15.0",
49
+ "glob": "^10.3.3",
50
+ "hardhat": "^2.16.1",
51
51
  "hardhat-contract-sizer": "^2.10.0",
52
52
  "hardhat-deploy": "^0.9.29",
53
53
  "hardhat-gas-reporter": "^1.0.9",
@@ -60,7 +60,7 @@
60
60
  "dependencies": {
61
61
  "@ocap/util": "1.18.34",
62
62
  "axios": "^1.4.0",
63
- "eslint": "^8.43.0",
63
+ "eslint": "^8.44.0",
64
64
  "ethers": "^5.7.2",
65
65
  "lodash": "^4.17.21",
66
66
  "p-wait-for": "^3.2.0"