@moonbeam-network/xcm-builder 3.3.9 → 4.0.1

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/build/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import { FrameSystemAccountInfo, StagingXcmV3MultiLocation } from '@polkadot/typ
4
4
  import { Struct, u128, Enum } from '@polkadot/types';
5
5
  import { Abi, PublicClient, HttpTransport } from 'viem';
6
6
  import { SubmittableExtrinsicFunction } from '@polkadot/api/types';
7
+ import { EventRecord } from '@polkadot/types/interfaces';
7
8
  import { HexString } from '@polkadot/util/types';
8
9
  import { TokenId, ChainAddress, TokenTransfer, Wormhole } from '@wormhole-foundation/sdk-connect';
9
10
 
@@ -383,7 +384,9 @@ declare function polkadotXcm$1(): {
383
384
  };
384
385
  transferAssetsToEcosystem: () => {
385
386
  X1: () => ExtrinsicConfigBuilder;
387
+ X2: () => ExtrinsicConfigBuilder;
386
388
  X3: () => ExtrinsicConfigBuilder;
389
+ X4: () => ExtrinsicConfigBuilder;
387
390
  };
388
391
  };
389
392
 
@@ -472,6 +475,52 @@ declare function FeeBuilder(): {
472
475
  xcmPaymentApi: typeof xcmPaymentApi;
473
476
  };
474
477
 
478
+ type SourceChecker = (events: EventRecord[], sourceAddress: string) => {
479
+ matched: boolean;
480
+ messageId?: string;
481
+ event?: EventRecord;
482
+ };
483
+ type DestinationChecker = (events: EventRecord[], messageId?: string) => {
484
+ matched: boolean;
485
+ success: boolean;
486
+ event?: EventRecord;
487
+ };
488
+ interface MonitorEventReturn {
489
+ xcmPallet: () => {
490
+ messageQueue: () => EventMonitoringConfig$1;
491
+ };
492
+ polkadotXcm: () => {
493
+ messageQueue: () => EventMonitoringConfig$1;
494
+ mixedQueue: () => EventMonitoringConfig$1;
495
+ xcmpQueue: () => EventMonitoringConfig$1;
496
+ };
497
+ xTokens: () => {
498
+ messageQueue: () => EventMonitoringConfig$1;
499
+ ethereumXcm: () => EventMonitoringConfig$1;
500
+ };
501
+ bridgeMessages: () => {
502
+ bridgeMessages: () => EventMonitoringConfig$1;
503
+ };
504
+ }
505
+ interface EventMonitoringConfig$1 {
506
+ checkSource: SourceChecker;
507
+ checkDestination: DestinationChecker;
508
+ }
509
+
510
+ declare function monitorEvent(): MonitorEventReturn;
511
+
512
+ declare function MonitoringBuilder(): {
513
+ monitorEvent: typeof monitorEvent;
514
+ };
515
+
516
+ interface MonitoringBuilderConfig {
517
+ eventMonitoring: EventMonitoringConfig;
518
+ }
519
+ interface EventMonitoringConfig {
520
+ checkSource: SourceChecker;
521
+ checkDestination: DestinationChecker;
522
+ }
523
+
475
524
  declare enum Protocols {
476
525
  TokenBridge = "TokenBridge",
477
526
  AutomaticTokenBridge = "AutomaticTokenBridge",
@@ -661,4 +710,4 @@ declare function MrlBuilder(): {
661
710
 
662
711
  declare const BATCH_CONTRACT_ADDRESS = "0x0000000000000000000000000000000000000808";
663
712
 
664
- export { AssetMinBuilder, type AssetMinConfigBuilder, type AssetMinConfigBuilderParams, BATCH_CONTRACT_ABI, BATCH_CONTRACT_ADDRESS, BalanceBuilder, type BalanceBuilderParams, type BalanceConfigBuilder, type BuilderParams, type ConfigBuilder, ContractBuilder, ContractConfig, type ContractConfigBuilder, type ContractConfigConstructorParams, ERC20_ABI, type EquilibriumSystemBalanceData, type EvmFunctionArgs, EvmQueryConfig, type EvmQueryConfigParams, type EvmQueryFunctions, ExtrinsicBuilder, ExtrinsicConfig, type ExtrinsicConfigBuilder, type ExtrinsicConfigConstructorParams, FeeBuilder, type FeeConfigBuilder, type FeeConfigBuilderParams, type GetVersionedAssetId, type MoonbeamRuntimeXcmConfigAssetType, MrlBuilder, type MrlBuilderParams, type MrlConfigBuilder, type MrlExecuteBuilderParams, type MrlExecuteConfigBuilder, type PalletBalancesAccountDataOld, type Parents, Protocols, type QueryConfigConstructorParams, SubstrateCallConfig, type SubstrateCallConfigConstructorParams, SubstrateQueryConfig, type TokensPalletAccountData, type Transact, WormholeConfig, type WormholeConfigConstructorParams, type WormholeFunctionArgs, type WormholeTransferFunctions, type XcmPaymentFeeProps, XcmVersion, calculateSystemAccountBalance, evm, substrate, wormhole, wormholeFactory };
713
+ export { AssetMinBuilder, type AssetMinConfigBuilder, type AssetMinConfigBuilderParams, BATCH_CONTRACT_ABI, BATCH_CONTRACT_ADDRESS, BalanceBuilder, type BalanceBuilderParams, type BalanceConfigBuilder, type BuilderParams, type ConfigBuilder, ContractBuilder, ContractConfig, type ContractConfigBuilder, type ContractConfigConstructorParams, ERC20_ABI, type EquilibriumSystemBalanceData, type EventMonitoringConfig, type EvmFunctionArgs, EvmQueryConfig, type EvmQueryConfigParams, type EvmQueryFunctions, ExtrinsicBuilder, ExtrinsicConfig, type ExtrinsicConfigBuilder, type ExtrinsicConfigConstructorParams, FeeBuilder, type FeeConfigBuilder, type FeeConfigBuilderParams, type GetVersionedAssetId, MonitoringBuilder, type MonitoringBuilderConfig, type MoonbeamRuntimeXcmConfigAssetType, MrlBuilder, type MrlBuilderParams, type MrlConfigBuilder, type MrlExecuteBuilderParams, type MrlExecuteConfigBuilder, type PalletBalancesAccountDataOld, type Parents, Protocols, type QueryConfigConstructorParams, SubstrateCallConfig, type SubstrateCallConfigConstructorParams, SubstrateQueryConfig, type TokensPalletAccountData, type Transact, WormholeConfig, type WormholeConfigConstructorParams, type WormholeFunctionArgs, type WormholeTransferFunctions, type XcmPaymentFeeProps, XcmVersion, calculateSystemAccountBalance, evm, substrate, wormhole, wormholeFactory };