-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.3: Keeper controls to protect streamers (#12)
* Added close stream by keeper (#11) * Added close stream by keeper * fixed stray typos * don't allow opening streams without > 8hours of stream balance * support non-18 decimal underlying tokens (USDC) * fix typo in name * add script for transfer ownership * shorten delay for more test loops * work in progress on close stream keeper * Added logging, testing for USDCx decimals * Added unlimited allowance code along with test statements (#22) * more WIP on the keeper * don't downgrade twice * misc. fixes for decimal tokens * remove sloppy comments Co-authored-by: Chinmay Sai Vemuri <55590938+rashtrakoff@users.noreply.github.com>
- Loading branch information
1 parent
7d35473
commit 30ced42
Showing
26 changed files
with
2,938 additions
and
225 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,2 @@ | ||
# Rickoshea Contracts | ||
This directory contains the contracts for Rickshea's `StreamExchange`. | ||
|
||
# Network directory | ||
## Rinkeby | ||
| Contract | Address | | ||
|----------|---------| | ||
| TellorPlayground | 0xA0c5d95ec359f4A33371a06C23D89BA6Fc591A97 | | ||
| StreamExchange | 0x3B3775eB7D4EFb5122Bde89B52E9A1a3813bB4F9 | | ||
# Ricochet Contracts | ||
This directory contains the contracts for Ricochet's `StreamExchange`. |
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
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,3 @@ | ||
module.exports = { | ||
StreamExchangeHelper: "0x5B01d5352A50d0dBB37c4bCFf3886b6C1D6C577a", | ||
}; |
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
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,28 @@ | ||
async function main() { | ||
|
||
const [keeper] = await ethers.getSigners(); | ||
const NEW_OWNER = "0x9C6B5FdC145912dfe6eE13A667aF3C5Eb07CbB89" | ||
const STREAM_EXCHANGE_HELPER_ADDRESS = "0x0C7776292AB9E95c54282fD74e47d73338c457D8" | ||
const RICOCHET_CONTRACT_ADDRESS = "0x44164bf14213fd0d18ee7fa354a70ee4758e917c" | ||
|
||
const StreamExchangeHelper = await ethers.getContractFactory("StreamExchangeHelper") | ||
const seh = await StreamExchangeHelper.attach(STREAM_EXCHANGE_HELPER_ADDRESS) | ||
|
||
const StreamExchange = await ethers.getContractFactory("StreamExchange", { | ||
libraries: { | ||
StreamExchangeHelper: seh.address, | ||
}, | ||
}); | ||
const ricochet = await StreamExchange.attach(RICOCHET_CONTRACT_ADDRESS) | ||
|
||
console.log("Current Owner", await ricochet.owner()) | ||
console.log("New Owner", await ricochet.transferOwnership(NEW_OWNER)) | ||
|
||
} | ||
|
||
main() | ||
.then(() => process.exit(0)) | ||
.catch(error => { | ||
console.error(error); | ||
process.exit(1); | ||
}); |
Oops, something went wrong.