@rosen-bridge/rosen-extractor
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -0,1 +1,33 @@ | ||
interface PaymentAddr { | ||
bech32: string; | ||
cred: string; | ||
} | ||
interface Asset { | ||
policy_id: string; | ||
asset_name: string; | ||
quantity: string; | ||
} | ||
interface Utxo { | ||
payment_addr: PaymentAddr; | ||
stake_addr?: string | null; | ||
tx_hash: string; | ||
tx_index: number; | ||
value: string; | ||
asset_list: Array<Asset>; | ||
} | ||
interface Metadata { | ||
[key: string]: Record<string, unknown>; | ||
} | ||
interface KoiosTransaction { | ||
tx_hash: string; | ||
block_hash: string; | ||
inputs: Array<Utxo>; | ||
outputs: Array<Utxo>; | ||
metadata?: Metadata; | ||
} | ||
interface TokenTransformation { | ||
from: string; | ||
to: string; | ||
amount: string; | ||
} | ||
interface CardanoRosenData { | ||
@@ -8,3 +40,3 @@ toChain: string; | ||
} | ||
interface RawCardanoRosenData { | ||
interface CardanoMetadataRosenData { | ||
to: string; | ||
@@ -16,5 +48,2 @@ networkFee: string; | ||
} | ||
interface MetaData { | ||
[key: string]: JSON; | ||
} | ||
declare type ListObject = Array<MetadataObject>; | ||
@@ -26,3 +55,3 @@ declare type NativeValue = string | undefined; | ||
declare type MetadataObject = JsonObject | ListObject | NativeValue; | ||
export { CardanoRosenData, RawCardanoRosenData, MetaData, MetadataObject, JsonObject, ListObject, NativeValue, }; | ||
export { Utxo, KoiosTransaction, TokenTransformation, CardanoRosenData, CardanoMetadataRosenData, Metadata, MetadataObject, JsonObject, ListObject, NativeValue, }; | ||
//# sourceMappingURL=types.d.ts.map |
export {}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWIvZ2V0Um9zZW5EYXRhL2NhcmRhbm8vdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb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Vzczogc3RyaW5nO1xufVxuXG5pbnRlcmZhY2UgQ2FyZGFub01ldGFkYXRhUm9zZW5EYXRhIHtcbiAgdG86IHN0cmluZztcbiAgbmV0d29ya0ZlZTogc3RyaW5nO1xuICBicmlkZ2VGZWU6IHN0cmluZztcbiAgdG9BZGRyZXNzOiBzdHJpbmc7XG4gIGZyb21BZGRyZXNzOiBzdHJpbmdbXTtcbn1cblxudHlwZSBMaXN0T2JqZWN0ID0gQXJyYXk8TWV0YWRhdGFPYmplY3Q+O1xudHlwZSBOYXRpdmVWYWx1ZSA9IHN0cmluZyB8IHVuZGVmaW5lZDtcbmludGVyZmFjZSBKc29uT2JqZWN0IHtcbiAgW2tleTogc3RyaW5nXTogTWV0YWRhdGFPYmplY3Q7XG59XG50eXBlIE1ldGFkYXRhT2JqZWN0ID0gSnNvbk9iamVjdCB8IExpc3RPYmplY3QgfCBOYXRpdmVWYWx1ZTtcblxuZXhwb3J0IHtcbiAgVXR4byxcbiAgS29pb3NUcmFuc2FjdGlvbixcbiAgVG9rZW5UcmFuc2Zvcm1hdGlvbixcbiAgQ2FyZGFub1Jvc2VuRGF0YSxcbiAgQ2FyZGFub01ldGFkYXRhUm9zZW5EYXRhLFxuICBNZXRhZGF0YSxcbiAgTWV0YWRhdGFPYmplY3QsXG4gIEpzb25PYmplY3QsXG4gIExpc3RPYmplY3QsXG4gIE5hdGl2ZVZhbHVlLFxufTtcbiJdfQ== |
export declare const CARDANO_NATIVE_TOKEN = "lovelace"; | ||
export declare const ERGO_NATIVE_TOKEN = "erg"; | ||
export declare const CARDANO_CHAIN = "cardano"; | ||
export declare const ERGO_CHAIN = "ergo"; | ||
//# sourceMappingURL=const.d.ts.map |
export const CARDANO_NATIVE_TOKEN = 'lovelace'; | ||
export const ERGO_NATIVE_TOKEN = 'erg'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6W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|
@@ -1,10 +0,1 @@ | ||
interface ErgoRosenData { | ||
toChain: string; | ||
toAddress: string; | ||
networkFee: string; | ||
bridgeFee: string; | ||
fromAddress: string; | ||
tokenId: string; | ||
amount: bigint; | ||
} | ||
interface NodeAsset { | ||
@@ -45,3 +36,8 @@ tokenId: string; | ||
} | ||
export { ErgoRosenData, NodeOutputBox, NodeTransaction }; | ||
interface TokenTransformation { | ||
from: string; | ||
to: string; | ||
amount: bigint; | ||
} | ||
export { NodeOutputBox, NodeTransaction, TokenTransformation }; | ||
//# sourceMappingURL=types.d.ts.map |
export {}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWIvZ2V0Um9zZW5EYXRhL2VyZ28vdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImludGVyZmFjZSBFcmdvUm9zZW5EYXRhIHtcbiAgdG9DaGFpbjogc3RyaW5nO1xuICB0b0FkZHJlc3M6IHN0cmluZztcbiAgbmV0d29ya0ZlZTogc3RyaW5nO1xuICBicmlkZ2VGZWU6IHN0cmluZztcbiAgZnJvbUFkZHJlc3M6IHN0cmluZztcbiAgdG9rZW5JZDogc3RyaW5nO1xuICBhbW91bnQ6IGJpZ2ludDtcbn1cblxuaW50ZXJmYWNlIE5vZGVBc3NldCB7XG4gIHRva2VuSWQ6IHN0cmluZztcbiAgYW1vdW50OiBiaWdpbnQ7XG59XG5cbmludGVyZmFjZSBOb2RlQWRkaXRpb25hbFJlZ2lzdGVycyB7XG4gIFI0Pzogc3RyaW5nO1xuICBSNT86IHN0cmluZztcbiAgUjY/OiBzdHJpbmc7XG4gIFI3Pzogc3RyaW5nO1xuICBSOD86IHN0cmluZztcbiAgUjk/OiBzdHJpbmc7XG59XG5cbmludGVyZmFjZSBOb2RlT3V0cHV0Qm94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0= |
import { Metadatum } from '@cardano-ogmios/schema'; | ||
import { ListObject, MetadataObject } from './cardano/types'; | ||
declare class Utils { | ||
static JsonBI: { | ||
parse: (text: string, reviver?: ((this: any, key: string, value: any) => any) | undefined) => any; | ||
stringify: { | ||
(value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string; | ||
(value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string; | ||
}; | ||
}; | ||
/** | ||
@@ -23,3 +30,3 @@ * extracts int value from Metadatum object | ||
/** | ||
* Extract one of int or string from Metadatum object | ||
* extracts one of int or string from Metadatum object | ||
* @param val | ||
@@ -30,3 +37,3 @@ * @returns : native value or undefined if parameter is not a string or int | ||
/** | ||
* Extract dictionary from Metadatum object | ||
* extracts dictionary from Metadatum object | ||
* @param val | ||
@@ -33,0 +40,0 @@ * @returns : dictionary value or undefined if parameter is not a dict |
@@ -0,2 +1,7 @@ | ||
import JSONBigInt from 'json-bigint'; | ||
class Utils { | ||
static JsonBI = JSONBigInt({ | ||
useNativeBigInt: true, | ||
alwaysParseAsBig: true, | ||
}); | ||
/** | ||
@@ -42,3 +47,3 @@ * extracts int value from Metadatum object | ||
/** | ||
* Extract one of int or string from Metadatum object | ||
* extracts one of int or string from Metadatum object | ||
* @param val | ||
@@ -56,3 +61,3 @@ * @returns : native value or undefined if parameter is not a string or int | ||
/** | ||
* Extract dictionary from Metadatum object | ||
* extracts dictionary from Metadatum object | ||
* @param val | ||
@@ -98,2 +103,2 @@ * @returns : dictionary value or undefined if parameter is not a dict | ||
export default Utils; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvZ2V0Um9zZW5EYXRhL1V0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVNBLE1BQU0sS0FBSztJQUNUOzs7O09BSUc7SUFDSC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zdCBsaXN0ID0gKHZhbCBhcyBMaXN0KS5saXN0O1xuICAgICAgY29uc3QgcmVzOiBMaXN0T2JqZWN0ID0gW107XG4gICAgICBsaXN0Lm1hcCgoaXRlbSkgPT4ge1xuICAgICAgICByZXMucHVzaCh0aGlzLmdldERpY3RWYWx1ZShpdGVtKSk7XG4gICAgICB9KTtcbiAgICAgIHJldHVybiByZXM7XG4gICAgfVxuICAgIHJldHVybiB0aGlzLmdldE5hdGl2ZVZhbHVlKHZhbCk7XG4gIH07XG5cbiAgLyoqXG4gICAqIENvbnZlcnQgYSBNZXRhZGF0dW0gdG8gYSBqc29uXG4gICAqIEBwYXJhbSB2YWxcbiAgICovXG4gIHN0YXRpYyBPYmplY3RUb0pzb24gPSAodmFsOiBNZXRhZGF0dW0pID0+IHtcbiAgICBjb25zdCBuYXRpdmVWYWx1ZSA9IHRoaXMuZ2V0TmF0aXZlVmFsdWUodmFsKTtcbiAgICBpZiAobmF0aXZlVmFsdWUpIHJldHVybiBuYXRpdmVWYWx1ZTtcbiAgICBjb25zdCBsaXN0VmFsdWUgPSB0aGlzLmdldExpc3RWYWx1ZSh2YWwpO1xuICAgIGlmIChsaXN0VmFsdWUpIHJldHVybiBsaXN0VmFsdWU7XG4gICAgcmV0dXJuIHRoaXMuZ2V0RGljdFZhbHVlKHZhbCk7XG4gIH07XG59XG5cbmV4cG9ydCBkZWZhdWx0IFV0aWxzO1xuIl19 |
@@ -1,6 +0,5 @@ | ||
export { getKoiosRosenData } from './getRosenData/cardano/getKoiosRosenData'; | ||
export { getOgmiosRosenData } from './getRosenData/cardano/getOgmiosRosenData'; | ||
export { CardanoRosenData } from './getRosenData/cardano/types'; | ||
export { getNodeRosenData } from './getRosenData/ergo/getNodeRosenData'; | ||
export { ErgoRosenData } from './getRosenData/ergo/types'; | ||
export { CardanoKoiosRosenExtractor } from './getRosenData/cardano/CardanoKoiosRosenExtractor'; | ||
export { CardanoOgmiosRosenExtractor } from './getRosenData/cardano/CardanoOgmiosRosenExtractor'; | ||
export { ErgoNodeRosenExtractor } from './getRosenData/ergo/ErgoNodeRosenExtractor'; | ||
export { RosenData } from './getRosenData/abstract/types'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,4 +0,4 @@ | ||
export { getKoiosRosenData } from './getRosenData/cardano/getKoiosRosenData'; | ||
export { getOgmiosRosenData } from './getRosenData/cardano/getOgmiosRosenData'; | ||
export { getNodeRosenData } from './getRosenData/ergo/getNodeRosenData'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sMENBQTBDLENBQUM7QUFDN0UsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sMkNBQTJDLENBQUM7QUFHL0UsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sc0NBQXNDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBnZXRLb2lvc1Jvc2VuRGF0YSB9IGZyb20gJy4vZ2V0Um9zZW5EYXRhL2NhcmRhbm8vZ2V0S29pb3NSb3NlbkRhdGEnO1xuZXhwb3J0IHsgZ2V0T2dtaW9zUm9zZW5EYXRhIH0gZnJvbSAnLi9nZXRSb3NlbkRhdGEvY2FyZGFuby9nZXRPZ21pb3NSb3NlbkRhdGEnO1xuZXhwb3J0IHsgQ2FyZGFub1Jvc2VuRGF0YSB9IGZyb20gJy4vZ2V0Um9zZW5EYXRhL2NhcmRhbm8vdHlwZXMnO1xuXG5leHBvcnQgeyBnZXROb2RlUm9zZW5EYXRhIH0gZnJvbSAnLi9nZXRSb3NlbkRhdGEvZXJnby9nZXROb2RlUm9zZW5EYXRhJztcbmV4cG9ydCB7IEVyZ29Sb3NlbkRhdGEgfSBmcm9tICcuL2dldFJvc2VuRGF0YS9lcmdvL3R5cGVzJztcbiJdfQ== | ||
export { CardanoKoiosRosenExtractor } from './getRosenData/cardano/CardanoKoiosRosenExtractor'; | ||
export { CardanoOgmiosRosenExtractor } from './getRosenData/cardano/CardanoOgmiosRosenExtractor'; | ||
export { ErgoNodeRosenExtractor } from './getRosenData/ergo/ErgoNodeRosenExtractor'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLDBCQUEwQixFQUFFLE1BQU0sbURBQW1ELENBQUM7QUFDL0YsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sb0RBQW9ELENBQUM7QUFDakcsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sNENBQTRDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBDYXJkYW5vS29pb3NSb3NlbkV4dHJhY3RvciB9IGZyb20gJy4vZ2V0Um9zZW5EYXRhL2NhcmRhbm8vQ2FyZGFub0tvaW9zUm9zZW5FeHRyYWN0b3InO1xuZXhwb3J0IHsgQ2FyZGFub09nbWlvc1Jvc2VuRXh0cmFjdG9yIH0gZnJvbSAnLi9nZXRSb3NlbkRhdGEvY2FyZGFuby9DYXJkYW5vT2dtaW9zUm9zZW5FeHRyYWN0b3InO1xuZXhwb3J0IHsgRXJnb05vZGVSb3NlbkV4dHJhY3RvciB9IGZyb20gJy4vZ2V0Um9zZW5EYXRhL2VyZ28vRXJnb05vZGVSb3NlbkV4dHJhY3Rvcic7XG5leHBvcnQgeyBSb3NlbkRhdGEgfSBmcm9tICcuL2dldFJvc2VuRGF0YS9hYnN0cmFjdC90eXBlcyc7XG4iXX0= |
{ | ||
"name": "@rosen-bridge/rosen-extractor", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "this project contains methods to get rosen data from blockchain", | ||
@@ -11,6 +11,6 @@ "main": "dist/lib/index.js", | ||
"lint": "eslint --fix . && npm run prettify", | ||
"build": "tsc", | ||
"build": "tsc --build", | ||
"type-check": "tsc --noEmit", | ||
"test": "jest", | ||
"coverage": "c8 npm run test", | ||
"coverage": "jest --coverage", | ||
"release": "npm run test && npm run build && npm publish --access public" | ||
@@ -28,2 +28,3 @@ }, | ||
"@cardano-ogmios/schema": "^5.5.7", | ||
"@rosen-bridge/tokens": "^0.1.9", | ||
"ergo-lib-wasm-nodejs": "^0.20.1", | ||
@@ -41,3 +42,2 @@ "json-bigint": "^1.0.0", | ||
"@babel/preset-env": "^7.19.0", | ||
"c8": "^7.11.3", | ||
"eslint": "^8.16.0", | ||
@@ -44,0 +44,0 @@ "eslint-config-prettier": "^8.5.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
180794
14
47
811
5
+ Added@rosen-bridge/tokens@^0.1.9
+ Added@rosen-bridge/tokens@0.1.12(transitive)