{
  "version": 3,
  "sources": ["../../src/Payload.ts", "../../src/Schema.ts", "../../src/Plugin.ts"],
  "sourcesContent": ["import {\n  zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport { PayloadZodOfSchema } from '@xyo-network/sdk-js'\nimport * as z from 'zod/mini'\n\nimport { EthereumGasEtherscanSchema } from './Schema.ts'\n\n/**\n * The Zod schema for the `result` field of an Etherscan gas oracle response\n */\nexport const EthereumGasEtherscanResponseResultZod = z.object({\n  /**\n   * Priority Fee\n   */\n  FastGasPrice: z.string(),\n  /**\n   * Number of last block\n   */\n  LastBlock: z.string(),\n  /**\n   * Priority Fee\n   */\n  ProposeGasPrice: z.string(),\n  /**\n   * Priority Fee\n   */\n  SafeGasPrice: z.string(),\n  /**\n   * Estimate of how busy the network is\n   */\n  gasUsedRatio: z.string(),\n  /**\n   * The baseFee of the next pending block\n   */\n  suggestBaseFee: z.string(),\n})\n\nexport type EthereumGasEtherscanResponseResult = z.infer<typeof EthereumGasEtherscanResponseResultZod>\n\n/**\n * https://docs.etherscan.io/api-endpoints/gas-tracker#get-gas-oracle\n */\nexport const EthereumGasEtherscanResponseZod = z.object({\n  message: z.string(),\n  result: EthereumGasEtherscanResponseResultZod,\n  status: z.string(),\n  timestamp: z.number(),\n})\n\nexport type EthereumGasEtherscanResponse = z.infer<typeof EthereumGasEtherscanResponseZod>\n\nexport const EthereumGasEtherscanPayloadZod = z.extend(PayloadZodOfSchema(EthereumGasEtherscanSchema), { ...EthereumGasEtherscanResponseZod.shape })\n\nexport type EthereumGasEtherscanPayload = z.infer<typeof EthereumGasEtherscanPayloadZod>\n\nexport const isEthereumGasEtherscanPayload = zodIsFactory(EthereumGasEtherscanPayloadZod)\nexport const asEthereumGasEtherscanPayload = zodAsFactory(EthereumGasEtherscanPayloadZod, 'asEthereumGasEtherscanPayload')\nexport const toEthereumGasEtherscanPayload = zodToFactory(EthereumGasEtherscanPayloadZod, 'toEthereumGasEtherscanPayload')\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nexport type EthereumGasEtherscanSchema = typeof EthereumGasEtherscanSchema\nexport const EthereumGasEtherscanSchema = asSchema('network.xyo.blockchain.ethereum.gas.etherscan', true)\n", "import { createPayloadPlugin } from '@xyo-network/sdk-js'\n\nimport type { EthereumGasEtherscanPayload } from './Payload.ts'\nimport { EthereumGasEtherscanSchema } from './Schema.ts'\n\nexport const EthereumGasEtherscanPayloadPlugin = () =>\n  createPayloadPlugin<EthereumGasEtherscanPayload>({ schema: EthereumGasEtherscanSchema })\n"],
  "mappings": ";AAAA;AAAA,EACE;AAAA,EAAc;AAAA,EAAc;AAAA,OACvB;AACP,SAAS,0BAA0B;AACnC,YAAY,OAAO;;;ACJnB,SAAS,gBAAgB;AAGlB,IAAM,6BAA6B,SAAS,iDAAiD,IAAI;;;ADQjG,IAAM,wCAA0C,SAAO;AAAA;AAAA;AAAA;AAAA,EAI5D,cAAgB,SAAO;AAAA;AAAA;AAAA;AAAA,EAIvB,WAAa,SAAO;AAAA;AAAA;AAAA;AAAA,EAIpB,iBAAmB,SAAO;AAAA;AAAA;AAAA;AAAA,EAI1B,cAAgB,SAAO;AAAA;AAAA;AAAA;AAAA,EAIvB,cAAgB,SAAO;AAAA;AAAA;AAAA;AAAA,EAIvB,gBAAkB,SAAO;AAC3B,CAAC;AAOM,IAAM,kCAAoC,SAAO;AAAA,EACtD,SAAW,SAAO;AAAA,EAClB,QAAQ;AAAA,EACR,QAAU,SAAO;AAAA,EACjB,WAAa,SAAO;AACtB,CAAC;AAIM,IAAM,iCAAmC,SAAO,mBAAmB,0BAA0B,GAAG,EAAE,GAAG,gCAAgC,MAAM,CAAC;AAI5I,IAAM,gCAAgC,aAAa,8BAA8B;AACjF,IAAM,gCAAgC,aAAa,gCAAgC,+BAA+B;AAClH,IAAM,gCAAgC,aAAa,gCAAgC,+BAA+B;;;AE1DzH,SAAS,2BAA2B;AAK7B,IAAM,oCAAoC,MAC/C,oBAAiD,EAAE,QAAQ,2BAA2B,CAAC;",
  "names": []
}
