Skip to content

Instantly share code, notes, and snippets.

View luangkhot1's full-sized avatar
💭
I may be slow to respond.

luangkhot1

💭
I may be slow to respond.
View GitHub Profile
@luangkhot1
luangkhot1 / README.txt
Created January 23, 2022 12:08
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=builtin&optimize=true&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@luangkhot1
luangkhot1 / .deps...remix-tests...artifacts...Assert.json
Created February 20, 2022 20:28
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.11-nightly.2021.11.9+commit.19159b96.js&optimize=true&runs=200&gist=
// this line is added to create a gist. Empty file is not allowed.
@luangkhot1
luangkhot1 / .deps...remix-tests...artifacts...Assert.json
Created February 20, 2022 20:30
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.11-nightly.2021.11.9+commit.19159b96.js&optimize=true&runs=200&gist=
// this line is added to create a gist. Empty file is not allowed.
@luangkhot1
luangkhot1 / ipfs...QmYtGpMMsLWzER7Ac4av3KKnAjJuZTuwE9ReHxfJNmZb9i
Created February 27, 2022 01:10
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.12+commit.f00d7308.js&optimize=true&runs=200&gist=
{"compiler":{"version":"0.8.12+commit.f00d7308"},"language":"Solidity","output":{"abi":[{"inputs":[],"name":"beforeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"checkFailure","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"checkSenderAndValue","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"checkSuccess","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"checkSuccess2","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{"beforeAll()":{"notice":"'beforeAll' runs before all other tests More special functions are: 'beforeEach', 'beforeAll', 'afterEach' & 'afterAll'"},"checkSenderAndValue()":{"notice":"Custom Transaction Context: https://remix-ide.readthedocs.io/en/latest/unittesting.html#customization #sender: account-1 #value: 100"}}
@luangkhot1
luangkhot1 / ipfs...QmVK8bypbYgV8hq5ERKTBDKMUYUrDa3nx8vMdqqv5usZ3J
Created February 27, 2022 01:12
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.12+commit.f00d7308.js&optimize=true&runs=200&gist=
{"compiler":{"version":"0.8.12+commit.f00d7308"},"language":"Solidity","output":{"abi":[{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getAccount","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"}],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"compilationTarget":{"remix_accounts.sol":"TestsAccounts"},"evmVersion":"london","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":200},"remappings":[]},"sources":{"remix_accounts.sol":{"keccak256":"0x198a94b8e0342a81c31fda8ba387964155802ef81807e01e83e2320682dce327","license":"GPL-3.0","urls":["bzz-raw://db7d9939731e6fe2030d53b80f57ce2c1f8044209c1c67e634e81160227d3019","dweb:/ipfs/QmRLYhZ2Y6bfh83QSD2hCnhVFejevzh77zUTohCCC8yCtu"]}},"version":1}
@luangkhot1
luangkhot1 / .deps...remix-tests...artifacts...Assert.json
Created February 27, 2022 01:33
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.12+commit.f00d7308.js&optimize=true&runs=200&gist=
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},