@rainlanguage/ui-components 0.0.1-alpha.131 → 0.0.1-alpha.133
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.
- package/dist/__fixtures__/settings.yaml +29 -87
- package/dist/__mocks__/settings.js +1 -1
- package/dist/components/detail/OrderDetail.svelte +2 -2
- package/dist/components/detail/OrderDetail.svelte.d.ts +1 -1
- package/dist/components/detail/TanstackOrderQuote.svelte +4 -4
- package/dist/components/detail/TanstackOrderQuote.svelte.d.ts +2 -2
- package/dist/types/modal.d.ts +2 -2
- package/dist/types/transaction.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,183 +1,125 @@
|
|
|
1
1
|
version: 1
|
|
2
2
|
networks:
|
|
3
3
|
flare:
|
|
4
|
-
key: flare
|
|
5
4
|
rpc: https://rpc.ankr.com/flare
|
|
6
|
-
|
|
5
|
+
chain-id: 14
|
|
7
6
|
currency: FLR
|
|
8
7
|
base:
|
|
9
|
-
key: base
|
|
10
8
|
rpc: https://mainnet.base.org
|
|
11
|
-
|
|
9
|
+
chain-id: 8453
|
|
12
10
|
currency: ETH
|
|
13
11
|
sepolia:
|
|
14
|
-
key: sepolia
|
|
15
12
|
rpc: https://1rpc.io/sepolia
|
|
16
|
-
|
|
13
|
+
chain-id: 11155111
|
|
17
14
|
currency: ETH
|
|
18
15
|
polygon:
|
|
19
|
-
key: polygon
|
|
20
16
|
rpc: https://rpc.ankr.com/polygon
|
|
21
|
-
|
|
17
|
+
chain-id: 137
|
|
22
18
|
currency: POL
|
|
23
19
|
arbitrum:
|
|
24
|
-
key: arbitrum
|
|
25
20
|
rpc: https://rpc.ankr.com/arbitrum
|
|
26
|
-
|
|
21
|
+
chain-id: 42161
|
|
27
22
|
currency: ETH
|
|
28
23
|
matchain:
|
|
29
|
-
key: matchain
|
|
30
24
|
rpc: https://rpc.ankr.com/polygon
|
|
31
|
-
|
|
25
|
+
chain-id: 137
|
|
32
26
|
currency: POL
|
|
33
27
|
bsc:
|
|
34
|
-
key: bsc
|
|
35
28
|
rpc: https://rpc.ankr.com/bsc
|
|
36
|
-
|
|
29
|
+
chain-id: 56
|
|
37
30
|
currency: BNB
|
|
38
31
|
linea:
|
|
39
|
-
key: linea
|
|
40
32
|
rpc: https://rpc.linea.build
|
|
41
|
-
|
|
33
|
+
chain-id: 59144
|
|
42
34
|
currency: ETH
|
|
43
35
|
ethereum:
|
|
44
|
-
key: ethereum
|
|
45
36
|
rpc: https://rpc.ankr.com/eth
|
|
46
|
-
|
|
37
|
+
chain-id: 1
|
|
47
38
|
currency: ETH
|
|
48
39
|
subgraphs:
|
|
49
|
-
flare:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
arbitrum:
|
|
59
|
-
key: arbitrum
|
|
60
|
-
url: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-arbitrum/0.2/gn
|
|
61
|
-
bsc:
|
|
62
|
-
key: bsc
|
|
63
|
-
url: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-bsc/2024-10-14-63f4/gn
|
|
64
|
-
linea:
|
|
65
|
-
key: linea
|
|
66
|
-
url: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-linea/2024-10-14-12fc/gn
|
|
67
|
-
ethereum:
|
|
68
|
-
key: ethereum
|
|
69
|
-
url: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-mainnet/2024-10-25-af6a/gn
|
|
40
|
+
flare: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-flare/0.8/gn
|
|
41
|
+
base: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-base/0.9/gn
|
|
42
|
+
sepolia: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-sepolia/0.1/gn
|
|
43
|
+
polygon: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-polygon/0.1/gn
|
|
44
|
+
arbitrum: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-arbitrum/0.2/gn
|
|
45
|
+
matchain: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-polygon/0.1/gn
|
|
46
|
+
bsc: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-bsc/2024-10-14-63f4/gn
|
|
47
|
+
linea: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/ob4-linea/2024-10-14-12fc/gn
|
|
48
|
+
ethereum: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/metadata-mainnet/2024-10-25-2857/gn
|
|
70
49
|
metaboards:
|
|
71
|
-
flare:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
polygon:
|
|
81
|
-
key: polygon
|
|
82
|
-
url: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-polygon/0.1/gn
|
|
83
|
-
arbitrum:
|
|
84
|
-
key: arbitrum
|
|
85
|
-
url: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-arbitrum/0.1/gn
|
|
86
|
-
bsc:
|
|
87
|
-
key: bsc
|
|
88
|
-
url: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-bsc/0.1/gn
|
|
89
|
-
linea:
|
|
90
|
-
key: linea
|
|
91
|
-
url: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-linea-0xed7d6156/1.0.0/gn
|
|
92
|
-
ethereum:
|
|
93
|
-
key: ethereum
|
|
94
|
-
url: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/metadata-mainnet/2024-10-25-2857/gn
|
|
50
|
+
flare: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-flare-0x893BBFB7/0.1/gn
|
|
51
|
+
base: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-base-0x59401C93/0.1/gn
|
|
52
|
+
sepolia: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-sepolia-0x77991674/0.1/gn
|
|
53
|
+
polygon: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-polygon/0.1/gn
|
|
54
|
+
arbitrum: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-arbitrum/0.1/gn
|
|
55
|
+
matchain: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-polygon/0.1/gn
|
|
56
|
+
bsc: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-bsc/0.1/gn
|
|
57
|
+
linea: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/mb-linea-0xed7d6156/1.0.0/gn
|
|
58
|
+
ethereum: https://api.goldsky.com/api/public/project_clv14x04y9kzi01saerx7bxpg/subgraphs/metadata-mainnet/2024-10-25-2857/gn
|
|
95
59
|
orderbooks:
|
|
96
60
|
flare:
|
|
97
|
-
key: flare
|
|
98
61
|
address: 0xCEe8Cd002F151A536394E564b84076c41bBBcD4d
|
|
99
62
|
network: flare
|
|
100
63
|
subgraph: flare
|
|
101
64
|
base:
|
|
102
|
-
key: base
|
|
103
65
|
address: 0xd2938e7c9fe3597f78832ce780feb61945c377d7
|
|
104
66
|
network: base
|
|
105
67
|
subgraph: base
|
|
106
68
|
sepolia:
|
|
107
|
-
key: sepolia
|
|
108
69
|
address: 0x0bB72B4C7c0d47b2CaED07c804D9243C1B8a0728
|
|
109
70
|
network: sepolia
|
|
110
71
|
subgraph: sepolia
|
|
111
72
|
polygon:
|
|
112
|
-
key: polygon
|
|
113
73
|
address: 0x7D2f700b1f6FD75734824EA4578960747bdF269A
|
|
114
74
|
network: polygon
|
|
115
75
|
subgraph: polygon
|
|
116
76
|
arbitrum:
|
|
117
|
-
key: arbitrum
|
|
118
77
|
address: 0x550878091b2B1506069F61ae59e3A5484Bca9166
|
|
119
78
|
network: arbitrum
|
|
120
79
|
subgraph: arbitrum
|
|
121
80
|
matchain:
|
|
122
|
-
key: matchain
|
|
123
81
|
address: 0x40312edab8fe65091354172ad79e9459f21094e2
|
|
124
82
|
network: matchain
|
|
125
83
|
subgraph: matchain
|
|
126
84
|
bsc:
|
|
127
|
-
key: bsc
|
|
128
85
|
address: 0xd2938E7c9fe3597F78832CE780Feb61945c377d7
|
|
129
86
|
network: bsc
|
|
130
87
|
subgraph: bsc
|
|
131
88
|
linea:
|
|
132
|
-
key: linea
|
|
133
89
|
address: 0x22410e2a46261a1B1e3899a072f303022801C764
|
|
134
90
|
network: linea
|
|
135
91
|
subgraph: linea
|
|
136
92
|
ethereum:
|
|
137
|
-
key: ethereum
|
|
138
93
|
address: 0x0eA6d458488d1cf51695e1D6e4744e6FB715d37C
|
|
139
94
|
network: ethereum
|
|
140
95
|
subgraph: ethereum
|
|
141
96
|
deployers:
|
|
142
97
|
flare:
|
|
143
|
-
key: flare
|
|
144
98
|
address: 0xE3989Ea7486c0F418C764e6c511e86f6E8830FAb
|
|
145
99
|
network: flare
|
|
146
100
|
base:
|
|
147
|
-
key: base
|
|
148
101
|
address: 0xC1A14cE2fd58A3A2f99deCb8eDd866204eE07f8D
|
|
149
102
|
network: base
|
|
150
103
|
sepolia:
|
|
151
|
-
key: sepolia
|
|
152
104
|
address: 0x7692BA8446Bb8B3140A2c02df073080BeD0a7F8E
|
|
153
105
|
network: sepolia
|
|
154
106
|
polygon:
|
|
155
|
-
key: polygon
|
|
156
107
|
address: 0xE7116BC05C8afe25e5B54b813A74F916B5D42aB1
|
|
157
108
|
network: polygon
|
|
158
109
|
arbitrum:
|
|
159
|
-
key: arbitrum
|
|
160
110
|
address: 0x9B0D254bd858208074De3d2DaF5af11b3D2F377F
|
|
161
111
|
network: arbitrum
|
|
162
112
|
matchain:
|
|
163
|
-
key: matchain
|
|
164
113
|
address: 0x582d9e838FE6cD9F8147C66A8f56A3FBE513a6A2
|
|
165
114
|
network: matchain
|
|
166
115
|
bsc:
|
|
167
|
-
key: bsc
|
|
168
116
|
address: 0xA2f56F8F74B7d04d61f281BE6576b6155581dcBA
|
|
169
117
|
network: bsc
|
|
170
118
|
linea:
|
|
171
|
-
key: linea
|
|
172
119
|
address: 0xA2f56F8F74B7d04d61f281BE6576b6155581dcBA
|
|
173
120
|
network: linea
|
|
174
121
|
ethereum:
|
|
175
|
-
key: ethereum
|
|
176
122
|
address: 0xd19581a021f4704ad4eBfF68258e7A0a9DB1CD77
|
|
177
123
|
accounts:
|
|
178
|
-
wallet1:
|
|
179
|
-
|
|
180
|
-
address: 0xf08bCbce72f62c95Dcb7c07dCb5Ed26ACfCfBc11
|
|
181
|
-
wallet2:
|
|
182
|
-
key: wallet2
|
|
183
|
-
address: 0x6bc14a99ccf7f9037c98d75eec6c6d807f9d953f
|
|
124
|
+
wallet1: 0xf08bCbce72f62c95Dcb7c07dCb5Ed26ACfCfBc11
|
|
125
|
+
wallet2: 0x6bc14a99ccf7f9037c98d75eec6c6d807f9d953f
|
|
@@ -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
|
|
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
|
-
{
|
|
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
|
-
|
|
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
|
|
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],
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
8
|
+
rpcUrls: string[];
|
|
9
9
|
orderbookAddress: Hex;
|
|
10
|
-
handleQuoteDebugModal?: ((order: SgOrder,
|
|
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>;
|
package/dist/types/modal.d.ts
CHANGED
|
@@ -22,8 +22,8 @@ export type TransactionConfirmationProps = {
|
|
|
22
22
|
calldata: string;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
-
export type QuoteDebugModalHandler = (order: SgOrder,
|
|
26
|
-
export type DebugTradeModalHandler = (hash: string,
|
|
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<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rainlanguage/ui-components",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.133",
|
|
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.
|
|
56
|
+
"@rainlanguage/orderbook": "0.0.1-alpha.133",
|
|
57
57
|
"@reown/appkit": "1.6.4",
|
|
58
58
|
"@reown/appkit-adapter-wagmi": "1.6.4",
|
|
59
59
|
"@sentry/sveltekit": "7.120.0",
|