@blockend/widget 1.0.31 → 1.0.32
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/AllRoutes-CPwuTwqd.js +2209 -0
- package/dist/Box-CIChapvH.js +55 -0
- package/dist/EstGas-CEFILtyf.js +12867 -0
- package/dist/Grow-DJZj9zjv.js +1656 -0
- package/dist/InputComp-DqF1JGIu.js +106 -0
- package/dist/LoadRoute-r3sHTYXM.js +126 -0
- package/dist/QuotesProgress-BXVLxZ8U.js +28 -0
- package/dist/SwapAsset-07WvVwl-.js +64 -0
- package/dist/Tooltip-CNAsCF8n.js +572 -0
- package/dist/TxnButton-D2TTkFYA.js +207 -0
- package/dist/WidgetForm.module-QHJ0-m5f.js +9 -0
- package/dist/{add-B8AfyNIx.js → add-t2GqC9VA.js} +3 -3
- package/dist/{all-wallets-BaLLU39i.js → all-wallets-DFyf0q31.js} +3 -3
- package/dist/{app-store-DNpoABj1.js → app-store-aAahwmBP.js} +3 -3
- package/dist/{apple-DzzHtaL4.js → apple-DeRgpwlc.js} +3 -3
- package/dist/{arrow-bottom-D2c13c51.js → arrow-bottom-DdEOkaAj.js} +3 -3
- package/dist/{arrow-bottom-circle-ls9OCLx1.js → arrow-bottom-circle-BWwREWcv.js} +3 -3
- package/dist/{arrow-left-BI3rQkNI.js → arrow-left-CulyLmoH.js} +3 -3
- package/dist/{arrow-right-rnMzhVod.js → arrow-right-Dwr7TISn.js} +3 -3
- package/dist/{arrow-top-CfA6PVMz.js → arrow-top-pL4rM_y8.js} +3 -3
- package/dist/{bank-CmpAmHgg.js → bank-CPuyK_08.js} +3 -3
- package/dist/basic-CVc9xEvb.js +5783 -0
- package/dist/{browser-mEcjgS1H.js → browser-Cbq2Zbp4.js} +3 -3
- package/dist/{card-DkgIWcMc.js → card-B_hUtPWK.js} +3 -3
- package/dist/ccip-BLVGcR4A.js +228 -0
- package/dist/{checkmark-B_A013n2.js → checkmark-WEqTsFAc.js} +3 -3
- package/dist/{checkmark-bold-DestuG2T.js → checkmark-bold-Du_ZvhqM.js} +3 -3
- package/dist/{chevron-bottom-Di3S86dj.js → chevron-bottom-C-s-lv4L.js} +3 -3
- package/dist/{chevron-left-A9Wj-3tj.js → chevron-left-C7NcRElx.js} +3 -3
- package/dist/{chevron-right-UFxJogOZ.js → chevron-right-CSzmAmdn.js} +3 -3
- package/dist/{chevron-top-BbZs3eaC.js → chevron-top-Dd99Wfel.js} +3 -3
- package/dist/{chrome-store-B4F6hJmy.js → chrome-store-C4p77Of0.js} +3 -3
- package/dist/{clock-BbAQ09uV.js → clock-Cib24qjH.js} +3 -3
- package/dist/clockIcon-C2W5xvyt.js +76 -0
- package/dist/{close-CY3oZP_D.js → close-BXjEkTvS.js} +3 -3
- package/dist/{coinPlaceholder-DpfsobZT.js → coinPlaceholder-BFNC7cQN.js} +3 -3
- package/dist/{compass-CHS7RZFk.js → compass-CXPX5Ycp.js} +3 -3
- package/dist/{copy-CEd4nGhs.js → copy-BEawMbmF.js} +3 -3
- package/dist/core-Bez9Ow7F.js +14967 -0
- package/dist/cursor-Cxq4Q9jk.js +7 -0
- package/dist/{cursor-transparent-Tm6k6Ws4.js → cursor-transparent-ZjJ0P2vr.js} +3 -3
- package/dist/{desktop-CrSyXZkL.js → desktop-BhZVovAp.js} +3 -3
- package/dist/{disconnect-BooT10E1.js → disconnect-AC-bffZO.js} +3 -3
- package/dist/{discord-B982Qaml.js → discord-dT97h-CC.js} +3 -3
- package/dist/down-DP56YSKp.js +606 -0
- package/dist/{etherscan-CFL0IcNl.js → etherscan-rYFRhRTM.js} +3 -3
- package/dist/ethertousd-CC_ezooz.js +6 -0
- package/dist/{exclamation-triangle-BBeGXYgt.js → exclamation-triangle-C-pCuC08.js} +3 -3
- package/dist/{extension-C5WqJw73.js → extension-BnqauLSn.js} +3 -3
- package/dist/{external-link-CcSxVDcd.js → external-link-M9D6e_F3.js} +3 -3
- package/dist/{facebook-DF0v9ED8.js → facebook-DHezcoD-.js} +3 -3
- package/dist/{farcaster-Boq7M4VK.js → farcaster-D0Ky-Imv.js} +3 -3
- package/dist/{filters-DfeymbPx.js → filters-B02NYLWq.js} +3 -3
- package/dist/getChainIds-CJd2TZYT.js +1888 -0
- package/dist/getCosmosAddress-DTZfw04G.js +9565 -0
- package/dist/{github-DQ8FV4bD.js → github-BzQkIMuE.js} +3 -3
- package/dist/{google-Dm8FDDZR.js → google-BpwCJ4Fs.js} +3 -3
- package/dist/hamburger-BzqwkUjE.js +3915 -0
- package/dist/{help-circle-CbgiAebR.js → help-circle-C0nOySHC.js} +3 -3
- package/dist/{id-CzqxUksI.js → id-DFP_kFd4.js} +3 -3
- package/dist/{image-CsCGTIN-.js → image-QiYOAGjM.js} +3 -3
- package/dist/index-CDq3vNnP.js +22 -0
- package/dist/index-CLzkn733.js +28223 -0
- package/dist/index-CjtwASJt.js +252 -0
- package/dist/index-CrC4B7xn.js +331 -0
- package/dist/index-D5hLIe-N.js +9 -0
- package/dist/index-DDk00SOL.js +159 -0
- package/dist/index-DTish3yr.js +1014 -0
- package/dist/index-DW3W7zaF.js +473 -0
- package/dist/index-DXdD3L9f.js +1460 -0
- package/dist/index-DaJ1272l.js +18613 -0
- package/dist/index-DxPp2gBS.js +992 -0
- package/dist/index-Dy_n2MPD.js +3010 -0
- package/dist/index-oc8HPfOF.js +13583 -0
- package/dist/index.es-Bsr7zP98.js +366 -0
- package/dist/index.es-C-j-Ghef.js +11678 -0
- package/dist/index.es.js +4 -4
- package/dist/{info-fKCfLW0k.js → info-BTLQJ-wd.js} +3 -3
- package/dist/{info-circle-Bt350Yzj.js → info-circle-Dla9169_.js} +3 -3
- package/dist/{lightbulb-BL9YBxiA.js → lightbulb-PN8DA_Wh.js} +3 -3
- package/dist/{mail-_g6CHQeQ.js → mail-BGYZut_4.js} +3 -3
- package/dist/{mobile-B-EQ4IcH.js → mobile-BM760ZzX.js} +3 -3
- package/dist/{more-C3rpOdUy.js → more-rHGnl2ck.js} +3 -3
- package/dist/{network-placeholder-D9Ak7Xj_.js → network-placeholder-CyQl-3_2.js} +3 -3
- package/dist/{nftPlaceholder-CIIm2V_o.js → nftPlaceholder-nuUJ8nKY.js} +3 -3
- package/dist/{off-DZjgI0eE.js → off-GYlwYDrT.js} +3 -3
- package/dist/{play-store-DvRnagoF.js → play-store-Ck01Ez1F.js} +3 -3
- package/dist/{plus-C2jN2huZ.js → plus-CQfXWgLw.js} +3 -3
- package/dist/{qr-code-B64HnZgi.js → qr-code-CyLVwLY7.js} +3 -3
- package/dist/{recycle-horizontal-CovcJGa_.js → recycle-horizontal-DvnWPcEQ.js} +3 -3
- package/dist/{refresh-J1Vw6QMA.js → refresh-BOxj8b2n.js} +3 -3
- package/dist/{reown-logo-BsXoZ3KT.js → reown-logo-D1iprOTg.js} +3 -3
- package/dist/{search-BC86wYXR.js → search-DrPaZPnc.js} +3 -3
- package/dist/secp256k1-DgmH1qVg.js +1251 -0
- package/dist/{send-BPA1bK5G.js → send-ybBREe4b.js} +3 -3
- package/dist/shareicon-D3Qj5j1T.js +262 -0
- package/dist/{sortDown-cDA6MpOw.js → sortDown-CjBaDQTU.js} +13 -13
- package/dist/{swapHorizontal-47_8ePle.js → swapHorizontal-BddjZdXK.js} +3 -3
- package/dist/{swapHorizontalBold-CJ7TzeQP.js → swapHorizontalBold-B6AWjPZ9.js} +3 -3
- package/dist/{swapHorizontalMedium-CTACgUR9.js → swapHorizontalMedium-CNacWoBn.js} +3 -3
- package/dist/{swapHorizontalRoundedBold-Ht3_LABp.js → swapHorizontalRoundedBold-B8VcPnqt.js} +3 -3
- package/dist/{swapVertical-DlS0V6DD.js → swapVertical-zY2BbSyQ.js} +3 -3
- package/dist/{telegram-UZ00kvIE.js → telegram-DS4l-8Oc.js} +3 -3
- package/dist/{three-dots-D9zVXr1j.js → three-dots-RctNqamK.js} +3 -3
- package/dist/truncate-D9t92mVX.js +7 -0
- package/dist/{twitch-CP6rpz4m.js → twitch-CJ0llIIH.js} +3 -3
- package/dist/{twitterIcon-Cm3I3FRU.js → twitterIcon-pgvN9-bP.js} +3 -3
- package/dist/unsupportedProp-BJVuEW_b.js +10 -0
- package/dist/useRegisterError-C_YLA1dw.js +9857 -0
- package/dist/validError-CDlJpg_f.js +6 -0
- package/dist/{verify-DuUE85WT.js → verify-BeZLo1Fq.js} +3 -3
- package/dist/{verify-filled-CfgydKPa.js → verify-filled-meyb7E16.js} +3 -3
- package/dist/w3m-modal-C-Jp9NVv.js +1471 -0
- package/dist/{wallet-BC2LSDlF.js → wallet-CFcOgSsz.js} +3 -3
- package/dist/{wallet-placeholder-DugEJ7xM.js → wallet-placeholder-CeUMILZq.js} +3 -3
- package/dist/{walletconnect-wayCaYfk.js → walletconnect-D6LB1PyC.js} +7 -9
- package/dist/{warning-circle-Cy9YuvwU.js → warning-circle-BRtzofvT.js} +3 -3
- package/dist/{x-jggPFiy-.js → x-DKQAOOh3.js} +3 -3
- package/package.json +1 -1
- package/dist/AllRoutes-Bdi5ZW8W.js +0 -2604
- package/dist/Box-e4gA-y_H.js +0 -60
- package/dist/EstGas-C5ihS0Mw.js +0 -17108
- package/dist/Grow-B4K-I-E-.js +0 -2212
- package/dist/InputComp-C_UUZxNU.js +0 -114
- package/dist/LoadRoute-CnDhVKdh.js +0 -142
- package/dist/QuotesProgress-DxgPgPJE.js +0 -29
- package/dist/SwapAsset-CmmuxeQF.js +0 -65
- package/dist/Tooltip-D8YjOOKU.js +0 -718
- package/dist/TxnButton-CF-TLZrD.js +0 -302
- package/dist/WidgetForm.module-DhUUlwZP.js +0 -13
- package/dist/basic-Cx2xxgd9.js +0 -7109
- package/dist/ccip-BKpquA5i.js +0 -250
- package/dist/clockIcon-jSNFFrLy.js +0 -76
- package/dist/core-C-gr9X18.js +0 -17217
- package/dist/cursor-BTtIlTHP.js +0 -7
- package/dist/down-DDk8OoJG.js +0 -809
- package/dist/ethertousd-BOknTgU4.js +0 -7
- package/dist/getChainIds-6iugk2h0.js +0 -2431
- package/dist/getCosmosAddress-BgD5iV6f.js +0 -13998
- package/dist/hamburger-BYe_G11E.js +0 -4562
- package/dist/index-BAmjBHYR.js +0 -1087
- package/dist/index-BxHeZ9IF.js +0 -543
- package/dist/index-C7cb2O7r.js +0 -16078
- package/dist/index-CF9p4S_X.js +0 -11
- package/dist/index-C_vo1L7p.js +0 -24384
- package/dist/index-Ch7w83dW.js +0 -4217
- package/dist/index-Crhenmgw.js +0 -188
- package/dist/index-Cz5Dosd2.js +0 -412
- package/dist/index-D5OnT-__.js +0 -35858
- package/dist/index-DArR1lwi.js +0 -1759
- package/dist/index-hEJSpZe-.js +0 -308
- package/dist/index-m2O0cbD8.js +0 -1883
- package/dist/index-sLx4Edw4.js +0 -22
- package/dist/index.es-DIbGJsfa.js +0 -475
- package/dist/index.es-t6sHlseh.js +0 -12916
- package/dist/secp256k1-BkBK0mD5.js +0 -1681
- package/dist/shareicon-C88Wx-AM.js +0 -314
- package/dist/truncate-DSxFWEga.js +0 -7
- package/dist/unsupportedProp-DkeDzLfM.js +0 -14
- package/dist/useRegisterError-W_UfecIN.js +0 -19288
- package/dist/validError-rariWQ7G.js +0 -14
- package/dist/w3m-modal-Bl-DPlah.js +0 -1721
package/dist/ccip-BKpquA5i.js
DELETED
@@ -1,250 +0,0 @@
|
|
1
|
-
import { aj as getAbiItem, ak as AbiErrorNotFoundError, al as formatAbiItem, am as toFunctionSelector, an as AbiErrorInputsNotFoundError, ao as encodeAbiParameters, ap as concatHex, aq as AbiFunctionNotFoundError, ar as AbiFunctionOutputsNotFoundError, as as InvalidArrayError, at as decodeFunctionData, au as batchGatewayAbi, av as solidityError, aw as isAddress, ax as InvalidAddressError, ay as BaseError, az as getUrl, aA as stringify, aB as decodeErrorResult, aC as call, aD as concat, aE as HttpRequestError, aF as isHex } from "./index-D5OnT-__.js";
|
2
|
-
const docsPath$1 = "/docs/contract/encodeErrorResult";
|
3
|
-
function encodeErrorResult(parameters) {
|
4
|
-
const { abi, errorName, args } = parameters;
|
5
|
-
let abiItem = abi[0];
|
6
|
-
if (errorName) {
|
7
|
-
const item = getAbiItem({ abi, args, name: errorName });
|
8
|
-
if (!item)
|
9
|
-
throw new AbiErrorNotFoundError(errorName, { docsPath: docsPath$1 });
|
10
|
-
abiItem = item;
|
11
|
-
}
|
12
|
-
if (abiItem.type !== "error")
|
13
|
-
throw new AbiErrorNotFoundError(void 0, { docsPath: docsPath$1 });
|
14
|
-
const definition = formatAbiItem(abiItem);
|
15
|
-
const signature = toFunctionSelector(definition);
|
16
|
-
let data = "0x";
|
17
|
-
if (args && args.length > 0) {
|
18
|
-
if (!abiItem.inputs)
|
19
|
-
throw new AbiErrorInputsNotFoundError(abiItem.name, { docsPath: docsPath$1 });
|
20
|
-
data = encodeAbiParameters(abiItem.inputs, args);
|
21
|
-
}
|
22
|
-
return concatHex([signature, data]);
|
23
|
-
}
|
24
|
-
const docsPath = "/docs/contract/encodeFunctionResult";
|
25
|
-
function encodeFunctionResult(parameters) {
|
26
|
-
const { abi, functionName, result } = parameters;
|
27
|
-
let abiItem = abi[0];
|
28
|
-
if (functionName) {
|
29
|
-
const item = getAbiItem({ abi, name: functionName });
|
30
|
-
if (!item)
|
31
|
-
throw new AbiFunctionNotFoundError(functionName, { docsPath });
|
32
|
-
abiItem = item;
|
33
|
-
}
|
34
|
-
if (abiItem.type !== "function")
|
35
|
-
throw new AbiFunctionNotFoundError(void 0, { docsPath });
|
36
|
-
if (!abiItem.outputs)
|
37
|
-
throw new AbiFunctionOutputsNotFoundError(abiItem.name, { docsPath });
|
38
|
-
const values = (() => {
|
39
|
-
if (abiItem.outputs.length === 0)
|
40
|
-
return [];
|
41
|
-
if (abiItem.outputs.length === 1)
|
42
|
-
return [result];
|
43
|
-
if (Array.isArray(result))
|
44
|
-
return result;
|
45
|
-
throw new InvalidArrayError(result);
|
46
|
-
})();
|
47
|
-
return encodeAbiParameters(abiItem.outputs, values);
|
48
|
-
}
|
49
|
-
const localBatchGatewayUrl = "x-batch-gateway:true";
|
50
|
-
async function localBatchGatewayRequest(parameters) {
|
51
|
-
const { data, ccipRequest: ccipRequest2 } = parameters;
|
52
|
-
const { args: [queries] } = decodeFunctionData({ abi: batchGatewayAbi, data });
|
53
|
-
const failures = [];
|
54
|
-
const responses = [];
|
55
|
-
await Promise.all(queries.map(async (query, i) => {
|
56
|
-
try {
|
57
|
-
responses[i] = await ccipRequest2(query);
|
58
|
-
failures[i] = false;
|
59
|
-
} catch (err) {
|
60
|
-
failures[i] = true;
|
61
|
-
responses[i] = encodeError(err);
|
62
|
-
}
|
63
|
-
}));
|
64
|
-
return encodeFunctionResult({
|
65
|
-
abi: batchGatewayAbi,
|
66
|
-
functionName: "query",
|
67
|
-
result: [failures, responses]
|
68
|
-
});
|
69
|
-
}
|
70
|
-
function encodeError(error) {
|
71
|
-
if (error.name === "HttpRequestError" && error.status)
|
72
|
-
return encodeErrorResult({
|
73
|
-
abi: batchGatewayAbi,
|
74
|
-
errorName: "HttpError",
|
75
|
-
args: [error.status, error.shortMessage]
|
76
|
-
});
|
77
|
-
return encodeErrorResult({
|
78
|
-
abi: [solidityError],
|
79
|
-
errorName: "Error",
|
80
|
-
args: ["shortMessage" in error ? error.shortMessage : error.message]
|
81
|
-
});
|
82
|
-
}
|
83
|
-
function isAddressEqual(a, b) {
|
84
|
-
if (!isAddress(a, { strict: false }))
|
85
|
-
throw new InvalidAddressError({ address: a });
|
86
|
-
if (!isAddress(b, { strict: false }))
|
87
|
-
throw new InvalidAddressError({ address: b });
|
88
|
-
return a.toLowerCase() === b.toLowerCase();
|
89
|
-
}
|
90
|
-
class OffchainLookupError extends BaseError {
|
91
|
-
constructor({ callbackSelector, cause, data, extraData, sender, urls }) {
|
92
|
-
var _a;
|
93
|
-
super(cause.shortMessage || "An error occurred while fetching for an offchain result.", {
|
94
|
-
cause,
|
95
|
-
metaMessages: [
|
96
|
-
...cause.metaMessages || [],
|
97
|
-
((_a = cause.metaMessages) == null ? void 0 : _a.length) ? "" : [],
|
98
|
-
"Offchain Gateway Call:",
|
99
|
-
urls && [
|
100
|
-
" Gateway URL(s):",
|
101
|
-
...urls.map((url) => ` ${getUrl(url)}`)
|
102
|
-
],
|
103
|
-
` Sender: ${sender}`,
|
104
|
-
` Data: ${data}`,
|
105
|
-
` Callback selector: ${callbackSelector}`,
|
106
|
-
` Extra data: ${extraData}`
|
107
|
-
].flat(),
|
108
|
-
name: "OffchainLookupError"
|
109
|
-
});
|
110
|
-
}
|
111
|
-
}
|
112
|
-
class OffchainLookupResponseMalformedError extends BaseError {
|
113
|
-
constructor({ result, url }) {
|
114
|
-
super("Offchain gateway response is malformed. Response data must be a hex value.", {
|
115
|
-
metaMessages: [
|
116
|
-
`Gateway URL: ${getUrl(url)}`,
|
117
|
-
`Response: ${stringify(result)}`
|
118
|
-
],
|
119
|
-
name: "OffchainLookupResponseMalformedError"
|
120
|
-
});
|
121
|
-
}
|
122
|
-
}
|
123
|
-
class OffchainLookupSenderMismatchError extends BaseError {
|
124
|
-
constructor({ sender, to }) {
|
125
|
-
super("Reverted sender address does not match target contract address (`to`).", {
|
126
|
-
metaMessages: [
|
127
|
-
`Contract address: ${to}`,
|
128
|
-
`OffchainLookup sender address: ${sender}`
|
129
|
-
],
|
130
|
-
name: "OffchainLookupSenderMismatchError"
|
131
|
-
});
|
132
|
-
}
|
133
|
-
}
|
134
|
-
const offchainLookupSignature = "0x556f1830";
|
135
|
-
const offchainLookupAbiItem = {
|
136
|
-
name: "OffchainLookup",
|
137
|
-
type: "error",
|
138
|
-
inputs: [
|
139
|
-
{
|
140
|
-
name: "sender",
|
141
|
-
type: "address"
|
142
|
-
},
|
143
|
-
{
|
144
|
-
name: "urls",
|
145
|
-
type: "string[]"
|
146
|
-
},
|
147
|
-
{
|
148
|
-
name: "callData",
|
149
|
-
type: "bytes"
|
150
|
-
},
|
151
|
-
{
|
152
|
-
name: "callbackFunction",
|
153
|
-
type: "bytes4"
|
154
|
-
},
|
155
|
-
{
|
156
|
-
name: "extraData",
|
157
|
-
type: "bytes"
|
158
|
-
}
|
159
|
-
]
|
160
|
-
};
|
161
|
-
async function offchainLookup(client, { blockNumber, blockTag, data, to }) {
|
162
|
-
const { args } = decodeErrorResult({
|
163
|
-
data,
|
164
|
-
abi: [offchainLookupAbiItem]
|
165
|
-
});
|
166
|
-
const [sender, urls, callData, callbackSelector, extraData] = args;
|
167
|
-
const { ccipRead } = client;
|
168
|
-
const ccipRequest_ = ccipRead && typeof (ccipRead == null ? void 0 : ccipRead.request) === "function" ? ccipRead.request : ccipRequest;
|
169
|
-
try {
|
170
|
-
if (!isAddressEqual(to, sender))
|
171
|
-
throw new OffchainLookupSenderMismatchError({ sender, to });
|
172
|
-
const result = urls.includes(localBatchGatewayUrl) ? await localBatchGatewayRequest({
|
173
|
-
data: callData,
|
174
|
-
ccipRequest: ccipRequest_
|
175
|
-
}) : await ccipRequest_({ data: callData, sender, urls });
|
176
|
-
const { data: data_ } = await call(client, {
|
177
|
-
blockNumber,
|
178
|
-
blockTag,
|
179
|
-
data: concat([
|
180
|
-
callbackSelector,
|
181
|
-
encodeAbiParameters([{ type: "bytes" }, { type: "bytes" }], [result, extraData])
|
182
|
-
]),
|
183
|
-
to
|
184
|
-
});
|
185
|
-
return data_;
|
186
|
-
} catch (err) {
|
187
|
-
throw new OffchainLookupError({
|
188
|
-
callbackSelector,
|
189
|
-
cause: err,
|
190
|
-
data,
|
191
|
-
extraData,
|
192
|
-
sender,
|
193
|
-
urls
|
194
|
-
});
|
195
|
-
}
|
196
|
-
}
|
197
|
-
async function ccipRequest({ data, sender, urls }) {
|
198
|
-
var _a;
|
199
|
-
let error = new Error("An unknown error occurred.");
|
200
|
-
for (let i = 0; i < urls.length; i++) {
|
201
|
-
const url = urls[i];
|
202
|
-
const method = url.includes("{data}") ? "GET" : "POST";
|
203
|
-
const body = method === "POST" ? { data, sender } : void 0;
|
204
|
-
const headers = method === "POST" ? { "Content-Type": "application/json" } : {};
|
205
|
-
try {
|
206
|
-
const response = await fetch(url.replace("{sender}", sender.toLowerCase()).replace("{data}", data), {
|
207
|
-
body: JSON.stringify(body),
|
208
|
-
headers,
|
209
|
-
method
|
210
|
-
});
|
211
|
-
let result;
|
212
|
-
if ((_a = response.headers.get("Content-Type")) == null ? void 0 : _a.startsWith("application/json")) {
|
213
|
-
result = (await response.json()).data;
|
214
|
-
} else {
|
215
|
-
result = await response.text();
|
216
|
-
}
|
217
|
-
if (!response.ok) {
|
218
|
-
error = new HttpRequestError({
|
219
|
-
body,
|
220
|
-
details: (result == null ? void 0 : result.error) ? stringify(result.error) : response.statusText,
|
221
|
-
headers: response.headers,
|
222
|
-
status: response.status,
|
223
|
-
url
|
224
|
-
});
|
225
|
-
continue;
|
226
|
-
}
|
227
|
-
if (!isHex(result)) {
|
228
|
-
error = new OffchainLookupResponseMalformedError({
|
229
|
-
result,
|
230
|
-
url
|
231
|
-
});
|
232
|
-
continue;
|
233
|
-
}
|
234
|
-
return result;
|
235
|
-
} catch (err) {
|
236
|
-
error = new HttpRequestError({
|
237
|
-
body,
|
238
|
-
details: err.message,
|
239
|
-
url
|
240
|
-
});
|
241
|
-
}
|
242
|
-
}
|
243
|
-
throw error;
|
244
|
-
}
|
245
|
-
export {
|
246
|
-
ccipRequest,
|
247
|
-
offchainLookup,
|
248
|
-
offchainLookupAbiItem,
|
249
|
-
offchainLookupSignature
|
250
|
-
};
|
@@ -1,76 +0,0 @@
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
2
|
-
function Gas({ fill }) {
|
3
|
-
return /* @__PURE__ */ jsx("svg", { width: "14", height: "16", viewBox: "0 0 14 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12.3962 2.52045C12.4291 2.53667 12.4584 2.55788 12.4864 2.58533C12.4937 2.59282 12.4998 2.6003 12.5059 2.60779C12.8584 2.89352 13.2108 3.21669 13.467 3.60599C13.7499 4.03646 13.9072 4.53431 13.8121 5.12449C13.7719 5.37155 13.6804 5.58741 13.5414 5.77831C13.4413 5.91432 13.3194 6.0341 13.1755 6.13891C13.1682 6.32981 13.1657 6.51698 13.1657 6.70289C13.1669 6.94121 13.1743 7.18702 13.1877 7.43906C13.2182 8.03049 13.3048 8.62691 13.3913 9.21835C13.484 9.8547 13.5767 10.4861 13.6011 11.1436C13.634 11.9858 13.5365 12.6783 13.2645 13.1675C12.9621 13.714 12.4706 14.0059 11.7461 13.9797C10.8814 13.9635 10.3497 13.4669 10.1094 12.5498C9.89967 11.7475 9.93138 10.6021 10.1692 9.16095C10.1619 8.01926 10.0167 7.15457 9.72893 6.57188C9.54111 6.19132 9.28622 5.93927 8.96425 5.81949V13.296C9.06913 13.3471 9.16426 13.417 9.24475 13.5006C9.43013 13.6903 9.54599 13.9535 9.54599 14.243V14.9892C9.54599 15.1776 9.39598 15.3311 9.21182 15.3311H0.646667C0.462509 15.3311 0.3125 15.1776 0.3125 14.9892V14.243C0.3125 13.9535 0.428361 13.6915 0.613738 13.5006C0.671058 13.442 0.735696 13.3896 0.805213 13.3459V1.81173C0.805213 1.31263 1.00401 0.859697 1.32476 0.53154C1.64551 0.203383 2.08822 0 2.57605 0H7.18365C7.6727 0 8.11785 0.20463 8.43982 0.534035C8.7618 0.86344 8.96181 1.31887 8.96181 1.82046V5.10952C9.55453 5.24178 10.007 5.62983 10.3216 6.26618C10.6595 6.9487 10.8278 7.92693 10.8327 9.19339C10.8327 9.21336 10.8314 9.23332 10.8278 9.25204H10.829C10.6034 10.6083 10.5668 11.6664 10.7522 12.3739C10.907 12.9691 11.2339 13.291 11.7571 13.2985H11.7632C12.2096 13.3134 12.5059 13.1463 12.6803 12.8306C12.8864 12.4587 12.9584 11.8885 12.9303 11.1698C12.9072 10.5609 12.8157 9.94079 12.7255 9.31692C12.6376 8.7155 12.5498 8.1091 12.5169 7.47275C12.5035 7.22195 12.4962 6.96617 12.4949 6.70164C12.4937 6.49202 12.4974 6.2849 12.5059 6.08151C11.8827 5.52252 11.5034 4.96353 11.3863 4.40704C11.2754 3.87924 11.3924 3.37266 11.7522 2.88853C11.4778 2.69638 11.1985 2.53916 10.9156 2.41314C10.529 2.24095 10.5265 2.22598 10.1216 2.1586C9.93992 2.12865 9.81674 1.95272 9.84601 1.76681C9.87528 1.58089 10.0472 1.45487 10.229 1.48482C10.6875 1.56093 10.7424 1.59088 11.1827 1.78677C11.601 1.97393 12.0047 2.21475 12.3962 2.52045ZM12.2852 3.30653C12.0522 3.62595 11.9742 3.94537 12.0425 4.26729C12.1242 4.65659 12.4084 5.07084 12.8816 5.5088C12.9291 5.46513 12.9718 5.41896 13.0072 5.3703C13.0816 5.26923 13.1316 5.1507 13.1523 5.01594C13.2157 4.62165 13.1072 4.28351 12.912 3.98655C12.7511 3.74074 12.5267 3.51365 12.2852 3.30653ZM2.97852 1.56467H6.85924C7.06047 1.56467 7.24341 1.64827 7.37634 1.78428C7.38488 1.79426 7.39464 1.80299 7.40318 1.81422C7.52026 1.94773 7.59221 2.12366 7.59221 2.31332V4.84625C7.59221 5.05212 7.5105 5.24053 7.37756 5.37529C7.24585 5.51005 7.06291 5.59489 6.86046 5.59489H2.97852C2.7785 5.59489 2.59679 5.51005 2.46263 5.37529L2.46141 5.37654C2.3297 5.24178 2.24676 5.05337 2.24676 4.84749V2.31207C2.24676 2.1062 2.32848 1.91903 2.46141 1.78303C2.47117 1.77429 2.47971 1.76431 2.49068 1.75683C2.62118 1.63704 2.79192 1.56467 2.97852 1.56467ZM8.65813 13.9099C8.64837 13.9111 8.63984 13.9111 8.63008 13.9111H1.19792C1.15645 13.9298 1.11865 13.956 1.08694 13.9885C1.0223 14.0546 0.982053 14.1457 0.982053 14.2468V14.651H8.87766V14.2468C8.87766 14.1469 8.83741 14.0559 8.77277 13.9885C8.73984 13.9548 8.70082 13.9286 8.65813 13.9099Z", fill }) });
|
4
|
-
}
|
5
|
-
function Step({ fill }) {
|
6
|
-
return /* @__PURE__ */ jsxs(
|
7
|
-
"svg",
|
8
|
-
{
|
9
|
-
width: "13",
|
10
|
-
height: "14",
|
11
|
-
viewBox: "0 0 13 14",
|
12
|
-
fill: "none",
|
13
|
-
xmlns: "http://www.w3.org/2000/svg",
|
14
|
-
children: [
|
15
|
-
/* @__PURE__ */ jsx(
|
16
|
-
"path",
|
17
|
-
{
|
18
|
-
d: "M5.8766 1.42789L1.33836 4.91515C0.818095 5.31493 0.817308 6.09897 1.33677 6.4998L5.982 10.0841C6.34405 10.3635 6.84948 10.3616 7.2095 10.0797L11.5036 6.71636C12.0033 6.32504 12.0167 5.57329 11.5314 5.16436L7.13026 1.45609C6.7709 1.1533 6.24921 1.14157 5.8766 1.42789Z",
|
19
|
-
fill,
|
20
|
-
"fill-opacity": "1"
|
21
|
-
}
|
22
|
-
),
|
23
|
-
/* @__PURE__ */ jsx(
|
24
|
-
"path",
|
25
|
-
{
|
26
|
-
d: "M0.660156 8.91797L5.23108 12.2646C5.93608 12.7807 6.89456 12.7795 7.59823 12.2615L12.0721 8.96811",
|
27
|
-
stroke: fill,
|
28
|
-
"stroke-opacity": "0.5",
|
29
|
-
"stroke-linecap": "round",
|
30
|
-
"stroke-linejoin": "round"
|
31
|
-
}
|
32
|
-
)
|
33
|
-
]
|
34
|
-
}
|
35
|
-
);
|
36
|
-
}
|
37
|
-
function ClockIcon({ fill }) {
|
38
|
-
return /* @__PURE__ */ jsxs(
|
39
|
-
"svg",
|
40
|
-
{
|
41
|
-
width: "13",
|
42
|
-
height: "14",
|
43
|
-
viewBox: "0 0 13 14",
|
44
|
-
fill: "none",
|
45
|
-
xmlns: "http://www.w3.org/2000/svg",
|
46
|
-
children: [
|
47
|
-
/* @__PURE__ */ jsx(
|
48
|
-
"ellipse",
|
49
|
-
{
|
50
|
-
cx: "6.26005",
|
51
|
-
cy: "7.03456",
|
52
|
-
rx: "6.04911",
|
53
|
-
ry: "6.09706",
|
54
|
-
fill,
|
55
|
-
"fill-opacity": "1"
|
56
|
-
}
|
57
|
-
),
|
58
|
-
/* @__PURE__ */ jsx(
|
59
|
-
"path",
|
60
|
-
{
|
61
|
-
d: "M6.09375 3.85254V7.6632L9.49637 6.13894",
|
62
|
-
stroke: "white",
|
63
|
-
"stroke-width": "1.5",
|
64
|
-
"stroke-linecap": "round",
|
65
|
-
"stroke-linejoin": "round"
|
66
|
-
}
|
67
|
-
)
|
68
|
-
]
|
69
|
-
}
|
70
|
-
);
|
71
|
-
}
|
72
|
-
export {
|
73
|
-
ClockIcon as C,
|
74
|
-
Gas as G,
|
75
|
-
Step as S
|
76
|
-
};
|