@rosen-bridge/rosen-extractor 5.0.0 → 5.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.
@@ -4,25 +4,18 @@ import { NodeOutputBox, NodeTransaction } from './types';
4
4
  import { RosenTokens } from '@rosen-bridge/tokens';
5
5
  import { AbstractLogger } from '@rosen-bridge/abstract-logger';
6
6
  export declare class ErgoNodeRosenExtractor extends AbstractRosenDataExtractor<NodeTransaction> {
7
- lockErgoTree: string;
8
- constructor(
9
- lockAddress: string,
10
- tokens: RosenTokens,
11
- logger?: AbstractLogger
12
- );
13
- /**
14
- * extracts RosenData from given lock transaction in Node format
15
- * @param transaction the lock transaction in Node format
16
- */
17
- get: (transaction: NodeTransaction) => RosenData | undefined;
18
- /**
19
- * extracts and builds token transformation from NodeOutputBox and tokenMap
20
- * @param box transaction output
21
- * @param toChain event target chain
22
- */
23
- getAssetTransformation: (
24
- box: NodeOutputBox,
25
- toChain: string
26
- ) => TokenTransformation | undefined;
7
+ lockErgoTree: string;
8
+ constructor(lockAddress: string, tokens: RosenTokens, logger?: AbstractLogger);
9
+ /**
10
+ * extracts RosenData from given lock transaction in Node format
11
+ * @param transaction the lock transaction in Node format
12
+ */
13
+ get: (transaction: NodeTransaction) => RosenData | undefined;
14
+ /**
15
+ * extracts and builds token transformation from NodeOutputBox and tokenMap
16
+ * @param box transaction output
17
+ * @param toChain event target chain
18
+ */
19
+ getAssetTransformation: (box: NodeOutputBox, toChain: string) => TokenTransformation | undefined;
27
20
  }
28
- //# sourceMappingURL=ErgoNodeRosenExtractor.d.ts.map
21
+ //# sourceMappingURL=ErgoNodeRosenExtractor.d.ts.map
@@ -3,16 +3,12 @@ import AbstractRosenDataExtractor from '../abstract/AbstractRosenDataExtractor';
3
3
  import { RosenTokens } from '@rosen-bridge/tokens';
4
4
  import { AbstractLogger } from '@rosen-bridge/abstract-logger';
5
5
  export declare class ErgoRosenExtractor extends AbstractRosenDataExtractor<string> {
6
- private nodeExtractor;
7
- constructor(
8
- lockAddress: string,
9
- tokens: RosenTokens,
10
- logger?: AbstractLogger
11
- );
12
- /**
13
- * extracts RosenData from given lock transaction in wasm sigma serialized bytes
14
- * @param serializedTransaction the sigma serialized bytes of transaction
15
- */
16
- get: (serializedTransaction: string) => RosenData | undefined;
6
+ private nodeExtractor;
7
+ constructor(lockAddress: string, tokens: RosenTokens, logger?: AbstractLogger);
8
+ /**
9
+ * extracts RosenData from given lock transaction in wasm sigma serialized bytes
10
+ * @param serializedTransaction the sigma serialized bytes of transaction
11
+ */
12
+ get: (serializedTransaction: string) => RosenData | undefined;
17
13
  }
18
- //# sourceMappingURL=ErgoRosenExtractor.d.ts.map
14
+ //# sourceMappingURL=ErgoRosenExtractor.d.ts.map
@@ -1,37 +1,37 @@
1
1
  interface NodeAsset {
2
- tokenId: string;
3
- amount: bigint;
2
+ tokenId: string;
3
+ amount: bigint;
4
4
  }
5
5
  interface NodeAdditionalRegisters {
6
- R4?: string;
7
- R5?: string;
8
- R6?: string;
9
- R7?: string;
10
- R8?: string;
11
- R9?: string;
6
+ R4?: string;
7
+ R5?: string;
8
+ R6?: string;
9
+ R7?: string;
10
+ R8?: string;
11
+ R9?: string;
12
12
  }
13
13
  interface NodeOutputBox {
14
- boxId: string;
15
- value: bigint;
16
- ergoTree: string;
17
- creationHeight: bigint | number;
18
- assets?: Array<NodeAsset>;
19
- additionalRegisters?: NodeAdditionalRegisters;
20
- transactionId: string;
21
- index: bigint | number;
14
+ boxId: string;
15
+ value: bigint;
16
+ ergoTree: string;
17
+ creationHeight: bigint | number;
18
+ assets?: Array<NodeAsset>;
19
+ additionalRegisters?: NodeAdditionalRegisters;
20
+ transactionId: string;
21
+ index: bigint | number;
22
22
  }
23
23
  interface NodeInputBox {
24
- boxId: string;
24
+ boxId: string;
25
25
  }
26
26
  interface NodeDataInput {
27
- boxId: string;
27
+ boxId: string;
28
28
  }
29
29
  interface NodeTransaction {
30
- id: string;
31
- inputs: Array<NodeInputBox>;
32
- dataInputs: Array<NodeDataInput>;
33
- outputs: Array<NodeOutputBox>;
34
- size?: bigint;
30
+ id: string;
31
+ inputs: Array<NodeInputBox>;
32
+ dataInputs: Array<NodeDataInput>;
33
+ outputs: Array<NodeOutputBox>;
34
+ size?: bigint;
35
35
  }
36
36
  export { NodeOutputBox, NodeTransaction };
37
- //# sourceMappingURL=types.d.ts.map
37
+ //# sourceMappingURL=types.d.ts.map