Skip to content

Instantly share code, notes, and snippets.

View kelsos's full-sized avatar
🕵️
Happily Coding 😃

Konstantinos Paparas kelsos

🕵️
Happily Coding 😃
View GitHub Profile
@kelsos
kelsos / MenuTint.kt
Last active September 15, 2017 05:44
MenuTint Utility
@file:Suppress("unused")
/*
* Copyright (C) 2015. Jared Rummler <jared.rummler@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@kelsos
kelsos / SikorkaRegistry.java
Created October 3, 2017 15:14
Abigen Result
// This file is an automatically generated Java binding. Do not modify as any
// change will likely be lost upon the next re-generation!
package io.sikorka.android.contract;
import org.ethereum.geth.*;
import org.ethereum.geth.internal.*;
@kelsos
kelsos / SikorkaRegistry.java
Last active October 3, 2017 17:48
Abigen Result
// This file is an automatically generated Java binding. Do not modify as any
// change will likely be lost upon the next re-generation!
package io.sikorka.android.contract;
import org.ethereum.geth.*;
import org.ethereum.geth.internal.*;
@kelsos
kelsos / StackTrace.java
Created October 3, 2017 18:56
Geth Mobile Stacktrace
go.Universe$proxyerror: abi: cannot unmarshal []common.Address in to []interface {}
at org.ethereum.geth.BoundContract.call(Native Method)
at io.sikorka.android.contract.SikorkaRegistry.getContractAddresses(SikorkaRegistry.kt:78)
at io.sikorka.android.contract.SikorkaRegistry.getContractAddresses$default(SikorkaRegistry.kt:64)
at io.sikorka.android.node.contracts.ContractRepository$getDeployedContracts$1$1.call(ContractRepository.kt:19)
at io.sikorka.android.node.contracts.ContractRepository$getDeployedContracts$1$1.call(ContractRepository.kt:10)
at io.rea
@kelsos
kelsos / LockedTransfer.rst
Last active June 26, 2019 09:45
Locked Transfer Draft

LockedTransfer

A LockedTransfer is a message used to reserve tokens for a new mediated transfer.

Preconditions

For a LockedTransfer to be considered valid the following conditions have to be true.

  • There is a channel which matches the given chain id, token network address, and channel identifier.
@kelsos
kelsos / PKGBUILD
Created February 4, 2020 18:53
GH CLI PKGBUILD
pkgname=gh-cli
pkgver=0.5.4
pkgrel=1
pkgdesc="the GitHub CLI"
arch=('x86_64')
url="https://github.com/cli/cli"
license=('MIT')
depends=()
makedepends=()
provides=("${pkgname%-bin}" "gh")
[
{
"title": "World of Warcraft (PC)",
"total_playtime_seconds": "4870691",
"total_playtime_hours": 1352.97,
"last_played_timestamp": "1501187022",
"last_played_date": "Thu, 27 Jul 2017 20:23:42 +0000"
},
{