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
#!/bin/bash | |
# | |
# Tilt installer | |
# | |
# Usage: | |
# curl -fsSL https://raw.githubusercontent.com/tilt-dev/tilt/master/scripts/install.sh | bash | |
# When releasing Tilt, the releaser should update this version number | |
# AFTER they upload new binaries. | |
VERSION="0.28.1" |
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 { OpenSeaPort, Network } from 'opensea-js'; | |
const provider = window.ethereum; | |
const seaport = new OpenSeaPort(provider, { | |
// networkName: process.env.NEXT_PUBLIC_NETWORK || Network.Rinkeby, | |
networkName: Network.Rinkeby, | |
apiKey: process.env.NEXT_PUBLIC_OPEN_SEA_API_KEY, | |
}); |
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 HDWalletProvider = require('@truffle/hdwallet-provider'); | |
import { OpenSeaPort, Network } from 'opensea-js'; | |
const provider = new HDWalletProvider({ | |
mnemonic: process.env.NEXT_PUBLIC_MNEMONIC, | |
providerOrUrl: `https://rinkeby.infura.io/v3/${process.env.NEXT_PUBLIC_INFURA_API_KEY}`, | |
addressIndex: 0, | |
pollingInterval: 300000 | |
}) |
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 { Box, Container } from '@chakra-ui/react'; | |
import { motion } from 'framer-motion'; | |
const MotionBox = motion(Box); | |
export default function GeneralLoader() { | |
return ( | |
<Container h='100vh' d='flex' alignItems='center' justifyContent='center'> | |
<MotionBox | |
as='aside' |
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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.5.0 <0.9.0; | |
contract Lottery { | |
address public manager; | |
address payable[] public players; | |
constructor() { |