This file contains hidden or 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.0; | |
/** | |
* @title ERC20 interface | |
* @dev see https://eips.ethereum.org/EIPS/eip-20 | |
*/ | |
interface IERC20 { | |
function transfer(address to, uint256 value) external returns (bool); |
This file contains hidden or 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
global.XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; | |
const { SpaceClient } = require('@fleekhq/space-client'); | |
const client = new SpaceClient({ | |
url: `http://0.0.0.0:9998`, | |
}); | |
(async ()=>{ | |
const bucket = "buckettoshare" + Date.now(); |
This file contains hidden or 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
global.XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; | |
const {SpaceClient} = require("@fleekhq/space-client"); | |
const client = new SpaceClient({url: `http://0.0.0.0:9998`}); | |
(async () => { | |
const bucket = "buckettoshare" + Date.now(); | |
try { | |
console.log("creating bucket..."); |
This file contains hidden or 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
global.XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; | |
const {SpaceClient} = require("@fleekhq/space-client"); | |
const client = new SpaceClient({url: `http://localhost:9998`}); | |
(async () => { | |
console.log(await client.generateKeyPairWithForce()); | |
const bucket = "personal" | |
// try { |
This file contains hidden or 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
yarn install v1.22.4 | |
info No lockfile found. | |
[1/4] Resolving packages... | |
warning @skalenetwork/filestorage.js > web3 > web3-core > @types/[email protected]: This is a stub types definition for bignumber.js (https://github.com/MikeMcl/bignumber.js/). bignumber.js provides its own type definitions, so you don't need @types/bignumber.js installed! | |
warning @skalenetwork/filestorage.js > web3 > web3-bzz > swarm-js > [email protected]: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that. | |
warning @skalenetwork/filestorage.js > web3 > web3-eth > web3-eth-accounts > @web3-js/[email protected]: This package is deprecated, for a pure JS implementation please use scrypt-js | |
warning @skalenetwork/filestorage.js > web3 > web3-core > web3-core-requestmanager > web3-providers-ws > @web3-js/[email protected]: The branch for this fork was merged upstream, please update your package to [email protected] | |
warning @skalenetwork/filestorage.js > web3 > web3-bzz > swarm-js > |
This file contains hidden or 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
yarn run v1.22.4 | |
$ react-scripts start | |
There might be a problem with the project dependency tree. | |
It is likely not a bug in Create React App, but something you need to fix locally. | |
The react-scripts package provided by Create React App requires a dependency: | |
"babel-loader": "8.0.4" |
This file contains hidden or 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.0; | |
import "https://raw.githubusercontent.com/smartcontractkit/chainlink/develop/evm-contracts/src/v0.6/ChainlinkClient.sol"; | |
contract Adapter is ChainlinkClient { | |
uint256 public ethereumPrice; | |
address private oracle; | |
bytes32 private jobId; |
This file contains hidden or 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 * as bip32 from 'bip32'; | |
import * as BufferLayout from 'buffer-layout'; | |
import _ from 'lodash'; | |
import nacl from 'tweetnacl'; | |
import { Service } from 'typedi'; | |
import { | |
Account, Connection, PublicKey, SystemProgram, SYSVAR_RENT_PUBKEY, Transaction, | |
TransactionInstruction | |
} from '@solana/web3.js'; |
This file contains hidden or 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 _ from 'lodash'; | |
import { QueryParams } from 'routing-controllers'; | |
import { Service } from 'typedi'; | |
import { ApiPromise, WsProvider } from '@polkadot/api'; | |
import { Keyring } from '@polkadot/keyring'; | |
import { StakingOperatioQuery } from '../controllers/requests/StakingQuery'; | |
This file contains hidden or 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: MIT | |
pragma solidity ^0.6.0; | |
import "https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/utils/Create2.sol"; | |
contract MinimalProxyFactory { | |
event MinimalProxyCreated(address minimalProxy); | |
function computeAddress(uint256 salt, address implementation) | |
public |