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
async loadBlockchainData() { | |
const web3 = window.web3 | |
var instaKyberABI = { // compound connnector mint/deposit ABI | |
constant: false, | |
inputs: [ | |
{ | |
name: "src", | |
type: "address" | |
}, | |
{ |
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; | |
interface IERC20 { | |
function transfer(address to, uint256 value) external returns (bool); | |
function approve(address spender, uint256 value) external returns (bool); | |
function transferFrom(address from, address to, uint256 value) external returns (bool); | |
function balanceOf(address who) external view returns (uint256); | |
function allowance(address owner, address spender) external view returns (uint256); | |
} |
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.7; | |
contract KyberInterface { | |
function trade( | |
address src, | |
uint srcAmount, | |
address dest, | |
address destAddress, |
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.7; | |
contract Execute { | |
function execute(address _target, bytes memory _data) | |
public | |
payable | |
returns (bytes32 response) | |
{ | |
require(_target != address(0)); |
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.7; | |
interface ProxyAction { | |
function open(address manager, bytes32 ilk, address usr) external returns (uint cdp); | |
function lockETH(address manager, address ethJoin, uint cdp) external payable; | |
function lockETHAndDraw(address manager, address jug, address ethJoin, address daiJoin, uint cdp, uint wadD) external payable; | |
} | |
interface IERC20 { |
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.7; | |
interface ProxyAction { | |
function open(address manager, bytes32 ilk, address usr) external returns (uint cdp); | |
function lockETH(address manager, address ethJoin, uint cdp) external payable; | |
function lockETHAndDraw(address manager, address jug, address ethJoin, address daiJoin, uint cdp, uint wadD) external payable; | |
} | |
interface IERC20 { |
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
const DSA = require("dsa-sdk"); | |
const Web3 = require("web3"); | |
async function loadBlockchainData() { | |
const web3 = new Web3( | |
new Web3.providers.HttpProvider("http://127.0.0.1:8545") | |
); | |
// in nodejs | |
const dsa = new DSA({ | |
web3: web3, |
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
const DSA = require("dsa-sdk"); | |
const Web3 = require("web3"); | |
async function loadBlockchainData() { | |
const web3 = new Web3( | |
new Web3.providers.HttpProvider('http://127.0.0.1:8545') | |
); | |
// in nodejs | |
const dsa = new DSA({ | |
web3: web3, |
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
import React from "react"; | |
import ReactDOM from "react-dom"; | |
import "./style.css"; | |
class IncorporationForm extends React.Component { | |
constructor() { | |
super(); | |
this.state = { | |
name: "", |
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
import React from "react"; | |
import ReactDOM from "react-dom"; | |
import "./style.css"; | |
class IncorporationForm extends React.Component { | |
constructor() { | |
super(); | |
this.state = { | |
name: "", |
OlderNewer