Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bridge zkApp implementation #79

Draft
wants to merge 1 commit into
base: compatible
Choose a base branch
from
Draft

Conversation

matejos
Copy link
Collaborator

@matejos matejos commented Jan 9, 2024

Pretty much everything is prepared for when the sequencer is ready to be used for transaction generation.

Comment on lines 21 to 40
/*
const transactionJSON = await workerClient!.createBridgeTransaction({
amount,
direction,
sender,
target,
});

const { hash } = await window.mina!.sendTransaction({
transaction: transactionJSON,
feePayer: {
fee: transactionFee,
memo: "",
},
});

const transactionLink = `https://berkeley.minaexplorer.com/transaction/${hash}`;
console.log(`View transaction at ${transactionLink}`);
*/
await timeout(5);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just leaving a comment here to note which parts need to be filled in later

import { PublicKey } from "o1js";
import { useAppStore } from "../configs/store";

const KNOWN_ERROR_CODES: number[] = [20005, 1002];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do these come from? Magic numbers are not great, so at the very least we should have a comment

sender: account.publicKey,
target: targetAddress,
});
// todo: mechanism that is waiting for tx confirmation and will edit stored txn status via editStoredTransaction
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just taking notes of which functions we need to fill in later

@matejos matejos requested a review from bkase as a code owner April 30, 2024 11:21
@MartinOndejka MartinOndejka changed the base branch from main to main-berkeley April 30, 2024 11:21
@MartinOndejka MartinOndejka removed the request for review from bkase April 30, 2024 11:23
@L-as L-as marked this pull request as draft January 2, 2025 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants