@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.
- package/dist/lib/getRosenData/abstract/AbstractRosenDataExtractor.d.ts +9 -13
- package/dist/lib/getRosenData/abstract/types.d.ts +13 -13
- package/dist/lib/getRosenData/bitcoin/BitcoinEsploraRosenExtractor.d.ts +14 -21
- package/dist/lib/getRosenData/bitcoin/BitcoinRosenExtractor.d.ts +14 -21
- package/dist/lib/getRosenData/bitcoin/BitcoinRpcRosenExtractor.js +2 -2
- package/dist/lib/getRosenData/bitcoin/utils.d.ts +1 -1
- package/dist/lib/getRosenData/cardano/CardanoBlockFrostRosenExtractor.d.ts +12 -15
- package/dist/lib/getRosenData/cardano/CardanoGraphQLRosenExtractor.d.ts +12 -15
- package/dist/lib/getRosenData/cardano/CardanoKoiosRosenExtractor.d.ts +12 -15
- package/dist/lib/getRosenData/cardano/CardanoOgmiosRosenExtractor.d.ts +12 -15
- package/dist/lib/getRosenData/cardano/CardanoRosenExtractor.d.ts +12 -15
- package/dist/lib/getRosenData/cardano/types.d.ts +90 -110
- package/dist/lib/getRosenData/ergo/ErgoNodeRosenExtractor.d.ts +14 -21
- package/dist/lib/getRosenData/ergo/ErgoRosenExtractor.d.ts +8 -12
- package/dist/lib/getRosenData/ergo/types.d.ts +24 -24
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
3
|
-
|
|
2
|
+
tokenId: string;
|
|
3
|
+
amount: bigint;
|
|
4
4
|
}
|
|
5
5
|
interface NodeAdditionalRegisters {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
24
|
+
boxId: string;
|
|
25
25
|
}
|
|
26
26
|
interface NodeDataInput {
|
|
27
|
-
|
|
27
|
+
boxId: string;
|
|
28
28
|
}
|
|
29
29
|
interface NodeTransaction {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|