Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rosen-bridge/tokens

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rosen-bridge/tokens - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

dist/lib/TokenMap/constants.d.ts

1

dist/lib/index.d.ts
export { TokenMap } from './TokenMap/TokenMap';
export * from './TokenMap/types';
export * from './TokenMap/constants';
//# sourceMappingURL=index.d.ts.map

3

dist/lib/index.js
export { TokenMap } from './TokenMap/TokenMap';
export * from './TokenMap/types';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQy9DLGNBQWMsa0JBQWtCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBUb2tlbk1hcCB9IGZyb20gJy4vVG9rZW5NYXAvVG9rZW5NYXAnO1xuZXhwb3J0ICogZnJvbSAnLi9Ub2tlbk1hcC90eXBlcyc7XG4iXX0=
export * from './TokenMap/constants';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQy9DLGNBQWMsa0JBQWtCLENBQUM7QUFDakMsY0FBYyxzQkFBc0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IFRva2VuTWFwIH0gZnJvbSAnLi9Ub2tlbk1hcC9Ub2tlbk1hcCc7XG5leHBvcnQgKiBmcm9tICcuL1Rva2VuTWFwL3R5cGVzJztcbmV4cG9ydCAqIGZyb20gJy4vVG9rZW5NYXAvY29uc3RhbnRzJztcbiJdfQ==

@@ -33,3 +33,3 @@ import { RosenChainToken, RosenTokens } from './types';

* @param condition
* example: {tokenID:"tokenID"}
* example: {tokenId:"tokenId"}
*/

@@ -49,9 +49,9 @@ search: (chain: string, condition: {

* "ergo": {
* "tokenID": "tokenId",
* "tokenId": "tokenId",
* "tokenName": "token1"
* },
* "cardano": {
* "fingerprint": "...",
* "policyID": "policy",
* "assetID": "id"
* "tokenId": "...",
* "policyId": "policy",
* "assetName": "id"
* }

@@ -65,3 +65,8 @@ * }

}, chain: string) => string;
/**
* return all native tokens for a specific chain.
* @param chain: one of supported chains
*/
getAllNativeTokens: (chain: string) => RosenChainToken[];
}
//# sourceMappingURL=TokenMap.d.ts.map

@@ -0,1 +1,2 @@

import { NATIVE_RESIDENCY } from './constants';
/**

@@ -50,3 +51,3 @@ * TokenMap class searches for different assets properties in different chains

* @param condition
* example: {tokenID:"tokenID"}
* example: {tokenId:"tokenId"}
*/

@@ -85,9 +86,9 @@ search = (chain, condition) => {

* "ergo": {
* "tokenID": "tokenId",
* "tokenId": "tokenId",
* "tokenName": "token1"
* },
* "cardano": {
* "fingerprint": "...",
* "policyID": "policy",
* "assetID": "id"
* "tokenId": "...",
* "policyId": "policy",
* "assetName": "id"
* }

@@ -107,3 +108,13 @@ * }

};
/**
* return all native tokens for a specific chain.
* @param chain: one of supported chains
*/
getAllNativeTokens = (chain) => {
return this.tokensConfig.tokens
.filter((token) => Object.hasOwn(token, chain) &&
token[chain].metaData.residency == NATIVE_RESIDENCY)
.map((token) => token[chain]);
};
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVG9rZW5NYXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmN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1cbiAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICB9XG4gICAgfSk7XG4gIH07XG5cbiAgLyoqXG4gICAqIHJldHVybnMgSUQga2V5IGZvciBzcGVjaWZpYyBjaGFpbi5cbiAgICogQHBhcmFtIGNoYWluOiBvbmUgb2Ygc3VwcG9ydGVkIHRva2Vuc1xuICAgKi9cbiAgZ2V0SWRLZXkgPSAoY2hhaW46IHN0cmluZyk6IHN0cmluZyA9PiB7XG4gICAgaWYgKE9iamVjdC5oYXNPd25Qcm9wZXJ0eS5jYWxsKHRoaXMudG9rZW5zQ29uZmlnLmlkS2V5cywgY2hhaW4pKSB7XG4gICAgICByZXR1cm4gdGhpcy50b2tlbnNDb25maWcuaWRLZXlzW2NoYWluXTtcbiAgICB9XG4gICAgdGhyb3cgRXJyb3IoYGNoYWluICR7Y2hhaW59IG5vdCBzdXBwb3J0ZWQgaW4gY3VycmVudCBjb25maWdgKTtcbiAgfTtcblxuICAvKipcbiAgICogcmV0dXJucyB0b2tlbklkIGluIHNwZWNpZmljIGNoYWluIHdpdGggcmVzcGVjdCB0byBpZEtleXMgaW4gdGhlIHRva2Vuc0NvbmZpZ1xuICAgKiBAcGFyYW0gdG9rZW5cbiAgICogIGV4YW1wbGU6IHtcbiAgICogICAgICAgXCJlcmdvXCI6IHtcbiAgICogICAgICAgICBcInRva2VuSURcIjogXCJ0b2tlbklkXCIsXG4gICAqICAgICAgICAgXCJ0b2tlbk5hbWVcIjogXCJ0b2tlbjFcIlxuICAgKiAgICAgICB9LFxuICAgKiAgICAgICBcImNhcmRhbm9cIjoge1xuICAgKiAgICAgICAgIFwiZmluZ2VycHJpbnRcIjogXCIuLi5cIixcbiAgICogICAgICAgICBcInBvbGljeUlEXCI6IFwicG9saWN5XCIsXG4gICAqICAgICAgICAgXCJhc3NldElEXCI6IFwiaWRcIlxuICAgKiAgICAgICB9XG4gICAqICAgICB9XG4g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Y2FsbChyZXNUb2tlbiwga2V5KSB8fFxuICAgICAgICAgICAgcmVzVG9rZW5ba2V5XSAhPT0gdmFsXG4gICAgICAgICAgKSB7XG4gICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgfVxuICAgIH0pO1xuICB9O1xuXG4gIC8qKlxuICAgKiByZXR1cm5zIElEIGtleSBmb3Igc3BlY2lmaWMgY2hhaW4uXG4gICAqIEBwYXJhbSBjaGFpbjogb25lIG9mIHN1cHBvcnRlZCB0b2tlbnNcbiAgICovXG4gIGdldElkS2V5ID0gKGNoYWluOiBzdHJpbmcpOiBzdHJpbmcgPT4ge1xuICAgIGlmIChPYmplY3QuaGFzT3duUHJvcGVydHkuY2FsbCh0aGlzLnRva2Vuc0NvbmZpZy5pZEtleXMsIGNoYWluKSkge1xuICAgICAgcmV0dXJuIHRoaXMudG9rZW5zQ29uZmlnLmlkS2V5c1tjaGFpbl07XG4gICAgfVxuICAgIHRocm93IEVycm9yKGBjaGFpbiAke2NoYWlufSBub3Qgc3VwcG9ydGVkIGluIGN1cnJlbnQgY29uZmlnYCk7XG4gIH07XG5cbiAgLyoqXG4gICAqIHJldHVybnMgdG9rZW5JZCBpbiBzcGVjaWZpYyBjaGFpbiB3aXRoIHJlc3BlY3QgdG8gaWRLZXlzIGluIHRoZSB0b2tlbnNDb25maWdcbiAgICogQHBhcmFtIHRva2VuXG4gICAqICBleGFtcGxlOiB7XG4gICAqICAgICAgIFwiZXJnb1wiOiB7XG4gICAqICAgICAgICAgXCJ0b2tlbklkXCI6IFwidG9rZW5JZFwiLFxuICAgKiAgICAgICAgIFwidG9rZW5OYW1lXCI6IFwidG9rZW4xXCJcbiAgICogICAgICAgfSxcbiAgICogICAgICAgXCJjYXJkYW5vXCI6IHtcbiAgICogICAgICAgICBcInRva2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T3duKHRva2VuLCBjaGFpbikgJiZcbiAgICAgICAgICB0b2tlbltjaGFpbl0ubWV0YURhdGEucmVzaWRlbmN5ID09IE5BVElWRV9SRVNJREVOQ1lcbiAgICAgIClcbiAgICAgIC5tYXAoKHRva2VuKSA9PiB0b2tlbltjaGFpbl0pO1xuICB9O1xufVxuIl19
{
"name": "@rosen-bridge/tokens",
"version": "1.0.0",
"version": "1.1.0",
"description": "this project manage supported tokens",

@@ -24,3 +24,3 @@ "main": "dist/lib/index.js",

],
"author": "Sahand Zoufan",
"author": "Rosen Team",
"license": "GPL-3.0",

@@ -27,0 +27,0 @@ "devDependencies": {

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc