Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dskvr
dskvr / oas.yml
Created March 21, 2020 05:56
Put.io 2.7.0 OAS 3.0 Specification
openapi: 3.0.2
info:
version: "2.7.0"
title: Put.io
description: |
Start by registering your application and obtaining your API credentials from [OAuth Apps page](https://app.put.io/settings/account/oauth/apps).
The API is CORS enabled. All API responses include following header:
User gid: 1005
-------------------------------------
@dskvr
dskvr / install.js
Created January 16, 2020 16:29
Javascript websocket client boilerplate for EOSIO/eos' nodeos' state_history_plugin.cpp Websocket Interface
/*Install these dependencies*/
npm install node-fetch zlib commander ws eosjs@20.0.0-beta
@dskvr
dskvr / C++ Serializer (untested)
Last active September 30, 2019 16:42
(experimental) EOSIO Transaction Schema
// To parse this JSON data, first install
//
// Boost http://www.boost.org
// json.hpp https://github.com/nlohmann/json
//
// Then include this file, and then do
//
// Coordinate data = nlohmann::json::parse(jsonString);
#pragma once
{
"type": "object",
"additionalProperties": false,
"required": [
"version",
"types",
"structs",
"actions",
"tables",
"abi_extensions",
@dskvr
dskvr / oas.yaml
Last active November 11, 2022 09:19
EOSIO OAS 3.0 File - Alpha 0.0.1 (bundled from json-schemas)
openapi: 3.0.0
info:
title: Chain API
version: 1.0.0
license:
name: MIT
url: 'https://opensource.org/licenses/MIT'
contact:
url: 'https://eos.io'
tags:
@dskvr
dskvr / json-schema-consumed-by-oag.swift
Last active February 10, 2019 18:46
Comparing openapi-generator to quicktype for models generation
/* TransactionVariant */
anyOf:
- $ref: 'TransactionHash.yaml'
- $ref: 'PackedTransaction.yaml'
/* TransactionHash */
type: string
/*PackedTransaction*/
type: object
@dskvr
dskvr / .babelrc
Last active December 23, 2018 23:30
Using v20.0.0-beta3 with nodejs
{
"presets": ["@babel/preset-env"]
}
#include <eosiolib/eosio.hpp>
#include <eosiolib/print.hpp>
using namespace eosio;
class addressbook : public eosio::contract {
public:
using contract::contract;

Keybase proof

I hereby claim:

  • I am dskvr on github.
  • I am sandwiches (https://keybase.io/sandwiches) on keybase.
  • I have a public key ASCa1bjKZFiAsoTCoqf1stkLGRTw_WiqrP0RBE45yNXaPAo

To claim this, I am signing this object: