@semaphore-protocol/utils 4.1.0 → 4.3.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/dist/index.cjs +105 -1
- package/dist/index.js +105 -1
- package/dist/lib.commonjs/constants.cjs +1 -1
- package/dist/lib.commonjs/decode-message.cjs +1 -1
- package/dist/lib.commonjs/index.cjs +1 -1
- package/dist/lib.commonjs/networks/deployed-contracts.json.cjs +81 -1
- package/dist/lib.commonjs/networks/index.cjs +1 -1
- package/dist/lib.commonjs/networks/supported-networks.cjs +25 -1
- package/dist/lib.commonjs/semaphore-interface.json.cjs +1 -1
- package/dist/lib.esm/constants.js +1 -1
- package/dist/lib.esm/decode-message.js +1 -1
- package/dist/lib.esm/index.js +1 -1
- package/dist/lib.esm/networks/deployed-contracts.json.js +81 -1
- package/dist/lib.esm/networks/index.js +1 -1
- package/dist/lib.esm/networks/supported-networks.js +25 -1
- package/dist/lib.esm/semaphore-interface.json.js +1 -1
- package/dist/types/networks/supported-networks.d.ts +24 -0
- package/package.json +1 -1
- package/src/networks/deployed-contracts.json +80 -0
- package/src/networks/supported-networks.ts +24 -0
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/utils
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.3.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
|
|
@@ -1098,6 +1098,86 @@ var deployedContracts = [
|
|
|
1098
1098
|
startBlock: 126057798
|
|
1099
1099
|
}
|
|
1100
1100
|
]
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
network: "base-sepolia",
|
|
1104
|
+
contracts: [
|
|
1105
|
+
{
|
|
1106
|
+
name: "SemaphoreVerifier",
|
|
1107
|
+
address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
1108
|
+
startBlock: 16008294
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
name: "PoseidonT3",
|
|
1112
|
+
address: "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
1113
|
+
startBlock: 16008294
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
name: "Semaphore",
|
|
1117
|
+
address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
1118
|
+
startBlock: 16008294
|
|
1119
|
+
}
|
|
1120
|
+
]
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
network: "linea-sepolia",
|
|
1124
|
+
contracts: [
|
|
1125
|
+
{
|
|
1126
|
+
name: "SemaphoreVerifier",
|
|
1127
|
+
address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
1128
|
+
startBlock: 3928632
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
name: "PoseidonT3",
|
|
1132
|
+
address: "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
1133
|
+
startBlock: 3928632
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
name: "Semaphore",
|
|
1137
|
+
address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
1138
|
+
startBlock: 3928632
|
|
1139
|
+
}
|
|
1140
|
+
]
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
network: "base",
|
|
1144
|
+
contracts: [
|
|
1145
|
+
{
|
|
1146
|
+
name: "SemaphoreVerifier",
|
|
1147
|
+
address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
1148
|
+
startBlock: 20553357
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
name: "PoseidonT3",
|
|
1152
|
+
address: "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
1153
|
+
startBlock: 20553357
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
name: "Semaphore",
|
|
1157
|
+
address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
1158
|
+
startBlock: 20553357
|
|
1159
|
+
}
|
|
1160
|
+
]
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
network: "linea",
|
|
1164
|
+
contracts: [
|
|
1165
|
+
{
|
|
1166
|
+
name: "SemaphoreVerifier",
|
|
1167
|
+
address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
1168
|
+
startBlock: 10235849
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
name: "PoseidonT3",
|
|
1172
|
+
address: "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
1173
|
+
startBlock: 10235849
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
name: "Semaphore",
|
|
1177
|
+
address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
1178
|
+
startBlock: 10235849
|
|
1179
|
+
}
|
|
1180
|
+
]
|
|
1101
1181
|
}
|
|
1102
1182
|
];
|
|
1103
1183
|
|
|
@@ -1143,6 +1223,30 @@ var supportedNetworks = {
|
|
|
1143
1223
|
url: "https://polygon-rpc.com",
|
|
1144
1224
|
chainId: 137,
|
|
1145
1225
|
explorer: "https://polygonscan.com"
|
|
1226
|
+
},
|
|
1227
|
+
"base-sepolia": {
|
|
1228
|
+
name: "Base Sepolia",
|
|
1229
|
+
url: "https://sepolia.base.org",
|
|
1230
|
+
chainId: 84532,
|
|
1231
|
+
explorer: "https://sepolia.basescan.org"
|
|
1232
|
+
},
|
|
1233
|
+
base: {
|
|
1234
|
+
name: "Base",
|
|
1235
|
+
url: "https://mainnet.base.org",
|
|
1236
|
+
chainId: 8453,
|
|
1237
|
+
explorer: "https://basescan.org"
|
|
1238
|
+
},
|
|
1239
|
+
"linea-sepolia": {
|
|
1240
|
+
name: "Linea Sepolia",
|
|
1241
|
+
url: "https://rpc.sepolia.linea.build",
|
|
1242
|
+
chainId: 59141,
|
|
1243
|
+
explorer: "https://sepolia.lineascan.build"
|
|
1244
|
+
},
|
|
1245
|
+
linea: {
|
|
1246
|
+
name: "Linea",
|
|
1247
|
+
url: "https://rpc.linea.build",
|
|
1248
|
+
chainId: 59144,
|
|
1249
|
+
explorer: "https://lineascan.build"
|
|
1146
1250
|
}
|
|
1147
1251
|
};
|
|
1148
1252
|
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/utils
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.3.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
|
|
@@ -1096,6 +1096,86 @@ var deployedContracts = [
|
|
|
1096
1096
|
startBlock: 126057798
|
|
1097
1097
|
}
|
|
1098
1098
|
]
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
network: "base-sepolia",
|
|
1102
|
+
contracts: [
|
|
1103
|
+
{
|
|
1104
|
+
name: "SemaphoreVerifier",
|
|
1105
|
+
address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
1106
|
+
startBlock: 16008294
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
name: "PoseidonT3",
|
|
1110
|
+
address: "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
1111
|
+
startBlock: 16008294
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
name: "Semaphore",
|
|
1115
|
+
address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
1116
|
+
startBlock: 16008294
|
|
1117
|
+
}
|
|
1118
|
+
]
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
network: "linea-sepolia",
|
|
1122
|
+
contracts: [
|
|
1123
|
+
{
|
|
1124
|
+
name: "SemaphoreVerifier",
|
|
1125
|
+
address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
1126
|
+
startBlock: 3928632
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
name: "PoseidonT3",
|
|
1130
|
+
address: "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
1131
|
+
startBlock: 3928632
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
name: "Semaphore",
|
|
1135
|
+
address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
1136
|
+
startBlock: 3928632
|
|
1137
|
+
}
|
|
1138
|
+
]
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
network: "base",
|
|
1142
|
+
contracts: [
|
|
1143
|
+
{
|
|
1144
|
+
name: "SemaphoreVerifier",
|
|
1145
|
+
address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
1146
|
+
startBlock: 20553357
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
name: "PoseidonT3",
|
|
1150
|
+
address: "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
1151
|
+
startBlock: 20553357
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
name: "Semaphore",
|
|
1155
|
+
address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
1156
|
+
startBlock: 20553357
|
|
1157
|
+
}
|
|
1158
|
+
]
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
network: "linea",
|
|
1162
|
+
contracts: [
|
|
1163
|
+
{
|
|
1164
|
+
name: "SemaphoreVerifier",
|
|
1165
|
+
address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
1166
|
+
startBlock: 10235849
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
name: "PoseidonT3",
|
|
1170
|
+
address: "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
1171
|
+
startBlock: 10235849
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
name: "Semaphore",
|
|
1175
|
+
address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
1176
|
+
startBlock: 10235849
|
|
1177
|
+
}
|
|
1178
|
+
]
|
|
1099
1179
|
}
|
|
1100
1180
|
];
|
|
1101
1181
|
|
|
@@ -1141,6 +1221,30 @@ var supportedNetworks = {
|
|
|
1141
1221
|
url: "https://polygon-rpc.com",
|
|
1142
1222
|
chainId: 137,
|
|
1143
1223
|
explorer: "https://polygonscan.com"
|
|
1224
|
+
},
|
|
1225
|
+
"base-sepolia": {
|
|
1226
|
+
name: "Base Sepolia",
|
|
1227
|
+
url: "https://sepolia.base.org",
|
|
1228
|
+
chainId: 84532,
|
|
1229
|
+
explorer: "https://sepolia.basescan.org"
|
|
1230
|
+
},
|
|
1231
|
+
base: {
|
|
1232
|
+
name: "Base",
|
|
1233
|
+
url: "https://mainnet.base.org",
|
|
1234
|
+
chainId: 8453,
|
|
1235
|
+
explorer: "https://basescan.org"
|
|
1236
|
+
},
|
|
1237
|
+
"linea-sepolia": {
|
|
1238
|
+
name: "Linea Sepolia",
|
|
1239
|
+
url: "https://rpc.sepolia.linea.build",
|
|
1240
|
+
chainId: 59141,
|
|
1241
|
+
explorer: "https://sepolia.lineascan.build"
|
|
1242
|
+
},
|
|
1243
|
+
linea: {
|
|
1244
|
+
name: "Linea",
|
|
1245
|
+
url: "https://rpc.linea.build",
|
|
1246
|
+
chainId: 59144,
|
|
1247
|
+
explorer: "https://lineascan.build"
|
|
1144
1248
|
}
|
|
1145
1249
|
};
|
|
1146
1250
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/utils
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.3.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
|
|
@@ -148,6 +148,86 @@ var deployedContracts = [
|
|
|
148
148
|
startBlock: 126057798
|
|
149
149
|
}
|
|
150
150
|
]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
network: "base-sepolia",
|
|
154
|
+
contracts: [
|
|
155
|
+
{
|
|
156
|
+
name: "SemaphoreVerifier",
|
|
157
|
+
address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
158
|
+
startBlock: 16008294
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: "PoseidonT3",
|
|
162
|
+
address: "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
163
|
+
startBlock: 16008294
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: "Semaphore",
|
|
167
|
+
address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
168
|
+
startBlock: 16008294
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
network: "linea-sepolia",
|
|
174
|
+
contracts: [
|
|
175
|
+
{
|
|
176
|
+
name: "SemaphoreVerifier",
|
|
177
|
+
address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
178
|
+
startBlock: 3928632
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: "PoseidonT3",
|
|
182
|
+
address: "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
183
|
+
startBlock: 3928632
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
name: "Semaphore",
|
|
187
|
+
address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
188
|
+
startBlock: 3928632
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
network: "base",
|
|
194
|
+
contracts: [
|
|
195
|
+
{
|
|
196
|
+
name: "SemaphoreVerifier",
|
|
197
|
+
address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
198
|
+
startBlock: 20553357
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
name: "PoseidonT3",
|
|
202
|
+
address: "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
203
|
+
startBlock: 20553357
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
name: "Semaphore",
|
|
207
|
+
address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
208
|
+
startBlock: 20553357
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
network: "linea",
|
|
214
|
+
contracts: [
|
|
215
|
+
{
|
|
216
|
+
name: "SemaphoreVerifier",
|
|
217
|
+
address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
218
|
+
startBlock: 10235849
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
name: "PoseidonT3",
|
|
222
|
+
address: "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
223
|
+
startBlock: 10235849
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
name: "Semaphore",
|
|
227
|
+
address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
228
|
+
startBlock: 10235849
|
|
229
|
+
}
|
|
230
|
+
]
|
|
151
231
|
}
|
|
152
232
|
];
|
|
153
233
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/utils
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.3.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
|
|
@@ -50,6 +50,30 @@ var supportedNetworks = {
|
|
|
50
50
|
url: "https://polygon-rpc.com",
|
|
51
51
|
chainId: 137,
|
|
52
52
|
explorer: "https://polygonscan.com"
|
|
53
|
+
},
|
|
54
|
+
"base-sepolia": {
|
|
55
|
+
name: "Base Sepolia",
|
|
56
|
+
url: "https://sepolia.base.org",
|
|
57
|
+
chainId: 84532,
|
|
58
|
+
explorer: "https://sepolia.basescan.org"
|
|
59
|
+
},
|
|
60
|
+
base: {
|
|
61
|
+
name: "Base",
|
|
62
|
+
url: "https://mainnet.base.org",
|
|
63
|
+
chainId: 8453,
|
|
64
|
+
explorer: "https://basescan.org"
|
|
65
|
+
},
|
|
66
|
+
"linea-sepolia": {
|
|
67
|
+
name: "Linea Sepolia",
|
|
68
|
+
url: "https://rpc.sepolia.linea.build",
|
|
69
|
+
chainId: 59141,
|
|
70
|
+
explorer: "https://sepolia.lineascan.build"
|
|
71
|
+
},
|
|
72
|
+
linea: {
|
|
73
|
+
name: "Linea",
|
|
74
|
+
url: "https://rpc.linea.build",
|
|
75
|
+
chainId: 59144,
|
|
76
|
+
explorer: "https://lineascan.build"
|
|
53
77
|
}
|
|
54
78
|
};
|
|
55
79
|
|
package/dist/lib.esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/utils
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.3.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
|
|
@@ -146,6 +146,86 @@ var deployedContracts = [
|
|
|
146
146
|
startBlock: 126057798
|
|
147
147
|
}
|
|
148
148
|
]
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
network: "base-sepolia",
|
|
152
|
+
contracts: [
|
|
153
|
+
{
|
|
154
|
+
name: "SemaphoreVerifier",
|
|
155
|
+
address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
156
|
+
startBlock: 16008294
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: "PoseidonT3",
|
|
160
|
+
address: "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
161
|
+
startBlock: 16008294
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: "Semaphore",
|
|
165
|
+
address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
166
|
+
startBlock: 16008294
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
network: "linea-sepolia",
|
|
172
|
+
contracts: [
|
|
173
|
+
{
|
|
174
|
+
name: "SemaphoreVerifier",
|
|
175
|
+
address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
176
|
+
startBlock: 3928632
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: "PoseidonT3",
|
|
180
|
+
address: "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
181
|
+
startBlock: 3928632
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: "Semaphore",
|
|
185
|
+
address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
186
|
+
startBlock: 3928632
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
network: "base",
|
|
192
|
+
contracts: [
|
|
193
|
+
{
|
|
194
|
+
name: "SemaphoreVerifier",
|
|
195
|
+
address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
196
|
+
startBlock: 20553357
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
name: "PoseidonT3",
|
|
200
|
+
address: "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
201
|
+
startBlock: 20553357
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
name: "Semaphore",
|
|
205
|
+
address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
206
|
+
startBlock: 20553357
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
network: "linea",
|
|
212
|
+
contracts: [
|
|
213
|
+
{
|
|
214
|
+
name: "SemaphoreVerifier",
|
|
215
|
+
address: "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
216
|
+
startBlock: 10235849
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
name: "PoseidonT3",
|
|
220
|
+
address: "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
221
|
+
startBlock: 10235849
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
name: "Semaphore",
|
|
225
|
+
address: "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
226
|
+
startBlock: 10235849
|
|
227
|
+
}
|
|
228
|
+
]
|
|
149
229
|
}
|
|
150
230
|
];
|
|
151
231
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/utils
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.3.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
|
|
@@ -48,6 +48,30 @@ var supportedNetworks = {
|
|
|
48
48
|
url: "https://polygon-rpc.com",
|
|
49
49
|
chainId: 137,
|
|
50
50
|
explorer: "https://polygonscan.com"
|
|
51
|
+
},
|
|
52
|
+
"base-sepolia": {
|
|
53
|
+
name: "Base Sepolia",
|
|
54
|
+
url: "https://sepolia.base.org",
|
|
55
|
+
chainId: 84532,
|
|
56
|
+
explorer: "https://sepolia.basescan.org"
|
|
57
|
+
},
|
|
58
|
+
base: {
|
|
59
|
+
name: "Base",
|
|
60
|
+
url: "https://mainnet.base.org",
|
|
61
|
+
chainId: 8453,
|
|
62
|
+
explorer: "https://basescan.org"
|
|
63
|
+
},
|
|
64
|
+
"linea-sepolia": {
|
|
65
|
+
name: "Linea Sepolia",
|
|
66
|
+
url: "https://rpc.sepolia.linea.build",
|
|
67
|
+
chainId: 59141,
|
|
68
|
+
explorer: "https://sepolia.lineascan.build"
|
|
69
|
+
},
|
|
70
|
+
linea: {
|
|
71
|
+
name: "Linea",
|
|
72
|
+
url: "https://rpc.linea.build",
|
|
73
|
+
chainId: 59144,
|
|
74
|
+
explorer: "https://lineascan.build"
|
|
51
75
|
}
|
|
52
76
|
};
|
|
53
77
|
|
|
@@ -41,5 +41,29 @@ declare const _default: {
|
|
|
41
41
|
chainId: number;
|
|
42
42
|
explorer: string;
|
|
43
43
|
};
|
|
44
|
+
"base-sepolia": {
|
|
45
|
+
name: string;
|
|
46
|
+
url: string;
|
|
47
|
+
chainId: number;
|
|
48
|
+
explorer: string;
|
|
49
|
+
};
|
|
50
|
+
base: {
|
|
51
|
+
name: string;
|
|
52
|
+
url: string;
|
|
53
|
+
chainId: number;
|
|
54
|
+
explorer: string;
|
|
55
|
+
};
|
|
56
|
+
"linea-sepolia": {
|
|
57
|
+
name: string;
|
|
58
|
+
url: string;
|
|
59
|
+
chainId: number;
|
|
60
|
+
explorer: string;
|
|
61
|
+
};
|
|
62
|
+
linea: {
|
|
63
|
+
name: string;
|
|
64
|
+
url: string;
|
|
65
|
+
chainId: number;
|
|
66
|
+
explorer: string;
|
|
67
|
+
};
|
|
44
68
|
};
|
|
45
69
|
export default _default;
|
package/package.json
CHANGED
|
@@ -138,5 +138,85 @@
|
|
|
138
138
|
"startBlock": 126057798
|
|
139
139
|
}
|
|
140
140
|
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"network": "base-sepolia",
|
|
144
|
+
"contracts": [
|
|
145
|
+
{
|
|
146
|
+
"name": "SemaphoreVerifier",
|
|
147
|
+
"address": "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
148
|
+
"startBlock": 16008294
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "PoseidonT3",
|
|
152
|
+
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
153
|
+
"startBlock": 16008294
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "Semaphore",
|
|
157
|
+
"address": "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
158
|
+
"startBlock": 16008294
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"network": "linea-sepolia",
|
|
164
|
+
"contracts": [
|
|
165
|
+
{
|
|
166
|
+
"name": "SemaphoreVerifier",
|
|
167
|
+
"address": "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
168
|
+
"startBlock": 3928632
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "PoseidonT3",
|
|
172
|
+
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
173
|
+
"startBlock": 3928632
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "Semaphore",
|
|
177
|
+
"address": "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
178
|
+
"startBlock": 3928632
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"network": "base",
|
|
184
|
+
"contracts": [
|
|
185
|
+
{
|
|
186
|
+
"name": "SemaphoreVerifier",
|
|
187
|
+
"address": "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
188
|
+
"startBlock": 20553357
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "PoseidonT3",
|
|
192
|
+
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
193
|
+
"startBlock": 20553357
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "Semaphore",
|
|
197
|
+
"address": "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
198
|
+
"startBlock": 20553357
|
|
199
|
+
}
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"network": "linea",
|
|
204
|
+
"contracts": [
|
|
205
|
+
{
|
|
206
|
+
"name": "SemaphoreVerifier",
|
|
207
|
+
"address": "0xe538f9DeeE04A397decb1E7dc5D16fD6f123c043",
|
|
208
|
+
"startBlock": 10235849
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "PoseidonT3",
|
|
212
|
+
"address": "0xB43122Ecb241DD50062641f089876679fd06599a",
|
|
213
|
+
"startBlock": 10235849
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "Semaphore",
|
|
217
|
+
"address": "0x1e0d7FF1610e480fC93BdEC510811ea2Ba6d7c2f",
|
|
218
|
+
"startBlock": 10235849
|
|
219
|
+
}
|
|
220
|
+
]
|
|
141
221
|
}
|
|
142
222
|
]
|
|
@@ -40,5 +40,29 @@ export default {
|
|
|
40
40
|
url: "https://polygon-rpc.com",
|
|
41
41
|
chainId: 137,
|
|
42
42
|
explorer: "https://polygonscan.com"
|
|
43
|
+
},
|
|
44
|
+
"base-sepolia": {
|
|
45
|
+
name: "Base Sepolia",
|
|
46
|
+
url: "https://sepolia.base.org",
|
|
47
|
+
chainId: 84532,
|
|
48
|
+
explorer: "https://sepolia.basescan.org"
|
|
49
|
+
},
|
|
50
|
+
base: {
|
|
51
|
+
name: "Base",
|
|
52
|
+
url: "https://mainnet.base.org",
|
|
53
|
+
chainId: 8453,
|
|
54
|
+
explorer: "https://basescan.org"
|
|
55
|
+
},
|
|
56
|
+
"linea-sepolia": {
|
|
57
|
+
name: "Linea Sepolia",
|
|
58
|
+
url: "https://rpc.sepolia.linea.build",
|
|
59
|
+
chainId: 59141,
|
|
60
|
+
explorer: "https://sepolia.lineascan.build"
|
|
61
|
+
},
|
|
62
|
+
linea: {
|
|
63
|
+
name: "Linea",
|
|
64
|
+
url: "https://rpc.linea.build",
|
|
65
|
+
chainId: 59144,
|
|
66
|
+
explorer: "https://lineascan.build"
|
|
43
67
|
}
|
|
44
68
|
}
|