@arcblock/erc721did-contract 0.2.6 → 0.3.2

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
@@ -1,13 +1,13 @@
1
- ## ArcBridge Contracts
1
+ ## ERC721DID Contracts
2
2
 
3
- Solidity contracts that powers ArcBridge.
3
+ Solidity contracts that powers ERC721DID.
4
4
 
5
5
  ### How to Deploy
6
6
 
7
7
  0. create dotenv file
8
8
  1. (optional) deploy token
9
- 2. deploy multisig library
10
- 3. deploy rollup contract
9
+ 2. deploy parent contract
10
+ 3. deploy factory contract
11
11
 
12
12
  ### FAQ
13
13
 
@@ -15,7 +15,13 @@ Solidity contracts that powers ArcBridge.
15
15
 
16
16
  ### Getting Started
17
17
 
18
- 如果是本地开发环境,需要修改 src/library/ERC20Token.sol,替换其中的 TokenSymbol 为 DEV,然后再部署
18
+ 如果是本地开发环境,需要复制 .env_example 新建 .env.local,提供里面的环境变量。
19
+
20
+ #### Install
21
+
22
+ ```bash
23
+ pnpm i
24
+ ```
19
25
 
20
26
  #### Cleanup
21
27
 
@@ -25,28 +31,36 @@ Solidity contracts that powers ArcBridge.
25
31
  rm -rf deployments
26
32
  ```
27
33
 
28
- #### Deploy ERC20Token
34
+ #### Deploy ERC721DID Parent Contract + ERC721DID Factory Contract
29
35
 
30
- > Will update .env.dev.tba
36
+ > Will update .env
31
37
 
32
38
  ```bash
33
- NODE_ENV=dev.tba npm run deploy -- --network goerli --tags token
39
+ # deploy goerli
40
+ npm run deploy -- --network goerli --tags deploy
41
+ # deploy base-goerli
42
+ npm run deploy -- --network base-goerli --tags deploy
43
+ # deploy bsc-test
44
+ npm run deploy -- --network bsc-test --tags deploy
45
+ # deploy sepolia
46
+ npm run deploy -- --network sepolia --tags deploy
47
+
48
+ # generate lib
49
+ npm run copy-to-lib
34
50
  ```
35
51
 
36
- #### Deploy MultiSig
52
+ #### Dev ERC721DID Parent Contract + ERC721DID Factory Contract
37
53
 
38
- > Will update .env.dev.tba
54
+ > Will update .env.local
39
55
 
40
56
  ```bash
41
- NODE_ENV=dev.tba npm run deploy -- --network goerli --tags multisig
42
- ```
43
-
44
- #### Deploy ERC20Rollup
57
+ # bash 1
58
+ npm run node
45
59
 
46
- > Please remember to set `MIGRATED_FROM` and `MIN_SIGNER_COUNT` before deploy.
60
+ # bash 2
61
+ npm run dev
47
62
 
48
- ```bash
49
- NODE_ENV=dev.tba npm run deploy -- --network goerli --tags rollup
63
+ # bash 3 if you want to deploy or test
64
+ npm run deploy:local
65
+ npm run test:local
50
66
  ```
51
-
52
- Then you are all set on ethereum.