@semaphore-protocol/utils 4.1.0 → 4.2.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 +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.2.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,46 @@ 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
|
+
]
|
|
1101
1141
|
}
|
|
1102
1142
|
];
|
|
1103
1143
|
|
|
@@ -1143,6 +1183,18 @@ var supportedNetworks = {
|
|
|
1143
1183
|
url: "https://polygon-rpc.com",
|
|
1144
1184
|
chainId: 137,
|
|
1145
1185
|
explorer: "https://polygonscan.com"
|
|
1186
|
+
},
|
|
1187
|
+
"base-sepolia": {
|
|
1188
|
+
name: "Base Sepolia",
|
|
1189
|
+
url: "https://sepolia.base.org",
|
|
1190
|
+
chainId: 84532,
|
|
1191
|
+
explorer: "https://sepolia.basescan.org"
|
|
1192
|
+
},
|
|
1193
|
+
"linea-sepolia": {
|
|
1194
|
+
name: "Linea Sepolia",
|
|
1195
|
+
url: "https://rpc.sepolia.linea.build",
|
|
1196
|
+
chainId: 59141,
|
|
1197
|
+
explorer: "https://sepolia.lineascan.build"
|
|
1146
1198
|
}
|
|
1147
1199
|
};
|
|
1148
1200
|
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/utils
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.2.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,46 @@ 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
|
+
]
|
|
1099
1139
|
}
|
|
1100
1140
|
];
|
|
1101
1141
|
|
|
@@ -1141,6 +1181,18 @@ var supportedNetworks = {
|
|
|
1141
1181
|
url: "https://polygon-rpc.com",
|
|
1142
1182
|
chainId: 137,
|
|
1143
1183
|
explorer: "https://polygonscan.com"
|
|
1184
|
+
},
|
|
1185
|
+
"base-sepolia": {
|
|
1186
|
+
name: "Base Sepolia",
|
|
1187
|
+
url: "https://sepolia.base.org",
|
|
1188
|
+
chainId: 84532,
|
|
1189
|
+
explorer: "https://sepolia.basescan.org"
|
|
1190
|
+
},
|
|
1191
|
+
"linea-sepolia": {
|
|
1192
|
+
name: "Linea Sepolia",
|
|
1193
|
+
url: "https://rpc.sepolia.linea.build",
|
|
1194
|
+
chainId: 59141,
|
|
1195
|
+
explorer: "https://sepolia.lineascan.build"
|
|
1144
1196
|
}
|
|
1145
1197
|
};
|
|
1146
1198
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/utils
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.2.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,46 @@ 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
|
+
]
|
|
151
191
|
}
|
|
152
192
|
];
|
|
153
193
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/utils
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.2.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,18 @@ 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
|
+
"linea-sepolia": {
|
|
61
|
+
name: "Linea Sepolia",
|
|
62
|
+
url: "https://rpc.sepolia.linea.build",
|
|
63
|
+
chainId: 59141,
|
|
64
|
+
explorer: "https://sepolia.lineascan.build"
|
|
53
65
|
}
|
|
54
66
|
};
|
|
55
67
|
|
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.2.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,46 @@ 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
|
+
]
|
|
149
189
|
}
|
|
150
190
|
];
|
|
151
191
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/utils
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.2.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,18 @@ 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
|
+
"linea-sepolia": {
|
|
59
|
+
name: "Linea Sepolia",
|
|
60
|
+
url: "https://rpc.sepolia.linea.build",
|
|
61
|
+
chainId: 59141,
|
|
62
|
+
explorer: "https://sepolia.lineascan.build"
|
|
51
63
|
}
|
|
52
64
|
};
|
|
53
65
|
|
|
@@ -41,5 +41,17 @@ 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
|
+
"linea-sepolia": {
|
|
51
|
+
name: string;
|
|
52
|
+
url: string;
|
|
53
|
+
chainId: number;
|
|
54
|
+
explorer: string;
|
|
55
|
+
};
|
|
44
56
|
};
|
|
45
57
|
export default _default;
|
package/package.json
CHANGED
|
@@ -138,5 +138,45 @@
|
|
|
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
|
+
]
|
|
141
181
|
}
|
|
142
182
|
]
|
|
@@ -40,5 +40,17 @@ 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
|
+
"linea-sepolia": {
|
|
51
|
+
name: "Linea Sepolia",
|
|
52
|
+
url: "https://rpc.sepolia.linea.build",
|
|
53
|
+
chainId: 59141,
|
|
54
|
+
explorer: "https://sepolia.lineascan.build"
|
|
43
55
|
}
|
|
44
56
|
}
|