Skip to content

Instantly share code, notes, and snippets.

View sascha1337's full-sized avatar
🧠

Sascha1337 sascha1337

🧠
View GitHub Profile
@sascha1337
sascha1337 / .bashrc
Created March 15, 2023 03:49 — forked from vsouza/.bashrc
Golang setup in Mac OSX with HomeBrew. Set `GOPATH` and `GOROOT` variables in zshell, fish or bash.
# Set variables in .bashrc file
# don't forget to change your path correctly!
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
{
"tx": {
"body": {
"messages": [
{
"@type": "/ibc.applications.nft_transfer.v1.MsgTransfer",
"source_port": "nft-transfer",
"source_channel": "channel-24",
"class_id": "onftdenom5f02ff7f06354058bdbb5cb7f5e75145",
"token_ids": [
@sascha1337
sascha1337 / cw20-base.sol
Last active March 4, 2023 15:39
cw20-base.cwscript
contract CW20Base {
error InvalidZeroAmount()
error Unauthorized()
event Transfer(sender: Addr, recipient: Addr, amount: u64)
event Burn(sender: Addr, amount: u64)
event Mint(minter: Addr, recipient: Addr, amount: u64)
event Send(sender: Addr, contract: Addr, amount: u64)
const { Server } = require("ws");
const { CosmWasmClient } = require("@cosmjs/cosmwasm-stargate");
const axios = require("axios");
const client = axios.create({});
const sockserver = new Server({ port: 443 });
const fs = require("fs");
console.log("Server started");
sockserver.on("connection", async (ws) => {
name: Contracts CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
inputs:
run_build:
# The root query type which gives access points into the data universe.
type Query implements Node {
# Exposes the root query type nested one level down. This is helpful for Relay 1
# which can only query top level fields if they are in a particular form.
query: Query!
# The root query type must be a `Node` to work well with Relay 1 mutations. This just resolves to `query`.
nodeId: ID!
# Fetches an object given its globally unique `ID`.
[
{
"asset_infos": [
{
"token": {
"contract_addr": "juno1qsrercqegvs4ye0yqg93knv73ye5dc3prqwd6jcdcuj8ggp6w0us66deup"
}
},
{
"native_token": {
[
{
"Domain": "Domain",
"Rank": "Rank",
"Hosting Provider": "Hosting Provider",
"Mail Provider": "Mail Provider"
},
{
"Domain": "store.shimmer.network",
"Rank": "2,009,816",
curl -qs 'https://akash.c29r3.xyz/api/akash/provider/v1beta2/providers'\
'?pagination.limit=1337&pagination.count_total=true' \
-H 'Connection: keep-alive' \
-H 'Accept: application/json, text/plain, */*' \
| tee 'akash_providerz.json' \
| jq -cr ".providers[].host_uri"
# Lets scan'em ;-) #unixpipegang #ibcgang #decentralizeit
curl -qs 'https://akash.c29r3.xyz/api/akash/provider/v1beta2/providers'\