@semaphore-protocol/utils 4.0.2 → 4.1.0

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
@@ -43,7 +43,7 @@
43
43
  🔎 Issues
44
44
  </a>
45
45
  <span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
46
- <a href="https://semaphore.pse.dev/discord">
46
+ <a href="https://semaphore.pse.dev/telegram">
47
47
  🗣️ Chat &amp; Support
48
48
  </a>
49
49
  </h4>
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.2
3
+ * @version 4.1.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -1038,6 +1038,66 @@ var deployedContracts = [
1038
1038
  startBlock: 9636193
1039
1039
  }
1040
1040
  ]
1041
+ },
1042
+ {
1043
+ network: "arbitrum",
1044
+ contracts: [
1045
+ {
1046
+ name: "SemaphoreVerifier",
1047
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
1048
+ startBlock: 258951463
1049
+ },
1050
+ {
1051
+ name: "PoseidonT3",
1052
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
1053
+ startBlock: 258951463
1054
+ },
1055
+ {
1056
+ name: "Semaphore",
1057
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
1058
+ startBlock: 258951463
1059
+ }
1060
+ ]
1061
+ },
1062
+ {
1063
+ network: "matic",
1064
+ contracts: [
1065
+ {
1066
+ name: "SemaphoreVerifier",
1067
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
1068
+ startBlock: 62466952
1069
+ },
1070
+ {
1071
+ name: "PoseidonT3",
1072
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
1073
+ startBlock: 62466952
1074
+ },
1075
+ {
1076
+ name: "Semaphore",
1077
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
1078
+ startBlock: 62466952
1079
+ }
1080
+ ]
1081
+ },
1082
+ {
1083
+ network: "optimism",
1084
+ contracts: [
1085
+ {
1086
+ name: "SemaphoreVerifier",
1087
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
1088
+ startBlock: 126057798
1089
+ },
1090
+ {
1091
+ name: "PoseidonT3",
1092
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
1093
+ startBlock: 126057798
1094
+ },
1095
+ {
1096
+ name: "Semaphore",
1097
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
1098
+ startBlock: 126057798
1099
+ }
1100
+ ]
1041
1101
  }
1042
1102
  ];
1043
1103
 
@@ -1054,17 +1114,35 @@ var supportedNetworks = {
1054
1114
  chainId: 421614,
1055
1115
  explorer: "https://sepolia.arbiscan.io"
1056
1116
  },
1117
+ arbitrum: {
1118
+ name: "Arbitrum",
1119
+ url: "https://arb1.arbitrum.io/rpc",
1120
+ chainId: 42161,
1121
+ explorer: "https://arbiscan.io"
1122
+ },
1057
1123
  "optimism-sepolia": {
1058
1124
  name: "Optimism Sepolia",
1059
1125
  url: "https://sepolia.optimism.io",
1060
1126
  chainId: 11155420,
1061
1127
  explorer: "https://sepolia-optimism.etherscan.io"
1062
1128
  },
1129
+ optimism: {
1130
+ name: "Optimism",
1131
+ url: "https://mainnet.optimism.io ",
1132
+ chainId: 10,
1133
+ explorer: "https://optimistic.etherscan.io"
1134
+ },
1063
1135
  "matic-amoy": {
1064
1136
  name: "Matic Amoy",
1065
1137
  url: "https://rpc-amoy.polygon.technology",
1066
1138
  chainId: 80002,
1067
1139
  explorer: "https://amoy.polygonscan.com"
1140
+ },
1141
+ matic: {
1142
+ name: "Matic",
1143
+ url: "https://polygon-rpc.com",
1144
+ chainId: 137,
1145
+ explorer: "https://polygonscan.com"
1068
1146
  }
1069
1147
  };
1070
1148
 
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.2
3
+ * @version 4.1.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -1036,6 +1036,66 @@ var deployedContracts = [
1036
1036
  startBlock: 9636193
1037
1037
  }
1038
1038
  ]
1039
+ },
1040
+ {
1041
+ network: "arbitrum",
1042
+ contracts: [
1043
+ {
1044
+ name: "SemaphoreVerifier",
1045
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
1046
+ startBlock: 258951463
1047
+ },
1048
+ {
1049
+ name: "PoseidonT3",
1050
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
1051
+ startBlock: 258951463
1052
+ },
1053
+ {
1054
+ name: "Semaphore",
1055
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
1056
+ startBlock: 258951463
1057
+ }
1058
+ ]
1059
+ },
1060
+ {
1061
+ network: "matic",
1062
+ contracts: [
1063
+ {
1064
+ name: "SemaphoreVerifier",
1065
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
1066
+ startBlock: 62466952
1067
+ },
1068
+ {
1069
+ name: "PoseidonT3",
1070
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
1071
+ startBlock: 62466952
1072
+ },
1073
+ {
1074
+ name: "Semaphore",
1075
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
1076
+ startBlock: 62466952
1077
+ }
1078
+ ]
1079
+ },
1080
+ {
1081
+ network: "optimism",
1082
+ contracts: [
1083
+ {
1084
+ name: "SemaphoreVerifier",
1085
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
1086
+ startBlock: 126057798
1087
+ },
1088
+ {
1089
+ name: "PoseidonT3",
1090
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
1091
+ startBlock: 126057798
1092
+ },
1093
+ {
1094
+ name: "Semaphore",
1095
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
1096
+ startBlock: 126057798
1097
+ }
1098
+ ]
1039
1099
  }
1040
1100
  ];
1041
1101
 
@@ -1052,17 +1112,35 @@ var supportedNetworks = {
1052
1112
  chainId: 421614,
1053
1113
  explorer: "https://sepolia.arbiscan.io"
1054
1114
  },
1115
+ arbitrum: {
1116
+ name: "Arbitrum",
1117
+ url: "https://arb1.arbitrum.io/rpc",
1118
+ chainId: 42161,
1119
+ explorer: "https://arbiscan.io"
1120
+ },
1055
1121
  "optimism-sepolia": {
1056
1122
  name: "Optimism Sepolia",
1057
1123
  url: "https://sepolia.optimism.io",
1058
1124
  chainId: 11155420,
1059
1125
  explorer: "https://sepolia-optimism.etherscan.io"
1060
1126
  },
1127
+ optimism: {
1128
+ name: "Optimism",
1129
+ url: "https://mainnet.optimism.io ",
1130
+ chainId: 10,
1131
+ explorer: "https://optimistic.etherscan.io"
1132
+ },
1061
1133
  "matic-amoy": {
1062
1134
  name: "Matic Amoy",
1063
1135
  url: "https://rpc-amoy.polygon.technology",
1064
1136
  chainId: 80002,
1065
1137
  explorer: "https://amoy.polygonscan.com"
1138
+ },
1139
+ matic: {
1140
+ name: "Matic",
1141
+ url: "https://polygon-rpc.com",
1142
+ chainId: 137,
1143
+ explorer: "https://polygonscan.com"
1066
1144
  }
1067
1145
  };
1068
1146
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.2
3
+ * @version 4.1.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.2
3
+ * @version 4.1.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.2
3
+ * @version 4.1.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.2
3
+ * @version 4.1.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -88,6 +88,66 @@ var deployedContracts = [
88
88
  startBlock: 9636193
89
89
  }
90
90
  ]
91
+ },
92
+ {
93
+ network: "arbitrum",
94
+ contracts: [
95
+ {
96
+ name: "SemaphoreVerifier",
97
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
98
+ startBlock: 258951463
99
+ },
100
+ {
101
+ name: "PoseidonT3",
102
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
103
+ startBlock: 258951463
104
+ },
105
+ {
106
+ name: "Semaphore",
107
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
108
+ startBlock: 258951463
109
+ }
110
+ ]
111
+ },
112
+ {
113
+ network: "matic",
114
+ contracts: [
115
+ {
116
+ name: "SemaphoreVerifier",
117
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
118
+ startBlock: 62466952
119
+ },
120
+ {
121
+ name: "PoseidonT3",
122
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
123
+ startBlock: 62466952
124
+ },
125
+ {
126
+ name: "Semaphore",
127
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
128
+ startBlock: 62466952
129
+ }
130
+ ]
131
+ },
132
+ {
133
+ network: "optimism",
134
+ contracts: [
135
+ {
136
+ name: "SemaphoreVerifier",
137
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
138
+ startBlock: 126057798
139
+ },
140
+ {
141
+ name: "PoseidonT3",
142
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
143
+ startBlock: 126057798
144
+ },
145
+ {
146
+ name: "Semaphore",
147
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
148
+ startBlock: 126057798
149
+ }
150
+ ]
91
151
  }
92
152
  ];
93
153
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.2
3
+ * @version 4.1.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.2
3
+ * @version 4.1.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -21,17 +21,35 @@ var supportedNetworks = {
21
21
  chainId: 421614,
22
22
  explorer: "https://sepolia.arbiscan.io"
23
23
  },
24
+ arbitrum: {
25
+ name: "Arbitrum",
26
+ url: "https://arb1.arbitrum.io/rpc",
27
+ chainId: 42161,
28
+ explorer: "https://arbiscan.io"
29
+ },
24
30
  "optimism-sepolia": {
25
31
  name: "Optimism Sepolia",
26
32
  url: "https://sepolia.optimism.io",
27
33
  chainId: 11155420,
28
34
  explorer: "https://sepolia-optimism.etherscan.io"
29
35
  },
36
+ optimism: {
37
+ name: "Optimism",
38
+ url: "https://mainnet.optimism.io ",
39
+ chainId: 10,
40
+ explorer: "https://optimistic.etherscan.io"
41
+ },
30
42
  "matic-amoy": {
31
43
  name: "Matic Amoy",
32
44
  url: "https://rpc-amoy.polygon.technology",
33
45
  chainId: 80002,
34
46
  explorer: "https://amoy.polygonscan.com"
47
+ },
48
+ matic: {
49
+ name: "Matic",
50
+ url: "https://polygon-rpc.com",
51
+ chainId: 137,
52
+ explorer: "https://polygonscan.com"
35
53
  }
36
54
  };
37
55
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.2
3
+ * @version 4.1.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.2
3
+ * @version 4.1.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.2
3
+ * @version 4.1.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.2
3
+ * @version 4.1.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.2
3
+ * @version 4.1.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -86,6 +86,66 @@ var deployedContracts = [
86
86
  startBlock: 9636193
87
87
  }
88
88
  ]
89
+ },
90
+ {
91
+ network: "arbitrum",
92
+ contracts: [
93
+ {
94
+ name: "SemaphoreVerifier",
95
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
96
+ startBlock: 258951463
97
+ },
98
+ {
99
+ name: "PoseidonT3",
100
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
101
+ startBlock: 258951463
102
+ },
103
+ {
104
+ name: "Semaphore",
105
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
106
+ startBlock: 258951463
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ network: "matic",
112
+ contracts: [
113
+ {
114
+ name: "SemaphoreVerifier",
115
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
116
+ startBlock: 62466952
117
+ },
118
+ {
119
+ name: "PoseidonT3",
120
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
121
+ startBlock: 62466952
122
+ },
123
+ {
124
+ name: "Semaphore",
125
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
126
+ startBlock: 62466952
127
+ }
128
+ ]
129
+ },
130
+ {
131
+ network: "optimism",
132
+ contracts: [
133
+ {
134
+ name: "SemaphoreVerifier",
135
+ address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
136
+ startBlock: 126057798
137
+ },
138
+ {
139
+ name: "PoseidonT3",
140
+ address: "0xB43122Ecb241DD50062641f089876679fd06599a",
141
+ startBlock: 126057798
142
+ },
143
+ {
144
+ name: "Semaphore",
145
+ address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
146
+ startBlock: 126057798
147
+ }
148
+ ]
89
149
  }
90
150
  ];
91
151
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.2
3
+ * @version 4.1.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.2
3
+ * @version 4.1.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -19,17 +19,35 @@ var supportedNetworks = {
19
19
  chainId: 421614,
20
20
  explorer: "https://sepolia.arbiscan.io"
21
21
  },
22
+ arbitrum: {
23
+ name: "Arbitrum",
24
+ url: "https://arb1.arbitrum.io/rpc",
25
+ chainId: 42161,
26
+ explorer: "https://arbiscan.io"
27
+ },
22
28
  "optimism-sepolia": {
23
29
  name: "Optimism Sepolia",
24
30
  url: "https://sepolia.optimism.io",
25
31
  chainId: 11155420,
26
32
  explorer: "https://sepolia-optimism.etherscan.io"
27
33
  },
34
+ optimism: {
35
+ name: "Optimism",
36
+ url: "https://mainnet.optimism.io ",
37
+ chainId: 10,
38
+ explorer: "https://optimistic.etherscan.io"
39
+ },
28
40
  "matic-amoy": {
29
41
  name: "Matic Amoy",
30
42
  url: "https://rpc-amoy.polygon.technology",
31
43
  chainId: 80002,
32
44
  explorer: "https://amoy.polygonscan.com"
45
+ },
46
+ matic: {
47
+ name: "Matic",
48
+ url: "https://polygon-rpc.com",
49
+ chainId: 137,
50
+ explorer: "https://polygonscan.com"
33
51
  }
34
52
  };
35
53
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/utils
3
- * @version 4.0.2
3
+ * @version 4.1.0
4
4
  * @file A library to provide utility functions to the other Semaphore packages.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -11,17 +11,35 @@ declare const _default: {
11
11
  chainId: number;
12
12
  explorer: string;
13
13
  };
14
+ arbitrum: {
15
+ name: string;
16
+ url: string;
17
+ chainId: number;
18
+ explorer: string;
19
+ };
14
20
  "optimism-sepolia": {
15
21
  name: string;
16
22
  url: string;
17
23
  chainId: number;
18
24
  explorer: string;
19
25
  };
26
+ optimism: {
27
+ name: string;
28
+ url: string;
29
+ chainId: number;
30
+ explorer: string;
31
+ };
20
32
  "matic-amoy": {
21
33
  name: string;
22
34
  url: string;
23
35
  chainId: number;
24
36
  explorer: string;
25
37
  };
38
+ matic: {
39
+ name: string;
40
+ url: string;
41
+ chainId: number;
42
+ explorer: string;
43
+ };
26
44
  };
27
45
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semaphore-protocol/utils",
3
- "version": "4.0.2",
3
+ "version": "4.1.0",
4
4
  "description": "A library to provide utility functions to the other Semaphore packages.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -78,5 +78,65 @@
78
78
  "startBlock": 9636193
79
79
  }
80
80
  ]
81
+ },
82
+ {
83
+ "network": "arbitrum",
84
+ "contracts": [
85
+ {
86
+ "name": "SemaphoreVerifier",
87
+ "address": "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
88
+ "startBlock": 258951463
89
+ },
90
+ {
91
+ "name": "PoseidonT3",
92
+ "address": "0xB43122Ecb241DD50062641f089876679fd06599a",
93
+ "startBlock": 258951463
94
+ },
95
+ {
96
+ "name": "Semaphore",
97
+ "address": "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
98
+ "startBlock": 258951463
99
+ }
100
+ ]
101
+ },
102
+ {
103
+ "network": "matic",
104
+ "contracts": [
105
+ {
106
+ "name": "SemaphoreVerifier",
107
+ "address": "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
108
+ "startBlock": 62466952
109
+ },
110
+ {
111
+ "name": "PoseidonT3",
112
+ "address": "0xB43122Ecb241DD50062641f089876679fd06599a",
113
+ "startBlock": 62466952
114
+ },
115
+ {
116
+ "name": "Semaphore",
117
+ "address": "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
118
+ "startBlock": 62466952
119
+ }
120
+ ]
121
+ },
122
+ {
123
+ "network": "optimism",
124
+ "contracts": [
125
+ {
126
+ "name": "SemaphoreVerifier",
127
+ "address": "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
128
+ "startBlock": 126057798
129
+ },
130
+ {
131
+ "name": "PoseidonT3",
132
+ "address": "0xB43122Ecb241DD50062641f089876679fd06599a",
133
+ "startBlock": 126057798
134
+ },
135
+ {
136
+ "name": "Semaphore",
137
+ "address": "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
138
+ "startBlock": 126057798
139
+ }
140
+ ]
81
141
  }
82
142
  ]