@atomiqlabs/base 10.0.0-dev.20 → 10.0.0-dev.21

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.
@@ -0,0 +1,3 @@
1
+ export declare class TransactionRevertedError extends Error {
2
+ constructor(msg: string);
3
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionRevertedError = void 0;
4
+ class TransactionRevertedError extends Error {
5
+ constructor(msg) {
6
+ super(msg);
7
+ // Set the prototype explicitly.
8
+ Object.setPrototypeOf(this, TransactionRevertedError.prototype);
9
+ }
10
+ }
11
+ exports.TransactionRevertedError = TransactionRevertedError;
package/dist/index.d.ts CHANGED
@@ -20,6 +20,7 @@ export * from "./swaps/SwapCommitState";
20
20
  export * from "./errors/SignatureVerificationError";
21
21
  export * from "./errors/CannotInitializeATAError";
22
22
  export * from "./errors/SwapDataVerificationError";
23
+ export * from "./errors/TransactionRevertedError";
23
24
  export * from "./chains/ChainType";
24
25
  export * from "./chains/ChainData";
25
26
  export * from "./utils/BigIntBufferUtils";
package/dist/index.js CHANGED
@@ -36,6 +36,7 @@ __exportStar(require("./swaps/SwapCommitState"), exports);
36
36
  __exportStar(require("./errors/SignatureVerificationError"), exports);
37
37
  __exportStar(require("./errors/CannotInitializeATAError"), exports);
38
38
  __exportStar(require("./errors/SwapDataVerificationError"), exports);
39
+ __exportStar(require("./errors/TransactionRevertedError"), exports);
39
40
  __exportStar(require("./chains/ChainType"), exports);
40
41
  __exportStar(require("./chains/ChainData"), exports);
41
42
  __exportStar(require("./utils/BigIntBufferUtils"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/base",
3
- "version": "10.0.0-dev.20",
3
+ "version": "10.0.0-dev.21",
4
4
  "description": "Base classes and interfaces for atomiq protocol",
5
5
  "main": "./dist/index.js",
6
6
  "types:": "./dist/index.d.ts",
@@ -0,0 +1,11 @@
1
+
2
+ export class TransactionRevertedError extends Error {
3
+
4
+ constructor(msg: string) {
5
+ super(msg);
6
+ // Set the prototype explicitly.
7
+ Object.setPrototypeOf(this, TransactionRevertedError.prototype);
8
+ }
9
+
10
+ }
11
+
package/src/index.ts CHANGED
@@ -21,6 +21,7 @@ export * from "./swaps/SwapCommitState";
21
21
  export * from "./errors/SignatureVerificationError";
22
22
  export * from "./errors/CannotInitializeATAError"
23
23
  export * from "./errors/SwapDataVerificationError";
24
+ export * from "./errors/TransactionRevertedError";
24
25
 
25
26
  export * from "./chains/ChainType";
26
27
  export * from "./chains/ChainData";
@@ -1,8 +0,0 @@
1
- import { Message } from "./messages/Message";
2
- export interface EventMessaging {
3
- init(): Promise<void>;
4
- broadcast(msg: Message): Promise<void>;
5
- subscribe(callback: (msg: Message) => void): Promise<void>;
6
- unsubscribe(callback: (msg: Message) => void): Promise<boolean>;
7
- stop(): Promise<void>;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });