This repository has been archived by the owner on May 9, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add semicolon * Update genric handler. Add tests * Remove test events * Refactor _bytesToBytes32 method * Update Bridge generic deposit test: * Add CentrifugeAsset contract * Add executeDeposit test for generic handler * Remove no longer used Centrifuge Asset handler * Update deposit method and add executeDeposit method * Remove no longer needed contract * Update assembly * Add test to verify depositRecord was created correctly * Add test to verify AssetStored event wasn't emitted in executeDeposit call * Remove no longer needed method * Update to inherit from IDepositHandler * Update tests to work with new GenericHandler * Remove no longer needed Handler and test * FunctionSignature is now parsed and used to compare with function sig stored in _contractAddressToExecuteFunctionSignature mapping * Update test to check for AssertStored event and verify asset was marked as stored * Temporarily disable Centrifuge CLI command * Temporarily disable Centrifuge CLI command * Debugging * Debugging * Debugging * Debugging * Debugging * Debugging * Remove test event
- Loading branch information
1 parent
2dd9b2a
commit af8d5cb
Showing
14 changed files
with
498 additions
and
365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
const deploy = require("./deploy"); | ||
const erc20 = require("./erc20"); | ||
const erc721 = require("./erc721"); | ||
const centrifuge = require("./centrifuge"); | ||
// const centrifuge = require("./centrifuge"); | ||
|
||
module.exports = { | ||
deploy, | ||
erc20, | ||
erc721, | ||
centrifuge, | ||
// centrifuge, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
pragma solidity 0.6.4; | ||
pragma experimental ABIEncoderV2; | ||
|
||
contract CentrifugeAsset { | ||
mapping (bytes32 => bool) public _assetsStored; | ||
|
||
event AssetStored(bytes32 indexed asset); | ||
|
||
function store(bytes32 asset) public { | ||
require(!_assetsStored[asset], "asset is already stored"); | ||
|
||
_assetsStored[asset] = true; | ||
emit AssetStored(asset); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.