Skip to content

Instantly share code, notes, and snippets.

@kaisbaccour
kaisbaccour / hello_world.py
Created April 17, 2020 20:41
Hello World Examples
class HelloWorld:
def __init__(self, name):
self.name = name.capitalize()
def sayHi(self):
print "Hello " + self.name + "!"
hello = HelloWorld("world")
hello.sayHi()
# make snapshot
noisd export > nois-testnet-005.json

CONVERSION_RATE=0.000001 

cat nois-testnet-005.json | \
jq '[.app_state.staking.delegations | group_by(.delegator_address) | map({
@kaisbaccour
kaisbaccour / snapshot_nois_test_005_list.json
Last active April 14, 2023 17:41
used for testing airdrop
[
{
"address": "nois1tfg9ptr84t9zshxxf5lkvrd6ej7gxjh75lztve",
"amount": 4500000
},
{
"address": "nois1l2d805nq2vzfvhha8rh6xldzukvl9rtejh4dta",
"amount": 4400000
},
{
[global]
log_level = 'debug'
[mode]
[mode.clients]
enabled = true
refresh = true
misbehaviour = false
[mode.connections]
enabled = false
[
{
"address": "desmos18vm7uv5dv9yx70jr8kynfpnzsek9k5scctxhl3",
"amount": 7498197
},
{
"address": "desmos1qag6k0tg85p9hyxppfvqlsxfd5eqkceyzu8z3f",
"amount": 5999690
},
{
{
"title":"Set inflation to 20% and add dev and drand allocation funds",
"description":"You can have more details in this article https://scripta.network/@noislabs/fbc9c0dd-317b-4a00-9f9c-bb66e282e93c \n The RandomnessRewardsReceiver and DeveloperRewardsReceiver addresses are multisigs with a threshold of 3 and constituted of 5 members: @simon_warta @kais_kat @jhernandezb_ @nikkolasg1 @LeTurt_ ",
"changes":[
{
"subspace":"mint",
"key":"InflationMax",
"value":"0.20"
},
{
global:
api-listen-addr: :5183
timeout: 10s
memo: Relayerd by go relayer Katarina
light-cache-size: 20
chains:
juno:
type: cosmos
value:
key-directory: /Users/kaarina/.relayer/keys/juno-1
This file has been truncated, but you can view the full file.
[
{
"address": "stars15gp36gk6jvfupy8rc4segppa38lhm3helm5f8k",
"amount": 69795500081474.664
},
{
"address": "stars18c6cw8k8k5wxdd6ksmkyc2yjeceth93lczmrqz",
"amount": 50000849152529.49
},
{
This file has been truncated, but you can view the full file.
[
{
"address": "juno190g5j8aszqhvtg7cprmev8xcxs6csra7xnk3n3",
"amount": 6404876703205.475
},
{
"address": "juno1xk4ylx48ph0axnvq667wrku9rx8e5mlfcldknz",
"amount": 1360820941147.3413
},
{
This file has been truncated, but you can view the full file.
[
{
"address": "juno190g5j8aszqhvtg7cprmev8xcxs6csra7xnk3n3",
"amount": 80000000000
},
{
"address": "juno1xk4ylx48ph0axnvq667wrku9rx8e5mlfcldknz",
"amount": 80000000000
},
{