Skip to content

Instantly share code, notes, and snippets.

@aalu1418
aalu1418 / conflux_dev_resources.md
Last active November 2, 2020 16:39
Developer resources for Conflux Network

Conflux Network Developer Resources

Last update: Nov 2, 2020

Intro

Conflux Network is a PoW blockchain that achieves 3000+ transactions per second (TPS) through the DAG-based (directed acyclic graph) Tree-Graph algorithm.

For developers:

  • PoW is a proven consensus mechanism for large scale blockchain networks
  • High TPS means transaction fees will be significantly lower
  • Solidity compatible (no need to learn a new language!)
@aalu1418
aalu1418 / Coin.sol
Last active November 13, 2020 18:32
Sample Contract for Space Missions
pragma solidity >=0.5.0 <0.7.0;
contract Coin {
string public name; //publicly accessible name paratmer
string public symbol; //publicly accessible symbol parameter
mapping (address => uint) private balances; //creates a "table" for matching address to token balance
event Transfer(address indexed _from, address indexed _to, uint256 _value); //emits a standard ERC-20 Transfer event
@aalu1418
aalu1418 / chainlink_dev.md
Last active November 16, 2020 19:12
Chainlink <> Conflux Integration Resources
@aalu1418
aalu1418 / sendTokens.md
Last active November 20, 2020 18:05
Final planet mission (Neptune) code

Mission 8: Neptune (Javascript SDK)

These instructions have been created for use in a terminal/command line. Please ask questions if you run into issues!

Steps (Linux commands)

If you are not using linux, please adjust accordingly.

Create a new folder and navigate into it

mkdir sendTokens
@aalu1418
aalu1418 / Variables.sol
Last active January 4, 2021 22:43
Variable Types + Visibility
pragma solidity >=0.5.0 <0.7.0;
contract Test {
// Variable Example
// Unsigned integer that is visibile to derived contracts equal to 10
uint256 internal _demoOne = 10;
// boolean equal to true that is visible to everyone
bool public _demoTwo = true;
@aalu1418
aalu1418 / proverbs.md
Created April 14, 2023 11:34
Go Proverbs

Simple, Poetic, Pithy


Don't communicate by sharing memory, share memory by communicating.

Concurrency is not parallelism.