Proof-of-concept ERC721 Bridge Implementation#325
Proof-of-concept ERC721 Bridge Implementation#325azf20 wants to merge 8 commits intoethereum-optimism:masterfrom
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. |
| * | ||
| * @param _tokenGateway Address of the corresponding gateway deployed to the other side | ||
| */ | ||
|
|
| * param _to Address being withdrawn to | ||
| * param _tokenId Token being withdrawn | ||
| */ | ||
|
|
| * dynamic, and the above public constant does not suffice. | ||
| * | ||
| */ | ||
|
|
There was a problem hiding this comment.
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. | ||
| * |
- 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.
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.
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