@latticexyz/common 2.2.15-entrykit-4c25d1ec5af1bd68a4c1f367c9fe4b6fbea82cb2 → 2.2.15-entrykit-335157ddad18fcbacac0dc64c4efe21778729d96
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/chains.d.ts +20 -2
- package/dist/chains.js +1 -1
- package/dist/chains.js.map +1 -1
- package/package.json +2 -2
package/dist/chains.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import * as viem_op_stack from 'viem/op-stack';
|
|
|
7
7
|
type MUDChain = Chain & {
|
|
8
8
|
iconUrls?: readonly string[];
|
|
9
9
|
indexerUrl?: string;
|
|
10
|
+
mudIdUrl?: string;
|
|
10
11
|
/** @deprecated */
|
|
11
12
|
faucetUrl?: string;
|
|
12
13
|
};
|
|
@@ -58,6 +59,12 @@ declare const mudFoundry: {
|
|
|
58
59
|
declare const redstone: {
|
|
59
60
|
readonly iconUrls: readonly ["https://redstone.xyz/chain-icons/redstone.png"];
|
|
60
61
|
readonly indexerUrl: "https://indexer.mud.redstonechain.com";
|
|
62
|
+
readonly fees: {
|
|
63
|
+
readonly estimateFeesPerGas: () => Promise<{
|
|
64
|
+
maxFeePerGas: bigint;
|
|
65
|
+
maxPriorityFeePerGas: bigint;
|
|
66
|
+
}>;
|
|
67
|
+
};
|
|
61
68
|
readonly blockExplorers: {
|
|
62
69
|
readonly default: {
|
|
63
70
|
readonly name: "Blockscout";
|
|
@@ -121,7 +128,6 @@ declare const redstone: {
|
|
|
121
128
|
readonly sourceId: 1;
|
|
122
129
|
readonly testnet?: boolean | undefined;
|
|
123
130
|
readonly custom?: Record<string, unknown> | undefined;
|
|
124
|
-
readonly fees?: viem.ChainFees<undefined> | undefined;
|
|
125
131
|
readonly formatters: {
|
|
126
132
|
readonly block: {
|
|
127
133
|
exclude: [] | undefined;
|
|
@@ -361,6 +367,12 @@ declare const redstone: {
|
|
|
361
367
|
declare const garnet: {
|
|
362
368
|
readonly iconUrls: readonly ["https://redstone.xyz/chain-icons/garnet.png"];
|
|
363
369
|
readonly indexerUrl: "https://indexer.mud.garnetchain.com";
|
|
370
|
+
readonly fees: {
|
|
371
|
+
readonly estimateFeesPerGas: () => Promise<{
|
|
372
|
+
maxFeePerGas: bigint;
|
|
373
|
+
maxPriorityFeePerGas: bigint;
|
|
374
|
+
}>;
|
|
375
|
+
};
|
|
364
376
|
readonly blockExplorers: {
|
|
365
377
|
readonly default: {
|
|
366
378
|
readonly name: "Blockscout";
|
|
@@ -424,7 +436,6 @@ declare const garnet: {
|
|
|
424
436
|
readonly sourceId: 17000;
|
|
425
437
|
readonly testnet: true;
|
|
426
438
|
readonly custom?: Record<string, unknown> | undefined;
|
|
427
|
-
readonly fees?: viem.ChainFees<undefined> | undefined;
|
|
428
439
|
readonly formatters: {
|
|
429
440
|
readonly block: {
|
|
430
441
|
exclude: [] | undefined;
|
|
@@ -725,6 +736,13 @@ declare const rhodolite: {
|
|
|
725
736
|
};
|
|
726
737
|
readonly iconUrls: readonly ["https://redstone.xyz/chain-icons/rhodolite.png"];
|
|
727
738
|
readonly indexerUrl: "https://indexer.mud.rhodolitechain.com";
|
|
739
|
+
readonly mudIdUrl: "https://id.mud.dev";
|
|
740
|
+
readonly fees: {
|
|
741
|
+
readonly estimateFeesPerGas: () => Promise<{
|
|
742
|
+
maxFeePerGas: bigint;
|
|
743
|
+
maxPriorityFeePerGas: bigint;
|
|
744
|
+
}>;
|
|
745
|
+
};
|
|
728
746
|
readonly formatters: {
|
|
729
747
|
readonly block: {
|
|
730
748
|
exclude: [] | undefined;
|
package/dist/chains.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{foundry as
|
|
1
|
+
import{foundry as t}from"viem/chains";var o={...t,fees:{defaultPriorityFee:0n}};import{redstone as s}from"viem/chains";var n={...s,iconUrls:["https://redstone.xyz/chain-icons/redstone.png"],indexerUrl:"https://indexer.mud.redstonechain.com",fees:{estimateFeesPerGas:async()=>({maxFeePerGas:100000n,maxPriorityFeePerGas:0n})}};import{garnet as a}from"viem/chains";var i={...a,iconUrls:["https://redstone.xyz/chain-icons/garnet.png"],indexerUrl:"https://indexer.mud.garnetchain.com",fees:{estimateFeesPerGas:async()=>({maxFeePerGas:100000n,maxPriorityFeePerGas:0n})}};import{chainConfig as r}from"viem/op-stack";var c=17001,e={http:["https://rpc.rhodolitechain.com"],webSocket:["wss://rpc.rhodolitechain.com"]},d={...r,name:"Rhodolite Devnet",testnet:!0,id:17420,sourceId:c,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:e,bundler:e,quarryPassIssuer:e,wiresaw:e},contracts:{...r.contracts,quarryPaymaster:{address:"0x61f22c3827d90c390e0e2aaf220971524ac0a68d",blockCreated:11262}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.rhodolitechain.com"},worldsExplorer:{name:"MUD Worlds Explorer",url:"https://explorer.mud.dev/rhodolite/worlds"}},iconUrls:["https://redstone.xyz/chain-icons/rhodolite.png"],indexerUrl:"https://indexer.mud.rhodolitechain.com",mudIdUrl:"https://id.mud.dev",fees:{estimateFeesPerGas:async()=>({maxFeePerGas:100000n,maxPriorityFeePerGas:0n})}};export{i as garnet,o as mudFoundry,n as redstone,d as rhodolite};
|
|
2
2
|
//# sourceMappingURL=chains.js.map
|
package/dist/chains.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chains/mudFoundry.ts","../src/chains/redstone.ts","../src/chains/garnet.ts","../src/chains/rhodolite.ts"],"sourcesContent":["import { foundry } from \"viem/chains\";\nimport { MUDChain } from \"./types\";\n\nexport const mudFoundry = {\n ...foundry,\n fees: {\n defaultPriorityFee: 0n,\n },\n} as const satisfies MUDChain;\n","import { redstone as redstoneConfig } from \"viem/chains\";\nimport type { MUDChain } from \"./types\";\n\nexport const redstone = {\n ...redstoneConfig,\n iconUrls: [\"https://redstone.xyz/chain-icons/redstone.png\"],\n indexerUrl: \"https://indexer.mud.redstonechain.com\",\n} as const satisfies MUDChain;\n","import { garnet as garnetConfig } from \"viem/chains\";\nimport type { MUDChain } from \"./types\";\n\nexport const garnet = {\n ...garnetConfig,\n iconUrls: [\"https://redstone.xyz/chain-icons/garnet.png\"],\n indexerUrl: \"https://indexer.mud.garnetchain.com\",\n} as const satisfies MUDChain;\n","import { chainConfig } from \"viem/op-stack\";\nimport { MUDChain } from \"./types\";\nimport { Chain } from \"viem\";\n\nconst sourceId = 17001;\n\nconst defaultRpcUrls = {\n http: [\"https://rpc.rhodolitechain.com\"],\n webSocket: [\"wss://rpc.rhodolitechain.com\"],\n} as const satisfies Chain[\"rpcUrls\"][\"default\"];\n\nexport const rhodolite = {\n ...chainConfig,\n name: \"Rhodolite Devnet\",\n testnet: true,\n id: 17420,\n sourceId,\n nativeCurrency: { name: \"Ether\", symbol: \"ETH\", decimals: 18 },\n rpcUrls: {\n default: defaultRpcUrls,\n bundler: defaultRpcUrls,\n quarryPassIssuer: defaultRpcUrls,\n wiresaw: defaultRpcUrls,\n },\n contracts: {\n ...chainConfig.contracts,\n quarryPaymaster: {\n address: \"0x61f22c3827d90c390e0e2aaf220971524ac0a68d\",\n blockCreated: 11262,\n },\n },\n blockExplorers: {\n default: {\n name: \"Blockscout\",\n url: \"https://explorer.rhodolitechain.com\",\n },\n worldsExplorer: {\n name: \"MUD Worlds Explorer\",\n url: \"https://explorer.mud.dev/rhodolite/worlds\",\n },\n },\n iconUrls: [\"https://redstone.xyz/chain-icons/rhodolite.png\"],\n indexerUrl: \"https://indexer.mud.rhodolitechain.com\",\n} as const satisfies MUDChain;\n"],"mappings":"AAAA,OAAS,WAAAA,MAAe,cAGjB,IAAMC,EAAa,CACxB,GAAGD,EACH,KAAM,CACJ,mBAAoB,EACtB,CACF,ECRA,OAAS,YAAYE,MAAsB,cAGpC,IAAMC,EAAW,CACtB,GAAGD,EACH,SAAU,CAAC,+CAA+C,EAC1D,WAAY,
|
|
1
|
+
{"version":3,"sources":["../src/chains/mudFoundry.ts","../src/chains/redstone.ts","../src/chains/garnet.ts","../src/chains/rhodolite.ts"],"sourcesContent":["import { foundry } from \"viem/chains\";\nimport { MUDChain } from \"./types\";\n\nexport const mudFoundry = {\n ...foundry,\n fees: {\n defaultPriorityFee: 0n,\n },\n} as const satisfies MUDChain;\n","import { redstone as redstoneConfig } from \"viem/chains\";\nimport type { MUDChain } from \"./types\";\n\nexport const redstone = {\n ...redstoneConfig,\n iconUrls: [\"https://redstone.xyz/chain-icons/redstone.png\"],\n indexerUrl: \"https://indexer.mud.redstonechain.com\",\n fees: {\n estimateFeesPerGas: async () => ({\n maxFeePerGas: 100_000n,\n maxPriorityFeePerGas: 0n,\n }),\n },\n} as const satisfies MUDChain;\n","import { garnet as garnetConfig } from \"viem/chains\";\nimport type { MUDChain } from \"./types\";\n\nexport const garnet = {\n ...garnetConfig,\n iconUrls: [\"https://redstone.xyz/chain-icons/garnet.png\"],\n indexerUrl: \"https://indexer.mud.garnetchain.com\",\n fees: {\n estimateFeesPerGas: async () => ({\n maxFeePerGas: 100_000n,\n maxPriorityFeePerGas: 0n,\n }),\n },\n} as const satisfies MUDChain;\n","import { chainConfig } from \"viem/op-stack\";\nimport { MUDChain } from \"./types\";\nimport { Chain } from \"viem\";\n\nconst sourceId = 17001;\n\nconst defaultRpcUrls = {\n http: [\"https://rpc.rhodolitechain.com\"],\n webSocket: [\"wss://rpc.rhodolitechain.com\"],\n} as const satisfies Chain[\"rpcUrls\"][\"default\"];\n\nexport const rhodolite = {\n ...chainConfig,\n name: \"Rhodolite Devnet\",\n testnet: true,\n id: 17420,\n sourceId,\n nativeCurrency: { name: \"Ether\", symbol: \"ETH\", decimals: 18 },\n rpcUrls: {\n default: defaultRpcUrls,\n bundler: defaultRpcUrls,\n quarryPassIssuer: defaultRpcUrls,\n wiresaw: defaultRpcUrls,\n },\n contracts: {\n ...chainConfig.contracts,\n quarryPaymaster: {\n address: \"0x61f22c3827d90c390e0e2aaf220971524ac0a68d\",\n blockCreated: 11262,\n },\n },\n blockExplorers: {\n default: {\n name: \"Blockscout\",\n url: \"https://explorer.rhodolitechain.com\",\n },\n worldsExplorer: {\n name: \"MUD Worlds Explorer\",\n url: \"https://explorer.mud.dev/rhodolite/worlds\",\n },\n },\n iconUrls: [\"https://redstone.xyz/chain-icons/rhodolite.png\"],\n indexerUrl: \"https://indexer.mud.rhodolitechain.com\",\n mudIdUrl: \"https://id.mud.dev\",\n fees: {\n estimateFeesPerGas: async () => ({\n maxFeePerGas: 100_000n,\n maxPriorityFeePerGas: 0n,\n }),\n },\n} as const satisfies MUDChain;\n"],"mappings":"AAAA,OAAS,WAAAA,MAAe,cAGjB,IAAMC,EAAa,CACxB,GAAGD,EACH,KAAM,CACJ,mBAAoB,EACtB,CACF,ECRA,OAAS,YAAYE,MAAsB,cAGpC,IAAMC,EAAW,CACtB,GAAGD,EACH,SAAU,CAAC,+CAA+C,EAC1D,WAAY,wCACZ,KAAM,CACJ,mBAAoB,UAAa,CAC/B,aAAc,QACd,qBAAsB,EACxB,EACF,CACF,ECbA,OAAS,UAAUE,MAAoB,cAGhC,IAAMC,EAAS,CACpB,GAAGD,EACH,SAAU,CAAC,6CAA6C,EACxD,WAAY,sCACZ,KAAM,CACJ,mBAAoB,UAAa,CAC/B,aAAc,QACd,qBAAsB,EACxB,EACF,CACF,ECbA,OAAS,eAAAE,MAAmB,gBAI5B,IAAMC,EAAW,MAEXC,EAAiB,CACrB,KAAM,CAAC,gCAAgC,EACvC,UAAW,CAAC,8BAA8B,CAC5C,EAEaC,EAAY,CACvB,GAAGH,EACH,KAAM,mBACN,QAAS,GACT,GAAI,MACJ,SAAAC,EACA,eAAgB,CAAE,KAAM,QAAS,OAAQ,MAAO,SAAU,EAAG,EAC7D,QAAS,CACP,QAASC,EACT,QAASA,EACT,iBAAkBA,EAClB,QAASA,CACX,EACA,UAAW,CACT,GAAGF,EAAY,UACf,gBAAiB,CACf,QAAS,6CACT,aAAc,KAChB,CACF,EACA,eAAgB,CACd,QAAS,CACP,KAAM,aACN,IAAK,qCACP,EACA,eAAgB,CACd,KAAM,sBACN,IAAK,2CACP,CACF,EACA,SAAU,CAAC,gDAAgD,EAC3D,WAAY,yCACZ,SAAU,qBACV,KAAM,CACJ,mBAAoB,UAAa,CAC/B,aAAc,QACd,qBAAsB,EACxB,EACF,CACF","names":["foundry","mudFoundry","redstoneConfig","redstone","garnetConfig","garnet","chainConfig","sourceId","defaultRpcUrls","rhodolite"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@latticexyz/common",
|
|
3
|
-
"version": "2.2.15-entrykit-
|
|
3
|
+
"version": "2.2.15-entrykit-335157ddad18fcbacac0dc64c4efe21778729d96",
|
|
4
4
|
"description": "Common low level logic shared between packages",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"prettier": "3.2.5",
|
|
68
68
|
"prettier-plugin-solidity": "1.3.1",
|
|
69
69
|
"webauthn-p256": "^0.0.10",
|
|
70
|
-
"@latticexyz/schema-type": "2.2.15-entrykit-
|
|
70
|
+
"@latticexyz/schema-type": "2.2.15-entrykit-335157ddad18fcbacac0dc64c4efe21778729d96"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@types/debug": "^4.1.7",
|