@fangorn-network/sdk 2026.5.11 → 2026.7.1-2.0

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.
Files changed (101) hide show
  1. package/README.md +219 -225
  2. package/lib/ crypto/constants.d.ts +4 -0
  3. package/lib/ crypto/constants.js +5 -0
  4. package/lib/ crypto/merkle.d.ts +10 -0
  5. package/lib/ crypto/merkle.js +34 -0
  6. package/lib/cli/cli.d.ts +0 -0
  7. package/lib/cli/cli.js +234 -235
  8. package/lib/cli/index.d.ts +13 -650
  9. package/lib/config.d.ts +45 -699
  10. package/lib/config.js +6 -22
  11. package/lib/contracts/data-registry/abi.d.ts +38 -0
  12. package/lib/contracts/data-registry/abi.js +237 -0
  13. package/lib/contracts/data-registry/index.d.ts +81 -0
  14. package/lib/contracts/data-registry/index.js +184 -0
  15. package/lib/contracts/data-registry/test.d.ts +1 -0
  16. package/lib/contracts/index.d.ts +3 -0
  17. package/lib/contracts/index.js +4 -0
  18. package/lib/crypto/aes.d.ts +26 -0
  19. package/lib/crypto/aes.js +58 -0
  20. package/lib/crypto/encryption.d.ts +53 -0
  21. package/lib/crypto/encryption.js +82 -0
  22. package/lib/crypto/rand.d.ts +5 -0
  23. package/lib/{modules/encryption → crypto}/rand.js +1 -1
  24. package/lib/{modules/encryption → crypto}/types.d.ts +1 -1
  25. package/lib/engine/blockstore.d.ts +24 -0
  26. package/lib/engine/blockstore.js +85 -0
  27. package/lib/engine/index.d.ts +180 -0
  28. package/lib/engine/index.js +367 -0
  29. package/lib/fangorn.d.ts +149 -16
  30. package/lib/fangorn.js +256 -37
  31. package/lib/harness/examples/hackmd/build-markdown-graph.d.ts +1 -0
  32. package/lib/harness/examples/hackmd/build-markdown-graph.js +17 -0
  33. package/lib/harness/index.d.ts +57 -0
  34. package/lib/harness/index.js +67 -0
  35. package/lib/index.d.ts +2 -4
  36. package/lib/index.js +1 -3
  37. package/lib/node_modules/.pnpm/@noble_ciphers@1.3.0/node_modules/@noble/ciphers/esm/_polyval.js +218 -0
  38. package/lib/node_modules/.pnpm/@noble_ciphers@1.3.0/node_modules/@noble/ciphers/esm/aes.js +261 -0
  39. package/lib/node_modules/.pnpm/@noble_ciphers@1.3.0/node_modules/@noble/ciphers/esm/utils.js +156 -0
  40. package/lib/node_modules/.pnpm/@noble_curves@1.9.7/node_modules/@noble/curves/esm/abstract/curve.js +299 -0
  41. package/lib/node_modules/.pnpm/@noble_curves@1.9.7/node_modules/@noble/curves/esm/abstract/edwards.js +532 -0
  42. package/lib/node_modules/.pnpm/@noble_curves@1.9.7/node_modules/@noble/curves/esm/abstract/modular.js +344 -0
  43. package/lib/node_modules/.pnpm/@noble_curves@1.9.7/node_modules/@noble/curves/esm/abstract/montgomery.js +137 -0
  44. package/lib/node_modules/.pnpm/@noble_curves@1.9.7/node_modules/@noble/curves/esm/ed25519.js +262 -0
  45. package/lib/node_modules/.pnpm/@noble_curves@1.9.7/node_modules/@noble/curves/esm/utils.js +150 -0
  46. package/lib/providers/storage/car.d.ts +36 -0
  47. package/lib/providers/storage/car.js +80 -0
  48. package/lib/providers/storage/pinata.d.ts +34 -2
  49. package/lib/providers/storage/pinata.js +141 -5
  50. package/lib/providers/storage/types.d.ts +31 -16
  51. package/lib/providers/storage/utils.js +2 -1
  52. package/lib/roles/repo/index.d.ts +56 -0
  53. package/lib/roles/repo/index.js +73 -0
  54. package/lib/test/car_smoke.d.ts +1 -0
  55. package/lib/test/car_smoke.js +81 -0
  56. package/lib/test/cleanup-embeddings-testdata.d.ts +1 -0
  57. package/lib/test/cleanup-embeddings-testdata.js +75 -0
  58. package/lib/test/setup-embeddings-testdata.d.ts +11 -0
  59. package/lib/test/setup-embeddings-testdata.js +155 -0
  60. package/lib/test/testbed.d.ts +39 -30
  61. package/lib/test/testbed.js +43 -129
  62. package/lib/types/index.d.ts +3 -19
  63. package/lib/utils/manifest.d.ts +23 -0
  64. package/lib/utils/manifest.js +77 -0
  65. package/package.json +99 -67
  66. package/lib/modules/encryption/actions.d.ts +0 -4
  67. package/lib/modules/encryption/actions.js +0 -18
  68. package/lib/modules/encryption/aes.d.ts +0 -10
  69. package/lib/modules/encryption/aes.js +0 -51
  70. package/lib/modules/encryption/rand.d.ts +0 -5
  71. package/lib/registries/datasource-registry/abi.d.ts +0 -156
  72. package/lib/registries/datasource-registry/abi.js +0 -194
  73. package/lib/registries/datasource-registry/index.d.ts +0 -30
  74. package/lib/registries/datasource-registry/index.js +0 -158
  75. package/lib/registries/index.d.ts +0 -3
  76. package/lib/registries/index.js +0 -4
  77. package/lib/registries/schema-registry/abi.d.ts +0 -218
  78. package/lib/registries/schema-registry/abi.js +0 -246
  79. package/lib/registries/schema-registry/index.d.ts +0 -34
  80. package/lib/registries/schema-registry/index.js +0 -179
  81. package/lib/registries/settlement-registry/abi.d.ts +0 -218
  82. package/lib/registries/settlement-registry/abi.js +0 -259
  83. package/lib/registries/settlement-registry/index.d.ts +0 -63
  84. package/lib/registries/settlement-registry/index.js +0 -325
  85. package/lib/registries/settlement-registry/types.d.ts +0 -54
  86. package/lib/roles/consumer/index.d.ts +0 -39
  87. package/lib/roles/consumer/index.js +0 -143
  88. package/lib/roles/consumer/types.d.ts +0 -47
  89. package/lib/roles/consumer/types.js +0 -1
  90. package/lib/roles/publisher/index.d.ts +0 -50
  91. package/lib/roles/publisher/index.js +0 -224
  92. package/lib/roles/publisher/types.d.ts +0 -99
  93. package/lib/roles/publisher/types.js +0 -1
  94. package/lib/roles/schema/index.d.ts +0 -18
  95. package/lib/roles/schema/index.js +0 -93
  96. package/lib/roles/schema/types.d.ts +0 -91
  97. package/lib/roles/schema/types.js +0 -1
  98. /package/lib/{modules/encryption/index.d.ts → crypto/utils.d.ts} +0 -0
  99. /package/lib/{modules/encryption/index.js → crypto/utils.js} +0 -0
  100. /package/lib/{modules/encryption/types.js → contracts/data-registry/test.js} +0 -0
  101. /package/lib/{registries/settlement-registry → crypto}/types.js +0 -0
package/lib/config.d.ts CHANGED
@@ -380,7 +380,7 @@ declare const SupportedNetworks: {
380
380
  };
381
381
  /**
382
382
  * Get the network based on the string name
383
- * @param name "arbitrumSepolia" or "baseSepolia"
383
+ * @param name "arbitrumSepolia" is the only one supported right now
384
384
  * @returns The corresponding network if it is supported, otherwise an error
385
385
  */
386
386
  declare function getNetwork(name: string): {
@@ -427,718 +427,64 @@ declare function getNetwork(name: string): {
427
427
  }] | undefined;
428
428
  serializers?: viem0.ChainSerializers<undefined, viem0.TransactionSerializable> | undefined;
429
429
  verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
430
- } | {
431
- blockExplorers: {
432
- readonly default: {
433
- readonly name: "Basescan";
434
- readonly url: "https://sepolia.basescan.org";
435
- readonly apiUrl: "https://api-sepolia.basescan.org/api";
436
- };
437
- };
438
- blockTime: 2000;
439
- contracts: {
440
- readonly disputeGameFactory: {
441
- readonly 11155111: {
442
- readonly address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1";
443
- };
444
- };
445
- readonly l2OutputOracle: {
446
- readonly 11155111: {
447
- readonly address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254";
448
- };
449
- };
450
- readonly portal: {
451
- readonly 11155111: {
452
- readonly address: "0x49f53e41452c74589e85ca1677426ba426459e85";
453
- readonly blockCreated: 4446677;
454
- };
455
- };
456
- readonly l1StandardBridge: {
457
- readonly 11155111: {
458
- readonly address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120";
459
- readonly blockCreated: 4446677;
460
- };
461
- };
462
- readonly multicall3: {
463
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
464
- readonly blockCreated: 1059647;
465
- };
466
- readonly gasPriceOracle: {
467
- readonly address: "0x420000000000000000000000000000000000000F";
468
- };
469
- readonly l1Block: {
470
- readonly address: "0x4200000000000000000000000000000000000015";
471
- };
472
- readonly l2CrossDomainMessenger: {
473
- readonly address: "0x4200000000000000000000000000000000000007";
474
- };
475
- readonly l2Erc721Bridge: {
476
- readonly address: "0x4200000000000000000000000000000000000014";
477
- };
478
- readonly l2StandardBridge: {
479
- readonly address: "0x4200000000000000000000000000000000000010";
480
- };
481
- readonly l2ToL1MessagePasser: {
482
- readonly address: "0x4200000000000000000000000000000000000016";
483
- };
484
- };
485
- ensTlds?: readonly string[] | undefined;
486
- id: 84532;
487
- name: "Base Sepolia";
488
- nativeCurrency: {
489
- readonly name: "Sepolia Ether";
490
- readonly symbol: "ETH";
491
- readonly decimals: 18;
492
- };
493
- experimental_preconfirmationTime?: number | undefined | undefined;
494
- rpcUrls: {
495
- readonly default: {
496
- readonly http: readonly ["https://sepolia.base.org"];
497
- };
498
- };
499
- sourceId: 11155111;
500
- testnet: true;
501
- custom?: Record<string, unknown> | undefined;
502
- extendSchema?: Record<string, unknown> | undefined;
503
- fees?: viem0.ChainFees<undefined> | undefined;
504
- formatters: {
505
- readonly block: {
506
- exclude: [] | undefined;
507
- format: (args: viem_chains0.OpStackRpcBlock, action?: string | undefined) => {
508
- baseFeePerGas: bigint | null;
509
- blobGasUsed: bigint;
510
- difficulty: bigint;
511
- excessBlobGas: bigint;
512
- extraData: viem0.Hex;
513
- gasLimit: bigint;
514
- gasUsed: bigint;
515
- hash: `0x${string}` | null;
516
- logsBloom: `0x${string}` | null;
517
- miner: viem0.Address;
518
- mixHash: viem0.Hash;
519
- nonce: `0x${string}` | null;
520
- number: bigint | null;
521
- parentBeaconBlockRoot?: `0x${string}` | undefined;
522
- parentHash: viem0.Hash;
523
- receiptsRoot: viem0.Hex;
524
- sealFields: viem0.Hex[];
525
- sha3Uncles: viem0.Hash;
526
- size: bigint;
527
- stateRoot: viem0.Hash;
528
- timestamp: bigint;
529
- totalDifficulty: bigint | null;
530
- transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
531
- transactionsRoot: viem0.Hash;
532
- uncles: viem0.Hash[];
533
- withdrawals?: viem0.Withdrawal[] | undefined | undefined;
534
- withdrawalsRoot?: `0x${string}` | undefined;
535
- } & {};
536
- type: "block";
537
- };
538
- readonly transaction: {
539
- exclude: [] | undefined;
540
- format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
541
- blockHash: `0x${string}` | null;
542
- blockNumber: bigint | null;
543
- from: viem0.Address;
544
- gas: bigint;
545
- hash: viem0.Hash;
546
- input: viem0.Hex;
547
- nonce: number;
548
- r: viem0.Hex;
549
- s: viem0.Hex;
550
- to: viem0.Address | null;
551
- transactionIndex: number | null;
552
- typeHex: viem0.Hex | null;
553
- v: bigint;
554
- value: bigint;
555
- yParity: number;
556
- gasPrice?: undefined | undefined;
557
- maxFeePerBlobGas?: undefined | undefined;
558
- maxFeePerGas: bigint;
559
- maxPriorityFeePerGas: bigint;
560
- isSystemTx?: boolean;
561
- mint?: bigint | undefined | undefined;
562
- sourceHash: viem0.Hex;
563
- type: "deposit";
564
- } | {
565
- r: viem0.Hex;
566
- s: viem0.Hex;
567
- v: bigint;
568
- to: viem0.Address | null;
569
- from: viem0.Address;
570
- gas: bigint;
571
- nonce: number;
572
- value: bigint;
573
- blockHash: `0x${string}` | null;
574
- blockNumber: bigint | null;
575
- hash: viem0.Hash;
576
- input: viem0.Hex;
577
- transactionIndex: number | null;
578
- typeHex: viem0.Hex | null;
579
- accessList?: undefined | undefined;
580
- authorizationList?: undefined | undefined;
581
- blobVersionedHashes?: undefined | undefined;
582
- chainId?: number | undefined;
583
- yParity?: undefined | undefined;
584
- type: "legacy";
585
- gasPrice: bigint;
586
- maxFeePerBlobGas?: undefined | undefined;
587
- maxFeePerGas?: undefined | undefined;
588
- maxPriorityFeePerGas?: undefined | undefined;
589
- isSystemTx?: undefined | undefined;
590
- mint?: undefined | undefined;
591
- sourceHash?: undefined | undefined;
592
- } | {
593
- blockHash: `0x${string}` | null;
594
- blockNumber: bigint | null;
595
- from: viem0.Address;
596
- gas: bigint;
597
- hash: viem0.Hash;
598
- input: viem0.Hex;
599
- nonce: number;
600
- r: viem0.Hex;
601
- s: viem0.Hex;
602
- to: viem0.Address | null;
603
- transactionIndex: number | null;
604
- typeHex: viem0.Hex | null;
605
- v: bigint;
606
- value: bigint;
607
- yParity: number;
608
- accessList: viem0.AccessList;
609
- authorizationList?: undefined | undefined;
610
- blobVersionedHashes?: undefined | undefined;
611
- chainId: number;
612
- type: "eip2930";
613
- gasPrice: bigint;
614
- maxFeePerBlobGas?: undefined | undefined;
615
- maxFeePerGas?: undefined | undefined;
616
- maxPriorityFeePerGas?: undefined | undefined;
617
- isSystemTx?: undefined | undefined;
618
- mint?: undefined | undefined;
619
- sourceHash?: undefined | undefined;
620
- } | {
621
- blockHash: `0x${string}` | null;
622
- blockNumber: bigint | null;
623
- from: viem0.Address;
624
- gas: bigint;
625
- hash: viem0.Hash;
626
- input: viem0.Hex;
627
- nonce: number;
628
- r: viem0.Hex;
629
- s: viem0.Hex;
630
- to: viem0.Address | null;
631
- transactionIndex: number | null;
632
- typeHex: viem0.Hex | null;
633
- v: bigint;
634
- value: bigint;
635
- yParity: number;
636
- accessList: viem0.AccessList;
637
- authorizationList?: undefined | undefined;
638
- blobVersionedHashes?: undefined | undefined;
639
- chainId: number;
640
- type: "eip1559";
641
- gasPrice?: undefined | undefined;
642
- maxFeePerBlobGas?: undefined | undefined;
643
- maxFeePerGas: bigint;
644
- maxPriorityFeePerGas: bigint;
645
- isSystemTx?: undefined | undefined;
646
- mint?: undefined | undefined;
647
- sourceHash?: undefined | undefined;
648
- } | {
649
- blockHash: `0x${string}` | null;
650
- blockNumber: bigint | null;
651
- from: viem0.Address;
652
- gas: bigint;
653
- hash: viem0.Hash;
654
- input: viem0.Hex;
655
- nonce: number;
656
- r: viem0.Hex;
657
- s: viem0.Hex;
658
- to: viem0.Address | null;
659
- transactionIndex: number | null;
660
- typeHex: viem0.Hex | null;
661
- v: bigint;
662
- value: bigint;
663
- yParity: number;
664
- accessList: viem0.AccessList;
665
- authorizationList?: undefined | undefined;
666
- blobVersionedHashes: readonly viem0.Hex[];
667
- chainId: number;
668
- type: "eip4844";
669
- gasPrice?: undefined | undefined;
670
- maxFeePerBlobGas: bigint;
671
- maxFeePerGas: bigint;
672
- maxPriorityFeePerGas: bigint;
673
- isSystemTx?: undefined | undefined;
674
- mint?: undefined | undefined;
675
- sourceHash?: undefined | undefined;
676
- } | {
677
- blockHash: `0x${string}` | null;
678
- blockNumber: bigint | null;
679
- from: viem0.Address;
680
- gas: bigint;
681
- hash: viem0.Hash;
682
- input: viem0.Hex;
683
- nonce: number;
684
- r: viem0.Hex;
685
- s: viem0.Hex;
686
- to: viem0.Address | null;
687
- transactionIndex: number | null;
688
- typeHex: viem0.Hex | null;
689
- v: bigint;
690
- value: bigint;
691
- yParity: number;
692
- accessList: viem0.AccessList;
693
- authorizationList: viem0.SignedAuthorizationList;
694
- blobVersionedHashes?: undefined | undefined;
695
- chainId: number;
696
- type: "eip7702";
697
- gasPrice?: undefined | undefined;
698
- maxFeePerBlobGas?: undefined | undefined;
699
- maxFeePerGas: bigint;
700
- maxPriorityFeePerGas: bigint;
701
- isSystemTx?: undefined | undefined;
702
- mint?: undefined | undefined;
703
- sourceHash?: undefined | undefined;
704
- }) & {};
705
- type: "transaction";
706
- };
707
- readonly transactionReceipt: {
708
- exclude: [] | undefined;
709
- format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
710
- blobGasPrice?: bigint | undefined;
711
- blobGasUsed?: bigint | undefined;
712
- blockHash: viem0.Hash;
713
- blockNumber: bigint;
714
- blockTimestamp?: bigint | undefined;
715
- contractAddress: viem0.Address | null | undefined;
716
- cumulativeGasUsed: bigint;
717
- effectiveGasPrice: bigint;
718
- from: viem0.Address;
719
- gasUsed: bigint;
720
- logs: viem0.Log<bigint, number, false>[];
721
- logsBloom: viem0.Hex;
722
- root?: `0x${string}` | undefined;
723
- status: "success" | "reverted";
724
- to: viem0.Address | null;
725
- transactionHash: viem0.Hash;
726
- transactionIndex: number;
727
- type: viem0.TransactionType;
728
- l1GasPrice: bigint | null;
729
- l1GasUsed: bigint | null;
730
- l1Fee: bigint | null;
731
- l1FeeScalar: number | null;
732
- } & {};
733
- type: "transactionReceipt";
734
- };
735
- };
736
- prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
737
- phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
738
- }) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
739
- phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
740
- }) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
741
- runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
742
- }] | undefined;
743
- serializers: {
744
- readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
745
- };
746
- verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
747
- readonly network: "base-sepolia";
748
430
  };
749
431
  interface AppConfig {
750
- dataSourceRegistryContractAddress: Hex;
751
- schemaRegistryContractAddress: Hex;
752
- settlementRegistryContractAddress: Hex;
753
- chainName: string;
432
+ dataRegistryContractAddress: Hex;
754
433
  chain: Chain;
755
434
  rpcUrl: string;
756
435
  caip2: number;
757
436
  ipfsGateway: string;
758
437
  }
759
438
  declare const FangornConfig: {
760
- ArbitrumSepolia: {
761
- dataSourceRegistryContractAddress: "0x14cff4b583cabde7066d12f04bf9eaba408a426f";
762
- schemaRegistryContractAddress: "0xfe63c0748cc992c7258dc3c92b44247f44f88577";
763
- settlementRegistryContractAddress: "0x282915f5c6f6c9b15c131fa379916da47754fbef";
764
- chainName: string;
765
- chain: {
766
- blockExplorers: {
767
- readonly default: {
768
- readonly name: "Arbiscan";
769
- readonly url: "https://sepolia.arbiscan.io";
770
- readonly apiUrl: "https://api-sepolia.arbiscan.io/api";
771
- };
772
- };
773
- blockTime: 250;
774
- contracts: {
775
- readonly multicall3: {
776
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
777
- readonly blockCreated: 81930;
778
- };
779
- };
780
- ensTlds?: readonly string[] | undefined;
781
- id: 421614;
782
- name: "Arbitrum Sepolia";
783
- nativeCurrency: {
784
- readonly name: "Arbitrum Sepolia Ether";
785
- readonly symbol: "ETH";
786
- readonly decimals: 18;
787
- };
788
- experimental_preconfirmationTime?: number | undefined | undefined;
789
- rpcUrls: {
790
- readonly default: {
791
- readonly http: readonly ["https://sepolia-rollup.arbitrum.io/rpc"];
792
- };
439
+ dataRegistryContractAddress: "0x9a3811b365a4aeea1626eaad185b273424ae5e48";
440
+ chain: {
441
+ blockExplorers: {
442
+ readonly default: {
443
+ readonly name: "Arbiscan";
444
+ readonly url: "https://sepolia.arbiscan.io";
445
+ readonly apiUrl: "https://api-sepolia.arbiscan.io/api";
793
446
  };
794
- sourceId?: number | undefined | undefined;
795
- testnet: true;
796
- custom?: Record<string, unknown> | undefined;
797
- extendSchema?: Record<string, unknown> | undefined;
798
- fees?: viem0.ChainFees<undefined> | undefined;
799
- formatters?: undefined;
800
- prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
801
- phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
802
- }) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
803
- phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
804
- }) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
805
- runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
806
- }] | undefined;
807
- serializers?: viem0.ChainSerializers<undefined, viem0.TransactionSerializable> | undefined;
808
- verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
809
447
  };
810
- rpcUrl: string;
811
- caip2: number;
812
- ipfsGateway: string;
813
- };
814
- BaseSepolia: {
815
- dataSourceRegistryContractAddress: "0x6fd0e50073dbd8169bcaf066bb4a4991bfa48eeb";
816
- schemaRegistryContractAddress: "0x0";
817
- settlementRegistryContractAddress: "0x0";
818
- chainName: string;
819
- chain: {
820
- blockExplorers: {
821
- readonly default: {
822
- readonly name: "Basescan";
823
- readonly url: "https://sepolia.basescan.org";
824
- readonly apiUrl: "https://api-sepolia.basescan.org/api";
825
- };
448
+ blockTime: 250;
449
+ contracts: {
450
+ readonly multicall3: {
451
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
452
+ readonly blockCreated: 81930;
826
453
  };
827
- blockTime: 2000;
828
- contracts: {
829
- readonly disputeGameFactory: {
830
- readonly 11155111: {
831
- readonly address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1";
832
- };
833
- };
834
- readonly l2OutputOracle: {
835
- readonly 11155111: {
836
- readonly address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254";
837
- };
838
- };
839
- readonly portal: {
840
- readonly 11155111: {
841
- readonly address: "0x49f53e41452c74589e85ca1677426ba426459e85";
842
- readonly blockCreated: 4446677;
843
- };
844
- };
845
- readonly l1StandardBridge: {
846
- readonly 11155111: {
847
- readonly address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120";
848
- readonly blockCreated: 4446677;
849
- };
850
- };
851
- readonly multicall3: {
852
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
853
- readonly blockCreated: 1059647;
854
- };
855
- readonly gasPriceOracle: {
856
- readonly address: "0x420000000000000000000000000000000000000F";
857
- };
858
- readonly l1Block: {
859
- readonly address: "0x4200000000000000000000000000000000000015";
860
- };
861
- readonly l2CrossDomainMessenger: {
862
- readonly address: "0x4200000000000000000000000000000000000007";
863
- };
864
- readonly l2Erc721Bridge: {
865
- readonly address: "0x4200000000000000000000000000000000000014";
866
- };
867
- readonly l2StandardBridge: {
868
- readonly address: "0x4200000000000000000000000000000000000010";
869
- };
870
- readonly l2ToL1MessagePasser: {
871
- readonly address: "0x4200000000000000000000000000000000000016";
872
- };
873
- };
874
- ensTlds?: readonly string[] | undefined;
875
- id: 84532;
876
- name: "Base Sepolia";
877
- nativeCurrency: {
878
- readonly name: "Sepolia Ether";
879
- readonly symbol: "ETH";
880
- readonly decimals: 18;
881
- };
882
- experimental_preconfirmationTime?: number | undefined | undefined;
883
- rpcUrls: {
884
- readonly default: {
885
- readonly http: readonly ["https://sepolia.base.org"];
886
- };
887
- };
888
- sourceId: 11155111;
889
- testnet: true;
890
- custom?: Record<string, unknown> | undefined;
891
- extendSchema?: Record<string, unknown> | undefined;
892
- fees?: viem0.ChainFees<undefined> | undefined;
893
- formatters: {
894
- readonly block: {
895
- exclude: [] | undefined;
896
- format: (args: viem_chains0.OpStackRpcBlock, action?: string | undefined) => {
897
- baseFeePerGas: bigint | null;
898
- blobGasUsed: bigint;
899
- difficulty: bigint;
900
- excessBlobGas: bigint;
901
- extraData: viem0.Hex;
902
- gasLimit: bigint;
903
- gasUsed: bigint;
904
- hash: `0x${string}` | null;
905
- logsBloom: `0x${string}` | null;
906
- miner: viem0.Address;
907
- mixHash: viem0.Hash;
908
- nonce: `0x${string}` | null;
909
- number: bigint | null;
910
- parentBeaconBlockRoot?: `0x${string}` | undefined;
911
- parentHash: viem0.Hash;
912
- receiptsRoot: viem0.Hex;
913
- sealFields: viem0.Hex[];
914
- sha3Uncles: viem0.Hash;
915
- size: bigint;
916
- stateRoot: viem0.Hash;
917
- timestamp: bigint;
918
- totalDifficulty: bigint | null;
919
- transactions: `0x${string}`[] | viem_chains0.OpStackTransaction<boolean>[];
920
- transactionsRoot: viem0.Hash;
921
- uncles: viem0.Hash[];
922
- withdrawals?: viem0.Withdrawal[] | undefined | undefined;
923
- withdrawalsRoot?: `0x${string}` | undefined;
924
- } & {};
925
- type: "block";
926
- };
927
- readonly transaction: {
928
- exclude: [] | undefined;
929
- format: (args: viem_chains0.OpStackRpcTransaction, action?: string | undefined) => ({
930
- blockHash: `0x${string}` | null;
931
- blockNumber: bigint | null;
932
- from: viem0.Address;
933
- gas: bigint;
934
- hash: viem0.Hash;
935
- input: viem0.Hex;
936
- nonce: number;
937
- r: viem0.Hex;
938
- s: viem0.Hex;
939
- to: viem0.Address | null;
940
- transactionIndex: number | null;
941
- typeHex: viem0.Hex | null;
942
- v: bigint;
943
- value: bigint;
944
- yParity: number;
945
- gasPrice?: undefined | undefined;
946
- maxFeePerBlobGas?: undefined | undefined;
947
- maxFeePerGas: bigint;
948
- maxPriorityFeePerGas: bigint;
949
- isSystemTx?: boolean;
950
- mint?: bigint | undefined | undefined;
951
- sourceHash: viem0.Hex;
952
- type: "deposit";
953
- } | {
954
- r: viem0.Hex;
955
- s: viem0.Hex;
956
- v: bigint;
957
- to: viem0.Address | null;
958
- from: viem0.Address;
959
- gas: bigint;
960
- nonce: number;
961
- value: bigint;
962
- blockHash: `0x${string}` | null;
963
- blockNumber: bigint | null;
964
- hash: viem0.Hash;
965
- input: viem0.Hex;
966
- transactionIndex: number | null;
967
- typeHex: viem0.Hex | null;
968
- accessList?: undefined | undefined;
969
- authorizationList?: undefined | undefined;
970
- blobVersionedHashes?: undefined | undefined;
971
- chainId?: number | undefined;
972
- yParity?: undefined | undefined;
973
- type: "legacy";
974
- gasPrice: bigint;
975
- maxFeePerBlobGas?: undefined | undefined;
976
- maxFeePerGas?: undefined | undefined;
977
- maxPriorityFeePerGas?: undefined | undefined;
978
- isSystemTx?: undefined | undefined;
979
- mint?: undefined | undefined;
980
- sourceHash?: undefined | undefined;
981
- } | {
982
- blockHash: `0x${string}` | null;
983
- blockNumber: bigint | null;
984
- from: viem0.Address;
985
- gas: bigint;
986
- hash: viem0.Hash;
987
- input: viem0.Hex;
988
- nonce: number;
989
- r: viem0.Hex;
990
- s: viem0.Hex;
991
- to: viem0.Address | null;
992
- transactionIndex: number | null;
993
- typeHex: viem0.Hex | null;
994
- v: bigint;
995
- value: bigint;
996
- yParity: number;
997
- accessList: viem0.AccessList;
998
- authorizationList?: undefined | undefined;
999
- blobVersionedHashes?: undefined | undefined;
1000
- chainId: number;
1001
- type: "eip2930";
1002
- gasPrice: bigint;
1003
- maxFeePerBlobGas?: undefined | undefined;
1004
- maxFeePerGas?: undefined | undefined;
1005
- maxPriorityFeePerGas?: undefined | undefined;
1006
- isSystemTx?: undefined | undefined;
1007
- mint?: undefined | undefined;
1008
- sourceHash?: undefined | undefined;
1009
- } | {
1010
- blockHash: `0x${string}` | null;
1011
- blockNumber: bigint | null;
1012
- from: viem0.Address;
1013
- gas: bigint;
1014
- hash: viem0.Hash;
1015
- input: viem0.Hex;
1016
- nonce: number;
1017
- r: viem0.Hex;
1018
- s: viem0.Hex;
1019
- to: viem0.Address | null;
1020
- transactionIndex: number | null;
1021
- typeHex: viem0.Hex | null;
1022
- v: bigint;
1023
- value: bigint;
1024
- yParity: number;
1025
- accessList: viem0.AccessList;
1026
- authorizationList?: undefined | undefined;
1027
- blobVersionedHashes?: undefined | undefined;
1028
- chainId: number;
1029
- type: "eip1559";
1030
- gasPrice?: undefined | undefined;
1031
- maxFeePerBlobGas?: undefined | undefined;
1032
- maxFeePerGas: bigint;
1033
- maxPriorityFeePerGas: bigint;
1034
- isSystemTx?: undefined | undefined;
1035
- mint?: undefined | undefined;
1036
- sourceHash?: undefined | undefined;
1037
- } | {
1038
- blockHash: `0x${string}` | null;
1039
- blockNumber: bigint | null;
1040
- from: viem0.Address;
1041
- gas: bigint;
1042
- hash: viem0.Hash;
1043
- input: viem0.Hex;
1044
- nonce: number;
1045
- r: viem0.Hex;
1046
- s: viem0.Hex;
1047
- to: viem0.Address | null;
1048
- transactionIndex: number | null;
1049
- typeHex: viem0.Hex | null;
1050
- v: bigint;
1051
- value: bigint;
1052
- yParity: number;
1053
- accessList: viem0.AccessList;
1054
- authorizationList?: undefined | undefined;
1055
- blobVersionedHashes: readonly viem0.Hex[];
1056
- chainId: number;
1057
- type: "eip4844";
1058
- gasPrice?: undefined | undefined;
1059
- maxFeePerBlobGas: bigint;
1060
- maxFeePerGas: bigint;
1061
- maxPriorityFeePerGas: bigint;
1062
- isSystemTx?: undefined | undefined;
1063
- mint?: undefined | undefined;
1064
- sourceHash?: undefined | undefined;
1065
- } | {
1066
- blockHash: `0x${string}` | null;
1067
- blockNumber: bigint | null;
1068
- from: viem0.Address;
1069
- gas: bigint;
1070
- hash: viem0.Hash;
1071
- input: viem0.Hex;
1072
- nonce: number;
1073
- r: viem0.Hex;
1074
- s: viem0.Hex;
1075
- to: viem0.Address | null;
1076
- transactionIndex: number | null;
1077
- typeHex: viem0.Hex | null;
1078
- v: bigint;
1079
- value: bigint;
1080
- yParity: number;
1081
- accessList: viem0.AccessList;
1082
- authorizationList: viem0.SignedAuthorizationList;
1083
- blobVersionedHashes?: undefined | undefined;
1084
- chainId: number;
1085
- type: "eip7702";
1086
- gasPrice?: undefined | undefined;
1087
- maxFeePerBlobGas?: undefined | undefined;
1088
- maxFeePerGas: bigint;
1089
- maxPriorityFeePerGas: bigint;
1090
- isSystemTx?: undefined | undefined;
1091
- mint?: undefined | undefined;
1092
- sourceHash?: undefined | undefined;
1093
- }) & {};
1094
- type: "transaction";
1095
- };
1096
- readonly transactionReceipt: {
1097
- exclude: [] | undefined;
1098
- format: (args: viem_chains0.OpStackRpcTransactionReceipt, action?: string | undefined) => {
1099
- blobGasPrice?: bigint | undefined;
1100
- blobGasUsed?: bigint | undefined;
1101
- blockHash: viem0.Hash;
1102
- blockNumber: bigint;
1103
- blockTimestamp?: bigint | undefined;
1104
- contractAddress: viem0.Address | null | undefined;
1105
- cumulativeGasUsed: bigint;
1106
- effectiveGasPrice: bigint;
1107
- from: viem0.Address;
1108
- gasUsed: bigint;
1109
- logs: viem0.Log<bigint, number, false>[];
1110
- logsBloom: viem0.Hex;
1111
- root?: `0x${string}` | undefined;
1112
- status: "success" | "reverted";
1113
- to: viem0.Address | null;
1114
- transactionHash: viem0.Hash;
1115
- transactionIndex: number;
1116
- type: viem0.TransactionType;
1117
- l1GasPrice: bigint | null;
1118
- l1GasUsed: bigint | null;
1119
- l1Fee: bigint | null;
1120
- l1FeeScalar: number | null;
1121
- } & {};
1122
- type: "transactionReceipt";
1123
- };
1124
- };
1125
- prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
1126
- phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
1127
- }) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
1128
- phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
1129
- }) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
1130
- runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
1131
- }] | undefined;
1132
- serializers: {
1133
- readonly transaction: typeof viem_chains0.serializeTransactionOpStack;
454
+ };
455
+ ensTlds?: readonly string[] | undefined;
456
+ id: 421614;
457
+ name: "Arbitrum Sepolia";
458
+ nativeCurrency: {
459
+ readonly name: "Arbitrum Sepolia Ether";
460
+ readonly symbol: "ETH";
461
+ readonly decimals: 18;
462
+ };
463
+ experimental_preconfirmationTime?: number | undefined | undefined;
464
+ rpcUrls: {
465
+ readonly default: {
466
+ readonly http: readonly ["https://sepolia-rollup.arbitrum.io/rpc"];
1134
467
  };
1135
- verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
1136
- readonly network: "base-sepolia";
1137
468
  };
1138
- rpcUrl: string;
1139
- caip2: number;
1140
- ipfsGateway: string;
469
+ sourceId?: number | undefined | undefined;
470
+ testnet: true;
471
+ custom?: Record<string, unknown> | undefined;
472
+ extendSchema?: Record<string, unknown> | undefined;
473
+ fees?: viem0.ChainFees<undefined> | undefined;
474
+ formatters?: undefined;
475
+ prepareTransactionRequest?: ((args: viem0.PrepareTransactionRequestParameters, options: {
476
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
477
+ }) => Promise<viem0.PrepareTransactionRequestParameters>) | [fn: ((args: viem0.PrepareTransactionRequestParameters, options: {
478
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
479
+ }) => Promise<viem0.PrepareTransactionRequestParameters>) | undefined, options: {
480
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
481
+ }] | undefined;
482
+ serializers?: viem0.ChainSerializers<undefined, viem0.TransactionSerializable> | undefined;
483
+ verifyHash?: ((client: viem0.Client, parameters: viem0.VerifyHashActionParameters) => Promise<viem0.VerifyHashActionReturnType>) | undefined;
1141
484
  };
485
+ rpcUrl: string;
486
+ caip2: number;
487
+ ipfsGateway: string;
1142
488
  };
1143
489
  //#endregion
1144
490
  export { AppConfig, FangornConfig, SupportedNetworks, getNetwork as default };