Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍🔬
Working on Web3

Dan Shields NukeManDan

👨‍🔬
Working on Web3
View GitHub Profile
View Substrate-wiki-archive-SEE-COMMENTS-IN-GIST.md

https://github.com/paritytech/substrate/wiki/External-Address-Format-(SS58)

SS58 is a simple address format designed for Substrate based chains. There's no problem with using other address formats for a chain, but this serves as a robust default. It is heavily based on Bitcoin's Base-58-check format with a few alterations.

The basic idea is a base-58 encoded value which can identify a specific account on the Substrate chain. Different chains have different means of identifying accounts. SS58 is designed to be extensible for this reason.

Basic Format

The basic format conforms to:

@NukeManDan
NukeManDan / check_substrate_address.sh
Last active Sep 29, 2021
Use subkey tool to find polkadot / kusama / other substrate network's accounts from mnemonic seed words, passwords, and derivation paths.
View check_substrate_address.sh
#!/bin/bash
# Use this script to try various derivation paths and passowords for a known seed.
# ****NOTE!!!!****
# DO NOT SAVE THIS FILE WITH YOUR SEED IN IT!!!!
# INSTEAD RUN THIS ONCE AS IS, THEN MANALLY SET
# YOU MUST EDIT THESE VARIABLES *NOT IN THIS FILE*!!
# SET THESE IN YOUR TERMINAL:
# SECRET="<put your seed words / mnemonic here>"
View gitgpod.log
#snip...
Downloaded getrandom v0.1.16
Downloaded synstructure v0.12.4
Downloaded substrate-prometheus-endpoint v0.8.1
Downloaded stable_deref_trait v1.2.0
Downloaded semver v0.11.0
Downloaded parking_lot_core v0.4.0
Downloaded pallet-balances v2.0.1
Downloaded pin-project v1.0.4
Downloaded pallet-finality-tracker v2.0.1
View README.md
@NukeManDan
NukeManDan / README.md
Last active Nov 9, 2020
Submission for NFT Challenge heelo world polkadot
View README.md

Submission for NFT Challenge

Added ORML NFT pallet to runtime and applied to the node template Editied the base template and added a custom pallet using the orml-nft interface.

Source Code for Node HERE 👈 👀

Proofs of NFT use via https://polkadot.js.org/apps/ extrinsics in comments.

NOTE: you must update the setting on the UI to use it!

@NukeManDan
NukeManDan / README.md
Last active Nov 8, 2020
truffle use on moonbeam
View README.md

Truffle Deploy of ERC20 on Moonbeam

Submission for Hello World:

0xc7677f163bf16E57A2611A57811DE15De9c707Ca,0x5808Ba675FBc32A89a57c7a3921B88a5FD2C5f9c


Migration address: 0xc7677f163bf16E57A2611A57811DE15De9c707Ca

ERC20 Address: 0x5808Ba675FBc32A89a57c7a3921B88a5FD2C5f9c

@NukeManDan
NukeManDan / README.md
Last active Nov 8, 2020
moonbeam alpha erc20
View README.md

Deployed Contracts on Moonbase Alpha via Remix

CheckContract address: 0xE0ed028b7fFD18dC1eF0c86ad0533bb2e0c966f8


erc20

0xAA9192fcd515A7DAf29fbe8823a1C3773CFD9663

@NukeManDan
NukeManDan / README.md
Last active Nov 10, 2020
Plasm deploy challenge
View README.md

Contract Deployment on Plasm

LIVE on the Dusty testnet with address:

afAD4ktuW9Dauz8xC3zw5G1h2XTQchP2rVg7TY1LQmY6wqE

See storage.sol for the code deployed.