@rainlanguage/ui-components 0.0.1-alpha.132 → 0.0.1-alpha.134

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.
@@ -4,7 +4,7 @@ export const mockConfig = {
4
4
  networks: {
5
5
  mainnet: {
6
6
  key: 'mainnet',
7
- rpc: 'https://mainnet.infura.io/v3/YOUR-PROJECT-ID',
7
+ rpcs: ['https://mainnet.infura.io/v3/YOUR-PROJECT-ID'],
8
8
  chainId: 1,
9
9
  label: 'Ethereum Mainnet',
10
10
  currency: 'ETH'
@@ -34,7 +34,7 @@ export let codeMirrorTheme;
34
34
  export let lightweightChartsTheme;
35
35
  export let orderbookAddress;
36
36
  export let orderHash;
37
- export let rpcUrl;
37
+ export let rpcUrls;
38
38
  export let subgraphUrl;
39
39
  export let onRemove;
40
40
  export let onDeposit;
@@ -178,7 +178,7 @@ $: subgraphName = $page.url.pathname.split("/")[2]?.split("-")[0];
178
178
  <TanstackOrderQuote
179
179
  id={data.order.id}
180
180
  order={data.order}
181
- {rpcUrl}
181
+ {rpcUrls}
182
182
  {orderbookAddress}
183
183
  {handleQuoteDebugModal}
184
184
  />
@@ -11,7 +11,7 @@ declare const __propDef: {
11
11
  lightweightChartsTheme: any;
12
12
  orderbookAddress: Hex;
13
13
  orderHash: string;
14
- rpcUrl: string;
14
+ rpcUrls: string[];
15
15
  subgraphUrl: string;
16
16
  /** Callback function when remove action is triggered for an order
17
17
  * @param order The order to remove
@@ -18,7 +18,7 @@ import { BugOutline, PauseSolid, PlaySolid } from "flowbite-svelte-icons";
18
18
  import Tooltip from "../Tooltip.svelte";
19
19
  export let id;
20
20
  export let order;
21
- export let rpcUrl;
21
+ export let rpcUrls;
22
22
  export let orderbookAddress;
23
23
  export let handleQuoteDebugModal = void 0;
24
24
  let enabled = true;
@@ -34,7 +34,7 @@ const refreshQuotes = async () => {
34
34
  $: orderQuoteQuery = createQuery({
35
35
  queryKey: [id, QKEY_ORDER_QUOTE + id],
36
36
  queryFn: async () => {
37
- const result = await getOrderQuote([order], rpcUrl);
37
+ const result = await getOrderQuote([order], rpcUrls);
38
38
  if (result.error) throw new Error(result.error.msg);
39
39
  return result.value;
40
40
  },
@@ -120,7 +120,7 @@ $: orderModalArg = order;
120
120
  on:click={() =>
121
121
  handleQuoteDebugModal(
122
122
  orderModalArg,
123
- rpcUrl || '',
123
+ rpcUrls,
124
124
  orderbookAddress || '',
125
125
  item.pair.inputIndex,
126
126
  item.pair.outputIndex,
@@ -155,7 +155,7 @@ $: orderModalArg = order;
155
155
  on:click={() =>
156
156
  handleQuoteDebugModal(
157
157
  order,
158
- rpcUrl || '',
158
+ rpcUrls,
159
159
  orderbookAddress || '',
160
160
  item.pair.inputIndex,
161
161
  item.pair.outputIndex,
@@ -5,9 +5,9 @@ declare class __sveltets_Render<T> {
5
5
  props(): {
6
6
  id: string;
7
7
  order: SgOrder;
8
- rpcUrl: string;
8
+ rpcUrls: string[];
9
9
  orderbookAddress: Hex;
10
- handleQuoteDebugModal?: ((order: SgOrder, rpcUrl: string, orderbookAddress: Hex, inputIndex: number, outputIndex: number, pairName: string, blockNumber?: number) => void) | undefined;
10
+ handleQuoteDebugModal?: ((order: SgOrder, rpcUrls: string[], orderbookAddress: Hex, inputIndex: number, outputIndex: number, pairName: string, blockNumber?: number) => void) | undefined;
11
11
  };
12
12
  events(): {} & {
13
13
  [evt: string]: CustomEvent<any>;
@@ -22,8 +22,8 @@ export type TransactionConfirmationProps = {
22
22
  calldata: string;
23
23
  };
24
24
  };
25
- export type QuoteDebugModalHandler = (order: SgOrder, rpcUrl: string, orderbook: string, inputIOIndex: number, outputIOIndex: number, pair: string, blockNumber?: number) => void;
26
- export type DebugTradeModalHandler = (hash: string, rpcUrl: string) => void;
25
+ export type QuoteDebugModalHandler = (order: SgOrder, rpcUrls: string[], orderbook: string, inputIOIndex: number, outputIOIndex: number, pair: string, blockNumber?: number) => void;
26
+ export type DebugTradeModalHandler = (hash: string, rpcUrls: string[]) => void;
27
27
  export type HandleTransactionConfirmationModal = (props: TransactionConfirmationProps, options?: {
28
28
  timeout?: number;
29
29
  }) => Promise<{
@@ -11,7 +11,7 @@ export type VaultActionArgs = {
11
11
  vault: SgVault;
12
12
  chainId: number;
13
13
  onDeposit?: () => void;
14
- rpcUrl: string;
14
+ rpcUrls: string[];
15
15
  subgraphUrl: string;
16
16
  account: Hex;
17
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rainlanguage/ui-components",
3
- "version": "0.0.1-alpha.132",
3
+ "version": "0.0.1-alpha.134",
4
4
  "description": "A component library for building Svelte applications to be used with Raindex.",
5
5
  "license": "LicenseRef-DCL-1.0",
6
6
  "author": "Rain Open Source Software Ltd",
@@ -53,7 +53,7 @@
53
53
  "@fontsource/dm-sans": "5.1.0",
54
54
  "@imask/svelte": "7.6.1",
55
55
  "@observablehq/plot": "0.6.16",
56
- "@rainlanguage/orderbook": "0.0.1-alpha.132",
56
+ "@rainlanguage/orderbook": "0.0.1-alpha.134",
57
57
  "@reown/appkit": "1.6.4",
58
58
  "@reown/appkit-adapter-wagmi": "1.6.4",
59
59
  "@sentry/sveltekit": "7.120.0",