Skip to content

Instantly share code, notes, and snippets.

View viraj124's full-sized avatar
💻
Blockchaining:)

Viraz Malhotra viraj124

💻
Blockchaining:)
View GitHub Profile
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);
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();
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...");
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 {
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 >
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"
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';
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';
// 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