@atomiqlabs/base 13.1.8 → 13.1.12

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 (37) hide show
  1. package/dist/btc/lightning/LightningNetworkApi.d.ts +2 -2
  2. package/dist/btcrelay/BtcRelay.d.ts +1 -1
  3. package/dist/btcrelay/synchronizer/RelaySynchronizer.d.ts +1 -1
  4. package/dist/btcrelay/types/BtcHeader.d.ts +1 -1
  5. package/dist/btcrelay/types/BtcStoredHeader.d.ts +1 -1
  6. package/dist/chains/ChainInterface.d.ts +5 -2
  7. package/dist/events/ChainEvents.d.ts +2 -2
  8. package/dist/spv_swap/SpvVaultContract.d.ts +1 -1
  9. package/dist/spv_swap/SpvVaultData.d.ts +3 -3
  10. package/dist/spv_swap/SpvVaultData.js +1 -1
  11. package/dist/spv_swap/SpvWithdrawalState.d.ts +6 -16
  12. package/dist/spv_swap/SpvWithdrawalState.js +1 -1
  13. package/dist/spv_swap/SpvWithdrawalTransactionData.d.ts +3 -1
  14. package/dist/spv_swap/SpvWithdrawalTransactionData.js +1 -1
  15. package/dist/swaps/ChainSwapType.d.ts +1 -1
  16. package/dist/swaps/ChainSwapType.js +1 -1
  17. package/dist/swaps/SwapCommitState.d.ts +1 -1
  18. package/dist/swaps/SwapCommitState.js +1 -1
  19. package/dist/swaps/SwapContract.d.ts +1 -1
  20. package/dist/swaps/SwapData.d.ts +1 -1
  21. package/dist/swaps/SwapData.js +1 -1
  22. package/package.json +1 -1
  23. package/src/btc/lightning/LightningNetworkApi.ts +2 -2
  24. package/src/btcrelay/BtcRelay.ts +1 -1
  25. package/src/btcrelay/synchronizer/RelaySynchronizer.ts +1 -1
  26. package/src/btcrelay/types/BtcHeader.ts +1 -1
  27. package/src/btcrelay/types/BtcStoredHeader.ts +1 -1
  28. package/src/chains/ChainInterface.ts +5 -2
  29. package/src/events/ChainEvents.ts +2 -2
  30. package/src/spv_swap/SpvVaultContract.ts +1 -1
  31. package/src/spv_swap/SpvVaultData.ts +3 -3
  32. package/src/spv_swap/SpvWithdrawalState.ts +6 -10
  33. package/src/spv_swap/SpvWithdrawalTransactionData.ts +3 -1
  34. package/src/swaps/ChainSwapType.ts +1 -1
  35. package/src/swaps/SwapCommitState.ts +1 -1
  36. package/src/swaps/SwapContract.ts +1 -1
  37. package/src/swaps/SwapData.ts +1 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * A type defining total capacity of a given lightning network node
3
3
  *
4
- * @category Bitcoin
4
+ * @category Lightning
5
5
  */
6
6
  export type LNNodeLiquidity = {
7
7
  publicKey: string;
@@ -11,7 +11,7 @@ export type LNNodeLiquidity = {
11
11
  /**
12
12
  * An interface for Lightning API, provides view of the public lightning network data like channel graph
13
13
  *
14
- * @category Bitcoin
14
+ * @category Lightning
15
15
  */
16
16
  export interface LightningNetworkApi {
17
17
  /**
@@ -6,7 +6,7 @@ import { AbstractSigner } from "../chains/ChainInterface";
6
6
  /**
7
7
  * Represents a BTC relay bitcoin light client contract, which verifies the bitcoin blockheaders on smart chains
8
8
  *
9
- * @category BTC Relay
9
+ * @category Chains
10
10
  */
11
11
  export interface BtcRelay<V extends BtcStoredHeader<any>, T, B extends BtcBlock, Signer extends AbstractSigner = AbstractSigner> {
12
12
  /**
@@ -43,7 +43,7 @@ export type SynchronizationResponse<V extends BtcStoredHeader<any>, T, B extends
43
43
  * necessary to synchronize the underlying relay contract to the current tip of the canonical chain,
44
44
  * automatically handles forking if necessary
45
45
  *
46
- * @category BTC Relay
46
+ * @category Chains
47
47
  */
48
48
  export interface RelaySynchronizer<V extends BtcStoredHeader<any>, T, B extends BtcBlock> {
49
49
  /**
@@ -3,7 +3,7 @@ import { Buffer } from "buffer";
3
3
  /**
4
4
  * Represents a raw bitcoin header (80-bytes) that can be synchronized to the underlying BTC relay light client contract
5
5
  *
6
- * @category BTC Relay
6
+ * @category Chains
7
7
  */
8
8
  export interface BtcHeader {
9
9
  /**
@@ -5,7 +5,7 @@ import { Buffer } from "buffer";
5
5
  * Represents a bitcoin blockheader that has already been synchronized and saved (committed) in the BTC relay
6
6
  * contract
7
7
  *
8
- * @category BTC Relay
8
+ * @category Chains
9
9
  */
10
10
  export interface BtcStoredHeader<T extends BtcHeader> {
11
11
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @category Chain
2
+ * @category Chains
3
3
  */
4
4
  export type TransactionConfirmationOptions = {
5
5
  waitForConfirmation?: boolean;
@@ -10,11 +10,12 @@ export type TransactionConfirmationOptions = {
10
10
  * Defines of a signer, contains an address getter and optionally init() & stop() functions
11
11
  * to initiate internal processes inside the signer (if required and exposed)
12
12
  *
13
- * @category Signer
13
+ * @category Chains
14
14
  */
15
15
  export type AbstractSigner = {
16
16
  type: "AtomiqAbstractSigner";
17
17
  getAddress: () => string;
18
+ getReproducibleEntropy?: (appName: string) => string;
18
19
  init?: () => Promise<void>;
19
20
  stop?: () => Promise<void>;
20
21
  };
@@ -26,6 +27,8 @@ export type AbstractSigner = {
26
27
  export declare function isAbstractSigner(val: any): val is AbstractSigner;
27
28
  /**
28
29
  * An interface representing a smart chain, allowing basic operations on the chain and reading chain data
30
+ *
31
+ * @category Chains
29
32
  */
30
33
  export interface ChainInterface<TX = any, SignedTX = any, Signer extends AbstractSigner = AbstractSigner, ChainId extends string = string, NativeSigner = any> {
31
34
  /**
@@ -3,13 +3,13 @@ import { ChainEvent } from "./types/ChainEvent";
3
3
  /**
4
4
  * A type of the on-chain event listener callback
5
5
  *
6
- * @category Events
6
+ * @category Chains
7
7
  */
8
8
  export type EventListener<T extends SwapData> = (obj: ChainEvent<T>[]) => Promise<boolean>;
9
9
  /**
10
10
  * An interface defining an on-chain events listener, allowing registering callbacks to receive on-chain events
11
11
  *
12
- * @category Events
12
+ * @category Chains
13
13
  */
14
14
  export interface ChainEvents<T extends SwapData, S extends any = any> {
15
15
  /**
@@ -10,7 +10,7 @@ import { BtcTx } from "../btc/rpc/BitcoinRpc";
10
10
  /**
11
11
  * Represents an SPV vault (UTXO-controlled vault) contract, exposes operations on the vaults
12
12
  *
13
- * @category Swaps
13
+ * @category Chains
14
14
  */
15
15
  export interface SpvVaultContract<TX = any, Signer extends AbstractSigner = AbstractSigner, ChainId extends string = string, WithdrawalTX extends SpvWithdrawalTransactionData = SpvWithdrawalTransactionData, Data extends SpvVaultData<WithdrawalTX> = SpvVaultData<WithdrawalTX>> {
16
16
  /**
@@ -7,7 +7,7 @@ import { SpvVaultDepositEvent } from "../events/types/spv_vault/SpvVaultDepositE
7
7
  /**
8
8
  * Balance for a specific token inside a vault
9
9
  *
10
- * @category Swaps
10
+ * @category Chains
11
11
  */
12
12
  export type SpvVaultTokenBalance = SpvVaultTokenData & {
13
13
  /**
@@ -22,7 +22,7 @@ export type SpvVaultTokenBalance = SpvVaultTokenData & {
22
22
  /**
23
23
  * Configuration for a specific token inside an SPV vault (UTXO-controlled vault)
24
24
  *
25
- * @category Swaps
25
+ * @category Chains
26
26
  */
27
27
  export type SpvVaultTokenData = {
28
28
  /**
@@ -37,7 +37,7 @@ export type SpvVaultTokenData = {
37
37
  /**
38
38
  * Represents the state of a single SPV vault (UTXO-controlled vault)
39
39
  *
40
- * @category Swaps
40
+ * @category Chains
41
41
  */
42
42
  export declare abstract class SpvVaultData<T extends SpvWithdrawalTransactionData = SpvWithdrawalTransactionData> implements StorageObject {
43
43
  /**
@@ -4,7 +4,7 @@ exports.SpvVaultData = void 0;
4
4
  /**
5
5
  * Represents the state of a single SPV vault (UTXO-controlled vault)
6
6
  *
7
- * @category Swaps
7
+ * @category Chains
8
8
  */
9
9
  class SpvVaultData {
10
10
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Possible states of a vault withdrawal (claim) transaction
3
3
  *
4
- * @category Swaps
4
+ * @category Chains
5
5
  */
6
6
  export declare enum SpvWithdrawalStateType {
7
7
  /**
@@ -36,6 +36,11 @@ type SpvWithdrawalStateCommon = {
36
36
  txId: string;
37
37
  owner: string;
38
38
  vaultId: bigint;
39
+ btcTxId?: string;
40
+ getTxBlock?: () => Promise<{
41
+ blockHeight: number;
42
+ blockTime: number;
43
+ }>;
39
44
  };
40
45
  /**
41
46
  * The withdrawal was successfully processed on the smart chain side
@@ -47,11 +52,6 @@ export type SpvWithdrawalClaimedState = {
47
52
  recipient: string;
48
53
  claimer: string;
49
54
  fronter: string;
50
- getClaimTxId?: () => Promise<string>;
51
- getTxBlock?: () => Promise<{
52
- blockHeight: number;
53
- blockTime: number;
54
- }>;
55
55
  } & SpvWithdrawalStateCommon;
56
56
  /**
57
57
  * The withdrawal has been fronted by some 3rd party
@@ -62,11 +62,6 @@ export type SpvWithdrawalFrontedState = {
62
62
  type: SpvWithdrawalStateType.FRONTED;
63
63
  recipient: string;
64
64
  fronter: string;
65
- getFrontTxId?: () => Promise<string>;
66
- getTxBlock?: () => Promise<{
67
- blockHeight: number;
68
- blockTime: number;
69
- }>;
70
65
  } & SpvWithdrawalStateCommon;
71
66
  /**
72
67
  * An SPV vault (UTXO-controlled vault), has been closed as a result of the claim (withdrawal) transaction,
@@ -77,11 +72,6 @@ export type SpvWithdrawalFrontedState = {
77
72
  export type SpvWithdrawalClosedState = {
78
73
  type: SpvWithdrawalStateType.CLOSED;
79
74
  error: string;
80
- getClosedTxId?: () => Promise<string>;
81
- getTxBlock?: () => Promise<{
82
- blockHeight: number;
83
- blockTime: number;
84
- }>;
85
75
  } & SpvWithdrawalStateCommon;
86
76
  /**
87
77
  * A union type for the state of the spv vault claim (withdrawal)
@@ -4,7 +4,7 @@ exports.SpvWithdrawalStateType = void 0;
4
4
  /**
5
5
  * Possible states of a vault withdrawal (claim) transaction
6
6
  *
7
- * @category Swaps
7
+ * @category Chains
8
8
  */
9
9
  var SpvWithdrawalStateType;
10
10
  (function (SpvWithdrawalStateType) {
@@ -4,6 +4,8 @@ import { Buffer } from "buffer";
4
4
  import { StorageObject } from "../storage/StorageObject";
5
5
  /**
6
6
  * Execution data assigned to the withdrawal
7
+ *
8
+ * @category Chains
7
9
  */
8
10
  export type ExecutionData = {
9
11
  executionHash: string;
@@ -12,7 +14,7 @@ export type ExecutionData = {
12
14
  /**
13
15
  * Represents the data of a single SPV vault (UTXO-controlled) vault withdrawal
14
16
  *
15
- * @category Swaps
17
+ * @category Chains
16
18
  */
17
19
  export declare abstract class SpvWithdrawalTransactionData implements StorageObject {
18
20
  /**
@@ -5,7 +5,7 @@ const buffer_1 = require("buffer");
5
5
  /**
6
6
  * Represents the data of a single SPV vault (UTXO-controlled) vault withdrawal
7
7
  *
8
- * @category Swaps
8
+ * @category Chains
9
9
  */
10
10
  class SpvWithdrawalTransactionData {
11
11
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Smart chain escrow swap types
3
3
  *
4
- * @category Swaps
4
+ * @category Chains
5
5
  */
6
6
  export declare enum ChainSwapType {
7
7
  /**
@@ -4,7 +4,7 @@ exports.ChainSwapType = void 0;
4
4
  /**
5
5
  * Smart chain escrow swap types
6
6
  *
7
- * @category Swaps
7
+ * @category Chains
8
8
  */
9
9
  var ChainSwapType;
10
10
  (function (ChainSwapType) {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Possible on-chain states of the swap escrow
3
3
  *
4
- * @category Swaps
4
+ * @category Chains
5
5
  */
6
6
  export declare enum SwapCommitStateType {
7
7
  /**
@@ -4,7 +4,7 @@ exports.SwapCommitStateType = void 0;
4
4
  /**
5
5
  * Possible on-chain states of the swap escrow
6
6
  *
7
- * @category Swaps
7
+ * @category Chains
8
8
  */
9
9
  var SwapCommitStateType;
10
10
  (function (SwapCommitStateType) {
@@ -55,7 +55,7 @@ export type BitcoinTransactionData = {
55
55
  /**
56
56
  * A contract for interacting with escrow manager swaps - escrow based swaps like HTLCs and PrTLCs
57
57
  *
58
- * @category Swaps
58
+ * @category Chains
59
59
  */
60
60
  export interface SwapContract<T extends SwapData = SwapData, TX = any, PreFetchData = any, PreFetchVerification = any, Signer extends AbstractSigner = AbstractSigner, ChainId extends string = string> {
61
61
  /**
@@ -3,7 +3,7 @@ import { StorageObject } from "../storage/StorageObject";
3
3
  /**
4
4
  * Represents full escrow swap data and parameters
5
5
  *
6
- * @category Swaps
6
+ * @category Chains
7
7
  */
8
8
  export declare abstract class SwapData implements StorageObject {
9
9
  /**
@@ -4,7 +4,7 @@ exports.SwapData = void 0;
4
4
  /**
5
5
  * Represents full escrow swap data and parameters
6
6
  *
7
- * @category Swaps
7
+ * @category Chains
8
8
  */
9
9
  class SwapData {
10
10
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/base",
3
- "version": "13.1.8",
3
+ "version": "13.1.12",
4
4
  "description": "Base classes and interfaces for atomiq protocol",
5
5
  "main": "./dist/index.js",
6
6
  "types:": "./dist/index.d.ts",
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * A type defining total capacity of a given lightning network node
4
4
  *
5
- * @category Bitcoin
5
+ * @category Lightning
6
6
  */
7
7
  export type LNNodeLiquidity = {
8
8
  publicKey: string,
@@ -13,7 +13,7 @@ export type LNNodeLiquidity = {
13
13
  /**
14
14
  * An interface for Lightning API, provides view of the public lightning network data like channel graph
15
15
  *
16
- * @category Bitcoin
16
+ * @category Lightning
17
17
  */
18
18
  export interface LightningNetworkApi {
19
19
 
@@ -6,7 +6,7 @@ import {AbstractSigner} from "../chains/ChainInterface";
6
6
  /**
7
7
  * Represents a BTC relay bitcoin light client contract, which verifies the bitcoin blockheaders on smart chains
8
8
  *
9
- * @category BTC Relay
9
+ * @category Chains
10
10
  */
11
11
  export interface BtcRelay<
12
12
  V extends BtcStoredHeader<any>,
@@ -41,7 +41,7 @@ export type SynchronizationResponse<V extends BtcStoredHeader<any>, T, B extends
41
41
  * necessary to synchronize the underlying relay contract to the current tip of the canonical chain,
42
42
  * automatically handles forking if necessary
43
43
  *
44
- * @category BTC Relay
44
+ * @category Chains
45
45
  */
46
46
  export interface RelaySynchronizer<V extends BtcStoredHeader<any>, T, B extends BtcBlock> {
47
47
 
@@ -3,7 +3,7 @@ import {Buffer} from "buffer";
3
3
  /**
4
4
  * Represents a raw bitcoin header (80-bytes) that can be synchronized to the underlying BTC relay light client contract
5
5
  *
6
- * @category BTC Relay
6
+ * @category Chains
7
7
  */
8
8
  export interface BtcHeader {
9
9
 
@@ -5,7 +5,7 @@ import {Buffer} from "buffer";
5
5
  * Represents a bitcoin blockheader that has already been synchronized and saved (committed) in the BTC relay
6
6
  * contract
7
7
  *
8
- * @category BTC Relay
8
+ * @category Chains
9
9
  */
10
10
  export interface BtcStoredHeader<T extends BtcHeader> {
11
11
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @category Chain
2
+ * @category Chains
3
3
  */
4
4
  export type TransactionConfirmationOptions = {
5
5
  waitForConfirmation?: boolean,
@@ -11,11 +11,12 @@ export type TransactionConfirmationOptions = {
11
11
  * Defines of a signer, contains an address getter and optionally init() & stop() functions
12
12
  * to initiate internal processes inside the signer (if required and exposed)
13
13
  *
14
- * @category Signer
14
+ * @category Chains
15
15
  */
16
16
  export type AbstractSigner = {
17
17
  type: "AtomiqAbstractSigner",
18
18
  getAddress: () => string,
19
+ getReproducibleEntropy?: (appName: string) => string,
19
20
  init?: () => Promise<void>,
20
21
  stop?: () => Promise<void>
21
22
  };
@@ -31,6 +32,8 @@ export function isAbstractSigner(val: any): val is AbstractSigner {
31
32
 
32
33
  /**
33
34
  * An interface representing a smart chain, allowing basic operations on the chain and reading chain data
35
+ *
36
+ * @category Chains
34
37
  */
35
38
  export interface ChainInterface<
36
39
  TX = any,
@@ -4,14 +4,14 @@ import {ChainEvent} from "./types/ChainEvent";
4
4
  /**
5
5
  * A type of the on-chain event listener callback
6
6
  *
7
- * @category Events
7
+ * @category Chains
8
8
  */
9
9
  export type EventListener<T extends SwapData> = (obj: ChainEvent<T>[]) => Promise<boolean>;
10
10
 
11
11
  /**
12
12
  * An interface defining an on-chain events listener, allowing registering callbacks to receive on-chain events
13
13
  *
14
- * @category Events
14
+ * @category Chains
15
15
  */
16
16
  export interface ChainEvents<T extends SwapData, S extends any = any> {
17
17
 
@@ -15,7 +15,7 @@ import {BtcTx} from "../btc/rpc/BitcoinRpc";
15
15
  /**
16
16
  * Represents an SPV vault (UTXO-controlled vault) contract, exposes operations on the vaults
17
17
  *
18
- * @category Swaps
18
+ * @category Chains
19
19
  */
20
20
  export interface SpvVaultContract<
21
21
  TX = any,
@@ -8,7 +8,7 @@ import {SpvVaultDepositEvent} from "../events/types/spv_vault/SpvVaultDepositEve
8
8
  /**
9
9
  * Balance for a specific token inside a vault
10
10
  *
11
- * @category Swaps
11
+ * @category Chains
12
12
  */
13
13
  export type SpvVaultTokenBalance = SpvVaultTokenData & {
14
14
  /**
@@ -24,7 +24,7 @@ export type SpvVaultTokenBalance = SpvVaultTokenData & {
24
24
  /**
25
25
  * Configuration for a specific token inside an SPV vault (UTXO-controlled vault)
26
26
  *
27
- * @category Swaps
27
+ * @category Chains
28
28
  */
29
29
  export type SpvVaultTokenData = {
30
30
  /**
@@ -40,7 +40,7 @@ export type SpvVaultTokenData = {
40
40
  /**
41
41
  * Represents the state of a single SPV vault (UTXO-controlled vault)
42
42
  *
43
- * @category Swaps
43
+ * @category Chains
44
44
  */
45
45
  export abstract class SpvVaultData<T extends SpvWithdrawalTransactionData = SpvWithdrawalTransactionData> implements StorageObject {
46
46
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Possible states of a vault withdrawal (claim) transaction
3
3
  *
4
- * @category Swaps
4
+ * @category Chains
5
5
  */
6
6
  export enum SpvWithdrawalStateType {
7
7
  /**
@@ -38,6 +38,8 @@ type SpvWithdrawalStateCommon = {
38
38
  txId: string,
39
39
  owner: string,
40
40
  vaultId: bigint,
41
+ btcTxId?: string,
42
+ getTxBlock?: () => Promise<{blockHeight: number, blockTime: number}>
41
43
  };
42
44
 
43
45
  /**
@@ -49,9 +51,7 @@ export type SpvWithdrawalClaimedState = {
49
51
  type: SpvWithdrawalStateType.CLAIMED,
50
52
  recipient: string,
51
53
  claimer: string,
52
- fronter: string,
53
- getClaimTxId?: () => Promise<string>,
54
- getTxBlock?: () => Promise<{blockHeight: number, blockTime: number}>
54
+ fronter: string
55
55
  } & SpvWithdrawalStateCommon;
56
56
 
57
57
  /**
@@ -62,9 +62,7 @@ export type SpvWithdrawalClaimedState = {
62
62
  export type SpvWithdrawalFrontedState = {
63
63
  type: SpvWithdrawalStateType.FRONTED,
64
64
  recipient: string,
65
- fronter: string,
66
- getFrontTxId?: () => Promise<string>,
67
- getTxBlock?: () => Promise<{blockHeight: number, blockTime: number}>
65
+ fronter: string
68
66
  } & SpvWithdrawalStateCommon;
69
67
 
70
68
  /**
@@ -75,9 +73,7 @@ export type SpvWithdrawalFrontedState = {
75
73
  */
76
74
  export type SpvWithdrawalClosedState = {
77
75
  type: SpvWithdrawalStateType.CLOSED,
78
- error: string,
79
- getClosedTxId?: () => Promise<string>,
80
- getTxBlock?: () => Promise<{blockHeight: number, blockTime: number}>
76
+ error: string
81
77
  } & SpvWithdrawalStateCommon;
82
78
 
83
79
  /**
@@ -4,6 +4,8 @@ import {StorageObject} from "../storage/StorageObject";
4
4
 
5
5
  /**
6
6
  * Execution data assigned to the withdrawal
7
+ *
8
+ * @category Chains
7
9
  */
8
10
  export type ExecutionData = {
9
11
  executionHash: string,
@@ -13,7 +15,7 @@ export type ExecutionData = {
13
15
  /**
14
16
  * Represents the data of a single SPV vault (UTXO-controlled) vault withdrawal
15
17
  *
16
- * @category Swaps
18
+ * @category Chains
17
19
  */
18
20
  export abstract class SpvWithdrawalTransactionData implements StorageObject {
19
21
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Smart chain escrow swap types
3
3
  *
4
- * @category Swaps
4
+ * @category Chains
5
5
  */
6
6
  export enum ChainSwapType {
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Possible on-chain states of the swap escrow
3
3
  *
4
- * @category Swaps
4
+ * @category Chains
5
5
  */
6
6
  export enum SwapCommitStateType {
7
7
  /**
@@ -58,7 +58,7 @@ export type BitcoinTransactionData = {
58
58
  /**
59
59
  * A contract for interacting with escrow manager swaps - escrow based swaps like HTLCs and PrTLCs
60
60
  *
61
- * @category Swaps
61
+ * @category Chains
62
62
  */
63
63
  export interface SwapContract<
64
64
  T extends SwapData = SwapData,
@@ -4,7 +4,7 @@ import {StorageObject} from "../storage/StorageObject";
4
4
  /**
5
5
  * Represents full escrow swap data and parameters
6
6
  *
7
- * @category Swaps
7
+ * @category Chains
8
8
  */
9
9
  export abstract class SwapData implements StorageObject {
10
10