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
//SPDX-License-Identifier: Unlicense | |
pragma solidity 0.8.17; | |
contract StatusExample { | |
enum Status { | |
Active, | |
Succeeded, | |
Failed, | |
Canceled |
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
// helper function (you can create your own `helpers.js` file and import to your tests) | |
const getGasUsed = async (tx) => { | |
const { gasUsed, effectiveGasPrice } = await tx.wait(); | |
return gasUsed.mul(effectiveGasPrice); | |
}; | |
// your tests | |
describe('how to calculate and consider gas costs', () => { | |
const oneEth = ethers.utils.parseEther('1'); | |
// deposit `oneEth` |
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
javascript:(function () { | |
var doc = document.querySelectorAll('.mwEmbedKalturaIframe')[0].contentWindow.document; | |
var video = doc.querySelectorAll('.videoDisplay video'); | |
var videoUrl = video[0].getAttribute('src'); | |
console.log(videoUrl); | |
window.open(videoUrl, '_blank'); | |
}()); |
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
### OSX ### | |
.DS_Store | |
.AppleDouble | |
.LSOverride | |
Icon | |
# Thumbnails | |
._* | |
# Files that might appear on external disk |