Skip to content

Instantly share code, notes, and snippets.

View kidinamoto01's full-sized avatar

suyuhuang kidinamoto01

  • bianjie.ai
  • shanghai,china
View GitHub Profile
@kidinamoto01
kidinamoto01 / main.go
Created February 25, 2019 02:20
transform
package transform
import (
"github.com/spf13/cobra"
"github.com/tendermint/go-amino"
"github.com/irisnet/irishub/codec"
"github.com/irisnet/irishub/app"
"github.com/irisnet/irishub/server"
"github.com/spf13/viper"
frequency=3
chain="fuxi-7000"
IP="35.240.175.204"
NameFrom = "jan"
AddrFrom = "faa1vrk67ykn3zcpw34ypchuqwfqxy2v6st970cg50"
NameTo = "feb"
jq ".[].voter" response_1546671895758.json
iristool debug addr faa1yclscskdtqu9rgufgws293wxp3njsesxtplqxd | grep Val| cut -d ':' -f 2
fva1yclscskdtqu9rgufgws293wxp3njsesx7s40m2
#!/bin/bash
file=$(echo /Users/suyu/Downloads/response_1546671895758.json)
frequency=3
chain="fuxi-7000"
IP="104.198.127.16"
NameFrom = "fuxi"
AddrFrom = "faa106nhdckyf996q69v3qdxwe6y7408pvyvufy0x2"
NameTo = "abc"
#!/bin/bash
echo What\'s the gentx directory?
read dir
iris init --home="$dir" --chain-id=fuxi-6000
for filename in "$dir"/config/gentx/*.json; do
echo "$filename"
@kidinamoto01
kidinamoto01 / bash.sh
Last active December 28, 2018 08:24
verifier.bash
#!/bin/bash
echo What\'s the gentx directory?
read dir
file="/Users/suyu/Downloads/test/output.txt"
log="$dir"/basecoind.log
if [ -f "$file" ]
then
FROM ubuntu
ADD irislcd /usr/local/bin/irislcd
EXPOSE 1317
EXPOSE 26657
ENTRYPOINT ["irislcd"]
#!/bin/bash
current_proposal=$(gaiacli gov query-proposals --status VotingPeriod | tail -n 1 | cut -d'-' -f1)
known_proposal=$current_proposal
while true
do
current_proposal=$(gaiacli gov query-proposals --status VotingPeriod | tail -n 1 | cut -d'-' -f1)
if [ "$current_proposal" != "$known_proposal" ]
then
@kidinamoto01
kidinamoto01 / genesis.json
Created July 31, 2018 01:38
genesis file for fuxi-1002
{
"validators": [
{
"pub_key": {
"type": "AC26791624DE60",
"value": "MHvOGQTGlMQB0ZbDRhqH7Ty6Xbf8kONX9cLhkOHSlDM="
},
"power": 100,
"name": ""
},

Keybase proof

I hereby claim:

  • I am kidinamoto01 on github.
  • I am suyuuu (https://keybase.io/suyuuu) on keybase.
  • I have a public key ASBKddgiCVFcSrXk3ZzIn62otVNnUY9YjH0qF_OLoymuQgo

To claim this, I am signing this object: