@symmio/trading-core 3.4.0 → 3.4.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.
|
@@ -44,7 +44,7 @@ var t = {
|
|
|
44
44
|
contractsVersion: "0.8.6",
|
|
45
45
|
addresses: {
|
|
46
46
|
symmioAddress: "0x57331027091994FCb9c5Aec48ea92cEf0a93CF6A",
|
|
47
|
-
instantLayerAddress: "
|
|
47
|
+
instantLayerAddress: "0xf4e8b150fdc756aca578f5a05811c1998c65c829",
|
|
48
48
|
accountLayerAddress: "0x573310d1D6ec18cB21E1aB949414470D9bf5c24E",
|
|
49
49
|
affiliatesAddress: "0x58bB5Bdc279321507DfB7AB54B9e7EF3DdA6E24D",
|
|
50
50
|
collateralAddress: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","names":[],"sources":["../../../src/core/chains/registry.ts"],"sourcesContent":["import { SymmioSupportedChainId } from \"./supported-chains\";\nimport type { SymmioChainConfig } from \"./types\";\n\n/**\n * Built-in SYMMIO deployment configs keyed by chain ID.\n *\n * @internal\n */\nexport const CHAIN_CONFIGS: Record<number, SymmioChainConfig> = {\n [SymmioSupportedChainId.BASE]: {\n chainId: SymmioSupportedChainId.BASE,\n contractsVersion: \"0.8.5\",\n addresses: {\n symmioAddress: \"0x91Cf2D8Ed503EC52768999aA6D8DBeA6e52dbe43\",\n instantLayerAddress: \"0x0825435285ac0E5c02c7a7c443F631f3e07fE375\",\n accountLayerAddress: \"0x56caf00c6C5cB5478570Bb23807B9d1D697863DC\",\n affiliatesAddress: \"0x45Eecd7B4f442388ACD90467E423A5CAAC3a9C3f\",\n collateralAddress: \"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\", // USDC on Base\n collateralDecimals: 6,\n },\n // Rasa — Base's real solver. Rasa's API shares Enigma's paths for the\n // shared reads (contract-symbols, funding, locked params, error codes,\n // notional_cap/{id}, instant lists), so those work today; the diverging\n // endpoints (`/instant_trade/open|close` execution, `/estimated-price`,\n // `/notional_cap` list) return 404 until per-kind dispatch is wired into\n // the solver actions.\n // No `tpsl` block: Base COH deployment not confirmed yet — absence marks\n // conditional orders unsupported (add the block when the vendor provides it).\n solvers: {\n rasa: {\n name: \"Rasa\",\n address: \"0x81631953E0C093e72935C1CAA4C7D519B2A0E407\",\n // Staging URL — swap to the production solver URL when published.\n url: \"https://stage-archon.rasa.capital\",\n // Rasa's own position-state stream — real Base data. No `searchUrl`: the\n // rasa protocol serves notification history from the solver's own\n // position-state endpoint (via `searchNotifications`), not a REST service.\n notifications: {\n url: \"wss://stage-archon.rasa.capital/ws/position-state-ws3\",\n protocol: \"rasa\",\n },\n // Majors support LIMIT orders (pending open at a user-set price).\n capabilities: { limitOrder: true },\n },\n },\n defaultSolverId: \"rasa\",\n // Base's own analytics and events subgraphs (Goldsky) — real, production endpoints.\n subgraphs: {\n analytics:\n \"https://api.goldsky.com/api/public/project_cm1hfr4527p0f01u85mz499u8/subgraphs/base_analytics/latest/gn\",\n events: \"https://api.goldsky.com/api/public/project_cm1hfr4527p0f01u85mz499u8/subgraphs/base_events/latest/gn\",\n },\n // Rasa serves majors and has no mark-price feed of its own — no REST mark\n // price, no mark-price WebSocket, no index price. Binance USD-M Futures is\n // the price source, matching how the reference UI configures this solver.\n //\n // Both URLs are public constants but stay in config on purpose: they are the\n // escape hatch for Binance's regional restrictions, so an integrator whose\n // users are blocked repoints them at their own proxy with no SDK change.\n priceService: {\n type: \"binance\",\n /** USD-M Futures REST root. The client appends `/fapi/v1/…`. */\n url: \"https://fapi.binance.com\",\n /**\n * All-symbols mark-price broadcast, 1 push/sec.\n *\n * The `/market/ws/` prefix is deliberate and was verified against the live\n * endpoint: Binance's *documented* `/ws/<stream>` form (and\n * `/stream?streams=`) connect and then never push a frame, which would ship\n * a feed that reports `open` and silently never ticks.\n */\n wsUrl: \"wss://fstream.binance.com/market/ws/!markPrice@arr@1s\",\n },\n // Muon is deployment-agnostic: one `symmio` app on one shared gateway set\n // serves every SYMMIO deployment, and the per-deployment input is the\n // `symmio` request param (this chain's diamond, from `addresses` above).\n // So these are Base's real gateways, not another chain's stand-in.\n muon: {\n urls: [\n \"https://muon-oracle1.rasa.capital/v1/\",\n \"https://muon-oracle2.rasa.capital/v1/\",\n \"https://muon-oracle3.rasa.capital/v1/\",\n \"https://muon-oracle4.rasa.capital/v1/\",\n ],\n },\n },\n\n [SymmioSupportedChainId.ARBITRUM]: {\n chainId: SymmioSupportedChainId.ARBITRUM,\n contractsVersion: \"0.8.6\",\n addresses: {\n symmioAddress: \"0x57331027091994FCb9c5Aec48ea92cEf0a93CF6A\",\n instantLayerAddress: \"
|
|
1
|
+
{"version":3,"file":"registry.js","names":[],"sources":["../../../src/core/chains/registry.ts"],"sourcesContent":["import { SymmioSupportedChainId } from \"./supported-chains\";\nimport type { SymmioChainConfig } from \"./types\";\n\n/**\n * Built-in SYMMIO deployment configs keyed by chain ID.\n *\n * @internal\n */\nexport const CHAIN_CONFIGS: Record<number, SymmioChainConfig> = {\n [SymmioSupportedChainId.BASE]: {\n chainId: SymmioSupportedChainId.BASE,\n contractsVersion: \"0.8.5\",\n addresses: {\n symmioAddress: \"0x91Cf2D8Ed503EC52768999aA6D8DBeA6e52dbe43\",\n instantLayerAddress: \"0x0825435285ac0E5c02c7a7c443F631f3e07fE375\",\n accountLayerAddress: \"0x56caf00c6C5cB5478570Bb23807B9d1D697863DC\",\n affiliatesAddress: \"0x45Eecd7B4f442388ACD90467E423A5CAAC3a9C3f\",\n collateralAddress: \"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\", // USDC on Base\n collateralDecimals: 6,\n },\n // Rasa — Base's real solver. Rasa's API shares Enigma's paths for the\n // shared reads (contract-symbols, funding, locked params, error codes,\n // notional_cap/{id}, instant lists), so those work today; the diverging\n // endpoints (`/instant_trade/open|close` execution, `/estimated-price`,\n // `/notional_cap` list) return 404 until per-kind dispatch is wired into\n // the solver actions.\n // No `tpsl` block: Base COH deployment not confirmed yet — absence marks\n // conditional orders unsupported (add the block when the vendor provides it).\n solvers: {\n rasa: {\n name: \"Rasa\",\n address: \"0x81631953E0C093e72935C1CAA4C7D519B2A0E407\",\n // Staging URL — swap to the production solver URL when published.\n url: \"https://stage-archon.rasa.capital\",\n // Rasa's own position-state stream — real Base data. No `searchUrl`: the\n // rasa protocol serves notification history from the solver's own\n // position-state endpoint (via `searchNotifications`), not a REST service.\n notifications: {\n url: \"wss://stage-archon.rasa.capital/ws/position-state-ws3\",\n protocol: \"rasa\",\n },\n // Majors support LIMIT orders (pending open at a user-set price).\n capabilities: { limitOrder: true },\n },\n },\n defaultSolverId: \"rasa\",\n // Base's own analytics and events subgraphs (Goldsky) — real, production endpoints.\n subgraphs: {\n analytics:\n \"https://api.goldsky.com/api/public/project_cm1hfr4527p0f01u85mz499u8/subgraphs/base_analytics/latest/gn\",\n events: \"https://api.goldsky.com/api/public/project_cm1hfr4527p0f01u85mz499u8/subgraphs/base_events/latest/gn\",\n },\n // Rasa serves majors and has no mark-price feed of its own — no REST mark\n // price, no mark-price WebSocket, no index price. Binance USD-M Futures is\n // the price source, matching how the reference UI configures this solver.\n //\n // Both URLs are public constants but stay in config on purpose: they are the\n // escape hatch for Binance's regional restrictions, so an integrator whose\n // users are blocked repoints them at their own proxy with no SDK change.\n priceService: {\n type: \"binance\",\n /** USD-M Futures REST root. The client appends `/fapi/v1/…`. */\n url: \"https://fapi.binance.com\",\n /**\n * All-symbols mark-price broadcast, 1 push/sec.\n *\n * The `/market/ws/` prefix is deliberate and was verified against the live\n * endpoint: Binance's *documented* `/ws/<stream>` form (and\n * `/stream?streams=`) connect and then never push a frame, which would ship\n * a feed that reports `open` and silently never ticks.\n */\n wsUrl: \"wss://fstream.binance.com/market/ws/!markPrice@arr@1s\",\n },\n // Muon is deployment-agnostic: one `symmio` app on one shared gateway set\n // serves every SYMMIO deployment, and the per-deployment input is the\n // `symmio` request param (this chain's diamond, from `addresses` above).\n // So these are Base's real gateways, not another chain's stand-in.\n muon: {\n urls: [\n \"https://muon-oracle1.rasa.capital/v1/\",\n \"https://muon-oracle2.rasa.capital/v1/\",\n \"https://muon-oracle3.rasa.capital/v1/\",\n \"https://muon-oracle4.rasa.capital/v1/\",\n ],\n },\n },\n\n [SymmioSupportedChainId.ARBITRUM]: {\n chainId: SymmioSupportedChainId.ARBITRUM,\n contractsVersion: \"0.8.6\",\n addresses: {\n symmioAddress: \"0x57331027091994FCb9c5Aec48ea92cEf0a93CF6A\",\n instantLayerAddress: \"0xf4e8b150fdc756aca578f5a05811c1998c65c829\",\n accountLayerAddress: \"0x573310d1D6ec18cB21E1aB949414470D9bf5c24E\",\n affiliatesAddress: \"0x58bB5Bdc279321507DfB7AB54B9e7EF3DdA6E24D\",\n collateralAddress: \"0xaf88d065e77c8cC2239327C5EDb3A432268e5831\",\n collateralDecimals: 6,\n },\n subgraphs: {\n analytics:\n \"https://api.goldsky.com/api/public/project_cm1hfr4527p0f01u85mz499u8/subgraphs/arbitrum-vibe-mainnet-analytics/latest/gn\",\n events:\n \"https://api.goldsky.com/api/public/project_cm1hfr4527p0f01u85mz499u8/subgraphs/arbitrum-vibe-mainnet-events/stage/gn\",\n },\n solvers: {\n enigma: {\n name: \"Enigma\",\n address: \"0x0420b24359d2DCccA53904042aa36A641162445c\",\n url: \"https://solver.enigma.bz/api\",\n tpsl: {\n url: \"https://tpsl.enigma.bz\",\n wsUrl: \"wss://notification.rasa.capital/ws/v1/subscribe\",\n appName: \"Arbitrum_COH_Production\",\n cohWalletAddress: \"0xFC3a98d30AdAA220Ae4150fcaC06Bd200b6E146B\",\n },\n notifications: {\n url: \"wss://notification.rasa.capital/ws/v1/subscribe\",\n channel: \"Arbitrum_Solver-Low-Cap_Production\",\n protocol: \"enigma\",\n searchUrl: \"https://notification.rasa.capital/notification\",\n },\n capabilities: { groupClose: true, listingService: true },\n },\n },\n defaultSolverId: \"enigma\",\n priceService: {\n type: \"enigma\",\n url: \"https://lowcap-price.enigma.bz\",\n wsUrl: \"wss://lowcap-price.enigma.bz/ws\",\n },\n muon: {\n urls: [\n \"https://muon-oracle1.rasa.capital/v1/\",\n \"https://muon-oracle2.rasa.capital/v1/\",\n \"https://muon-oracle3.rasa.capital/v1/\",\n \"https://muon-oracle4.rasa.capital/v1/\",\n ],\n },\n listing: {\n url: \"https://listing85.enigma.bz\",\n },\n inventory: {\n url: \"https://inventory85.enigma.bz\",\n },\n },\n};\n"],"mappings":";;AAQA,IAAa,IAAmD;EAC7D,EAAuB,OAAO;EAC7B,SAAS,EAAuB;EAChC,kBAAkB;EAClB,WAAW;GACT,eAAe;GACf,qBAAqB;GACrB,qBAAqB;GACrB,mBAAmB;GACnB,mBAAmB;GACnB,oBAAoB;EACtB;EASA,SAAS,EACP,MAAM;GACJ,MAAM;GACN,SAAS;GAET,KAAK;GAIL,eAAe;IACb,KAAK;IACL,UAAU;GACZ;GAEA,cAAc,EAAE,YAAY,GAAK;EACnC,EACF;EACA,iBAAiB;EAEjB,WAAW;GACT,WACE;GACF,QAAQ;EACV;EAQA,cAAc;GACZ,MAAM;GAEN,KAAK;GASL,OAAO;EACT;EAKA,MAAM,EACJ,MAAM;GACJ;GACA;GACA;GACA;EACF,EACF;CACF;EAEC,EAAuB,WAAW;EACjC,SAAS,EAAuB;EAChC,kBAAkB;EAClB,WAAW;GACT,eAAe;GACf,qBAAqB;GACrB,qBAAqB;GACrB,mBAAmB;GACnB,mBAAmB;GACnB,oBAAoB;EACtB;EACA,WAAW;GACT,WACE;GACF,QACE;EACJ;EACA,SAAS,EACP,QAAQ;GACN,MAAM;GACN,SAAS;GACT,KAAK;GACL,MAAM;IACJ,KAAK;IACL,OAAO;IACP,SAAS;IACT,kBAAkB;GACpB;GACA,eAAe;IACb,KAAK;IACL,SAAS;IACT,UAAU;IACV,WAAW;GACb;GACA,cAAc;IAAE,YAAY;IAAM,gBAAgB;GAAK;EACzD,EACF;EACA,iBAAiB;EACjB,cAAc;GACZ,MAAM;GACN,KAAK;GACL,OAAO;EACT;EACA,MAAM,EACJ,MAAM;GACJ;GACA;GACA;GACA;EACF,EACF;EACA,SAAS,EACP,KAAK,8BACP;EACA,WAAW,EACT,KAAK,gCACP;CACF;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symmio/trading-core",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"description": "Framework-agnostic SYMMIO SDK. Contract calls, calculations, and transformations with no framework assumptions.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/SYMM-IO/Trading-SDK/tree/main/packages/trading-core#readme",
|