@bgd-labs/toolbox 0.2.21 → 0.2.23

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.
@@ -16417,12 +16417,12 @@ declare function tenderly_createVnet({
16417
16417
  withdrawals?: viem.Withdrawal[] | undefined | undefined;
16418
16418
  withdrawalsRoot?: `0x${string}` | undefined;
16419
16419
  transactions: includeTransactions extends true ? ({
16420
+ type: "legacy";
16421
+ value: bigint;
16420
16422
  to: Address | null;
16421
16423
  from: Address;
16422
16424
  gas: bigint;
16423
16425
  nonce: number;
16424
- type: "legacy";
16425
- value: bigint;
16426
16426
  blobVersionedHashes?: undefined | undefined;
16427
16427
  gasPrice: bigint;
16428
16428
  maxFeePerBlobGas?: undefined | undefined;
@@ -16442,12 +16442,12 @@ declare function tenderly_createVnet({
16442
16442
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
16443
16443
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
16444
16444
  } | {
16445
+ type: "eip2930";
16446
+ value: bigint;
16445
16447
  to: Address | null;
16446
16448
  from: Address;
16447
16449
  gas: bigint;
16448
16450
  nonce: number;
16449
- type: "eip2930";
16450
- value: bigint;
16451
16451
  blobVersionedHashes?: undefined | undefined;
16452
16452
  gasPrice: bigint;
16453
16453
  maxFeePerBlobGas?: undefined | undefined;
@@ -16467,12 +16467,12 @@ declare function tenderly_createVnet({
16467
16467
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : `0x${string}` : never : never;
16468
16468
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
16469
16469
  } | {
16470
+ type: "eip1559";
16471
+ value: bigint;
16470
16472
  to: Address | null;
16471
16473
  from: Address;
16472
16474
  gas: bigint;
16473
16475
  nonce: number;
16474
- type: "eip1559";
16475
- value: bigint;
16476
16476
  blobVersionedHashes?: undefined | undefined;
16477
16477
  gasPrice?: undefined | undefined;
16478
16478
  maxFeePerBlobGas?: undefined | undefined;
@@ -16492,12 +16492,12 @@ declare function tenderly_createVnet({
16492
16492
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : `0x${string}` : never : never;
16493
16493
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
16494
16494
  } | {
16495
+ type: "eip4844";
16496
+ value: bigint;
16495
16497
  to: Address | null;
16496
16498
  from: Address;
16497
16499
  gas: bigint;
16498
16500
  nonce: number;
16499
- type: "eip4844";
16500
- value: bigint;
16501
16501
  blobVersionedHashes: readonly Hex[];
16502
16502
  gasPrice?: undefined | undefined;
16503
16503
  maxFeePerBlobGas: bigint;
@@ -16517,12 +16517,12 @@ declare function tenderly_createVnet({
16517
16517
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : `0x${string}` : never : never;
16518
16518
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
16519
16519
  } | {
16520
+ type: "eip7702";
16521
+ value: bigint;
16520
16522
  to: Address | null;
16521
16523
  from: Address;
16522
16524
  gas: bigint;
16523
16525
  nonce: number;
16524
- type: "eip7702";
16525
- value: bigint;
16526
16526
  blobVersionedHashes?: undefined | undefined;
16527
16527
  gasPrice?: undefined | undefined;
16528
16528
  maxFeePerBlobGas?: undefined | undefined;
@@ -16624,12 +16624,12 @@ declare function tenderly_createVnet({
16624
16624
  } | undefined) => Promise<viem.EstimateMaxPriorityFeePerGasReturnType>;
16625
16625
  getStorageAt: (args: viem.GetStorageAtParameters) => Promise<viem.GetStorageAtReturnType>;
16626
16626
  getTransaction: <blockTag extends viem.BlockTag = "latest">(args: viem.GetTransactionParameters<blockTag>) => Promise<{
16627
+ type: "legacy";
16628
+ value: bigint;
16627
16629
  to: Address | null;
16628
16630
  from: Address;
16629
16631
  gas: bigint;
16630
16632
  nonce: number;
16631
- type: "legacy";
16632
- value: bigint;
16633
16633
  blobVersionedHashes?: undefined | undefined;
16634
16634
  gasPrice: bigint;
16635
16635
  maxFeePerBlobGas?: undefined | undefined;
@@ -16649,12 +16649,12 @@ declare function tenderly_createVnet({
16649
16649
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : `0x${string}` : never : never;
16650
16650
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
16651
16651
  } | {
16652
+ type: "eip2930";
16653
+ value: bigint;
16652
16654
  to: Address | null;
16653
16655
  from: Address;
16654
16656
  gas: bigint;
16655
16657
  nonce: number;
16656
- type: "eip2930";
16657
- value: bigint;
16658
16658
  blobVersionedHashes?: undefined | undefined;
16659
16659
  gasPrice: bigint;
16660
16660
  maxFeePerBlobGas?: undefined | undefined;
@@ -16674,12 +16674,12 @@ declare function tenderly_createVnet({
16674
16674
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : `0x${string}` : never : never;
16675
16675
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
16676
16676
  } | {
16677
+ type: "eip1559";
16678
+ value: bigint;
16677
16679
  to: Address | null;
16678
16680
  from: Address;
16679
16681
  gas: bigint;
16680
16682
  nonce: number;
16681
- type: "eip1559";
16682
- value: bigint;
16683
16683
  blobVersionedHashes?: undefined | undefined;
16684
16684
  gasPrice?: undefined | undefined;
16685
16685
  maxFeePerBlobGas?: undefined | undefined;
@@ -16699,12 +16699,12 @@ declare function tenderly_createVnet({
16699
16699
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : `0x${string}` : never : never;
16700
16700
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
16701
16701
  } | {
16702
+ type: "eip4844";
16703
+ value: bigint;
16702
16704
  to: Address | null;
16703
16705
  from: Address;
16704
16706
  gas: bigint;
16705
16707
  nonce: number;
16706
- type: "eip4844";
16707
- value: bigint;
16708
16708
  blobVersionedHashes: readonly Hex[];
16709
16709
  gasPrice?: undefined | undefined;
16710
16710
  maxFeePerBlobGas: bigint;
@@ -16724,12 +16724,12 @@ declare function tenderly_createVnet({
16724
16724
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : `0x${string}` : never : never;
16725
16725
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
16726
16726
  } | {
16727
+ type: "eip7702";
16728
+ value: bigint;
16727
16729
  to: Address | null;
16728
16730
  from: Address;
16729
16731
  gas: bigint;
16730
16732
  nonce: number;
16731
- type: "eip7702";
16732
- value: bigint;
16733
16733
  blobVersionedHashes?: undefined | undefined;
16734
16734
  gasPrice?: undefined | undefined;
16735
16735
  maxFeePerBlobGas?: undefined | undefined;
@@ -20347,7 +20347,7 @@ declare function tenderly_createVnet({
20347
20347
  authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
20348
20348
  } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_25 extends "eip7702" ? viem.TransactionRequestEIP7702 : never : never : never)>> & {
20349
20349
  chainId?: number | undefined;
20350
- }, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "gas" | "nonce" | "type" | "blobVersionedHashes" | "fees" | "chainId") extends infer T_26 ? T_26 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "gas" | "nonce" | "type" | "blobVersionedHashes" | "fees" | "chainId") ? T_26 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_26 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: (viem.UnionRequiredBy<Extract<viem.UnionOmit<viem.ExtractChainFormatterParameters<viem.DeriveChain<{
20350
+ }, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "fees" | "chainId") extends infer T_26 ? T_26 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "fees" | "chainId") ? T_26 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_26 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: (viem.UnionRequiredBy<Extract<viem.UnionOmit<viem.ExtractChainFormatterParameters<viem.DeriveChain<{
20351
20351
  id: number;
20352
20352
  blockExplorers?: {
20353
20353
  [key: string]: {
@@ -23770,7 +23770,7 @@ declare function tenderly_createVnet({
23770
23770
  authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
23771
23771
  } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? viem.TransactionRequestEIP7702 : never : never : never)>> & {
23772
23772
  chainId?: number | undefined;
23773
- }, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "gas" | "nonce" | "type" | "blobVersionedHashes" | "fees" | "chainId") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "gas" | "nonce" | "type" | "blobVersionedHashes" | "fees" | "chainId") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">))[K] } : never>;
23773
+ }, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "fees" | "chainId") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "fees" | "chainId") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">))[K] } : never>;
23774
23774
  readContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "pure" | "view">, const args extends viem.ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: viem.ReadContractParameters<abi, functionName, args>) => Promise<viem.ReadContractReturnType<abi, functionName, args>>;
23775
23775
  sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
23776
23776
  sendRawTransactionSync: (args: viem.SendRawTransactionSyncParameters) => Promise<viem.TransactionReceipt>;
@@ -23897,8 +23897,8 @@ declare function tenderly_createVnet({
23897
23897
  verifySiweMessage: (args: {
23898
23898
  blockNumber?: bigint | undefined | undefined;
23899
23899
  blockTag?: viem.BlockTag | undefined;
23900
- nonce?: string | undefined | undefined;
23901
23900
  address?: `0x${string}` | undefined;
23901
+ nonce?: string | undefined | undefined;
23902
23902
  domain?: string | undefined | undefined;
23903
23903
  scheme?: string | undefined | undefined;
23904
23904
  time?: Date | undefined;
@@ -27848,7 +27848,7 @@ declare function tenderly_createVnet({
27848
27848
  authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
27849
27849
  } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_25 extends "eip7702" ? viem.TransactionRequestEIP7702 : never : never : never)>> & {
27850
27850
  chainId?: number | undefined;
27851
- }, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "gas" | "nonce" | "type" | "blobVersionedHashes" | "fees" | "chainId") extends infer T_26 ? T_26 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "gas" | "nonce" | "type" | "blobVersionedHashes" | "fees" | "chainId") ? T_26 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_26 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: (viem.UnionRequiredBy<Extract<viem.UnionOmit<viem.ExtractChainFormatterParameters<viem.DeriveChain<{
27851
+ }, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "fees" | "chainId") extends infer T_26 ? T_26 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "fees" | "chainId") ? T_26 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_26 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: (viem.UnionRequiredBy<Extract<viem.UnionOmit<viem.ExtractChainFormatterParameters<viem.DeriveChain<{
27852
27852
  id: number;
27853
27853
  blockExplorers?: {
27854
27854
  [key: string]: {
@@ -31277,7 +31277,7 @@ declare function tenderly_createVnet({
31277
31277
  authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
31278
31278
  } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? viem.TransactionRequestEIP7702 : never : never : never)>> & {
31279
31279
  chainId?: number | undefined;
31280
- }, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "gas" | "nonce" | "type" | "blobVersionedHashes" | "fees" | "chainId") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "gas" | "nonce" | "type" | "blobVersionedHashes" | "fees" | "chainId") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">))[K] } : never>;
31280
+ }, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "fees" | "chainId") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "type" | "gas" | "nonce" | "blobVersionedHashes" | "fees" | "chainId") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">))[K] } : never>;
31281
31281
  requestAddresses: () => Promise<viem.RequestAddressesReturnType>;
31282
31282
  requestPermissions: (args: viem.RequestPermissionsParameters) => Promise<viem.RequestPermissionsReturnType>;
31283
31283
  sendCalls: <const calls extends readonly unknown[], chainOverride extends viem.Chain | undefined = undefined>(parameters: viem.SendCallsParameters<{
@@ -32740,10 +32740,10 @@ declare function tenderly_createVnet({
32740
32740
  [x: `address[${string}]`]: undefined;
32741
32741
  [x: `bool[${string}]`]: undefined;
32742
32742
  [x: `bytes[${string}]`]: undefined;
32743
- [x: `bytes4[${string}]`]: undefined;
32744
32743
  [x: `bytes1[${string}]`]: undefined;
32745
32744
  [x: `bytes2[${string}]`]: undefined;
32746
32745
  [x: `bytes3[${string}]`]: undefined;
32746
+ [x: `bytes4[${string}]`]: undefined;
32747
32747
  [x: `bytes5[${string}]`]: undefined;
32748
32748
  [x: `bytes6[${string}]`]: undefined;
32749
32749
  [x: `bytes7[${string}]`]: undefined;
@@ -32842,10 +32842,10 @@ declare function tenderly_createVnet({
32842
32842
  address?: undefined;
32843
32843
  bool?: undefined;
32844
32844
  bytes?: undefined;
32845
- bytes4?: undefined;
32846
32845
  bytes1?: undefined;
32847
32846
  bytes2?: undefined;
32848
32847
  bytes3?: undefined;
32848
+ bytes4?: undefined;
32849
32849
  bytes5?: undefined;
32850
32850
  bytes6?: undefined;
32851
32851
  bytes7?: undefined;
@@ -33552,7 +33552,7 @@ declare const publicRPCs: {
33552
33552
  readonly 57073: "https://ink-public.nodies.app";
33553
33553
  };
33554
33554
  declare const alchemySupportedChainIds: (1 | 10 | 56 | 42220 | 137 | 80002 | 43114 | 43113 | 42161 | 421614 | 250 | 4002 | 11155420 | 1666600000 | 11155111 | 534352 | 534351 | 146 | 5000 | 1088 | 8453 | 84532 | 100 | 1101 | 324 | 59144 | 57073 | 1868 | 60808 | 9745 | 196 | 4326)[];
33555
- declare const getNetworkEnv: (chainId: SupportedChainIds) => "RPC_MAINNET" | "RPC_BNB" | "RPC_POLYGON" | "RPC_SONIC" | "RPC_ZKSYNC" | "RPC_SONEIUM" | "RPC_MEGAETH" | "RPC_MANTLE" | "RPC_BASE" | "RPC_PLASMA" | "RPC_ARBITRUM" | "RPC_CELO" | "RPC_INK" | "RPC_LINEA" | "RPC_BOB" | "RPC_SEPOLIA" | "RPC_POLYGON_AMOY" | "RPC_AVALANCHE" | "RPC_AVALANCHE_FUJI" | "RPC_ARBITRUM_SEPOLIA" | "RPC_FANTOM" | "RPC_FANTOM_TESTNET" | "RPC_OPTIMISM" | "RPC_OPTIMISM_SEPOLIA" | "RPC_HARMONY" | "RPC_SCROLL" | "RPC_SCROLL_SEPOLIA" | "RPC_METIS" | "RPC_BASE_SEPOLIA" | "RPC_GNOSIS" | "RPC_ZKEVM" | "RPC_XLAYER";
33555
+ declare const getNetworkEnv: (chainId: SupportedChainIds) => "RPC_MAINNET" | "RPC_OPTIMISM" | "RPC_GNOSIS" | "RPC_POLYGON" | "RPC_SONIC" | "RPC_ZKSYNC" | "RPC_SONEIUM" | "RPC_MEGAETH" | "RPC_MANTLE" | "RPC_BASE" | "RPC_PLASMA" | "RPC_ARBITRUM" | "RPC_CELO" | "RPC_AVALANCHE" | "RPC_INK" | "RPC_LINEA" | "RPC_BOB" | "RPC_SEPOLIA" | "RPC_BNB" | "RPC_POLYGON_AMOY" | "RPC_AVALANCHE_FUJI" | "RPC_ARBITRUM_SEPOLIA" | "RPC_FANTOM" | "RPC_FANTOM_TESTNET" | "RPC_OPTIMISM_SEPOLIA" | "RPC_HARMONY" | "RPC_SCROLL" | "RPC_SCROLL_SEPOLIA" | "RPC_METIS" | "RPC_BASE_SEPOLIA" | "RPC_ZKEVM" | "RPC_XLAYER";
33556
33556
  declare function getExplicitRPC(chainId: SupportedChainIds): string;
33557
33557
  declare function getAlchemyRPC(chainId: SupportedChainIds, alchemyKey: string): string;
33558
33558
  declare function getPublicRpc(chainId: SupportedChainIds): "https://eth.llamarpc.com" | "https://polygon.llamarpc.com" | "https://base.llamarpc.com" | "https://binance.llamarpc.com" | "https://andromeda.metis.io/?owner=1088" | "https://rpc.ankr.com/gnosis" | "https://rpc.scroll.io" | "https://mainnet.era.zksync.io" | "https://rpc.ftm.tools" | "https://api.avax.network/ext/bc/C/rpc" | "https://rpc.linea.build" | "https://rpc.gobob.xyz" | "https://rpc.plasma.to" | "https://ink-public.nodies.app";