-
prometheus exporter - https://github.com/w3f/substrate-telemetry-exporter
- it expects to run in the same host as a telemetry backend
- you can run your polkadot nodes in different hosts and configure them to send telemetry data to specific remote telemetry backends as usual, so that you can send data to a backend with the exporter connecte
- do the same as in the Dockerfile, from a clone of that repo you can run yarn && yarn start
-
polkadot secure validator - https://github.com/w3f/polkadot-secure-validator
- @anson:web3.foundation, @federico:web3.foundation
-
terraform takes care of it on the complete secure validator setup, that's why i wasn't understanding
- Colony
- About
- Colony Network is an open source Ethereum-based protocol providing a general purpose framework to create, operate, and monetize digital companies (internet-native version of traditional organisations) by providing essential functions including: ownership, structure, authority, and human and financial management.
- Colony infrastructure uses an upgrade pattern that is backward compatible
- Tools to organise and incentivise a team, community or contributors. Coordinate work, manage budgets, and make decisions from users (collectively from members) according to their ability and reputation-weighted token holdings.
- Codified structures of reputation, domains, permissions, and incentives, to coordinate working relationships within the permissionless digital companies that use smart contracts and blockchains.
- Use Cases
- DAOs
- Startup wanting to meritocratically split ownership between founders
- DAOs
- About
- Musician wanting to harness passion of your fanbase
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
// @ts-check | |
const fs = require('fs'); | |
// Import the API & Provider and some utility functions | |
const { ApiPromise, WsProvider } = require('@polkadot/api'); | |
// import the test keyring (already has dev keys for Alice, Bob, Charlie, Eve & Ferdie) | |
const testKeyring = require('@polkadot/keyring/testing'); | |
// some constants we are using in this sample |
Different accounts are used to manage funds. The underlying cryptography of their account keys is the same:
- Primary account
- Holds funds. Usually a cold wallet (on piece of paper in a safe, or protected by layers of hardware security)
- Bonds (locks) a portion of its funds with a Controller for participation (since the stake key is kept offline)
- Unbonding requires waiting ~600 blocks before unlocked funds accessible again
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
# Copy - CTRL+C | |
# Paste - CTRL+V | |
# Copy/Paste Terminal - SHIFT+CTRL+C, SHIFT+CTRL+V | |
# login to computer | |
# contact Arnold for copy of password to be sent via Riot | |
# modify settings | |
# open Settings > Mouse & Touchpad > Disable Natural Scrolling, Increase Touchpad Speed |
- Do's
- Structure glossary items (as applicable), i.e.:
- Sentence 1:
- What "<glossary_item_name>" is?
- Sentence 2 (additional clarification):
- Why "<glossary_item_name>" exists. What's the goal of having it?
- How "<glossary_item_name>" makes a difference to achieve the why?
- How "<glossary_item_name>" works?
- What are the implications of "<glossary_item_name>"?
- Sentence 1:
- Structure glossary items (as applicable), i.e.:
- What are the restrictions imposed by ""?
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
# filters the list of tasks that are running that have `./target/debug` in the command name | |
# selects the first one's Process ID (PID), then kills it | |
ps aux | grep ./target/debug | awk 'NR==1{print $2}' | sudo xargs kill -9; |
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
* Setup | |
* Create an use a non-root Standard user account and sign-in with it | |
* https://apple.stackexchange.com/questions/192365/is-it-ok-to-use-the-root-user-as-a-normal-user | |
* Change sudo timeout https://www.maketecheasier.com/edit-sudoers-file-linux/ | |
* Add user to sudoers file. Login as root. Type `sudo visudo` and add to bottom of file `<USERNAME> ALL=(ALL) ALL` | |
* Enable mac Firewall | |
* Remove icons not wanted by uncheck 'Keep in Dock' | |
* Directory structure: code/src/<github-repo>/<username> | |
* Install Riot chat: https://riot.im/desktop.html | |
* Add to ~/.gitexcludes `.DS_Store` |
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
echo "Creating an SSH key for you..." | |
ssh-keygen -t rsa | |
echo "Please add this public key to Github \n" | |
echo "https://github.com/account/ssh \n" | |
read -p "Press [Enter] key after this..." | |
echo "Installing xcode-stuff" | |
xcode-select --install |
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
pragma solidity ^0.4.19; | |
contract CarGarage { | |
uint256 public totalPurchasedPackages = 0; | |
uint256 public totalEtherDeposited = 0; | |
address public owner; | |
mapping(address => uint256) accountPackageQuantity; | |
event PackagesPurchased( |