-
Notifications
You must be signed in to change notification settings - Fork 118
Proof-of-concept ERC721 Bridge Implementation #325
base: master
Are you sure you want to change the base?
Conversation
- opinionated tokenURI implementation
- Add test ERC721 helper - Tests for Gateway & Deposited ERC721 - Add same initialisation test to L2DepositedERC20
{} | ||
|
||
/** | ||
* @dev Initialize this contract with the token gateway address on the otehr side. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: otehr
=> other
* | ||
* @param _tokenGateway Address of the corresponding gateway deployed to the other side | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary newline
* param _to Address being withdrawn to | ||
* param _tokenId Token being withdrawn | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary newline
* dynamic, and the above public constant does not suffice. | ||
* | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary newline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these extra lines are also in optimism's original Abs_X
contracts too
/** | ||
* @dev Overridable getter for the *Other side* gas limit of settling the withdrawal, in the case it may be | ||
* dynamic, and the above public constant does not suffice. | ||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an extra line in dev comments?
- Necessary in order to work with primary contract on L2
Had to increase Default Withdrawal Gas on DepositedERC721 for this to work with the origin contract on L2. Not sure what the ramifications of that might be, comments welcome. |
Hey thank you for this. I'll take a look this week! |
override | ||
{ | ||
// Hold on to the newly deposited funds | ||
IERC721(originalToken).transferFrom( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be great to support ERC721 onERC721Received
callback so user do not need to perform an approval tx
this would require change in Abs_ERC721Gateway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is a great call, will add in
Any updates on this? |
I have added
in the new test throws with: @platocrat & @maurelian not sure where this ended up (as I know there was a thread on bridging and the preferred approach there), happy to adjust this accordingly |
Fixed the smocked issue (with thanks to @smartcontracts see more here) |
Description
function tokenURI(uint256 _tokenId) external view returns (string);
(this is implemented at the Abstract contract level)Additionally this adds
init()
tests to the DepositedERC20 contract as they were quite transferable.Questions
Metadata
Contributing Agreement