Skip to content

Instantly share code, notes, and snippets.

View fbslo's full-sized avatar
🏠
Working from home

fbslo fbslo

🏠
Working from home
View GitHub Profile
#FRONTEND
#Hive Engine (HE) token name
TOKEN_NAME=
#HE token symbol
TOKEN_SYMBOL=
#Number of decimal places HE token has
HIVE_TOKEN_PRECISION=
#Number of decimal places Ethereum token has
// SPDX-License-Identifier: MIT
// @fbsloXBT
pragma solidity 0.8.12;
interface IChainLink {
function latestAnswer() external returns (uint256);
}
interface IUSDC {
@fbslo
fbslo / dice.proto
Last active February 19, 2022 00:09
syntax = "proto3";
package dice;
// @description Play the game
// @read-only false
message play_arguments {}
message play_result {
bool value = 1;
import { token } from "./proto/token";
export class Token {
_name: string;
_symbol: string;
_decimals: i64;
_totalSupply: i64;
constructor() {
this._name = "Koinos Test Token";
import { token } from "./proto/token";
export class Token {
public msg: number;
constructor() {
this.msg = 120;
}
name(args: token.name_arguments): token.name_result {
[
{
"inputs": [
{
"internalType": "address",
"name": "newPenaltyAddress",
"type": "address"
},
{
"internalType": "uint256",
{
"targets": [
{
"address": "0xc55e521b0536723cebfa27054c064b3b1d6da103",
"signature": "0xf69e2046",
"gasLimit": 5000000
},
{
"address": "0x3f1b0319e2ebed04d5e2ce367393914bbf8f59f5",
"signature": "0xd389800f",
const dhive = require('@hiveio/dhive');
const { cryptoUtils, Signature } = dhive
const dhiveClient = new dhive.Client(['https://api.hive.blog'], {
chainId: 'beeab0de00000000000000000000000000000000000000000000000000000000',
})
async function test(){
let transaction = {
"ref_block_num":45115,
"ref_block_prefix":1373329981,
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
},

API docs:


GET /

Params: address

Example: /?address=0x000000000000000000000000000000000000dead