Skip to content

Instantly share code, notes, and snippets.

View asbjornenge's full-sized avatar
Swinging madly across the sun.

Asbjorn Enge asbjornenge

Swinging madly across the sun.
View GitHub Profile
Who % $IDZ Lockup Gradual release
Founders 27 %  2.700.000 3 years 10 months
Advisors 5 %  500.000 3 years 10 months
Incentive pool 50 %  5.000.000 1 month -
Private sale (sold out) 5 %  500.000 3 months 5 months
Public sale 10 %  1.000.000 Liquid -
Initial QuipuSwap liquidity 2,5 %  250.000 Liquid -
Proofdrop 0,5 %  50.000 Liquid -
Parameter Value
When 12.09.2021 14:00 UTC
Presale amount 1.000.000 $IDZ
Total raise goal $ 225.000
Price $ 0,225
Initial price on QuipuSwap $ 0,351
Public sale discount 35,90%
Minimum amount 50 $XTZ
Maximum amount -
Parameter Weight
1x Unverified proof 1
1x Verified proof 4
👆 prior to announcement +2
@asbjornenge
asbjornenge / init-env.sh
Created August 2, 2022 12:18
Init SmartPy virtualenv
#!/bin/bash
rm -Rf bin pyvenv.cfg
wget https://smartpy.io/cli/install.sh
chmod +x install.sh
./install.sh --prefix bin
rm install.sh
virtualenv .
cd bin && ln -sf SmartPy.sh spy && cd ..
@asbjornenge
asbjornenge / types.py
Created August 2, 2022 12:31
ChainBorn Types Example
import smartpy as sp
## Config
#
TGameConfig = sp.TRecord(
paused=sp.TBool,
summon_cost=sp.TMutez,
minimum_loot=sp.TMutez,
hero_health_initial=sp.TNat,
@asbjornenge
asbjornenge / datastore.py
Last active August 2, 2022 15:55
ChainBorn Datastore
import smartpy as sp
import os
cwd = os.getcwd()
Types = sp.io.import_script_from_url("file://%s/types.py" % cwd)
class ChainBornDatastore(sp.Contract):
def __init__(
self,
admins,
@asbjornenge
asbjornenge / controller.py
Created August 2, 2022 19:06
ChainBorn Game Controller
import smartpy as sp
import os
cwd = os.getcwd()
Types = sp.io.import_script_from_url("file://%s/types.py" % cwd)
class ChainBornGame(sp.Contract):
def __init__(
self,
admins,
@asbjornenge
asbjornenge / test.py
Created August 3, 2022 07:26
ChainBorn Tests
import smartpy as sp
import os
cwd = os.getcwd()
Game = sp.io.import_script_from_url("file://%s/controller.py" % cwd)
Data = sp.io.import_script_from_url("file://%s/datastore.py" % cwd)
Types = sp.io.import_script_from_url("file://%s/types.py" % cwd)
Tokens = sp.io.import_script_from_url("file://%s/tokens.py" % cwd)
Randomizer = sp.io.import_script_from_url("https://ipfs.infura.io/ipfs/QmPNkabMCpDmFE6GynfS9UAoQDLE6PyCLpRJQmceEp2oTv")
@asbjornenge
asbjornenge / compile.py
Created August 3, 2022 07:58
ChainBorn Compilation file
import smartpy as sp
import json
import os
from datetime import datetime, timezone
env = os.environ
cwd = os.getcwd()
Data = sp.io.import_script_from_url("file://%s/datastore.py" % cwd)
Game = sp.io.import_script_from_url("file://%s/controller.py" % cwd)
@asbjornenge
asbjornenge / wallet.js
Last active August 3, 2022 09:09
ChainBorn Wallet Connection
import { TezosToolkit } from '@taquito/taquito'
import { BeaconWallet } from '@taquito/beacon-wallet'
const Tezos = new TezosToolkit()
const wallet = new BeaconWallet({ name: "ChainBorn" })
Tezos.setWalletProvider(wallet)
export async function setProvider(rpc) {
Tezos.setProvider({ rpc: rpc})
}