@rhinestone/shared-configs 2.14.0 → 2.15.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/configs/chain-indexer.json +22 -22
- package/dist/configs/chains.json +25 -2
- package/dist/scripts/__tests__/validation.test.js +1 -0
- package/dist/src/__tests__/paymentTokens.test.js +10 -4
- package/dist/src/chains.js +25 -2
- package/dist/src/generated/packageVersion.d.ts +1 -1
- package/dist/src/generated/packageVersion.js +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"reorg_window_k": 32,
|
|
11
11
|
"reverify_delay_ms": 500,
|
|
12
12
|
"scan_batch_max_blocks": 200,
|
|
13
|
-
"streaming_poll_interval_ms":
|
|
13
|
+
"streaming_poll_interval_ms": 36000
|
|
14
14
|
},
|
|
15
15
|
"10": {
|
|
16
16
|
"finality": "sequencer",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"reorg_window_k": 16,
|
|
24
24
|
"reverify_delay_ms": 500,
|
|
25
25
|
"scan_batch_max_blocks": 200,
|
|
26
|
-
"streaming_poll_interval_ms":
|
|
26
|
+
"streaming_poll_interval_ms": 6000
|
|
27
27
|
},
|
|
28
28
|
"56": {
|
|
29
29
|
"finality": "probabilistic",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"reorg_window_k": 32,
|
|
37
37
|
"reverify_delay_ms": 500,
|
|
38
38
|
"scan_batch_max_blocks": 200,
|
|
39
|
-
"streaming_poll_interval_ms":
|
|
39
|
+
"streaming_poll_interval_ms": 3000
|
|
40
40
|
},
|
|
41
41
|
"100": {
|
|
42
42
|
"finality": "probabilistic",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"reorg_window_k": 16,
|
|
63
63
|
"reverify_delay_ms": 500,
|
|
64
64
|
"scan_batch_max_blocks": 200,
|
|
65
|
-
"streaming_poll_interval_ms":
|
|
65
|
+
"streaming_poll_interval_ms": 3000
|
|
66
66
|
},
|
|
67
67
|
"137": {
|
|
68
68
|
"finality": "probabilistic",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"reorg_window_k": 64,
|
|
76
76
|
"reverify_delay_ms": 500,
|
|
77
77
|
"scan_batch_max_blocks": 200,
|
|
78
|
-
"streaming_poll_interval_ms":
|
|
78
|
+
"streaming_poll_interval_ms": 4500
|
|
79
79
|
},
|
|
80
80
|
"143": {
|
|
81
81
|
"finality": "instant",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"reorg_window_k": 4,
|
|
89
89
|
"reverify_delay_ms": 0,
|
|
90
90
|
"scan_batch_max_blocks": 200,
|
|
91
|
-
"streaming_poll_interval_ms":
|
|
91
|
+
"streaming_poll_interval_ms": 3000
|
|
92
92
|
},
|
|
93
93
|
"146": {
|
|
94
94
|
"finality": "instant",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"reorg_window_k": 4,
|
|
102
102
|
"reverify_delay_ms": 0,
|
|
103
103
|
"scan_batch_max_blocks": 200,
|
|
104
|
-
"streaming_poll_interval_ms":
|
|
104
|
+
"streaming_poll_interval_ms": 4500
|
|
105
105
|
},
|
|
106
106
|
"196": {
|
|
107
107
|
"finality": "sequencer",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"reorg_window_k": 16,
|
|
115
115
|
"reverify_delay_ms": 500,
|
|
116
116
|
"scan_batch_max_blocks": 200,
|
|
117
|
-
"streaming_poll_interval_ms":
|
|
117
|
+
"streaming_poll_interval_ms": 3000
|
|
118
118
|
},
|
|
119
119
|
"999": {
|
|
120
120
|
"finality": "instant",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"reorg_window_k": 4,
|
|
128
128
|
"reverify_delay_ms": 0,
|
|
129
129
|
"scan_batch_max_blocks": 200,
|
|
130
|
-
"streaming_poll_interval_ms":
|
|
130
|
+
"streaming_poll_interval_ms": 3000
|
|
131
131
|
},
|
|
132
132
|
"1868": {
|
|
133
133
|
"finality": "sequencer",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"reorg_window_k": 16,
|
|
141
141
|
"reverify_delay_ms": 500,
|
|
142
142
|
"scan_batch_max_blocks": 200,
|
|
143
|
-
"streaming_poll_interval_ms":
|
|
143
|
+
"streaming_poll_interval_ms": 6000
|
|
144
144
|
},
|
|
145
145
|
"4663": {
|
|
146
146
|
"finality": "sequencer",
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"reorg_window_k": 16,
|
|
154
154
|
"reverify_delay_ms": 500,
|
|
155
155
|
"scan_batch_max_blocks": 200,
|
|
156
|
-
"streaming_poll_interval_ms":
|
|
156
|
+
"streaming_poll_interval_ms": 3000
|
|
157
157
|
},
|
|
158
158
|
"8453": {
|
|
159
159
|
"finality": "sequencer",
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"reorg_window_k": 16,
|
|
167
167
|
"reverify_delay_ms": 500,
|
|
168
168
|
"scan_batch_max_blocks": 200,
|
|
169
|
-
"streaming_poll_interval_ms":
|
|
169
|
+
"streaming_poll_interval_ms": 6000
|
|
170
170
|
},
|
|
171
171
|
"9745": {
|
|
172
172
|
"finality": "instant",
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
"reorg_window_k": 4,
|
|
180
180
|
"reverify_delay_ms": 0,
|
|
181
181
|
"scan_batch_max_blocks": 200,
|
|
182
|
-
"streaming_poll_interval_ms":
|
|
182
|
+
"streaming_poll_interval_ms": 3000
|
|
183
183
|
},
|
|
184
184
|
"9746": {
|
|
185
185
|
"finality": "instant",
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
"reorg_window_k": 4,
|
|
193
193
|
"reverify_delay_ms": 0,
|
|
194
194
|
"scan_batch_max_blocks": 200,
|
|
195
|
-
"streaming_poll_interval_ms":
|
|
195
|
+
"streaming_poll_interval_ms": 3000
|
|
196
196
|
},
|
|
197
197
|
"42161": {
|
|
198
198
|
"finality": "sequencer",
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
"reorg_window_k": 16,
|
|
206
206
|
"reverify_delay_ms": 500,
|
|
207
207
|
"scan_batch_max_blocks": 200,
|
|
208
|
-
"streaming_poll_interval_ms":
|
|
208
|
+
"streaming_poll_interval_ms": 3000
|
|
209
209
|
},
|
|
210
210
|
"43114": {
|
|
211
211
|
"finality": "instant",
|
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
"reorg_window_k": 4,
|
|
219
219
|
"reverify_delay_ms": 0,
|
|
220
220
|
"scan_batch_max_blocks": 200,
|
|
221
|
-
"streaming_poll_interval_ms":
|
|
221
|
+
"streaming_poll_interval_ms": 3000
|
|
222
222
|
},
|
|
223
223
|
"57073": {
|
|
224
224
|
"finality": "sequencer",
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
"reorg_window_k": 16,
|
|
232
232
|
"reverify_delay_ms": 500,
|
|
233
233
|
"scan_batch_max_blocks": 200,
|
|
234
|
-
"streaming_poll_interval_ms":
|
|
234
|
+
"streaming_poll_interval_ms": 3000
|
|
235
235
|
},
|
|
236
236
|
"84532": {
|
|
237
237
|
"finality": "sequencer",
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
"reorg_window_k": 8,
|
|
245
245
|
"reverify_delay_ms": 500,
|
|
246
246
|
"scan_batch_max_blocks": 200,
|
|
247
|
-
"streaming_poll_interval_ms":
|
|
247
|
+
"streaming_poll_interval_ms": 6000
|
|
248
248
|
},
|
|
249
249
|
"421614": {
|
|
250
250
|
"finality": "sequencer",
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
"reorg_window_k": 8,
|
|
258
258
|
"reverify_delay_ms": 500,
|
|
259
259
|
"scan_batch_max_blocks": 200,
|
|
260
|
-
"streaming_poll_interval_ms":
|
|
260
|
+
"streaming_poll_interval_ms": 3000
|
|
261
261
|
},
|
|
262
262
|
"747474": {
|
|
263
263
|
"finality": "sequencer",
|
|
@@ -270,7 +270,7 @@
|
|
|
270
270
|
"reorg_window_k": 16,
|
|
271
271
|
"reverify_delay_ms": 500,
|
|
272
272
|
"scan_batch_max_blocks": 200,
|
|
273
|
-
"streaming_poll_interval_ms":
|
|
273
|
+
"streaming_poll_interval_ms": 3000
|
|
274
274
|
},
|
|
275
275
|
"11155111": {
|
|
276
276
|
"finality": "probabilistic",
|
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
"reorg_window_k": 32,
|
|
284
284
|
"reverify_delay_ms": 500,
|
|
285
285
|
"scan_batch_max_blocks": 200,
|
|
286
|
-
"streaming_poll_interval_ms":
|
|
286
|
+
"streaming_poll_interval_ms": 36000
|
|
287
287
|
},
|
|
288
288
|
"11155420": {
|
|
289
289
|
"finality": "sequencer",
|
|
@@ -296,6 +296,6 @@
|
|
|
296
296
|
"reorg_window_k": 8,
|
|
297
297
|
"reverify_delay_ms": 500,
|
|
298
298
|
"scan_batch_max_blocks": 200,
|
|
299
|
-
"streaming_poll_interval_ms":
|
|
299
|
+
"streaming_poll_interval_ms": 6000
|
|
300
300
|
}
|
|
301
301
|
}
|
package/dist/configs/chains.json
CHANGED
|
@@ -1089,7 +1089,7 @@
|
|
|
1089
1089
|
"network": "mainnet",
|
|
1090
1090
|
"providerIds": {
|
|
1091
1091
|
"alchemy": null,
|
|
1092
|
-
"zerion":
|
|
1092
|
+
"zerion": "okbchain"
|
|
1093
1093
|
},
|
|
1094
1094
|
"publicRpcUrl": "https://xlayerrpc.okx.com",
|
|
1095
1095
|
"sessionCapable": true,
|
|
@@ -2874,7 +2874,6 @@
|
|
|
2874
2874
|
},
|
|
2875
2875
|
{
|
|
2876
2876
|
"address": "0x768F42455A2D082E23ceeF7d51e5787C82d67a39",
|
|
2877
|
-
"appFee": true,
|
|
2878
2877
|
"approvalSlot": 1,
|
|
2879
2878
|
"authorization": {
|
|
2880
2879
|
"domain": {
|
|
@@ -2896,6 +2895,30 @@
|
|
|
2896
2895
|
"priceSymbol": "USDC",
|
|
2897
2896
|
"symbol": "ensUSDC",
|
|
2898
2897
|
"unpriced": true
|
|
2898
|
+
},
|
|
2899
|
+
{
|
|
2900
|
+
"address": "0xcBFD80F74375c54E545AF34788Ff465F96F66F05",
|
|
2901
|
+
"approvalSlot": 1,
|
|
2902
|
+
"authorization": {
|
|
2903
|
+
"domain": {
|
|
2904
|
+
"chainId": 11155111,
|
|
2905
|
+
"name": "USDC",
|
|
2906
|
+
"verifyingContract": "0xcBFD80F74375c54E545AF34788Ff465F96F66F05",
|
|
2907
|
+
"version": "1"
|
|
2908
|
+
},
|
|
2909
|
+
"domainSeparator": "0x9ca6558c61a10bb82489cb06bbc485dfec461002acea9ee2e44a31fa9e4a3578",
|
|
2910
|
+
"eoaOnly": true,
|
|
2911
|
+
"standards": [
|
|
2912
|
+
"erc2612"
|
|
2913
|
+
]
|
|
2914
|
+
},
|
|
2915
|
+
"balanceSlot": 0,
|
|
2916
|
+
"decimals": 6,
|
|
2917
|
+
"gasRefund": true,
|
|
2918
|
+
"pegGroup": "USD",
|
|
2919
|
+
"priceSymbol": "USDC",
|
|
2920
|
+
"symbol": "ensUSDC2",
|
|
2921
|
+
"unpriced": true
|
|
2899
2922
|
}
|
|
2900
2923
|
],
|
|
2901
2924
|
"vmType": "evm",
|
|
@@ -94,6 +94,7 @@ function errorsFor(chain) {
|
|
|
94
94
|
["747474:0xee7d8bcfb72bc1880d0cf19822eb0a2e6577ab62", permitOnly],
|
|
95
95
|
["11155111:0x1c7d4b196cb0c7b01d743fbc6116a902379c7238", both],
|
|
96
96
|
["11155111:0x768f42455a2d082e23ceef7d51e5787c82d67a39", permitOnly],
|
|
97
|
+
["11155111:0xcbfd80f74375c54e545af34788ff465f96f66f05", permitOnly],
|
|
97
98
|
["11155420:0x5fd84259d66cd46123540766be93dfe6d43130d7", both],
|
|
98
99
|
]);
|
|
99
100
|
const configured = new Map(Object.entries(index_1.chainRegistry).flatMap(([chainId, entry]) => entry.tokens.flatMap((token) => {
|
|
@@ -4,11 +4,17 @@ const bun_test_1 = require("bun:test");
|
|
|
4
4
|
const index_1 = require("../index");
|
|
5
5
|
const entries = Object.entries(index_1.chainRegistry);
|
|
6
6
|
/**
|
|
7
|
-
* `<chainId>:<symbol>` for a catalog token we have DECIDED not to accept
|
|
8
|
-
* payment.
|
|
9
|
-
*
|
|
7
|
+
* `<chainId>:<symbol>` for a catalog token we have DECIDED not to accept for
|
|
8
|
+
* every payment purpose. An entry here records a decision; it is not a backlog.
|
|
9
|
+
*
|
|
10
|
+
* The Sepolia ENS mocks carry `gasRefund` but deliberately not `appFee`: an
|
|
11
|
+
* app-fee carve credits a ledger that withdrawal pays out against in real
|
|
12
|
+
* stablecoin, and a freely-mintable mock must not be able to inflate it.
|
|
10
13
|
*/
|
|
11
|
-
const NOT_ACCEPTED_AS_PAYMENT = new Set(
|
|
14
|
+
const NOT_ACCEPTED_AS_PAYMENT = new Set([
|
|
15
|
+
"11155111:ensUSDC",
|
|
16
|
+
"11155111:ensUSDC2",
|
|
17
|
+
]);
|
|
12
18
|
(0, bun_test_1.describe)("payment-token eligibility", () => {
|
|
13
19
|
(0, bun_test_1.it)("is only ever present as `true`", () => {
|
|
14
20
|
// `false` and absent mean the same thing, so writing `false` would imply a
|
package/dist/src/chains.js
CHANGED
|
@@ -1125,7 +1125,7 @@ const chains = {
|
|
|
1125
1125
|
"network": "mainnet",
|
|
1126
1126
|
"providerIds": {
|
|
1127
1127
|
"alchemy": null,
|
|
1128
|
-
"zerion":
|
|
1128
|
+
"zerion": "okbchain"
|
|
1129
1129
|
},
|
|
1130
1130
|
"publicRpcUrl": "https://xlayerrpc.okx.com",
|
|
1131
1131
|
"sessionCapable": true,
|
|
@@ -2968,7 +2968,6 @@ const chains = {
|
|
|
2968
2968
|
},
|
|
2969
2969
|
{
|
|
2970
2970
|
"address": "0x768F42455A2D082E23ceeF7d51e5787C82d67a39",
|
|
2971
|
-
"appFee": true,
|
|
2972
2971
|
"approvalSlot": 1,
|
|
2973
2972
|
"authorization": {
|
|
2974
2973
|
"domain": {
|
|
@@ -2990,6 +2989,30 @@ const chains = {
|
|
|
2990
2989
|
"priceSymbol": "USDC",
|
|
2991
2990
|
"symbol": "ensUSDC",
|
|
2992
2991
|
"unpriced": true
|
|
2992
|
+
},
|
|
2993
|
+
{
|
|
2994
|
+
"address": "0xcBFD80F74375c54E545AF34788Ff465F96F66F05",
|
|
2995
|
+
"approvalSlot": 1,
|
|
2996
|
+
"authorization": {
|
|
2997
|
+
"domain": {
|
|
2998
|
+
"chainId": 11155111,
|
|
2999
|
+
"name": "USDC",
|
|
3000
|
+
"verifyingContract": "0xcBFD80F74375c54E545AF34788Ff465F96F66F05",
|
|
3001
|
+
"version": "1"
|
|
3002
|
+
},
|
|
3003
|
+
"domainSeparator": "0x9ca6558c61a10bb82489cb06bbc485dfec461002acea9ee2e44a31fa9e4a3578",
|
|
3004
|
+
"eoaOnly": true,
|
|
3005
|
+
"standards": [
|
|
3006
|
+
"erc2612"
|
|
3007
|
+
]
|
|
3008
|
+
},
|
|
3009
|
+
"balanceSlot": 0,
|
|
3010
|
+
"decimals": 6,
|
|
3011
|
+
"gasRefund": true,
|
|
3012
|
+
"pegGroup": "USD",
|
|
3013
|
+
"priceSymbol": "USDC",
|
|
3014
|
+
"symbol": "ensUSDC2",
|
|
3015
|
+
"unpriced": true
|
|
2993
3016
|
}
|
|
2994
3017
|
],
|
|
2995
3018
|
"vmType": "evm",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const PACKAGE_VERSION = "2.
|
|
1
|
+
declare const PACKAGE_VERSION = "2.15.1";
|
|
2
2
|
export { PACKAGE_VERSION };
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PACKAGE_VERSION = void 0;
|
|
4
4
|
// Auto-generated by scripts/generate.ts. Do not edit manually.
|
|
5
|
-
const PACKAGE_VERSION = "2.
|
|
5
|
+
const PACKAGE_VERSION = "2.15.1";
|
|
6
6
|
exports.PACKAGE_VERSION = PACKAGE_VERSION;
|