@renegade-fi/core
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -37,3 +37,3 @@ import { getSkRoot } from "./getSkRoot.js"; | ||
const logs = await publicClient.getLogs({ | ||
address: "0xde1eef14801cd14045b645755a5682dd188256b8", | ||
address: config.darkPoolAddress, | ||
event: parseAbiItem("event WalletUpdated(uint256 indexed wallet_blinder_share)"), | ||
@@ -40,0 +40,0 @@ args: { |
@@ -43,2 +43,3 @@ import { createStorage, noopStorage } from "./createStorage.js"; | ||
priceReporterUrl, | ||
darkPoolAddress: parameters.darkPoolAddress, | ||
getRelayerBaseUrl: function (route = "") { | ||
@@ -45,0 +46,0 @@ const baseUrl = parameters.relayerUrl.includes("localhost") |
import { type Storage } from "./createStorage.js"; | ||
import type { Evaluate, ExactPartial } from "./types/utils.js"; | ||
import type * as rustUtils from "./utils.d.ts"; | ||
import type { Hex } from "viem"; | ||
import type { Address, Hex } from "viem"; | ||
import { type Mutate, type StoreApi } from "zustand/vanilla"; | ||
export type CreateConfigParameters = { | ||
darkPoolAddress: Address; | ||
priceReporterUrl: string; | ||
@@ -18,11 +19,11 @@ relayerUrl: string; | ||
export type Config = { | ||
utils: typeof rustUtils; | ||
relayerUrl: string; | ||
priceReporterUrl: string; | ||
pollingInterval: number; | ||
darkPoolAddress: Address; | ||
getPriceReporterBaseUrl: () => string; | ||
getRelayerBaseUrl: (route?: string) => string; | ||
getWebsocketBaseUrl: () => string; | ||
getPriceReporterBaseUrl: () => string; | ||
pollingInterval: number; | ||
priceReporterUrl: string; | ||
relayerUrl: string; | ||
setState: (newState: State) => void; | ||
state: State; | ||
setState: (newState: State) => void; | ||
subscribe<state>(selector: (state: State) => state, listener: (state: state, previousState: state) => void, options?: { | ||
@@ -32,2 +33,3 @@ emitImmediately?: boolean | undefined; | ||
} | undefined): () => void; | ||
utils: typeof rustUtils; | ||
/** | ||
@@ -34,0 +36,0 @@ * Not part of versioned API, proceed with caution. |
{ | ||
"name": "@renegade-fi/core", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "VanillaJS library for Renegade", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -49,3 +49,3 @@ import { getSkRoot } from "./getSkRoot.js" | ||
const logs = await publicClient.getLogs({ | ||
address: "0xde1eef14801cd14045b645755a5682dd188256b8", | ||
address: config.darkPoolAddress, | ||
event: parseAbiItem("event WalletUpdated(uint256 indexed wallet_blinder_share)"), | ||
@@ -52,0 +52,0 @@ args: { |
@@ -5,3 +5,3 @@ import { type Storage, createStorage, noopStorage } from "./createStorage.js" | ||
import invariant from "tiny-invariant" | ||
import type { Hex } from "viem" | ||
import type { Address, Hex } from "viem" | ||
import { persist, subscribeWithSelector } from "zustand/middleware" | ||
@@ -11,2 +11,3 @@ import { type Mutate, type StoreApi, createStore } from "zustand/vanilla" | ||
export type CreateConfigParameters = { | ||
darkPoolAddress: Address | ||
priceReporterUrl: string | ||
@@ -80,2 +81,3 @@ relayerUrl: string | ||
priceReporterUrl, | ||
darkPoolAddress: parameters.darkPoolAddress, | ||
getRelayerBaseUrl: function (route: string = "") { | ||
@@ -120,11 +122,11 @@ const baseUrl = parameters.relayerUrl.includes("localhost") | ||
export type Config = { | ||
utils: typeof rustUtils | ||
relayerUrl: string | ||
priceReporterUrl: string | ||
pollingInterval: number | ||
darkPoolAddress: Address | ||
getPriceReporterBaseUrl: () => string | ||
getRelayerBaseUrl: (route?: string) => string | ||
getWebsocketBaseUrl: () => string | ||
getPriceReporterBaseUrl: () => string | ||
pollingInterval: number | ||
priceReporterUrl: string | ||
relayerUrl: string | ||
setState: (newState: State) => void | ||
state: State | ||
setState: (newState: State) => void | ||
subscribe<state>( | ||
@@ -140,3 +142,3 @@ selector: (state: State) => state, | ||
): () => void | ||
utils: typeof rustUtils | ||
/** | ||
@@ -143,0 +145,0 @@ * Not part of versioned API, proceed with caution. |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
486763
219
8021
1
9