┌─────────┬──────────┬─────────────────────────────────┬────────────┬────────────┬────────────────────────┬─────────┐
│ (index) │ kind │ name │ minGasUsed │ maxGasUsed │ observationCardinality │ avgGas │
├─────────┼──────────┼─────────────────────────────────┼────────────┼────────────┼────────────────────────┼─────────┤
│ 0 │ 'uni-v3' │ 'AAVE/ETH (Uniswap V3)' │ 65550 │ 65550 │ 50 │ 65550 │
│ 1 │ 'uni-v3' │ 'APE/ETH (Uniswap V3)' │ 65142 │ 65158 │ 50 │ 65148.4 │
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
pragma solidity ^0.7.0; | |
library bytesSwap { | |
function bytes32ToString(bytes32 _bytes32) public pure returns (string memory) { | |
uint8 i = 0; | |
while(i < 32 && _bytes32[i] != 0) { | |
i++; | |
} | |
bytes memory bytesArray = new bytes(i); |
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
[ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "contract DataStore", | |
"name": "dataStore", | |
"type": "address" | |
}, | |
{ | |
"internalType": "contract Reader", |
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
[FAIL. Reason: EvmError: Revert] test_perform_upkeep_real_performData() (gas: 8660281895700906882) | |
Traces: | |
[6936613] MarketAutomationTest_End2End::setUp() | |
├─ [0] VM::envString(ARBITRUM_GOERLI_URL) [staticcall] | |
│ └─ ← <env var value> | |
├─ [0] VM::createSelectFork(https://arb-goerli.g.alchemy.com/v2/-WCwmeQ9qLa5T5Lrm8KlXtaiQdWAsfX_) | |
│ └─ ← 0 | |
├─ [0] VM::envAddress(DATA_STORE) [staticcall] | |
│ └─ ← <env var value> | |
├─ [0] VM::envAddress(READER) [staticcall] |
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
/* | |
# Copyright IBM Corp. All Rights Reserved. | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
*/ | |
'use strict'; | |
const shim = require('fabric-shim'); | |
const util = require('util'); |
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
pragma solidity ^0.6.7; | |
import "@chainlink/contracts/src/v0.6/interfaces/AggregatorInterface.sol"; | |
contract PriceConsumer { | |
AggregatorInterface internal priceFeed; | |
/** | |
* Network: Kovan |
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 example code is designed to quickly deploy an example contract using Remix. | |
pragma solidity ^0.6.7; | |
import "https://github.com/smartcontractkit/chainlink/blob/master/evm-contracts/src/v0.6/interfaces/AggregatorV3Interface.sol"; | |
contract PriceConsumerV3 { | |
AggregatorV3Interface internal priceFeed; |
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 example code is designed to quickly deploy an example contract using Remix. | |
pragma solidity ^0.6.0; | |
import "https://raw.githubusercontent.com/smartcontractkit/chainlink/master/evm-contracts/src/v0.6/ChainlinkClient.sol"; | |
contract APIConsumer is ChainlinkClient { | |
uint256 public volume; | |
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
pragma solidity ^0.5.0; | |
import "@openzeppelin/contracts/token/ERC721/ERC721Full.sol"; | |
import "@openzeppelin/contracts/drafts/Counters.sol"; | |
contract GameItem is ERC721Full { | |
using Counters for Counters.Counter; | |
Counters.Counter private _tokenIds; | |
constructor() ERC721Full("GameItem", "ITM") public { |
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
pragma solidity ^0.6.2; | |
import "./VRFConsumerBase.sol"; | |
import "./Lottery.sol"; | |
contract RandomNumberGenerator is VRFConsumerBase { | |
address requester; | |
bytes32 keyHash; | |
uint256 fee; |
NewerOlder