@rss3/js-sdk
Advanced tools
Comparing version 0.6.50 to 0.6.51
@@ -23,3 +23,3 @@ import { components } from '../../types/data.js'; | ||
actions: { | ||
from: string; | ||
from?: string | undefined; | ||
metadata: { | ||
@@ -536,3 +536,3 @@ action: "approve" | "revoke"; | ||
tag: "collectible" | "donation" | "exchange" | "governance" | "metaverse" | "social" | "transaction" | "unknown"; | ||
to: string; | ||
to?: string | undefined; | ||
type: "unknown" | "approval" | "auction" | "bridge" | "burn" | "claim" | "comment" | "delete" | "deploy" | "donate" | "liquidity" | "loan" | "mint" | "multisig" | "post" | "profile" | "propose" | "proxy" | "revise" | "reward" | "share" | "staking" | "swap" | "trade" | "transfer" | "vote"; | ||
@@ -548,2 +548,3 @@ }[]; | ||
platform?: "1inch" | "AAVE" | "Aavegotchi" | "Arbitrum" | "Base" | "BendDAO" | "Blur" | "Carv" | "Cow" | "Crossbell" | "Curve" | "ENS" | "Farcaster" | "Foundation" | "Gitcoin" | "Gnosis" | "Highlight" | "IQ.Wiki" | "KyberSwap" | "Lens" | "Lido" | "Linea" | "LooksRare" | "Mars4" | "Matters" | "MetaMask" | "Mira" | "Mirror" | "Nouns" | "OpenSea" | "Optimism" | "POAP" | "ParaSwap" | "Paragraph" | "PlanetIX" | "Polygon" | "RARA" | "RSS3" | "Rainbow" | "Safe" | "Snapshot" | "Stargate" | "Synapse" | "Uniswap" | "Zerion" | "Zora" | "friend.tech" | "zkSync Era" | "zkSync Lite" | "zkSync" | null | undefined; | ||
spam: boolean; | ||
status: "failed" | "successful"; | ||
@@ -550,0 +551,0 @@ tag: "collectible" | "donation" | "exchange" | "governance" | "metaverse" | "social" | "transaction" | "unknown"; |
@@ -265,3 +265,3 @@ import { getSummaryActions } from '../../utils.js'; | ||
tokenAddr(action.to), | ||
tokenText('Bought'), | ||
tokenText('bought'), | ||
...tokenAsset(m.title || m.name || 'an asset', meta), | ||
@@ -354,21 +354,63 @@ tokenText('from'), | ||
if (m.action === 'add') { | ||
res = join([tokenText('Added'), ...tokens, tokenText('to liquidity'), ...tokenPlatform(action)]); | ||
res = join([ | ||
tokenAddr(action.from), | ||
tokenText('added'), | ||
...tokens, | ||
tokenText('to liquidity'), | ||
...tokenPlatform(action), | ||
]); | ||
} | ||
else if (m.action === 'remove') { | ||
res = join([tokenText('Removed'), ...tokens, tokenText('from liquidity'), ...tokenPlatform(action)]); | ||
res = join([ | ||
tokenAddr(action.from), | ||
tokenText('removed'), | ||
...tokens, | ||
tokenText('from liquidity'), | ||
...tokenPlatform(action), | ||
]); | ||
} | ||
else if (m.action === 'collect') { | ||
res = join([tokenText('Collected'), ...tokens, tokenText('from liquidity'), ...tokenPlatform(action)]); | ||
res = join([ | ||
tokenAddr(action.from), | ||
tokenText('collected'), | ||
...tokens, | ||
tokenText('from liquidity'), | ||
...tokenPlatform(action), | ||
]); | ||
} | ||
else if (m.action === 'borrow') { | ||
res = join([tokenText('Borrowed'), ...tokens, tokenText('from liquidity'), ...tokenPlatform(action)]); | ||
res = join([ | ||
tokenAddr(action.from), | ||
tokenText('borrowed'), | ||
...tokens, | ||
tokenText('from liquidity'), | ||
...tokenPlatform(action), | ||
]); | ||
} | ||
else if (m.action === 'repay') { | ||
res = join([tokenText('Repaid'), ...tokens, tokenText('to liquidity'), ...tokenPlatform(action)]); | ||
res = join([ | ||
tokenAddr(action.from), | ||
tokenText('repaid'), | ||
...tokens, | ||
tokenText('to liquidity'), | ||
...tokenPlatform(action), | ||
]); | ||
} | ||
else if (m.action === 'supply') { | ||
res = join([tokenText('Supplied'), ...tokens, tokenText('to liquidity'), ...tokenPlatform(action)]); | ||
res = join([ | ||
tokenAddr(action.from), | ||
tokenText('supplied'), | ||
...tokens, | ||
tokenText('to liquidity'), | ||
...tokenPlatform(action), | ||
]); | ||
} | ||
else if (m.action === 'withdraw') { | ||
res = join([tokenText('WithDrew'), ...tokens, tokenText('from liquidity'), ...tokenPlatform(action)]); | ||
res = join([ | ||
tokenAddr(action.from), | ||
tokenText('withDrew'), | ||
...tokens, | ||
tokenText('from liquidity'), | ||
...tokenPlatform(action), | ||
]); | ||
} | ||
@@ -379,15 +421,40 @@ }, | ||
if (m.action === 'create') { | ||
res = join([tokenText('Created loan'), ...tokenValue(m.amount), ...tokenPlatform(action)]); | ||
res = join([ | ||
tokenAddr(action.from), | ||
tokenText('created loan'), | ||
...tokenValue(m.amount), | ||
...tokenPlatform(action), | ||
]); | ||
} | ||
else if (m.action === 'liquidate') { | ||
res = join([tokenText('liquidated loan'), ...tokenValue(m.amount), ...tokenPlatform(action)]); | ||
res = join([ | ||
tokenAddr(action.from), | ||
tokenText('liquidated loan'), | ||
...tokenValue(m.amount), | ||
...tokenPlatform(action), | ||
]); | ||
} | ||
else if (m.action === 'refinance') { | ||
res = join([tokenText('Refinanced loan'), ...tokenValue(m.amount), ...tokenPlatform(action)]); | ||
res = join([ | ||
tokenAddr(action.from), | ||
tokenText('refinanced loan'), | ||
...tokenValue(m.amount), | ||
...tokenPlatform(action), | ||
]); | ||
} | ||
else if (m.action === 'repay') { | ||
res = join([tokenText('Repaid loan'), ...tokenValue(m.amount), ...tokenPlatform(action)]); | ||
res = join([ | ||
tokenAddr(action.from), | ||
tokenText('repaid loan'), | ||
...tokenValue(m.amount), | ||
...tokenPlatform(action), | ||
]); | ||
} | ||
else if (m.action === 'seize') { | ||
res = join([tokenText('Seized loan'), ...tokenValue(m.amount), ...tokenPlatform(action)]); | ||
res = join([ | ||
tokenAddr(action.from), | ||
tokenText('seized loan'), | ||
...tokenValue(m.amount), | ||
...tokenPlatform(action), | ||
]); | ||
} | ||
@@ -394,0 +461,0 @@ }, |
@@ -75,5 +75,3 @@ import { operations } from '../types/search-external.js'; | ||
network?: "ALL" | "AVAX" | "ETHEREUM" | "ARBITRUM" | "OPTIMISM" | "POLYGON" | "EIP1577" | "BINANCE_SMART_CHAIN" | "ARWEAVE" | "AVALANCHE" | "XDAI" | "ZKSYNC" | "FARCASTER" | "CROSSBELL" | undefined; | ||
count?: number | undefined; /** | ||
* Search activities by keyword and filters. | ||
*/ | ||
count?: number | undefined; | ||
}[] | undefined; | ||
@@ -80,0 +78,0 @@ platform_agg?: { |
@@ -83,3 +83,3 @@ /** | ||
Action: { | ||
from: string; | ||
from?: string; | ||
metadata: components["schemas"]["Metadata"]; | ||
@@ -89,3 +89,3 @@ platform?: string; | ||
tag: components["schemas"]["Tag"]; | ||
to: string; | ||
to?: string; | ||
type: components["schemas"]["Type"]; | ||
@@ -107,2 +107,3 @@ }; | ||
platform?: components["schemas"]["Platform"] | null; | ||
spam: boolean; | ||
status: components["schemas"]["Status"]; | ||
@@ -109,0 +110,0 @@ tag: components["schemas"]["Tag"]; |
@@ -7,2 +7,6 @@ import { components as data } from './data-v1.js'; | ||
export interface paths { | ||
"/v2/recent-activities": { | ||
/** Get recent activities */ | ||
get: operations["recentActivities"]; | ||
}; | ||
"/v2/activities": { | ||
@@ -44,2 +48,14 @@ /** Search activities */ | ||
schemas: { | ||
SitemapDocDTO: { | ||
id?: string; | ||
from?: string; | ||
author?: string; | ||
/** Format: int64 */ | ||
timestamp?: number; | ||
}; | ||
UniRespListSitemapDocDTO: { | ||
data?: components["schemas"]["SitemapDocDTO"][]; | ||
meta?: string; | ||
error?: string; | ||
}; | ||
Action: { | ||
@@ -277,2 +293,24 @@ tag?: string; | ||
export interface operations { | ||
/** Get recent activities */ | ||
recentActivities: { | ||
parameters: { | ||
query: { | ||
limit: number; | ||
}; | ||
}; | ||
responses: { | ||
/** @description OK */ | ||
200: { | ||
content: { | ||
"application/json": components["schemas"]["UniRespListSitemapDocDTO"]; | ||
}; | ||
}; | ||
/** @description Bad Request */ | ||
400: { | ||
content: { | ||
"application/json": Record<string, any>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
/** Search activities */ | ||
@@ -279,0 +317,0 @@ searchFeedV2: { |
{ | ||
"name": "@rss3/js-sdk", | ||
"description": "RSS3 JavaScript SDK, the Turbocharger🌪️ for Your Next Open Web Development.", | ||
"version": "0.6.50", | ||
"version": "0.6.51", | ||
"author": "Natural Selection Labs and RSS3 Contributors", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
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
349335
9258