@ethernauta/chain 0.0.24 → 0.0.26

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/README.md CHANGED
@@ -35,8 +35,9 @@ console.log(reference)// 11155111
35
35
 
36
36
  ## Files to pay attention
37
37
 
38
+ - [indexer.ts](https://github.com/niconiahi/ethernauta/blob/main/packages/chain/src/indexer.ts)
39
+
38
40
  ### chain
39
41
 
40
- - [indexer.tsx](src/indexer.ts)
41
- - [shared.tsx](src/chain/shared.ts)
42
- - [eip155-1](src/chain/eip155/eip155-1.ts)
42
+ - [chain/shared.ts](https://github.com/niconiahi/ethernauta/blob/main/packages/chain/src/chain/shared.ts)
43
+ - [chain/eip155/eip155-1.tsx](https://github.com/niconiahi/ethernauta/blob/main/packages/chain/src/chain/eip155/eip155-1.ts)
@@ -1 +1 @@
1
- {"version":3,"file":"shared.js","names":["input: unknown"],"sources":["../../src/chain/shared.ts"],"sourcesContent":["import type { InferOutput } from \"valibot\"\nimport {\n array,\n literal,\n number,\n object,\n optional,\n custom,\n string,\n} from \"valibot\"\n\nconst featureSchema = object({\n name: string(),\n})\nexport type Feature = InferOutput<typeof featureSchema>\n\nconst nativeCurrencySchema = object({\n name: string(),\n symbol: string(),\n decimals: number(),\n})\nexport type NativeCurrency = InferOutput<\n typeof nativeCurrencySchema\n>\n\nconst explorerSchema = object({\n name: string(),\n url: string(),\n standard: string(),\n})\nexport type Explorer = InferOutput<typeof explorerSchema>\n\nconst bridgeSchema = object({\n url: string(),\n})\nexport type Bridge = InferOutput<typeof bridgeSchema>\n\nconst parentSchema = object({\n type: string(),\n chain: string(),\n bridges: optional(array(bridgeSchema)),\n})\nexport type Parent = InferOutput<typeof parentSchema>\n\nconst ensRegistrySchema = object({\n registry: string(),\n})\nexport type EnsRegistry = InferOutput<\n typeof ensRegistrySchema\n>\n\nfunction isShortName(input: unknown): boolean {\n return (\n typeof input === \"string\" &&\n /^[A-Za-z0-9-_]{1,64}$/.test(input)\n )\n}\nexport const shortNameSchema = custom<string>(isShortName)\nexport type ShortName = InferOutput<typeof shortNameSchema>\n\nconst redFlagSchema = literal(\"reusedChainId\")\nexport type RedFlagSchema = InferOutput<\n typeof redFlagSchema\n>\n\nexport const chainSchema = object({\n name: string(),\n shortName: shortNameSchema,\n title: optional(string()),\n chain: string(),\n icon: optional(string()),\n rpc: array(string()),\n faucets: array(string()),\n features: optional(array(featureSchema)),\n nativeCurrency: nativeCurrencySchema,\n infoURL: string(),\n chainId: number(),\n networkId: number(),\n slip44: optional(number()),\n ens: optional(ensRegistrySchema),\n explorers: optional(array(explorerSchema)),\n parent: optional(parentSchema),\n status: optional(string()),\n redFlags: optional(array(redFlagSchema)),\n})\nexport type Chain = InferOutput<typeof chainSchema>\n"],"mappings":";;;AAWA,MAAM,gBAAgB,OAAO,EAC3B,MAAM,QAAQ,CACf,EAAC;AAGF,MAAM,uBAAuB,OAAO;CAClC,MAAM,QAAQ;CACd,QAAQ,QAAQ;CAChB,UAAU,QAAQ;AACnB,EAAC;AAKF,MAAM,iBAAiB,OAAO;CAC5B,MAAM,QAAQ;CACd,KAAK,QAAQ;CACb,UAAU,QAAQ;AACnB,EAAC;AAGF,MAAM,eAAe,OAAO,EAC1B,KAAK,QAAQ,CACd,EAAC;AAGF,MAAM,eAAe,OAAO;CAC1B,MAAM,QAAQ;CACd,OAAO,QAAQ;CACf,SAAS,SAAS,MAAM,aAAa,CAAC;AACvC,EAAC;AAGF,MAAM,oBAAoB,OAAO,EAC/B,UAAU,QAAQ,CACnB,EAAC;AAKF,SAAS,YAAYA,OAAyB;AAC5C,QACE,OAAO,UAAU,YACjB,wBAAwB,KAAK,MAAM;AAEtC;AACD,MAAa,kBAAkB,OAAe,YAAY;AAG1D,MAAM,gBAAgB,QAAQ,gBAAgB;AAK9C,MAAa,cAAc,OAAO;CAChC,MAAM,QAAQ;CACd,WAAW;CACX,OAAO,SAAS,QAAQ,CAAC;CACzB,OAAO,QAAQ;CACf,MAAM,SAAS,QAAQ,CAAC;CACxB,KAAK,MAAM,QAAQ,CAAC;CACpB,SAAS,MAAM,QAAQ,CAAC;CACxB,UAAU,SAAS,MAAM,cAAc,CAAC;CACxC,gBAAgB;CAChB,SAAS,QAAQ;CACjB,SAAS,QAAQ;CACjB,WAAW,QAAQ;CACnB,QAAQ,SAAS,QAAQ,CAAC;CAC1B,KAAK,SAAS,kBAAkB;CAChC,WAAW,SAAS,MAAM,eAAe,CAAC;CAC1C,QAAQ,SAAS,aAAa;CAC9B,QAAQ,SAAS,QAAQ,CAAC;CAC1B,UAAU,SAAS,MAAM,cAAc,CAAC;AACzC,EAAC"}
1
+ {"version":3,"file":"shared.js","names":["input: unknown"],"sources":["../../src/chain/shared.ts"],"sourcesContent":["import type { InferOutput } from \"valibot\"\nimport {\n array,\n custom,\n literal,\n number,\n object,\n optional,\n string,\n} from \"valibot\"\n\nconst featureSchema = object({\n name: string(),\n})\nexport type Feature = InferOutput<typeof featureSchema>\n\nconst nativeCurrencySchema = object({\n name: string(),\n symbol: string(),\n decimals: number(),\n})\nexport type NativeCurrency = InferOutput<\n typeof nativeCurrencySchema\n>\n\nconst explorerSchema = object({\n name: string(),\n url: string(),\n standard: string(),\n})\nexport type Explorer = InferOutput<typeof explorerSchema>\n\nconst bridgeSchema = object({\n url: string(),\n})\nexport type Bridge = InferOutput<typeof bridgeSchema>\n\nconst parentSchema = object({\n type: string(),\n chain: string(),\n bridges: optional(array(bridgeSchema)),\n})\nexport type Parent = InferOutput<typeof parentSchema>\n\nconst ensRegistrySchema = object({\n registry: string(),\n})\nexport type EnsRegistry = InferOutput<\n typeof ensRegistrySchema\n>\n\nfunction isShortName(input: unknown): boolean {\n return (\n typeof input === \"string\" &&\n /^[A-Za-z0-9-_]{1,64}$/.test(input)\n )\n}\nexport const shortNameSchema = custom<string>(isShortName)\nexport type ShortName = InferOutput<typeof shortNameSchema>\n\nconst redFlagSchema = literal(\"reusedChainId\")\nexport type RedFlagSchema = InferOutput<\n typeof redFlagSchema\n>\n\nexport const chainSchema = object({\n name: string(),\n shortName: shortNameSchema,\n title: optional(string()),\n chain: string(),\n icon: optional(string()),\n rpc: array(string()),\n faucets: array(string()),\n features: optional(array(featureSchema)),\n nativeCurrency: nativeCurrencySchema,\n infoURL: string(),\n chainId: number(),\n networkId: number(),\n slip44: optional(number()),\n ens: optional(ensRegistrySchema),\n explorers: optional(array(explorerSchema)),\n parent: optional(parentSchema),\n status: optional(string()),\n redFlags: optional(array(redFlagSchema)),\n})\nexport type Chain = InferOutput<typeof chainSchema>\n"],"mappings":";;;AAWA,MAAM,gBAAgB,OAAO,EAC3B,MAAM,QAAQ,CACf,EAAC;AAGF,MAAM,uBAAuB,OAAO;CAClC,MAAM,QAAQ;CACd,QAAQ,QAAQ;CAChB,UAAU,QAAQ;AACnB,EAAC;AAKF,MAAM,iBAAiB,OAAO;CAC5B,MAAM,QAAQ;CACd,KAAK,QAAQ;CACb,UAAU,QAAQ;AACnB,EAAC;AAGF,MAAM,eAAe,OAAO,EAC1B,KAAK,QAAQ,CACd,EAAC;AAGF,MAAM,eAAe,OAAO;CAC1B,MAAM,QAAQ;CACd,OAAO,QAAQ;CACf,SAAS,SAAS,MAAM,aAAa,CAAC;AACvC,EAAC;AAGF,MAAM,oBAAoB,OAAO,EAC/B,UAAU,QAAQ,CACnB,EAAC;AAKF,SAAS,YAAYA,OAAyB;AAC5C,QACE,OAAO,UAAU,YACjB,wBAAwB,KAAK,MAAM;AAEtC;AACD,MAAa,kBAAkB,OAAe,YAAY;AAG1D,MAAM,gBAAgB,QAAQ,gBAAgB;AAK9C,MAAa,cAAc,OAAO;CAChC,MAAM,QAAQ;CACd,WAAW;CACX,OAAO,SAAS,QAAQ,CAAC;CACzB,OAAO,QAAQ;CACf,MAAM,SAAS,QAAQ,CAAC;CACxB,KAAK,MAAM,QAAQ,CAAC;CACpB,SAAS,MAAM,QAAQ,CAAC;CACxB,UAAU,SAAS,MAAM,cAAc,CAAC;CACxC,gBAAgB;CAChB,SAAS,QAAQ;CACjB,SAAS,QAAQ;CACjB,WAAW,QAAQ;CACnB,QAAQ,SAAS,QAAQ,CAAC;CAC1B,KAAK,SAAS,kBAAkB;CAChC,WAAW,SAAS,MAAM,eAAe,CAAC;CAC1C,QAAQ,SAAS,aAAa;CAC9B,QAAQ,SAAS,QAAQ,CAAC;CAC1B,UAAU,SAAS,MAAM,cAAc,CAAC;AACzC,EAAC"}