-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into interfaces/erc/4906
- Loading branch information
Showing
10 changed files
with
77 additions
and
57 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
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 |
---|---|---|
|
@@ -19,3 +19,5 @@ | |
* xref:crosschain.adoc[Crosschain] | ||
* xref:utilities.adoc[Utilities] | ||
* xref:subgraphs::index.adoc[Subgraphs] |
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,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
CHECKSUMS="$RUNNER_TEMP/checksums.txt" | ||
|
||
# Extract tarball content into a tmp directory | ||
tar xf "$TARBALL" -C "$RUNNER_TEMP" | ||
|
||
# Move to extracted directory | ||
cd "$RUNNER_TEMP/package" | ||
|
||
# Checksum all Solidity files | ||
find . -type f -name "*.sol" | xargs shasum > "$CHECKSUMS" | ||
|
||
# Back to directory with git contents | ||
cd "$GITHUB_WORKSPACE/contracts" | ||
|
||
# Check against tarball contents | ||
shasum -c "$CHECKSUMS" |
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 |
---|---|---|
@@ -1,16 +1,17 @@ | ||
const { time } = require('@openzeppelin/test-helpers'); | ||
const ozHelpers = require('@openzeppelin/test-helpers'); | ||
const helpers = require('@nomicfoundation/hardhat-network-helpers'); | ||
|
||
module.exports = { | ||
clock: { | ||
blocknumber: () => web3.eth.getBlock('latest').then(block => block.number), | ||
timestamp: () => web3.eth.getBlock('latest').then(block => block.timestamp), | ||
blocknumber: () => helpers.time.latestBlock(), | ||
timestamp: () => helpers.time.latest(), | ||
}, | ||
clockFromReceipt: { | ||
blocknumber: receipt => Promise.resolve(receipt.blockNumber), | ||
timestamp: receipt => web3.eth.getBlock(receipt.blockNumber).then(block => block.timestamp), | ||
}, | ||
forward: { | ||
blocknumber: time.advanceBlockTo, | ||
timestamp: time.increaseTo, | ||
blocknumber: ozHelpers.time.advanceBlockTo, | ||
timestamp: helpers.time.increaseTo, | ||
}, | ||
}; |
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