@semaphore-protocol/utils 4.2.0 → 4.3.1
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 +53 -1
- package/dist/index.js +53 -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 +41 -1
- package/dist/lib.commonjs/networks/index.cjs +1 -1
- package/dist/lib.commonjs/networks/supported-networks.cjs +13 -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 +41 -1
- package/dist/lib.esm/networks/index.js +1 -1
- package/dist/lib.esm/networks/supported-networks.js +13 -1
- package/dist/lib.esm/semaphore-interface.json.js +1 -1
- package/dist/types/networks/supported-networks.d.ts +12 -0
- package/package.json +1 -1
- package/src/networks/deployed-contracts.json +40 -0
- package/src/networks/supported-networks.ts +12 -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.1
|
|
4
4
|
* @file A library to provide utility functions to the other Semaphore packages.
|
|
5
5
|
* @copyright Ethereum Foundation 2024
|
|
6
6
|
* @license MIT
|
|
@@ -1138,6 +1138,46 @@ var deployedContracts = [
|
|
|
1138
1138
|
startBlock: 3928632
|
|
1139
1139
|
}
|
|
1140
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
|
+
]
|
|
1141
1181
|
}
|
|
1142
1182
|
];
|
|
1143
1183
|
|
|
@@ -1190,11 +1230,23 @@ var supportedNetworks = {
|
|
|
1190
1230
|
chainId: 84532,
|
|
1191
1231
|
explorer: "https://sepolia.basescan.org"
|
|
1192
1232
|
},
|
|
1233
|
+
base: {
|
|
1234
|
+
name: "Base",
|
|
1235
|
+
url: "https://mainnet.base.org",
|
|
1236
|
+
chainId: 8453,
|
|
1237
|
+
explorer: "https://basescan.org"
|
|
1238
|
+
},
|
|
1193
1239
|
"linea-sepolia": {
|
|
1194
1240
|
name: "Linea Sepolia",
|
|
1195
1241
|
url: "https://rpc.sepolia.linea.build",
|
|
1196
1242
|
chainId: 59141,
|
|
1197
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"
|
|
1198
1250
|
}
|
|
1199
1251
|
};
|
|
1200
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.1
|
|
4
4
|
* @file A library to provide utility functions to the other Semaphore packages.
|
|
5
5
|
* @copyright Ethereum Foundation 2024
|
|
6
6
|
* @license MIT
|
|
@@ -1136,6 +1136,46 @@ var deployedContracts = [
|
|
|
1136
1136
|
startBlock: 3928632
|
|
1137
1137
|
}
|
|
1138
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
|
+
]
|
|
1139
1179
|
}
|
|
1140
1180
|
];
|
|
1141
1181
|
|
|
@@ -1188,11 +1228,23 @@ var supportedNetworks = {
|
|
|
1188
1228
|
chainId: 84532,
|
|
1189
1229
|
explorer: "https://sepolia.basescan.org"
|
|
1190
1230
|
},
|
|
1231
|
+
base: {
|
|
1232
|
+
name: "Base",
|
|
1233
|
+
url: "https://mainnet.base.org",
|
|
1234
|
+
chainId: 8453,
|
|
1235
|
+
explorer: "https://basescan.org"
|
|
1236
|
+
},
|
|
1191
1237
|
"linea-sepolia": {
|
|
1192
1238
|
name: "Linea Sepolia",
|
|
1193
1239
|
url: "https://rpc.sepolia.linea.build",
|
|
1194
1240
|
chainId: 59141,
|
|
1195
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"
|
|
1196
1248
|
}
|
|
1197
1249
|
};
|
|
1198
1250
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/utils
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.3.1
|
|
4
4
|
* @file A library to provide utility functions to the other Semaphore packages.
|
|
5
5
|
* @copyright Ethereum Foundation 2024
|
|
6
6
|
* @license MIT
|
|
@@ -188,6 +188,46 @@ var deployedContracts = [
|
|
|
188
188
|
startBlock: 3928632
|
|
189
189
|
}
|
|
190
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
|
+
]
|
|
191
231
|
}
|
|
192
232
|
];
|
|
193
233
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/utils
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.3.1
|
|
4
4
|
* @file A library to provide utility functions to the other Semaphore packages.
|
|
5
5
|
* @copyright Ethereum Foundation 2024
|
|
6
6
|
* @license MIT
|
|
@@ -57,11 +57,23 @@ var supportedNetworks = {
|
|
|
57
57
|
chainId: 84532,
|
|
58
58
|
explorer: "https://sepolia.basescan.org"
|
|
59
59
|
},
|
|
60
|
+
base: {
|
|
61
|
+
name: "Base",
|
|
62
|
+
url: "https://mainnet.base.org",
|
|
63
|
+
chainId: 8453,
|
|
64
|
+
explorer: "https://basescan.org"
|
|
65
|
+
},
|
|
60
66
|
"linea-sepolia": {
|
|
61
67
|
name: "Linea Sepolia",
|
|
62
68
|
url: "https://rpc.sepolia.linea.build",
|
|
63
69
|
chainId: 59141,
|
|
64
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"
|
|
65
77
|
}
|
|
66
78
|
};
|
|
67
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.1
|
|
4
4
|
* @file A library to provide utility functions to the other Semaphore packages.
|
|
5
5
|
* @copyright Ethereum Foundation 2024
|
|
6
6
|
* @license MIT
|
|
@@ -186,6 +186,46 @@ var deployedContracts = [
|
|
|
186
186
|
startBlock: 3928632
|
|
187
187
|
}
|
|
188
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
|
+
]
|
|
189
229
|
}
|
|
190
230
|
];
|
|
191
231
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/utils
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.3.1
|
|
4
4
|
* @file A library to provide utility functions to the other Semaphore packages.
|
|
5
5
|
* @copyright Ethereum Foundation 2024
|
|
6
6
|
* @license MIT
|
|
@@ -55,11 +55,23 @@ var supportedNetworks = {
|
|
|
55
55
|
chainId: 84532,
|
|
56
56
|
explorer: "https://sepolia.basescan.org"
|
|
57
57
|
},
|
|
58
|
+
base: {
|
|
59
|
+
name: "Base",
|
|
60
|
+
url: "https://mainnet.base.org",
|
|
61
|
+
chainId: 8453,
|
|
62
|
+
explorer: "https://basescan.org"
|
|
63
|
+
},
|
|
58
64
|
"linea-sepolia": {
|
|
59
65
|
name: "Linea Sepolia",
|
|
60
66
|
url: "https://rpc.sepolia.linea.build",
|
|
61
67
|
chainId: 59141,
|
|
62
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"
|
|
63
75
|
}
|
|
64
76
|
};
|
|
65
77
|
|
|
@@ -47,11 +47,23 @@ declare const _default: {
|
|
|
47
47
|
chainId: number;
|
|
48
48
|
explorer: string;
|
|
49
49
|
};
|
|
50
|
+
base: {
|
|
51
|
+
name: string;
|
|
52
|
+
url: string;
|
|
53
|
+
chainId: number;
|
|
54
|
+
explorer: string;
|
|
55
|
+
};
|
|
50
56
|
"linea-sepolia": {
|
|
51
57
|
name: string;
|
|
52
58
|
url: string;
|
|
53
59
|
chainId: number;
|
|
54
60
|
explorer: string;
|
|
55
61
|
};
|
|
62
|
+
linea: {
|
|
63
|
+
name: string;
|
|
64
|
+
url: string;
|
|
65
|
+
chainId: number;
|
|
66
|
+
explorer: string;
|
|
67
|
+
};
|
|
56
68
|
};
|
|
57
69
|
export default _default;
|
package/package.json
CHANGED
|
@@ -178,5 +178,45 @@
|
|
|
178
178
|
"startBlock": 3928632
|
|
179
179
|
}
|
|
180
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
|
+
]
|
|
181
221
|
}
|
|
182
222
|
]
|
|
@@ -47,10 +47,22 @@ export default {
|
|
|
47
47
|
chainId: 84532,
|
|
48
48
|
explorer: "https://sepolia.basescan.org"
|
|
49
49
|
},
|
|
50
|
+
base: {
|
|
51
|
+
name: "Base",
|
|
52
|
+
url: "https://mainnet.base.org",
|
|
53
|
+
chainId: 8453,
|
|
54
|
+
explorer: "https://basescan.org"
|
|
55
|
+
},
|
|
50
56
|
"linea-sepolia": {
|
|
51
57
|
name: "Linea Sepolia",
|
|
52
58
|
url: "https://rpc.sepolia.linea.build",
|
|
53
59
|
chainId: 59141,
|
|
54
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"
|
|
55
67
|
}
|
|
56
68
|
}
|