@rosen-bridge/rosen-extractor 6.3.0 → 6.3.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 +14 -20
- package/dist/lib/getRosenData/abstract/types.d.ts +13 -13
- package/dist/lib/getRosenData/bitcoin/BitcoinEsploraRosenExtractor.d.ts +15 -24
- package/dist/lib/getRosenData/bitcoin/BitcoinRosenExtractor.d.ts +15 -22
- package/dist/lib/getRosenData/bitcoin/BitcoinRpcRosenExtractor.d.ts +15 -22
- package/dist/lib/getRosenData/bitcoin/types.d.ts +66 -66
- package/dist/lib/getRosenData/bitcoin/utils.d.ts +1 -1
- package/dist/lib/getRosenData/cardano/CardanoBlockFrostRosenExtractor.d.ts +13 -16
- package/dist/lib/getRosenData/cardano/CardanoGraphQLRosenExtractor.d.ts +13 -16
- package/dist/lib/getRosenData/cardano/CardanoKoiosRosenExtractor.d.ts +13 -16
- package/dist/lib/getRosenData/cardano/CardanoOgmiosRosenExtractor.d.ts +13 -16
- package/dist/lib/getRosenData/cardano/CardanoRosenExtractor.d.ts +13 -16
- package/dist/lib/getRosenData/cardano/types.d.ts +90 -110
- package/dist/lib/getRosenData/cardano/utils.d.ts +8 -10
- package/dist/lib/getRosenData/doge/DogeEsploraRosenExtractor.d.ts +22 -0
- package/dist/lib/getRosenData/doge/DogeEsploraRosenExtractor.d.ts.map +1 -0
- package/dist/lib/getRosenData/doge/DogeEsploraRosenExtractor.js +104 -0
- package/dist/lib/getRosenData/doge/DogeRosenExtractor.d.ts +22 -0
- package/dist/lib/getRosenData/doge/DogeRosenExtractor.d.ts.map +1 -0
- package/dist/lib/getRosenData/doge/DogeRosenExtractor.js +112 -0
- package/dist/lib/getRosenData/doge/types.d.ts +59 -0
- package/dist/lib/getRosenData/doge/types.d.ts.map +1 -0
- package/dist/lib/getRosenData/doge/types.js +2 -0
- package/dist/lib/getRosenData/doge/utils.d.ts +13 -0
- package/dist/lib/getRosenData/doge/utils.d.ts.map +1 -0
- package/dist/lib/getRosenData/doge/utils.js +58 -0
- package/dist/lib/getRosenData/ergo/ErgoNodeRosenExtractor.d.ts +15 -22
- package/dist/lib/getRosenData/ergo/ErgoRosenExtractor.d.ts +9 -13
- package/dist/lib/getRosenData/ergo/types.d.ts +24 -24
- package/dist/lib/getRosenData/evm/EvmEthersRosenExtractor.d.ts +9 -15
- package/dist/lib/getRosenData/evm/EvmRosenExtractor.d.ts +9 -15
- package/dist/lib/getRosenData/evm/EvmRpcRosenExtractor.d.ts +19 -25
- package/dist/lib/getRosenData/evm/utils.d.ts +5 -5
- package/dist/lib/index.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/lib/getRosenData/Utils.d.ts +0 -59
- package/dist/lib/getRosenData/Utils.d.ts.map +0 -1
- package/dist/lib/getRosenData/Utils.js +0 -96
|
@@ -2,24 +2,18 @@ import { RosenTokens, TokenMap } from '@rosen-bridge/tokens';
|
|
|
2
2
|
import { RosenData } from './types';
|
|
3
3
|
import { AbstractLogger } from '@rosen-bridge/abstract-logger';
|
|
4
4
|
export default abstract class AbstractRosenDataExtractor<TransactionType> {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* extracts RosenData from given lock transaction
|
|
20
|
-
*/
|
|
21
|
-
abstract extractRawData: (
|
|
22
|
-
transaction: TransactionType
|
|
23
|
-
) => RosenData | undefined;
|
|
5
|
+
abstract readonly chain: string;
|
|
6
|
+
protected readonly logger: AbstractLogger;
|
|
7
|
+
protected readonly tokens: TokenMap;
|
|
8
|
+
protected readonly lockAddress: string;
|
|
9
|
+
constructor(lockAddress: string, tokens: RosenTokens, logger?: AbstractLogger);
|
|
10
|
+
/**
|
|
11
|
+
* extracts RosenData from given lock transaction and wrap the amount
|
|
12
|
+
*/
|
|
13
|
+
get: (transaction: TransactionType) => RosenData | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* extracts RosenData from given lock transaction
|
|
16
|
+
*/
|
|
17
|
+
abstract extractRawData: (transaction: TransactionType) => RosenData | undefined;
|
|
24
18
|
}
|
|
25
|
-
//# sourceMappingURL=AbstractRosenDataExtractor.d.ts.map
|
|
19
|
+
//# sourceMappingURL=AbstractRosenDataExtractor.d.ts.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
interface RosenData {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
toChain: string;
|
|
3
|
+
toAddress: string;
|
|
4
|
+
bridgeFee: string;
|
|
5
|
+
networkFee: string;
|
|
6
|
+
fromAddress: string;
|
|
7
|
+
sourceChainTokenId: string;
|
|
8
|
+
amount: string;
|
|
9
|
+
targetChainTokenId: string;
|
|
10
|
+
sourceTxId: string;
|
|
11
11
|
}
|
|
12
12
|
interface TokenTransformation {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
from: string;
|
|
14
|
+
to: string;
|
|
15
|
+
amount: string;
|
|
16
16
|
}
|
|
17
17
|
export { RosenData, TokenTransformation };
|
|
18
|
-
//# sourceMappingURL=types.d.ts.map
|
|
18
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -4,28 +4,19 @@ import { BitcoinEsploraTransaction, EsploraTxOutput } from './types';
|
|
|
4
4
|
import { RosenTokens } from '@rosen-bridge/tokens';
|
|
5
5
|
import { AbstractLogger } from '@rosen-bridge/abstract-logger';
|
|
6
6
|
export declare class BitcoinEsploraRosenExtractor extends AbstractRosenDataExtractor<BitcoinEsploraTransaction> {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* extracts and builds token transformation from UTXO and tokenMap
|
|
23
|
-
* @param box transaction output
|
|
24
|
-
* @param toChain event target chain
|
|
25
|
-
*/
|
|
26
|
-
getAssetTransformation: (
|
|
27
|
-
box: EsploraTxOutput,
|
|
28
|
-
toChain: string
|
|
29
|
-
) => TokenTransformation | undefined;
|
|
7
|
+
readonly chain = "bitcoin";
|
|
8
|
+
protected lockScriptPubKey: string;
|
|
9
|
+
constructor(lockAddress: string, tokens: RosenTokens, logger?: AbstractLogger);
|
|
10
|
+
/**
|
|
11
|
+
* extracts RosenData from given lock transaction in Esplora format
|
|
12
|
+
* @param transaction the lock transaction in Esplora format
|
|
13
|
+
*/
|
|
14
|
+
extractRawData: (transaction: BitcoinEsploraTransaction) => RosenData | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* extracts and builds token transformation from UTXO and tokenMap
|
|
17
|
+
* @param box transaction output
|
|
18
|
+
* @param toChain event target chain
|
|
19
|
+
*/
|
|
20
|
+
getAssetTransformation: (box: EsploraTxOutput, toChain: string) => TokenTransformation | undefined;
|
|
30
21
|
}
|
|
31
|
-
//# sourceMappingURL=BitcoinEsploraRosenExtractor.d.ts.map
|
|
22
|
+
//# sourceMappingURL=BitcoinEsploraRosenExtractor.d.ts.map
|
|
@@ -4,26 +4,19 @@ import { BitcoinTxOutput } from './types';
|
|
|
4
4
|
import { RosenTokens } from '@rosen-bridge/tokens';
|
|
5
5
|
import { AbstractLogger } from '@rosen-bridge/abstract-logger';
|
|
6
6
|
export declare class BitcoinRosenExtractor extends AbstractRosenDataExtractor<string> {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
* @param box transaction output
|
|
22
|
-
* @param toChain event target chain
|
|
23
|
-
*/
|
|
24
|
-
getAssetTransformation: (
|
|
25
|
-
box: BitcoinTxOutput,
|
|
26
|
-
toChain: string
|
|
27
|
-
) => TokenTransformation | undefined;
|
|
7
|
+
readonly chain = "bitcoin";
|
|
8
|
+
protected lockScriptPubKey: string;
|
|
9
|
+
constructor(lockAddress: string, tokens: RosenTokens, logger?: AbstractLogger);
|
|
10
|
+
/**
|
|
11
|
+
* extracts RosenData from given lock transaction in BitcoinTx format
|
|
12
|
+
* @param serializedTransaction stringified transaction in BitcoinTx format
|
|
13
|
+
*/
|
|
14
|
+
extractRawData: (serializedTransaction: string) => RosenData | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* extracts and builds token transformation from UTXO and tokenMap
|
|
17
|
+
* @param box transaction output
|
|
18
|
+
* @param toChain event target chain
|
|
19
|
+
*/
|
|
20
|
+
getAssetTransformation: (box: BitcoinTxOutput, toChain: string) => TokenTransformation | undefined;
|
|
28
21
|
}
|
|
29
|
-
//# sourceMappingURL=BitcoinRosenExtractor.d.ts.map
|
|
22
|
+
//# sourceMappingURL=BitcoinRosenExtractor.d.ts.map
|
|
@@ -4,26 +4,19 @@ import { BitcoinRpcTransaction, BitcoinRpcTxOutput } from './types';
|
|
|
4
4
|
import { RosenTokens } from '@rosen-bridge/tokens';
|
|
5
5
|
import { AbstractLogger } from '@rosen-bridge/abstract-logger';
|
|
6
6
|
export declare class BitcoinRpcRosenExtractor extends AbstractRosenDataExtractor<BitcoinRpcTransaction> {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
* @param box transaction output
|
|
22
|
-
* @param toChain event target chain
|
|
23
|
-
*/
|
|
24
|
-
getAssetTransformation: (
|
|
25
|
-
box: BitcoinRpcTxOutput,
|
|
26
|
-
toChain: string
|
|
27
|
-
) => TokenTransformation | undefined;
|
|
7
|
+
readonly chain = "bitcoin";
|
|
8
|
+
protected lockScriptPubKey: string;
|
|
9
|
+
constructor(lockAddress: string, tokens: RosenTokens, logger?: AbstractLogger);
|
|
10
|
+
/**
|
|
11
|
+
* extracts RosenData from given lock transaction in Rpc format
|
|
12
|
+
* @param transaction the lock transaction in Rpc format
|
|
13
|
+
*/
|
|
14
|
+
extractRawData: (transaction: BitcoinRpcTransaction) => RosenData | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* extracts and builds token transformation from UTXO and tokenMap
|
|
17
|
+
* @param box transaction output
|
|
18
|
+
* @param toChain event target chain
|
|
19
|
+
*/
|
|
20
|
+
getAssetTransformation: (box: BitcoinRpcTxOutput, toChain: string) => TokenTransformation | undefined;
|
|
28
21
|
}
|
|
29
|
-
//# sourceMappingURL=BitcoinRpcRosenExtractor.d.ts.map
|
|
22
|
+
//# sourceMappingURL=BitcoinRpcRosenExtractor.d.ts.map
|
|
@@ -1,89 +1,89 @@
|
|
|
1
1
|
export interface OpReturnData {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
toChain: string;
|
|
3
|
+
toAddress: string;
|
|
4
|
+
bridgeFee: string;
|
|
5
|
+
networkFee: string;
|
|
6
6
|
}
|
|
7
7
|
export interface EsploraTxInput {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
txid: string;
|
|
9
|
+
vout: number;
|
|
10
|
+
prevout: {
|
|
11
|
+
scriptpubkey: string;
|
|
12
|
+
scriptpubkey_asm: string;
|
|
13
|
+
scriptpubkey_type: string;
|
|
14
|
+
scriptpubkey_address: string;
|
|
15
|
+
value: number;
|
|
16
|
+
};
|
|
17
|
+
scriptsig: string;
|
|
18
|
+
scriptsig_asm: string;
|
|
19
|
+
is_coinbase: false;
|
|
20
|
+
sequence: number;
|
|
21
|
+
}
|
|
22
|
+
export interface EsploraTxOutput {
|
|
11
23
|
scriptpubkey: string;
|
|
12
24
|
scriptpubkey_asm: string;
|
|
13
25
|
scriptpubkey_type: string;
|
|
14
26
|
scriptpubkey_address: string;
|
|
15
27
|
value: number;
|
|
16
|
-
};
|
|
17
|
-
scriptsig: string;
|
|
18
|
-
scriptsig_asm: string;
|
|
19
|
-
is_coinbase: false;
|
|
20
|
-
sequence: number;
|
|
21
|
-
}
|
|
22
|
-
export interface EsploraTxOutput {
|
|
23
|
-
scriptpubkey: string;
|
|
24
|
-
scriptpubkey_asm: string;
|
|
25
|
-
scriptpubkey_type: string;
|
|
26
|
-
scriptpubkey_address: string;
|
|
27
|
-
value: number;
|
|
28
28
|
}
|
|
29
29
|
export interface BitcoinEsploraTransaction {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
txid: string;
|
|
31
|
+
version: number;
|
|
32
|
+
locktime: number;
|
|
33
|
+
vin: Array<EsploraTxInput>;
|
|
34
|
+
vout: Array<EsploraTxOutput>;
|
|
35
|
+
size: number;
|
|
36
|
+
weight: number;
|
|
37
|
+
fee: number;
|
|
38
|
+
status: {
|
|
39
|
+
confirmed: true;
|
|
40
|
+
block_height: number;
|
|
41
|
+
block_hash: string;
|
|
42
|
+
block_time: number;
|
|
43
|
+
};
|
|
44
44
|
}
|
|
45
45
|
export interface BitcoinTxInput {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
txId: string;
|
|
47
|
+
index: number;
|
|
48
|
+
scriptPubKey: string;
|
|
49
49
|
}
|
|
50
50
|
export interface BitcoinTxOutput {
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
scriptPubKey: string;
|
|
52
|
+
value: bigint;
|
|
53
53
|
}
|
|
54
54
|
export interface BitcoinTx {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
id: string;
|
|
56
|
+
inputs: BitcoinTxInput[];
|
|
57
|
+
outputs: BitcoinTxOutput[];
|
|
58
58
|
}
|
|
59
59
|
export interface BitcoinRpcTxInput {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
60
|
+
txid: string;
|
|
61
|
+
vout: number;
|
|
62
|
+
scriptSig: {
|
|
63
|
+
asm: string;
|
|
64
|
+
hex: string;
|
|
65
|
+
};
|
|
66
|
+
txinwitness: Array<string>;
|
|
67
|
+
sequence: number;
|
|
68
68
|
}
|
|
69
69
|
export interface BitcoinRpcTxOutput {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
70
|
+
value: number;
|
|
71
|
+
n: number;
|
|
72
|
+
scriptPubKey: {
|
|
73
|
+
asm: string;
|
|
74
|
+
hex: string;
|
|
75
|
+
};
|
|
76
76
|
}
|
|
77
77
|
export interface BitcoinRpcTransaction {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
78
|
+
txid: string;
|
|
79
|
+
hash: string;
|
|
80
|
+
version: number;
|
|
81
|
+
size: number;
|
|
82
|
+
vsize: number;
|
|
83
|
+
weight: number;
|
|
84
|
+
locktime: number;
|
|
85
|
+
vin: Array<BitcoinRpcTxInput>;
|
|
86
|
+
vout: Array<BitcoinRpcTxOutput>;
|
|
87
|
+
hex: string;
|
|
88
88
|
}
|
|
89
|
-
//# sourceMappingURL=types.d.ts.map
|
|
89
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -2,20 +2,17 @@ import { RosenData, TokenTransformation } from '../abstract/types';
|
|
|
2
2
|
import AbstractRosenDataExtractor from '../abstract/AbstractRosenDataExtractor';
|
|
3
3
|
import { BlockFrostOutputBox, BlockFrostTransaction } from './types';
|
|
4
4
|
export declare class CardanoBlockFrostRosenExtractor extends AbstractRosenDataExtractor<BlockFrostTransaction> {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
box: BlockFrostOutputBox,
|
|
18
|
-
toChain: string
|
|
19
|
-
) => TokenTransformation | undefined;
|
|
5
|
+
readonly chain = "cardano";
|
|
6
|
+
/**
|
|
7
|
+
* extracts RosenData from given lock transaction in blockfrost format
|
|
8
|
+
* @param transaction the lock transaction in blockfrost format
|
|
9
|
+
*/
|
|
10
|
+
extractRawData: (transaction: BlockFrostTransaction) => RosenData | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* extracts and builds token transformation from UTXO and tokenMap
|
|
13
|
+
* @param box transaction output
|
|
14
|
+
* @param toChain event target chain
|
|
15
|
+
*/
|
|
16
|
+
getAssetTransformation: (box: BlockFrostOutputBox, toChain: string) => TokenTransformation | undefined;
|
|
20
17
|
}
|
|
21
|
-
//# sourceMappingURL=CardanoBlockFrostRosenExtractor.d.ts.map
|
|
18
|
+
//# sourceMappingURL=CardanoBlockFrostRosenExtractor.d.ts.map
|
|
@@ -2,20 +2,17 @@ import { RosenData, TokenTransformation } from '../abstract/types';
|
|
|
2
2
|
import AbstractRosenDataExtractor from '../abstract/AbstractRosenDataExtractor';
|
|
3
3
|
import { GraphQLTransaction, GraphQLTxOutput } from './types';
|
|
4
4
|
export declare class CardanoGraphQLRosenExtractor extends AbstractRosenDataExtractor<GraphQLTransaction> {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
box: GraphQLTxOutput,
|
|
18
|
-
toChain: string
|
|
19
|
-
) => TokenTransformation | undefined;
|
|
5
|
+
readonly chain = "cardano";
|
|
6
|
+
/**
|
|
7
|
+
* extracts RosenData from given lock transaction in graphql format
|
|
8
|
+
* @param transaction the lock transaction in graphql format
|
|
9
|
+
*/
|
|
10
|
+
extractRawData: (transaction: GraphQLTransaction) => RosenData | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* extracts and builds token transformation from UTXO and tokenMap
|
|
13
|
+
* @param box transaction output
|
|
14
|
+
* @param toChain event target chain
|
|
15
|
+
*/
|
|
16
|
+
getAssetTransformation: (box: GraphQLTxOutput, toChain: string) => TokenTransformation | undefined;
|
|
20
17
|
}
|
|
21
|
-
//# sourceMappingURL=CardanoGraphQLRosenExtractor.d.ts.map
|
|
18
|
+
//# sourceMappingURL=CardanoGraphQLRosenExtractor.d.ts.map
|
|
@@ -2,20 +2,17 @@ import { RosenData, TokenTransformation } from '../abstract/types';
|
|
|
2
2
|
import AbstractRosenDataExtractor from '../abstract/AbstractRosenDataExtractor';
|
|
3
3
|
import { KoiosTransaction, Utxo } from './types';
|
|
4
4
|
export declare class CardanoKoiosRosenExtractor extends AbstractRosenDataExtractor<KoiosTransaction> {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
box: Utxo,
|
|
18
|
-
toChain: string
|
|
19
|
-
) => TokenTransformation | undefined;
|
|
5
|
+
readonly chain = "cardano";
|
|
6
|
+
/**
|
|
7
|
+
* extracts RosenData from given lock transaction in Koios format
|
|
8
|
+
* @param transaction the lock transaction in Koios format
|
|
9
|
+
*/
|
|
10
|
+
extractRawData: (transaction: KoiosTransaction) => RosenData | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* extracts and builds token transformation from UTXO and tokenMap
|
|
13
|
+
* @param box transaction output
|
|
14
|
+
* @param toChain event target chain
|
|
15
|
+
*/
|
|
16
|
+
getAssetTransformation: (box: Utxo, toChain: string) => TokenTransformation | undefined;
|
|
20
17
|
}
|
|
21
|
-
//# sourceMappingURL=CardanoKoiosRosenExtractor.d.ts.map
|
|
18
|
+
//# sourceMappingURL=CardanoKoiosRosenExtractor.d.ts.map
|
|
@@ -2,20 +2,17 @@ import { RosenData, TokenTransformation } from '../abstract/types';
|
|
|
2
2
|
import AbstractRosenDataExtractor from '../abstract/AbstractRosenDataExtractor';
|
|
3
3
|
import { Transaction, TransactionOutput } from '@cardano-ogmios/schema';
|
|
4
4
|
export declare class CardanoOgmiosRosenExtractor extends AbstractRosenDataExtractor<Transaction> {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
box: TransactionOutput,
|
|
18
|
-
toChain: string
|
|
19
|
-
) => TokenTransformation | undefined;
|
|
5
|
+
readonly chain = "cardano";
|
|
6
|
+
/**
|
|
7
|
+
* extracts RosenData from given lock transaction in Ogmios format
|
|
8
|
+
* @param transaction the lock transaction in Koios format
|
|
9
|
+
*/
|
|
10
|
+
extractRawData: (transaction: Transaction) => RosenData | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* extracts and builds token transformation from TxOut and tokenMap
|
|
13
|
+
* @param box transaction output
|
|
14
|
+
* @param toChain event target chain
|
|
15
|
+
*/
|
|
16
|
+
getAssetTransformation: (box: TransactionOutput, toChain: string) => TokenTransformation | undefined;
|
|
20
17
|
}
|
|
21
|
-
//# sourceMappingURL=CardanoOgmiosRosenExtractor.d.ts.map
|
|
18
|
+
//# sourceMappingURL=CardanoOgmiosRosenExtractor.d.ts.map
|
|
@@ -2,20 +2,17 @@ import AbstractRosenDataExtractor from '../abstract/AbstractRosenDataExtractor';
|
|
|
2
2
|
import { RosenData, TokenTransformation } from '../abstract/types';
|
|
3
3
|
import { CardanoBoxCandidate } from './types';
|
|
4
4
|
export declare class CardanoRosenExtractor extends AbstractRosenDataExtractor<string> {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
box: CardanoBoxCandidate,
|
|
18
|
-
toChain: string
|
|
19
|
-
) => TokenTransformation | undefined;
|
|
5
|
+
readonly chain = "cardano";
|
|
6
|
+
/**
|
|
7
|
+
* extracts RosenData from given lock transaction in CardanoTx format
|
|
8
|
+
* @param serializedTransaction stringified transaction in CardanoTx format
|
|
9
|
+
*/
|
|
10
|
+
extractRawData: (serializedTransaction: string) => RosenData | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* extracts and builds token transformation from CardanoBoxCandidate and tokenMap
|
|
13
|
+
* @param box transaction output in CardanoBoxCandidate format
|
|
14
|
+
* @param toChain event target chain
|
|
15
|
+
*/
|
|
16
|
+
getAssetTransformation: (box: CardanoBoxCandidate, toChain: string) => TokenTransformation | undefined;
|
|
20
17
|
}
|
|
21
|
-
//# sourceMappingURL=CardanoRosenExtractor.d.ts.map
|
|
18
|
+
//# sourceMappingURL=CardanoRosenExtractor.d.ts.map
|