Skip to content

Commit 62798f7

Browse files
updates before sme review
1 parent 55bc806 commit 62798f7

File tree

59 files changed

+5802
-36
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+5802
-36
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## Mainnet contracts
2+
3+
| Contract name | Address |
4+
| ---------------------------- | --------------------------------------------------------------------------------------------------------------------- |
5+
| PolygonRollupManager | [0x5132A183E9F3CB7C848b0AAC5Ae0c4f0491B7aB2](https://etherscan.io/address/0x5132A183E9F3CB7C848b0AAC5Ae0c4f0491B7aB2) |
6+
| PolygonZkEVMBridgeV2 | [0x2a3DD3EB832aF982ec71669E178424b10Dca2EDe](https://etherscan.io/address/0x2a3DD3EB832aF982ec71669E178424b10Dca2EDe) |
7+
| PolygonZkEVMGlobalExitRootV2 | [0x580bda1e7A0CFAe92Fa7F6c20A3794F169CE3CFb](https://etherscan.io/address/0x580bda1e7A0CFAe92Fa7F6c20A3794F169CE3CFb) |
8+
| FflonkVerifier | [0x4F9A0e7FD2Bf6067db6994CF12E4495Df938E6e9](https://etherscan.io/address/0x4F9A0e7FD2Bf6067db6994CF12E4495Df938E6e9) |
9+
| PolygonZkEVMDeployer | [0xCB19eDdE626906eB1EE52357a27F62dd519608C2](https://etherscan.io/address/0xCB19eDdE626906eB1EE52357a27F62dd519608C2) |
10+
| PolygonZkEVMTimelock | [0xEf1462451C30Ea7aD8555386226059Fe837CA4EF](https://etherscan.io/address/0xEf1462451C30Ea7aD8555386226059Fe837CA4EF) |
11+
12+
## zkEVM contracts
13+
14+
| Contract name | Address |
15+
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
16+
| PolygonZkEVMBridgeV2 | [0x2a3DD3EB832aF982ec71669E178424b10Dca2EDe](https://zkevm.polygonscan.com/address/0x2a3DD3EB832aF982ec71669E178424b10Dca2EDe) |
17+
| PolygonZkEVMTimelock | [0xBBa0935Fa93Eb23de7990b47F0D96a8f75766d13](https://zkevm.polygonscan.com/address/0xBBa0935Fa93Eb23de7990b47F0D96a8f75766d13) |
18+
19+
20+
## CDK contracts
21+
22+
!!! warning
23+
TODO:
24+
25+
## Test private keys
26+
27+
| Private key | Address |
28+
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
29+
| `0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80` | `0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266` |
30+
| `0xdfd01798f92667dbf91df722434e8fbe96af0211d4d1b82bbbbc8f1def7a814f` | `0xc949254d682d8c9ad5682521675b8f43b102aec4`|

docs/zkEVM/architecture/high-level/smart-contracts/api.md

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
2+
3+
4+
## Functions
5+
### initialize
6+
```solidity
7+
function initialize(
8+
) external
9+
```
10+
11+
12+
13+
14+
### setupCommittee
15+
```solidity
16+
function setupCommittee(
17+
uint256 _requiredAmountOfSignatures,
18+
string[] urls,
19+
bytes addrsBytes
20+
) external
21+
```
22+
Allows the admin to setup the members of the committee. Note that:
23+
The system will require N / M signatures where N => _requiredAmountOfSignatures and M => urls.length
24+
There must be the same amount of urls than addressess encoded in the addrsBytes
25+
A member is represented by the url and the address contained in urls[i] and addrsBytes[i*_ADDR_SIZE : i*_ADDR_SIZE + _ADDR_SIZE]
26+
27+
28+
#### Parameters:
29+
| Name | Type | Description |
30+
| :--- | :--- | :------------------------------------------------------------------- |
31+
|`_requiredAmountOfSignatures` | uint256 | Required amount of signatures
32+
|`urls` | string[] | List of urls of the members of the committee
33+
|`addrsBytes` | bytes | Byte array that contains the addressess of the members of the committee
34+
35+
### getAmountOfMembers
36+
```solidity
37+
function getAmountOfMembers(
38+
) public returns (uint256)
39+
```
40+
41+
42+
43+
44+
### verifySignatures
45+
```solidity
46+
function verifySignatures(
47+
bytes32 signedHash,
48+
bytes signaturesAndAddrs
49+
) external
50+
```
51+
Verifies that the given signedHash has been signed by requiredAmountOfSignatures committee members
52+
53+
54+
#### Parameters:
55+
| Name | Type | Description |
56+
| :--- | :--- | :------------------------------------------------------------------- |
57+
|`signedHash` | bytes32 | Hash that must have been signed by requiredAmountOfSignatures of committee members
58+
|`signaturesAndAddrs` | bytes | Byte array containing the signatures and all the addresses of the committee in ascending order
59+
[signature 0, ..., signature requiredAmountOfSignatures -1, address 0, ... address N]
60+
note that each ECDSA signatures are used, therefore each one must be 65 bytes
61+
62+
## Events
63+
### CommitteeUpdated
64+
```solidity
65+
event CommitteeUpdated(
66+
bytes32 committeeHash
67+
)
68+
```
69+
70+
Emitted when the committee is updated
71+
72+
#### Parameters:
73+
| Name | Type | Description |
74+
| :----------------------------- | :------------ | :--------------------------------------------- |
75+
|`committeeHash`| bytes32 | hash of the addresses of the committee members

0 commit comments

Comments
 (0)