-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #217 from tasitlabs/feature/gnosis-safe
Gnosis Safe bootstrap
- Loading branch information
Showing
76 changed files
with
2,768 additions
and
2,559 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,35 @@ | ||
import { ethers } from "ethers"; | ||
|
||
// Chai | ||
import { expect, assert } from "chai"; | ||
global.expect = expect; | ||
//global.assert = assert; | ||
|
||
// Helpers | ||
import actionHelpers from "../../../tasit-action/dist/testHelpers/helpers"; | ||
global = Object.assign(global, actionHelpers); | ||
|
||
// Global hooks | ||
let snapshotId; | ||
|
||
beforeEach("global beforeEach() hook", async () => { | ||
const provider = new ethers.providers.JsonRpcProvider(); | ||
provider.pollingInterval = 50; | ||
global.provider = provider; | ||
snapshotId = await createSnapshot(provider); | ||
|
||
while (snapshotId > 1) { | ||
await revertFromSnapshot(provider, snapshotId--); | ||
} | ||
|
||
expect(snapshotId).to.equal(1); | ||
}); | ||
|
||
afterEach("global afterEach() hook", async () => { | ||
expect(snapshotId).to.equal(1); | ||
await revertFromSnapshot(provider, snapshotId); | ||
|
||
// Note: Without this the test suite is breaking. | ||
// It is still unclear why | ||
await mineBlocks(provider, 1); | ||
}); |
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
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,8 @@ | ||
import Contract from "../contract/Contract"; | ||
import abi from "../../../tasit-contracts/abi/MyERC20Full.json"; | ||
|
||
export default class ERC20Full extends Contract { | ||
constructor(address, wallet) { | ||
super(address, abi, wallet); | ||
} | ||
} |
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,13 @@ | ||
import ERC20Full from "./ERC20Full"; | ||
|
||
// Note: Under the current `tasit-contracts` setup ERC20Detailed aways will deployed with this address | ||
// See https://github.com/tasitlabs/TasitSDK/issues/138 | ||
const ERC20_FULL_ADDRESS = "0x37E1A58dD465D33263D00185D065Ee36DD34CDb4"; | ||
|
||
describe("TasitAction.ERC20.ERC20Full", () => { | ||
it("should get the ERC20Full name", async () => { | ||
const erc20 = new ERC20Full(ERC20_FULL_ADDRESS); | ||
const name = await erc20.name(); | ||
expect(name).to.equal("ERC20Full"); | ||
}); | ||
}); |
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,8 @@ | ||
import Contract from "../contract/Contract"; | ||
import abi from "../../../tasit-contracts/abi/MyERC721Full.json"; | ||
|
||
export default class ERC721Full extends Contract { | ||
constructor(address, wallet) { | ||
super(address, abi, wallet); | ||
} | ||
} |
Oops, something went wrong.