Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/01-cross-chain-relayer/cctp-detector/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"schedule": "*/30 * * * * *",
"mailboxUrl": "https://cre.lunatic.boo/01-relay/mailbox",
"mailboxUrl": "https://cre-examples.msldev.io/api/01-relay/mailbox",
"evms": [
{
"chainSelectorName": "ethereum-testnet-sepolia",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"authorizedEVMAddress": "0x2bC105D59c6F9aABC8e19b35b6C4B3045ddD5944",
"airdropBaseUrl": "https://cre.lunatic.boo/04-airdrop",
"airdropBaseUrl": "https://cre-examples.msldev.io/api/04-airdrop",
"evms": [
{
"tokenAddress": "0xc864a70B9092D416B66E9c0e4AFb62b5163fD839",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"authorizedEVMAddress": "0x2bC105D59c6F9aABC8e19b35b6C4B3045ddD5944",
"spreadsheetId": "1rSiwh0ATppPnRqh9-bh-eKA2h37Zy8qd1IWXAXm8kvQ",
"airdropBaseUrl": "https://cre.lunatic.boo/04-airdrop",
"airdropBaseUrl": "https://cre-examples.msldev.io/api/04-airdrop",
"evms": [
{
"tokenAddress": "0xc864a70B9092D416B66E9c0e4AFb62b5163fD839",
Expand Down
2 changes: 1 addition & 1 deletion fe/app/config/cctp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export async function fetchRelayStatus(
burnTxHash: string,
): Promise<RelayStatusResponse | null> {
try {
const res = await fetch(`/api/relay/${burnTxHash}`);
const res = await fetch(`/be/relay/${burnTxHash}`);
if (!res.ok) return null;
return (await res.json()) as RelayStatusResponse;
} catch {
Expand Down
2 changes: 1 addition & 1 deletion fe/app/hooks/useSpreadsheetData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface UseSpreadsheetDataResult {
}

async function fetchSpreadsheetData(): Promise<string[]> {
const response = await fetch("/api/allowlist");
const response = await fetch("/be/allowlist");

if (!response.ok) {
const errorData = await response.json().catch(() => ({}));
Expand Down
10 changes: 5 additions & 5 deletions fe/app/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export default [
route("examples/token-airdrop", "routes/examples/token-airdrop.tsx"),
]),
route("resources/whitelist", "routes/resources/whitelist.ts"),
route("api/allowlist", "routes/api.allowlist.ts"),
route("api/sync", "routes/api.sync.ts"),
route("api/relay/:burnTxHash", "routes/api.relay.$burnTxHash.ts"),
route("api/airdrop/:address", "routes/api.airdrop.$address.ts"),
route("api/airdrop/sync", "routes/api.airdrop.sync.ts"),
route("be/allowlist", "routes/api.allowlist.ts"),
route("be/sync", "routes/api.sync.ts"),
route("be/relay/:burnTxHash", "routes/api.relay.$burnTxHash.ts"),
route("be/airdrop/:address", "routes/api.airdrop.$address.ts"),
route("be/airdrop/sync", "routes/api.airdrop.sync.ts"),
] satisfies RouteConfig;
2 changes: 1 addition & 1 deletion fe/app/routes/examples/compliant-token.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default function CompliantToken() {
setIsSyncing(true);
setSyncError(null);

const response = await fetch("/api/sync", { method: "POST" });
const response = await fetch("/be/sync", { method: "POST" });

if (!response.ok) {
const errorData = await response.json().catch(() => ({}));
Expand Down
6 changes: 3 additions & 3 deletions fe/app/routes/examples/token-airdrop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default function TokenAirdrop() {
}

try {
const response = await fetch(`/api/airdrop/${addr}`);
const response = await fetch(`/be/airdrop/${addr}`);

if (!response.ok) {
if (response.status >= 500) {
Expand Down Expand Up @@ -237,7 +237,7 @@ export default function TokenAirdrop() {
setSyncError(null);
setSyncSuccess(false);

const response = await fetch("/api/airdrop/sync", { method: "POST" });
const response = await fetch("/be/airdrop/sync", { method: "POST" });

if (!response.ok) {
const errorData = await response.json().catch(() => ({}));
Expand Down Expand Up @@ -271,7 +271,7 @@ export default function TokenAirdrop() {
setClaimError(null);
setClaimSuccess(false);

const response = await fetch(`/api/airdrop/${effectiveAddress}`, {
const response = await fetch(`/be/airdrop/${effectiveAddress}`, {
method: "POST",
});

Expand Down
Loading