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

Plasma Assets (Deposits + Withdrawals) #44

Open
k06a opened this issue Nov 16, 2018 · 0 comments
Open

Plasma Assets (Deposits + Withdrawals) #44

k06a opened this issue Nov 16, 2018 · 0 comments

Comments

@k06a
Copy link
Contributor

k06a commented Nov 16, 2018

Depends from #41

Deposit method for ETH:

function deposit(
    OrderedLinkedListItem depositSlot
) external payable returns(bool);

Deposit method for ERC20+ERC721:

function depositToken(
    OrderedLinkedListItem depositSlot,
    address from,
    uint amountOrTokenId
) external returns(bool);

See exit game method signatures: https://hackmd.io/FaKQ5Jc1Qg6rQ3a8xcPj_Q#Exit-game

function withdrawalBegin(
    Input point,  
    RSAInclusionProof proof
) external payable returns (bool);

function withdrawalChallangeSpend(
    ExitState state, 
    Transaction tx,
    uint64 blockIndex,
    SumMerkleProof[] txProof, // serialized to bytes
    uint8 spendIndex,
    RSAInclusionProof spendInclusionProof
) external returns (bool);

function withdrawalChallangeExistance(
    ExitState state,
    SumMerkleProof txProof,
    MerkleProof inputProof, 
    uint64 maxBlockIndex,
    MerkleProof maxBlockIndexProof
) external returns (bool);
    
function withdrawalEnd(
    ExitState state
) external returns (bool);
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

No branches or pull requests

1 participant