Skip to content

Instantly share code, notes, and snippets.

View toschdev's full-sized avatar
:octocat:
Developing

Tobias toschdev

:octocat:
Developing
View GitHub Profile
@toschdev
toschdev / cbs_traits.json
Last active January 28, 2025 00:50
trait_statistics.json
{
"traitTypes": {
"Eyes": {
"values": {
"Heart": {
"count": 269,
"percentage": "3.46%",
"rarity_score": "28.91"
},
"Lizard": {
@toschdev
toschdev / trade_frequencies.json
Created January 28, 2025 00:40
CBS trait frequencies
{
"Eyes": [
{
"value": "Orange",
"count": 1595,
"percentage": "20.51%"
},
{
"value": "Green",
"count": 1308,
@toschdev
toschdev / stop_chain.sh
Created September 16, 2024 12:39
Interchain Security, Stop Provider Chain
#!/bin/bash
# Enable strict mode: exit on error, print commands, and treat unset variables as errors.
set -eux
# Setup Variables
# Define paths, binary, and other configuration parameters
PROVIDER_BINARY=interchain-security-pd
@toschdev
toschdev / create_and_start_ICS.sh
Created September 16, 2024 12:38
Interchain Security Setup, Create and Start the Procedure Bash
#!/bin/bash
# Enable strict mode: exit on error, print commands, and treat unset variables as errors.
set -eux
# Setup Variables
# Define total and staked coin amounts for validators
TOTAL_COINS=100000000000stake
STAKE_COINS=100000000stake
@toschdev
toschdev / start_and_stop_ics.sh
Created September 16, 2024 12:37
Interchain Security, Setup your Chain bash
#!/bin/bash
# Enable strict mode: exit on error, print commands, and treat unset variables as errors.
set -eux
# Setup Variables
# Define total and staked coin amounts for validators
TOTAL_COINS=100000000000stake
STAKE_COINS=100000000stake
@toschdev
toschdev / Makefile
Created September 16, 2024 12:36
ICS Makefile
.PHONY: all setup provider consumer proposal clean stop
# Define binary and home directory variables for easy customization
PROVIDER_BINARY=interchain-security-pd
CONSUMER_BINARY=interchain-security-cd
PROVIDER_HOME=$(HOME)/.provider
CONSUMER_HOME=$(HOME)/.consumer
PROVIDER_CHAIN_ID=provider
CONSUMER_CHAIN_ID=consumer
@toschdev
toschdev / helper.ts
Last active August 27, 2021 21:44
Helper file local Smart Contract
import axios from "axios"
import fs from "fs"
import { SigningCosmWasmClient, CosmWasmFeeTable} from "@cosmjs/cosmwasm-stargate"
import { GasPrice, Secp256k1HdWallet, GasLimits, makeCosmoshubPath } from "@cosmjs/launchpad"
import { Slip10RawIndex } from "@cosmjs/crypto"
import path from "path"
/*
* This is a set of helpers meant for use with @cosmjs/cli
* With these you can easily use the cw20 contract without worrying about forming messages and parsing queries.
*
@toschdev
toschdev / algorithm_test.go
Last active October 15, 2020 12:11
Ethermint HDWallet key derivation
package crypto
import (
"encoding/hex"
"fmt"
"log"
"strings"
"testing"
"github.com/stretchr/testify/require"
@toschdev
toschdev / algorithm_test.go
Created October 13, 2020 13:48
Ethermint Bip44
package crypto
import (
"fmt"
"log"
"strings"
"testing"
"github.com/stretchr/testify/require"
@toschdev
toschdev / index.js
Last active June 4, 2020 12:24
getAccount ardor npm
const loader = require("ardor");
loader.init({
url: "http://localhost:27876",
chain: 2,
secretPhrase: "hope peace happen touch easy pretend worthless talk them indeed wheel state",
isTestNet: false
});
loader.load(async function(NRS) {