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

Updated zklink interface #145

Closed
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
3 changes: 1 addition & 2 deletions contracts/interfaces/IZkLink.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ interface IZkLink {
/// @param _owner Address of the tokens owner
/// @param _tokenId Token id
/// @param _amount Amount to withdraw to request.
/// @return The actual withdrawn amount
/// @dev NOTE: We will call ERC20.transfer(.., _amount), but if according to internal logic of ERC20 token zkLink contract
/// balance will be decreased by value more then _amount we will try to subtract this value from user pending balance
function withdrawPendingBalance(address payable _owner, uint16 _tokenId, uint128 _amount) external returns (uint128);
function withdrawPendingBalance(address payable _owner, uint16 _tokenId, uint128 _amount) external;
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"flatten-origin-master": "SYNC_TYPE=1 MASTER=true npx hardhat run script/combine_zklink_abi.js",
"flatten-origin-slaver": "SYNC_TYPE=1 MASTER=false npx hardhat run script/combine_zklink_abi.js",
"flatten-nexus-master": "SYNC_TYPE=2 MASTER=true npx hardhat run script/combine_zklink_abi.js",
"flatten-nexus-slaver": "SYNC_TYPE=2 MASTER=false npx hardhat run script/combine_zklink_abi.js"
"flatten-nexus-slaver": "SYNC_TYPE=2 MASTER=false npx hardhat run script/combine_zklink_abi.js",
"flatten-all": "npm run flatten-origin-master && npm run flatten-origin-slaver && npm run flatten-nexus-master && npm run flatten-nexus-slaver"
},
"dependencies": {
"@openzeppelin/contracts": "^4.9.5",
Expand Down