@ayanworks/polygon-did-registry-contract 2.0.1-alpha.1 → 2.0.1-alpha.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/.github/workflows/pipeline.yaml +85 -0
- package/.prettierignore +5 -1
- package/.release-it.json +4 -2
- package/README.md +22 -23
- package/artifacts/PolygonDidRegistry.json +25308 -1
- package/build/artifacts/PolygonDidRegistry.json +25308 -1
- package/compile.ts +1 -3
- package/migrations/1_initial_migration.js +3 -3
- package/migrations/2_deploy_contract.js +5 -5
- package/package.json +6 -6
- package/sst-config.json +3 -1
- package/tests/polygon_did_registry_test.js +104 -110
- package/truffle-config.js +48 -49
package/truffle-config.js
CHANGED
|
@@ -17,53 +17,52 @@
|
|
|
17
17
|
* phrase from a file you've .gitignored so it doesn't accidentally become public.
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
const HDWalletProvider = require('@truffle/hdwallet-provider')
|
|
21
|
+
require('dotenv').config()
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
};
|
|
23
|
+
module.exports = {
|
|
24
|
+
/**
|
|
25
|
+
* Networks define how you connect to your ethereum client and let you set the
|
|
26
|
+
* defaults web3 uses to send transactions. If you don't specify one truffle
|
|
27
|
+
* will spin up a development blockchain for you on port 9545 when you
|
|
28
|
+
* run `develop` or `test`. You can ask a truffle command to use a specific
|
|
29
|
+
* network from the command line, e.g
|
|
30
|
+
*
|
|
31
|
+
* $ truffle test --network <network-name>
|
|
32
|
+
*/
|
|
33
|
+
networks: {
|
|
34
|
+
development: {
|
|
35
|
+
host: '127.0.0.1', // Localhost (default: none)
|
|
36
|
+
port: 8545, // Standard Ethereum port (default: none)
|
|
37
|
+
network_id: '*', // Any network (default: none)
|
|
38
|
+
},
|
|
39
|
+
matic: {
|
|
40
|
+
provider: function () {
|
|
41
|
+
return new HDWalletProvider(process.env.SIGNER, process.env.RPCURL)
|
|
42
|
+
},
|
|
43
|
+
network_id: '80001',
|
|
44
|
+
},
|
|
45
|
+
matic_mainnet: {
|
|
46
|
+
provider: function () {
|
|
47
|
+
return new HDWalletProvider(process.env.SIGNER, process.env.RPCURL)
|
|
48
|
+
},
|
|
49
|
+
network_id: '137',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
// Set default mocha options here, use special reporters etc.
|
|
54
|
+
mocha: {
|
|
55
|
+
// timeout: 100000
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
// Configure your compilers
|
|
59
|
+
compilers: {
|
|
60
|
+
solc: {
|
|
61
|
+
version: '0.8.16', // Fetch exact version from solc-bin (default: truffle's version)
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
db: {
|
|
66
|
+
enabled: false,
|
|
67
|
+
},
|
|
68
|
+
}
|