Skip to content

Instantly share code, notes, and snippets.

# Must have conda installed
# It costs approximately $0.2 (in GPT-4 API fees) to generate one example with analysis and design, and around $2.0 for a full project.
conda create -n metagpt python=3.11.4
conda activate metagpt
npm --version # to check you have npm installed
# optional: install node if you don't have it
npm install -g @mermaid-js/mermaid-cli
git clone https://github.com/geekan/metagpt
cd metagpt
@bhagat9198
bhagat9198 / first.sol
Created December 25, 2021 08:07
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// defined the versionof the solidity to be used
pragma solidity ^0.4.24;
// defining the smart contract -
// smart contract is the code taht gets executed on blockchan. It is like a microservice and will be asscebile to everyone on the blockchain. users will able to see and use it. they will able to read and write data with it.
// hence, it will be public.
// looks like the class
contract myContract {
// task: read and write the value
@bhagat9198
bhagat9198 / .deps...remix-tests...remix_accounts.sol
Created December 25, 2021 07:36
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
library TestsAccounts {
function getAccount(uint index) pure public returns (address) {
address[15] memory accounts;
accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;
accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2;