@rosen-bridge/rosen-extractor 4.1.1 → 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/BitcoinEsploraRosenExtractor.js +2 -2
- package/dist/lib/getRosenData/bitcoin/BitcoinRosenExtractor.d.ts +14 -21
- package/dist/lib/getRosenData/bitcoin/BitcoinRosenExtractor.d.ts.map +1 -1
- package/dist/lib/getRosenData/bitcoin/BitcoinRosenExtractor.js +2 -2
- package/dist/lib/getRosenData/bitcoin/BitcoinRpcRosenExtractor.d.ts +21 -0
- package/dist/lib/getRosenData/bitcoin/BitcoinRpcRosenExtractor.d.ts.map +1 -0
- package/dist/lib/getRosenData/bitcoin/BitcoinRpcRosenExtractor.js +104 -0
- package/dist/lib/getRosenData/bitcoin/types.d.ts +72 -42
- package/dist/lib/getRosenData/bitcoin/types.d.ts.map +1 -1
- package/dist/lib/getRosenData/bitcoin/types.js +1 -1
- 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/lib/index.d.ts +2 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +3 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -2,19 +2,16 @@ 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
|
-
box: GraphQLTxOutput,
|
|
17
|
-
toChain: string
|
|
18
|
-
) => TokenTransformation | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* extracts RosenData from given lock transaction in graphql format
|
|
7
|
+
* @param transaction the lock transaction in graphql format
|
|
8
|
+
*/
|
|
9
|
+
get: (transaction: GraphQLTransaction) => RosenData | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* extracts and builds token transformation from UTXO and tokenMap
|
|
12
|
+
* @param box transaction output
|
|
13
|
+
* @param toChain event target chain
|
|
14
|
+
*/
|
|
15
|
+
getAssetTransformation: (box: GraphQLTxOutput, toChain: string) => TokenTransformation | undefined;
|
|
19
16
|
}
|
|
20
|
-
//# sourceMappingURL=CardanoGraphQLRosenExtractor.d.ts.map
|
|
17
|
+
//# sourceMappingURL=CardanoGraphQLRosenExtractor.d.ts.map
|
|
@@ -2,19 +2,16 @@ 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
|
-
box: Utxo,
|
|
17
|
-
toChain: string
|
|
18
|
-
) => TokenTransformation | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* extracts RosenData from given lock transaction in Koios format
|
|
7
|
+
* @param transaction the lock transaction in Koios format
|
|
8
|
+
*/
|
|
9
|
+
get: (transaction: KoiosTransaction) => RosenData | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* extracts and builds token transformation from UTXO and tokenMap
|
|
12
|
+
* @param box transaction output
|
|
13
|
+
* @param toChain event target chain
|
|
14
|
+
*/
|
|
15
|
+
getAssetTransformation: (box: Utxo, toChain: string) => TokenTransformation | undefined;
|
|
19
16
|
}
|
|
20
|
-
//# sourceMappingURL=CardanoKoiosRosenExtractor.d.ts.map
|
|
17
|
+
//# sourceMappingURL=CardanoKoiosRosenExtractor.d.ts.map
|
|
@@ -2,19 +2,16 @@ 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
|
-
box: TransactionOutput,
|
|
17
|
-
toChain: string
|
|
18
|
-
) => TokenTransformation | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* extracts RosenData from given lock transaction in Ogmios format
|
|
7
|
+
* @param transaction the lock transaction in Koios format
|
|
8
|
+
*/
|
|
9
|
+
get: (transaction: Transaction) => RosenData | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* extracts and builds token transformation from TxOut and tokenMap
|
|
12
|
+
* @param box transaction output
|
|
13
|
+
* @param toChain event target chain
|
|
14
|
+
*/
|
|
15
|
+
getAssetTransformation: (box: TransactionOutput, toChain: string) => TokenTransformation | undefined;
|
|
19
16
|
}
|
|
20
|
-
//# sourceMappingURL=CardanoOgmiosRosenExtractor.d.ts.map
|
|
17
|
+
//# sourceMappingURL=CardanoOgmiosRosenExtractor.d.ts.map
|
|
@@ -2,19 +2,16 @@ 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
|
-
box: CardanoBoxCandidate,
|
|
17
|
-
toChain: string
|
|
18
|
-
) => TokenTransformation | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* extracts RosenData from given lock transaction in CardanoTx format
|
|
7
|
+
* @param serializedTransaction stringified transaction in CardanoTx format
|
|
8
|
+
*/
|
|
9
|
+
get: (serializedTransaction: string) => RosenData | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* extracts and builds token transformation from CardanoBoxCandidate and tokenMap
|
|
12
|
+
* @param box transaction output in CardanoBoxCandidate format
|
|
13
|
+
* @param toChain event target chain
|
|
14
|
+
*/
|
|
15
|
+
getAssetTransformation: (box: CardanoBoxCandidate, toChain: string) => TokenTransformation | undefined;
|
|
19
16
|
}
|
|
20
|
-
//# sourceMappingURL=CardanoRosenExtractor.d.ts.map
|
|
17
|
+
//# sourceMappingURL=CardanoRosenExtractor.d.ts.map
|
|
@@ -1,146 +1,126 @@
|
|
|
1
1
|
import { components } from '@blockfrost/openapi';
|
|
2
2
|
interface PaymentAddr {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
bech32: string;
|
|
4
|
+
cred: string;
|
|
5
5
|
}
|
|
6
6
|
interface Asset {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
policy_id: string;
|
|
8
|
+
asset_name: string;
|
|
9
|
+
quantity: string;
|
|
10
10
|
}
|
|
11
11
|
interface Utxo {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
payment_addr: PaymentAddr;
|
|
13
|
+
stake_addr?: string | null;
|
|
14
|
+
tx_hash: string;
|
|
15
|
+
tx_index: number;
|
|
16
|
+
value: string;
|
|
17
|
+
asset_list: Array<Asset>;
|
|
18
18
|
}
|
|
19
19
|
interface Metadata {
|
|
20
|
-
|
|
20
|
+
[key: string]: Record<string, unknown>;
|
|
21
21
|
}
|
|
22
22
|
interface KoiosTransaction {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
tx_hash: string;
|
|
24
|
+
block_hash: string;
|
|
25
|
+
inputs: Array<Utxo>;
|
|
26
|
+
outputs: Array<Utxo>;
|
|
27
|
+
metadata?: Metadata;
|
|
28
28
|
}
|
|
29
29
|
interface CardanoRosenData {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
toChain: string;
|
|
31
|
+
toAddress: string;
|
|
32
|
+
bridgeFee: string;
|
|
33
|
+
networkFee: string;
|
|
34
|
+
fromAddress: string;
|
|
35
35
|
}
|
|
36
36
|
interface CardanoMetadataRosenData {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
to: string;
|
|
38
|
+
networkFee: string;
|
|
39
|
+
bridgeFee: string;
|
|
40
|
+
toAddress: string;
|
|
41
|
+
fromAddress: string[];
|
|
42
42
|
}
|
|
43
43
|
type ListObject = Array<MetadataObject>;
|
|
44
44
|
type NativeValue = string | undefined;
|
|
45
45
|
interface JsonObject {
|
|
46
|
-
|
|
46
|
+
[key: string]: MetadataObject;
|
|
47
47
|
}
|
|
48
48
|
type MetadataObject = JsonObject | ListObject | NativeValue;
|
|
49
49
|
interface CardanoAsset {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
policy_id: string;
|
|
51
|
+
asset_name: string;
|
|
52
|
+
quantity: string;
|
|
53
53
|
}
|
|
54
54
|
interface CardanoUtxo {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
txId: string;
|
|
56
|
+
index: number;
|
|
57
|
+
value: bigint;
|
|
58
|
+
assets: Array<CardanoAsset>;
|
|
59
59
|
}
|
|
60
60
|
interface CardanoBoxCandidate {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
address: string;
|
|
62
|
+
value: bigint;
|
|
63
|
+
assets: Array<CardanoAsset>;
|
|
64
64
|
}
|
|
65
65
|
type CardanoMetadata = Record<string, string | Record<string, any>>;
|
|
66
66
|
interface CardanoTx {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
id: string;
|
|
68
|
+
inputs: CardanoUtxo[];
|
|
69
|
+
outputs: CardanoBoxCandidate[];
|
|
70
|
+
fee: bigint;
|
|
71
|
+
metadata?: CardanoMetadata;
|
|
72
72
|
}
|
|
73
73
|
interface BlockFrostTransaction {
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
utxos: components['schemas']['tx_content_utxo'];
|
|
75
|
+
metadata: components['schemas']['tx_content_metadata'];
|
|
76
76
|
}
|
|
77
|
-
type BlockFrostOutputBox =
|
|
78
|
-
components['schemas']['tx_content_utxo']['outputs'][0];
|
|
77
|
+
type BlockFrostOutputBox = components['schemas']['tx_content_utxo']['outputs'][0];
|
|
79
78
|
type GraphQLBlockTxsQuery = {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
79
|
+
__typename?: 'Query';
|
|
80
|
+
blocks: Array<{
|
|
81
|
+
__typename?: 'Block';
|
|
82
|
+
transactions: Array<{
|
|
83
|
+
__typename?: 'Transaction';
|
|
84
|
+
hash: any;
|
|
85
|
+
fee: any;
|
|
86
|
+
inputs: Array<{
|
|
87
|
+
__typename?: 'TransactionInput';
|
|
88
|
+
sourceTxIndex: number;
|
|
89
|
+
sourceTxHash: any;
|
|
90
|
+
value: any;
|
|
91
|
+
tokens: Array<{
|
|
92
|
+
__typename?: 'Token';
|
|
93
|
+
quantity: string;
|
|
94
|
+
asset: {
|
|
95
|
+
__typename?: 'Asset';
|
|
96
|
+
assetName?: any | null;
|
|
97
|
+
policyId: any;
|
|
98
|
+
};
|
|
99
|
+
} | null>;
|
|
100
|
+
}>;
|
|
101
|
+
outputs: Array<{
|
|
102
|
+
__typename?: 'TransactionOutput';
|
|
103
|
+
address: string;
|
|
104
|
+
value: any;
|
|
105
|
+
tokens: Array<{
|
|
106
|
+
__typename?: 'Token';
|
|
107
|
+
quantity: string;
|
|
108
|
+
asset: {
|
|
109
|
+
__typename?: 'Asset';
|
|
110
|
+
assetName?: any | null;
|
|
111
|
+
policyId: any;
|
|
112
|
+
};
|
|
113
|
+
}>;
|
|
114
|
+
} | null>;
|
|
115
|
+
metadata?: Array<{
|
|
116
|
+
__typename?: 'TransactionMetadata';
|
|
117
|
+
key: string;
|
|
118
|
+
value: any;
|
|
119
|
+
} | null> | null;
|
|
100
120
|
} | null>;
|
|
101
|
-
}>;
|
|
102
|
-
outputs: Array<{
|
|
103
|
-
__typename?: 'TransactionOutput';
|
|
104
|
-
address: string;
|
|
105
|
-
value: any;
|
|
106
|
-
tokens: Array<{
|
|
107
|
-
__typename?: 'Token';
|
|
108
|
-
quantity: string;
|
|
109
|
-
asset: {
|
|
110
|
-
__typename?: 'Asset';
|
|
111
|
-
assetName?: any | null;
|
|
112
|
-
policyId: any;
|
|
113
|
-
};
|
|
114
|
-
}>;
|
|
115
|
-
} | null>;
|
|
116
|
-
metadata?: Array<{
|
|
117
|
-
__typename?: 'TransactionMetadata';
|
|
118
|
-
key: string;
|
|
119
|
-
value: any;
|
|
120
|
-
} | null> | null;
|
|
121
121
|
} | null>;
|
|
122
|
-
} | null>;
|
|
123
122
|
};
|
|
124
|
-
type GraphQLTransaction = NonNullable<
|
|
125
|
-
NonNullable<GraphQLBlockTxsQuery['blocks'][0]>['transactions'][0]
|
|
126
|
-
>;
|
|
123
|
+
type GraphQLTransaction = NonNullable<NonNullable<GraphQLBlockTxsQuery['blocks'][0]>['transactions'][0]>;
|
|
127
124
|
type GraphQLTxOutput = NonNullable<GraphQLTransaction['outputs'][0]>;
|
|
128
|
-
export {
|
|
129
|
-
|
|
130
|
-
KoiosTransaction,
|
|
131
|
-
CardanoRosenData,
|
|
132
|
-
CardanoMetadataRosenData,
|
|
133
|
-
Metadata,
|
|
134
|
-
MetadataObject,
|
|
135
|
-
JsonObject,
|
|
136
|
-
ListObject,
|
|
137
|
-
NativeValue,
|
|
138
|
-
CardanoMetadata,
|
|
139
|
-
CardanoTx,
|
|
140
|
-
CardanoBoxCandidate,
|
|
141
|
-
BlockFrostTransaction,
|
|
142
|
-
BlockFrostOutputBox,
|
|
143
|
-
GraphQLTransaction,
|
|
144
|
-
GraphQLTxOutput,
|
|
145
|
-
};
|
|
146
|
-
//# sourceMappingURL=types.d.ts.map
|
|
125
|
+
export { Utxo, KoiosTransaction, CardanoRosenData, CardanoMetadataRosenData, Metadata, MetadataObject, JsonObject, ListObject, NativeValue, CardanoMetadata, CardanoTx, CardanoBoxCandidate, BlockFrostTransaction, BlockFrostOutputBox, GraphQLTransaction, GraphQLTxOutput, };
|
|
126
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -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
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export { default as AbstractRosenDataExtractor } from './getRosenData/abstract/AbstractRosenDataExtractor';
|
|
2
2
|
export { BitcoinEsploraRosenExtractor } from './getRosenData/bitcoin/BitcoinEsploraRosenExtractor';
|
|
3
|
+
export { BitcoinRosenExtractor } from './getRosenData/bitcoin/BitcoinRosenExtractor';
|
|
4
|
+
export { BitcoinRpcRosenExtractor } from './getRosenData/bitcoin/BitcoinRpcRosenExtractor';
|
|
3
5
|
export { EvmRpcRosenExtractor } from './getRosenData/evm/EvmRpcRosenExtractor';
|
|
4
6
|
export { EvmRosenExtractor } from './getRosenData/evm/EvmRosenExtractor';
|
|
5
|
-
export { BitcoinRosenExtractor } from './getRosenData/bitcoin/BitcoinRosenExtractor';
|
|
6
7
|
export { CardanoKoiosRosenExtractor } from './getRosenData/cardano/CardanoKoiosRosenExtractor';
|
|
7
8
|
export { CardanoOgmiosRosenExtractor } from './getRosenData/cardano/CardanoOgmiosRosenExtractor';
|
|
8
9
|
export { CardanoRosenExtractor } from './getRosenData/cardano/CardanoRosenExtractor';
|
package/dist/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAC3G,OAAO,EAAE,4BAA4B,EAAE,MAAM,qDAAqD,CAAC;AACnG,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAC3G,OAAO,EAAE,4BAA4B,EAAE,MAAM,qDAAqD,CAAC;AACnG,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAC;AAC3F,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,mDAAmD,CAAC;AAC/F,OAAO,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAC;AACjG,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAC;AACzG,OAAO,EAAE,4BAA4B,EAAE,MAAM,qDAAqD,CAAC;AACnG,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC"}
|
package/dist/lib/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export { default as AbstractRosenDataExtractor } from './getRosenData/abstract/AbstractRosenDataExtractor';
|
|
2
2
|
export { BitcoinEsploraRosenExtractor } from './getRosenData/bitcoin/BitcoinEsploraRosenExtractor';
|
|
3
|
+
export { BitcoinRosenExtractor } from './getRosenData/bitcoin/BitcoinRosenExtractor';
|
|
4
|
+
export { BitcoinRpcRosenExtractor } from './getRosenData/bitcoin/BitcoinRpcRosenExtractor';
|
|
3
5
|
export { EvmRpcRosenExtractor } from './getRosenData/evm/EvmRpcRosenExtractor';
|
|
4
6
|
export { EvmRosenExtractor } from './getRosenData/evm/EvmRosenExtractor';
|
|
5
|
-
export { BitcoinRosenExtractor } from './getRosenData/bitcoin/BitcoinRosenExtractor';
|
|
6
7
|
export { CardanoKoiosRosenExtractor } from './getRosenData/cardano/CardanoKoiosRosenExtractor';
|
|
7
8
|
export { CardanoOgmiosRosenExtractor } from './getRosenData/cardano/CardanoOgmiosRosenExtractor';
|
|
8
9
|
export { CardanoRosenExtractor } from './getRosenData/cardano/CardanoRosenExtractor';
|
|
@@ -10,4 +11,4 @@ export { CardanoBlockFrostRosenExtractor } from './getRosenData/cardano/CardanoB
|
|
|
10
11
|
export { CardanoGraphQLRosenExtractor } from './getRosenData/cardano/CardanoGraphQLRosenExtractor';
|
|
11
12
|
export { ErgoRosenExtractor } from './getRosenData/ergo/ErgoRosenExtractor';
|
|
12
13
|
export { ErgoNodeRosenExtractor } from './getRosenData/ergo/ErgoNodeRosenExtractor';
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwa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