Skip to content

Instantly share code, notes, and snippets.

0x5246ff82eB380E83a3BDF0A5ec6e2F08a66d2f5C
@tyrion70
tyrion70 / LockFunds.sol
Created September 9, 2017 21:35
LockFunds
pragma solidity ^0.4.13;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
0x162143c8c53705cc046e6ed3c634664c0510af25

Keybase proof

I hereby claim:

  • I am tyrion70 on github.
  • I am tyrion70 (https://keybase.io/tyrion70) on keybase.
  • I have a public key ASC_Yr1gmVPYeydEPOFnE1rGiuIKfPOGS8iXWM1pUp8b-Qo

To claim this, I am signing this object:

const iWanClient = require('iwan-sdk');
// MAINNET
let apiClientMain = new iWanClient('YOUR-API-KEY, YOUR-SECRET-KEY');
let totalstake = 0;
apiClientMain.getCurrentStakerInfo("WAN",(err, validators) => {
if (err) {
console.log(err);
} else {
const iWanClient = require('iwan-sdk');
// MAINNET
let apiClientMain = new iWanClient('YOUR-API-KEY, YOUR-SECRET-KEY');
let totalstake = 0;
apiClientMain.getCurrentStakerInfo("WAN",(err, validators) => {
if (err) {
console.log(err);
} else {
export INGRESS="akash.$(cat data/db/index/MACHINE_ZONE)"
export PROVIDER=$(cat data/db/keys/provider.address)
cat > akash-provider.yml <<EOF
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: akash-provider
# enable dashboard
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta6/aio/deploy/recommended.yaml
# create user
cat > dashboard-adminuser.yml <<EOF
apiVersion: v1
kind: ServiceAccount
metadata:
name: admin-user
namespace: kube-system
# To check if your Akash provider is happily accepting your requests follow the following steps..
# first the correct riot.yml. Use the below riot.yml and change your moniker and region accordingly. Thats all it takes to deploy to your moniker:
To deploy this use the following code:
```
akash deployment create riot.yml -k keyname
```
While doing this, check the logging of your akash container in another window:

CELO_VALIDATOR_GROUP_ADDRESS=035ef01395e2cc1219482f0542a05b627fac36b6 CELO_VALIDATOR_ADDRESS=775a5c899fd4a7cdd54e9f41738087748cfcb953 CELO_GENESIS_VALIDATOR_SIGNER_ADDRESS=dce0096c358e90c4645d68a53e897416e786d05f CELO_GENESIS_VALIDATOR_SIGNER_BLS_PUBLIC_KEY=872c5c11351fbe7f31bb38ff5f7b07aa8bc4902a06b81f4fe70e7bc5be86ad260be53c26ef3d1e6293e3308c33ef8d000c13182ad835adf86e816496d6519ae00bd607f6f5d974fab0792802d69688e6ef37078285a1a2e9f8489bfe5a87e600