import { chainIds as e } from "../constants/chains.constants.mjs";
import { httpClient as t } from "../data-structures/http/HttpClient.mjs";
import "../data-structures/http/index.mjs";
//#region libs/shared/common/src/API/tenderly.api.ts
var n = "7o1iPUgCIjLI0rSxj2yuz9-Z3052uUc4", r = "https://api.tenderly.co/api/v1/account/hinkal-org/project/project", i = { "X-Access-Key": n }, a = async (e) => await t.post(`${r}/simulate`, { ...e }, { headers: i }), o = {
	[e.optimism]: "https://optimism.gateway.tenderly.co/2A3r4RCMoAZVmQOpNqRO29",
	[e.optimismTest]: "https://optimism.gateway.tenderly.co/2A3r4RCMoAZVmQOpNqRO29",
	[e.base]: "https://base.gateway.tenderly.co/73UtIBn1YiCyhqRJuKTkWl",
	[e.ethMainnet]: "https://mainnet.gateway.tenderly.co/SW3mROrzKEQYSq3RkStJ7",
	[e.arbMainnet]: "https://arbitrum.gateway.tenderly.co/4dUF2wEnsmvFw9fqLpoLga",
	[e.polygon]: "https://polygon.gateway.tenderly.co/32hCaUScB41nXgyzCmeDVu"
}, s = async (e, n) => await t.post(o[e], {
	jsonrpc: "2.0",
	id: 0,
	method: "tenderly_simulateTransaction",
	params: n.params
}, { headers: i }), c = async (e, n) => await t.post(o[e], {
	jsonrpc: "2.0",
	id: 0,
	method: "tenderly_simulateBundle",
	params: n.params
}, { headers: i }), l = async (e, n, r) => await t.post(o[e], {
	jsonrpc: "2.0",
	id: 0,
	method: "tenderly_getStorageChanges",
	params: [{
		address: n,
		offset: r
	}]
}, { headers: i }), u = {
	rpcGetStorageChanges: l,
	rpcSimulateTransaction: s,
	rpcSimulateBundle: c,
	simulateTx: a
};
//#endregion
export { u as WALLET_API, l as rpcGetStorageChanges, c as rpcSimulateBundle, s as rpcSimulateTransaction, a as simulateTx, o as tenderlyRpcLinks };
