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
"use strict" | |
const { SwapQuoter } = require('@0x/asset-swapper'); | |
const { RPCSubprovider, Web3ProviderEngine } = require('@0x/subproviders'); | |
const { BigNumber, providerUtils } = require('@0x/utils'); | |
(async () => { | |
const provider = new Web3ProviderEngine(); | |
provider.addProvider(new RPCSubprovider(process.env.INFURA_MAINNET_RPC)); | |
providerUtils.startProviderEngine(provider); |
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86 5.2.2-arch1 Kernel Configuration | |
# | |
# | |
# Compiler: gcc (GCC) 9.1.0 | |
# | |
CONFIG_CC_IS_GCC=y | |
CONFIG_GCC_VERSION=90100 |
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; | |
// Results are consistent with ABIEncoderV2. | |
// pragma experimental ABIEncoderV2; | |
contract DecodeTest { | |
function runTests() external view returns (bool publicSameMemory, bool externalSameMemory) { | |
publicSameMemory = abiDecodeTestPublic(encode()); | |
externalSameMemory = this.abiDecodeTestExternal(encode()); | |
} |