@defuse-protocol/intents-sdk 0.18.0 → 0.19.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.
package/dist/index.d.cts CHANGED
@@ -427,7 +427,7 @@ declare function createIntentSignerViem(config: IntentSignerViemConfig): IIntent
427
427
 
428
428
  declare function createInternalTransferRoute(): InternalTransferRouteConfig;
429
429
  declare function createNearWithdrawalRoute(msg?: string): NearWithdrawalRouteConfig;
430
- declare function createOmniBridgeRoute(): OmniBridgeRouteConfig;
430
+ declare function createOmniBridgeRoute(chain?: Chain): OmniBridgeRouteConfig;
431
431
  declare function createVirtualChainRoute(auroraEngineContractId: string, proxyTokenContractId: string | null): VirtualChainRouteConfig;
432
432
  declare function createPoaBridgeRoute(chain: Chain): PoaBridgeRouteConfig;
433
433
  declare function createHotBridgeRoute(chain: Chain): HotBridgeRouteConfig;
@@ -516,6 +516,14 @@ declare class OmniTransferDestinationChainHashNotFoundError extends BaseError {
516
516
  destinationChain: string | undefined;
517
517
  constructor(txHash: string, destinationChain: string | undefined);
518
518
  }
519
+ type TokenNotFoundInDestinationChainErrorType = TokenNotFoundInDestinationChainError & {
520
+ name: "TokenNotFoundInDestinationChainError";
521
+ };
522
+ declare class TokenNotFoundInDestinationChainError extends BaseError {
523
+ token: string;
524
+ destinationChain: Chain;
525
+ constructor(token: string, destinationChain: Chain);
526
+ }
519
527
  type TokenNotSupportedByOmniRelayerErrorType = TokenNotSupportedByOmniRelayerError & {
520
528
  name: "TokenNotSupportedByOmniRelayerError";
521
529
  };
@@ -523,12 +531,5 @@ declare class TokenNotSupportedByOmniRelayerError extends BaseError {
523
531
  token: string;
524
532
  constructor(token: string);
525
533
  }
526
- type TokenNotFoundInDestinationChainErrorType = TokenNotFoundInDestinationChainError & {
527
- name: "TokenNotFoundInDestinationChainError";
528
- };
529
- declare class TokenNotFoundInDestinationChainError extends BaseError {
530
- token: string;
531
- constructor(token: string, chainKind: Chain);
532
- }
533
534
 
534
535
  export { type BatchWithdrawalResult, BridgeNameEnum, type BridgeNameEnumValues, type Chain, Chains, type FeeEstimation, FeeExceedsAmountError, type FeeExceedsAmountErrorType, type HotBridgeRouteConfig, HotWithdrawalCancelledError, type HotWithdrawalCancelledErrorType, HotWithdrawalNotFoundError, type HotWithdrawalNotFoundErrorType, HotWithdrawalPendingError, type HotWithdrawalPendingErrorType, type IIntentSigner, type IntentPayload, type IntentPayloadFactory, type IntentPrimitive, type IntentPublishResult, type IntentRelayParamsFactory, type IntentSettlementStatus, IntentsSDK, type IntentsSDKConfig, type InternalTransferRouteConfig, MinWithdrawalAmountError, type MinWithdrawalAmountErrorType, type NearTxInfo, type NearWithdrawalRouteConfig, type OmniBridgeRouteConfig, OmniTransferDestinationChainHashNotFoundError, type OmniTransferDestinationChainHashNotFoundErrorType, OmniTransferNotFoundError, type OmniTransferNotFoundErrorType, type OnBeforePublishIntentHook, type ParsedAssetInfo, type PoaBridgeRouteConfig, type ProcessWithdrawalArgs, type RouteConfig, RouteEnum, type RouteEnumValues, type SignAndSendWithdrawalArgs, TokenNotFoundInDestinationChainError, type TokenNotFoundInDestinationChainErrorType, TokenNotSupportedByOmniRelayerError, type TokenNotSupportedByOmniRelayerErrorType, TrustlineNotFoundError, type TrustlineNotFoundErrorType, type TxInfo, type TxNoInfo, UnsupportedAssetIdError, type UnsupportedAssetIdErrorType, UnsupportedDestinationMemoError, type UnsupportedDestinationMemoErrorType, type VirtualChainRouteConfig, type WithdrawalIdentifier, type WithdrawalParams, type WithdrawalResult, createDefaultRoute, createHotBridgeRoute, createIntentSignerNEP413, createIntentSignerNearKeyPair, createIntentSignerViem, createInternalTransferRoute, createNearWithdrawalRoute, createOmniBridgeRoute, createPoaBridgeRoute, createVirtualChainRoute };
package/dist/index.d.ts CHANGED
@@ -427,7 +427,7 @@ declare function createIntentSignerViem(config: IntentSignerViemConfig): IIntent
427
427
 
428
428
  declare function createInternalTransferRoute(): InternalTransferRouteConfig;
429
429
  declare function createNearWithdrawalRoute(msg?: string): NearWithdrawalRouteConfig;
430
- declare function createOmniBridgeRoute(): OmniBridgeRouteConfig;
430
+ declare function createOmniBridgeRoute(chain?: Chain): OmniBridgeRouteConfig;
431
431
  declare function createVirtualChainRoute(auroraEngineContractId: string, proxyTokenContractId: string | null): VirtualChainRouteConfig;
432
432
  declare function createPoaBridgeRoute(chain: Chain): PoaBridgeRouteConfig;
433
433
  declare function createHotBridgeRoute(chain: Chain): HotBridgeRouteConfig;
@@ -516,6 +516,14 @@ declare class OmniTransferDestinationChainHashNotFoundError extends BaseError {
516
516
  destinationChain: string | undefined;
517
517
  constructor(txHash: string, destinationChain: string | undefined);
518
518
  }
519
+ type TokenNotFoundInDestinationChainErrorType = TokenNotFoundInDestinationChainError & {
520
+ name: "TokenNotFoundInDestinationChainError";
521
+ };
522
+ declare class TokenNotFoundInDestinationChainError extends BaseError {
523
+ token: string;
524
+ destinationChain: Chain;
525
+ constructor(token: string, destinationChain: Chain);
526
+ }
519
527
  type TokenNotSupportedByOmniRelayerErrorType = TokenNotSupportedByOmniRelayerError & {
520
528
  name: "TokenNotSupportedByOmniRelayerError";
521
529
  };
@@ -523,12 +531,5 @@ declare class TokenNotSupportedByOmniRelayerError extends BaseError {
523
531
  token: string;
524
532
  constructor(token: string);
525
533
  }
526
- type TokenNotFoundInDestinationChainErrorType = TokenNotFoundInDestinationChainError & {
527
- name: "TokenNotFoundInDestinationChainError";
528
- };
529
- declare class TokenNotFoundInDestinationChainError extends BaseError {
530
- token: string;
531
- constructor(token: string, chainKind: Chain);
532
- }
533
534
 
534
535
  export { type BatchWithdrawalResult, BridgeNameEnum, type BridgeNameEnumValues, type Chain, Chains, type FeeEstimation, FeeExceedsAmountError, type FeeExceedsAmountErrorType, type HotBridgeRouteConfig, HotWithdrawalCancelledError, type HotWithdrawalCancelledErrorType, HotWithdrawalNotFoundError, type HotWithdrawalNotFoundErrorType, HotWithdrawalPendingError, type HotWithdrawalPendingErrorType, type IIntentSigner, type IntentPayload, type IntentPayloadFactory, type IntentPrimitive, type IntentPublishResult, type IntentRelayParamsFactory, type IntentSettlementStatus, IntentsSDK, type IntentsSDKConfig, type InternalTransferRouteConfig, MinWithdrawalAmountError, type MinWithdrawalAmountErrorType, type NearTxInfo, type NearWithdrawalRouteConfig, type OmniBridgeRouteConfig, OmniTransferDestinationChainHashNotFoundError, type OmniTransferDestinationChainHashNotFoundErrorType, OmniTransferNotFoundError, type OmniTransferNotFoundErrorType, type OnBeforePublishIntentHook, type ParsedAssetInfo, type PoaBridgeRouteConfig, type ProcessWithdrawalArgs, type RouteConfig, RouteEnum, type RouteEnumValues, type SignAndSendWithdrawalArgs, TokenNotFoundInDestinationChainError, type TokenNotFoundInDestinationChainErrorType, TokenNotSupportedByOmniRelayerError, type TokenNotSupportedByOmniRelayerErrorType, TrustlineNotFoundError, type TrustlineNotFoundErrorType, type TxInfo, type TxNoInfo, UnsupportedAssetIdError, type UnsupportedAssetIdErrorType, UnsupportedDestinationMemoError, type UnsupportedDestinationMemoErrorType, type VirtualChainRouteConfig, type WithdrawalIdentifier, type WithdrawalParams, type WithdrawalResult, createDefaultRoute, createHotBridgeRoute, createIntentSignerNEP413, createIntentSignerNearKeyPair, createIntentSignerViem, createInternalTransferRoute, createNearWithdrawalRoute, createOmniBridgeRoute, createPoaBridgeRoute, createVirtualChainRoute };