New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@renegade-fi/core

Package Overview
Dependencies
Maintainers
0
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@renegade-fi/core - npm Package Compare versions

Comparing version 0.4.11 to 0.4.12

5

dist/esm/actions/assembleExternalQuote.js

@@ -7,3 +7,3 @@ import invariant from 'tiny-invariant';

export async function assembleExternalQuote(config, parameters) {
const { quote, doGasEstimation = false } = parameters;
const { quote, updatedOrder, doGasEstimation = false } = parameters;
const { apiSecret, apiKey } = config;

@@ -14,3 +14,4 @@ invariant(apiSecret, 'API secret not specified in config');

const stringifiedQuote = stringifyForWasm(quote);
const body = config.utils.assemble_external_match(doGasEstimation, stringifiedQuote);
const stringifiedOrder = updatedOrder ? stringifyForWasm(updatedOrder) : '';
const body = config.utils.assemble_external_match(doGasEstimation, stringifiedOrder, stringifiedQuote);
const res = await postWithSymmetricKey(config, {

@@ -17,0 +18,0 @@ url: config.getAuthServerUrl(ASSEMBLE_EXTERNAL_MATCH_ROUTE),

3

dist/types/actions/assembleExternalQuote.d.ts
import type { AuthConfig } from '../createAuthConfig.js';
import { type BaseErrorType } from '../errors/base.js';
import type { ExternalMatchBundle, SignedExternalMatchQuote } from '../types/externalMatch.js';
import type { ExternalMatchBundle, ExternalOrder, SignedExternalMatchQuote } from '../types/externalMatch.js';
export type AssembleExternalQuoteParameters = {
quote: SignedExternalMatchQuote;
updatedOrder?: ExternalOrder;
doGasEstimation?: boolean;

@@ -7,0 +8,0 @@ };

@@ -9,3 +9,3 @@ import { type GetNetworkOrdersReturnType } from '../actions/getNetworkOrders.js';

queryKey: readonly ["network-orders", {
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];

@@ -18,3 +18,3 @@ signal: AbortSignal;

readonly queryKey: readonly ["network-orders", {
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];

@@ -25,5 +25,5 @@ };

export declare function getNetworkOrdersQueryKey(options?: GetNetworkOrdersOptions): readonly ["network-orders", {
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];
export type GetNetworkOrdersQueryKey = ReturnType<typeof getNetworkOrdersQueryKey>;
//# sourceMappingURL=getNetworkOrders.d.ts.map

@@ -10,3 +10,3 @@ import { type GetOpenOrdersParams, type GetOpenOrdersReturnType } from '../actions/getOpenOrders.js';

matchingPool?: string | undefined;
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];

@@ -20,3 +20,3 @@ signal: AbortSignal;

matchingPool?: string | undefined;
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];

@@ -28,5 +28,5 @@ };

matchingPool?: string | undefined;
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];
export type GetOpenOrdersQueryKey = ReturnType<typeof getOpenOrdersQueryKey>;
//# sourceMappingURL=getOpenOrders.d.ts.map

@@ -9,3 +9,3 @@ import { type GetOrderHistoryReturnType } from '../actions/getOrderHistory.js';

queryKey: readonly ["order-history", {
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];

@@ -18,3 +18,3 @@ signal: AbortSignal;

readonly queryKey: readonly ["order-history", {
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];

@@ -25,5 +25,5 @@ };

export declare function getOrderHistoryQueryKey(options?: GetOrderHistoryOptions): readonly ["order-history", {
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];
export type GetOrderHistoryQueryKey = ReturnType<typeof getOrderHistoryQueryKey>;
//# sourceMappingURL=getOrderHistory.d.ts.map

@@ -11,3 +11,3 @@ import { type GetOrderMetadataParameters, type GetOrderMetadataReturnType } from '../actions/getOrderMetadata.js';

includeFillable?: boolean | undefined;
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];

@@ -22,3 +22,3 @@ signal: AbortSignal;

includeFillable?: boolean | undefined;
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];

@@ -31,5 +31,5 @@ };

includeFillable?: boolean | undefined;
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];
export type GetOrderMetadataQueryKey = ReturnType<typeof getOrderMetadataQueryKey>;
//# sourceMappingURL=getOrderMetadata.d.ts.map

@@ -9,3 +9,3 @@ import { type GetPingReturnType } from '../actions/ping.js';

queryKey: readonly ["ping", {
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];

@@ -18,3 +18,3 @@ signal: AbortSignal;

readonly queryKey: readonly ["ping", {
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];

@@ -25,5 +25,5 @@ };

export declare function getPingQueryKey(options?: GetPingOptions): readonly ["ping", {
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];
export type GetPingQueryKey = ReturnType<typeof getPingQueryKey>;
//# sourceMappingURL=getPing.d.ts.map

@@ -9,3 +9,3 @@ import { type GetTaskHistoryReturnType } from '../actions/getTaskHistory.js';

queryKey: readonly ["task-history", {
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];

@@ -18,3 +18,3 @@ signal: AbortSignal;

readonly queryKey: readonly ["task-history", {
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];

@@ -25,5 +25,5 @@ };

export declare function getTaskHistoryQueryKey(options?: GetTaskHistoryOptions): readonly ["task-history", {
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];
export type GetTaskHistoryQueryKey = ReturnType<typeof getTaskHistoryQueryKey>;
//# sourceMappingURL=getTaskHistory.d.ts.map

@@ -10,3 +10,3 @@ import { type GetWalletFromRelayerParameters, type GetWalletFromRelayerReturnType } from '../actions/getWalletFromRelayer.js';

filterDefaults?: boolean | undefined;
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];

@@ -20,3 +20,3 @@ signal: AbortSignal;

filterDefaults?: boolean | undefined;
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];

@@ -28,5 +28,5 @@ };

filterDefaults?: boolean | undefined;
scopeKey?: string | undefined;
scopeKey?: string | undefined | undefined;
}];
export type GetWalletQueryKey = ReturnType<typeof getWalletQueryKey>;
//# sourceMappingURL=getWallet.d.ts.map
{
"name": "@renegade-fi/core",
"description": "VanillaJS library for Renegade",
"version": "0.4.11",
"version": "0.4.12",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

@@ -10,2 +10,3 @@ import invariant from 'tiny-invariant'

ExternalMatchBundle,
ExternalOrder,
SignedExternalMatchQuote,

@@ -18,2 +19,3 @@ } from '../types/externalMatch.js'

quote: SignedExternalMatchQuote
updatedOrder?: ExternalOrder
doGasEstimation?: boolean

@@ -30,3 +32,3 @@ }

): Promise<AssembleExternalQuoteReturnType> {
const { quote, doGasEstimation = false } = parameters
const { quote, updatedOrder, doGasEstimation = false } = parameters
const { apiSecret, apiKey } = config

@@ -38,4 +40,6 @@ invariant(apiSecret, 'API secret not specified in config')

const stringifiedQuote = stringifyForWasm(quote)
const stringifiedOrder = updatedOrder ? stringifyForWasm(updatedOrder) : ''
const body = config.utils.assemble_external_match(
doGasEstimation,
stringifiedOrder,
stringifiedQuote,

@@ -42,0 +46,0 @@ )

@@ -117,6 +117,7 @@ /* tslint:disable */

* @param {boolean} do_gas_estimation
* @param {string} updated_order
* @param {string} signed_quote
* @returns {any}
*/
export function assemble_external_match(do_gas_estimation: boolean, signed_quote: string): any;
export function assemble_external_match(do_gas_estimation: boolean, updated_order: string, signed_quote: string): any;
/**

@@ -123,0 +124,0 @@ * @param {string} seed

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