Skip to content

Instantly share code, notes, and snippets.

View octalmage's full-sized avatar

Jason Stallings octalmage

View GitHub Profile
@octalmage
octalmage / war.js
Created July 13, 2023 05:33
War for JAX
class WarContract {
init({ rng }) {
storage.put("rng", rng);
storage.put("id", 1);
}
can_update() {
return blockchain.requireAuth(blockchain.contractAdmin());
}
@octalmage
octalmage / deploy.yaml
Created April 5, 2023 22:48
Deploy your own https://gun.eco relay node on Akash.
---
version: '2.0'
services:
gundb:
image: gundb/gun
expose:
- port: 8765
as: 80
# Uncomment to add your own domain.
# accept:
@octalmage
octalmage / virus.sol
Created July 2, 2021 20:25
Virus ERC20 Token
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
@octalmage
octalmage / keplr.js gist
Last active September 19, 2022 16:49 — forked from clevinson/keplr.js gist
DO NOT RUN THIS
{
"chainId": "phoenix-1",
"chainName": "Terra 2.0",
"rpc": "https://terra-rpc.polkachu.com/",
"rest": "https://phoenix-lcd.terra.dev/",
"stakeCurrency": {
"coinDenom": "LUNA",
"coinMinimalDenom": "uluna",
"coinDecimals": 6,
"coinGeckoId": "terra-luna"
@octalmage
octalmage / release.md
Last active March 12, 2020 19:52
Local v5.2.6 Beta
@octalmage
octalmage / ico.js
Last active February 28, 2020 01:41
IOST ICO Example
const TOKEN = 'TIX';
const IOST_COST = '.1';
const TOKEN_DECIMALS = 8;
class ICO {
init() {
// Runs on deploy.
}
// Remove to disable updates.
@octalmage
octalmage / wax.js
Created February 7, 2020 19:54
Checking the inline calls of a transaction.
const tx = await theWallet.transact({
actions: [{
account: 'blockarcade1',
name: 'result',
authorization: [{
actor: theAccount,
permission: 'active',
}],
data: {
customer_string: userID,
@octalmage
octalmage / bid.yaml
Last active June 22, 2019 21:46
Sonm Web Server bid.yaml
duration: 0
price: 0.01 USD/h price: 1 USD/h
identity: anonymous
tag: wp
resources:
network:
overlay: true
outbound: true
@octalmage
octalmage / index.js
Last active September 6, 2018 19:15 — forked from salami-art/index.js
import React from 'react'
// import { Link } from 'gatsby'
import Layout from '../components/layout'
import PostsList from '../components/posts_list'
import PostsFilter from '../components/posts_filter'
const IndexPage = (data) => {
console.log('Index.js', data.length)
return (
<Layout>
{
"tests": "96",
"failures": "5",
"errors": "0",
"testsuites": {
"Tests_Meta": {
"name": "Tests_Meta",
"tests": "18",
"failures": "1",
"errors": "0",