From 93618344486ab8cc2a7523cef0594f70ffe4fe47 Mon Sep 17 00:00:00 2001 From: moo-onthelawn <70078372+moo-onthelawn@users.noreply.github.com> Date: Wed, 1 May 2024 11:24:56 -0400 Subject: [PATCH] chore(sltp): bump abacus v to pull in new analytics + change sl/tp duration to 90 days (#490) * bump abacus * add toast duration --- package.json | 2 +- pnpm-lock.yaml | 9 +++++---- src/hooks/useNotificationTypes.tsx | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 89e76d268..1a107bfb8 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "@cosmjs/proto-signing": "^0.32.1", "@cosmjs/stargate": "^0.32.1", "@cosmjs/tendermint-rpc": "^0.32.1", - "@dydxprotocol/v4-abacus": "^1.6.50", + "@dydxprotocol/v4-abacus": "^1.6.54", "@dydxprotocol/v4-client-js": "^1.1.7", "@dydxprotocol/v4-localization": "^1.1.76", "@ethersproject/providers": "^5.7.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 27c04fe5d..d8ada0b44 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,8 +30,8 @@ dependencies: specifier: ^0.32.1 version: 0.32.2 '@dydxprotocol/v4-abacus': - specifier: ^1.6.50 - version: 1.6.50 + specifier: ^1.6.54 + version: 1.6.54 '@dydxprotocol/v4-client-js': specifier: ^1.1.7 version: 1.1.7 @@ -1946,10 +1946,10 @@ packages: '@jridgewell/trace-mapping': 0.3.9 dev: true - /@dydxprotocol/v4-abacus@1.6.50: + /@dydxprotocol/v4-abacus@1.6.54: resolution: { - integrity: sha512-+VN0RSY1Cgh9O8+1sQ6EWRvHozhomOvG+s3WkEqMe/rC2pPV12t3O4EM568uSxtI34v13TX6/NV+oNjvYx0Y7w==, + integrity: sha512-lmAaUlDq1Swx8T7bNWOpF3WRqhrEDEulrE1BDcab9b3wCA3hT9buFBU7e73JryBqDRVCyuqDIvIF0VDqZsCAKQ==, } dependencies: '@js-joda/core': 3.2.0 @@ -15987,6 +15987,7 @@ packages: is-hex-prefixed: 1.0.0 strip-hex-prefix: 1.0.0 dev: false + bundledDependencies: false /event-emitter@0.3.5: resolution: diff --git a/src/hooks/useNotificationTypes.tsx b/src/hooks/useNotificationTypes.tsx index eaf33c308..06f585436 100644 --- a/src/hooks/useNotificationTypes.tsx +++ b/src/hooks/useNotificationTypes.tsx @@ -275,6 +275,7 @@ export const notificationTypes: NotificationTypeConfig[] = [ icon: assetIcon, title: title, body: body, + toastDuration: DEFAULT_TOAST_AUTO_CLOSE_MS, renderCustomBody: ({ isToast, notification }) => (