I hereby claim:
- I am teghnet on github.
- I am teghnet (https://keybase.io/teghnet) on keybase.
- I have a public key ASANxWSZXtSxfHG2fNQoKyjGZTn3UswcyWGV4OtEbTo_ggo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import ( | |
| "crypto/ecdsa" | |
| "crypto/rand" | |
| "fmt" | |
| "log" | |
| "github.com/ethereum/go-ethereum/common" | |
| "github.com/ethereum/go-ethereum/common/hexutil" |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "github.com/defiweb/go-eth/rpc" | |
| "github.com/defiweb/go-eth/rpc/transport" | |
| "github.com/defiweb/go-eth/types" | |
| "github.com/defiweb/go-eth/wallet" |
| // Package state is for implementing a simple state machine. | |
| // In a [tea.Model.Update] method one can use a `case` for a [Transition] message to change the state. | |
| // | |
| // case state.Transition: | |
| // if !msg.Used() { | |
| // m.State = msg.State() | |
| // return m, msg.AsUsed() | |
| // } | |
| package state |
| func must[t any](c t, err error) t { | |
| if err != nil { | |
| log.Fatalln(err) | |
| } | |
| return c | |
| } |
| // This is an example for: | |
| // https://www.tegh.net/2021/12/12/homemade-cli-tools/ | |
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "io" | |
| "log" | |
| "os" |
| package main | |
| import ( | |
| "log" | |
| "sync" | |
| "time" | |
| ) | |
| type SemaphoredWaitGroup struct { | |
| sem chan bool |
| FROM bash | |
| COPY test*.sh ./ | |
| RUN bash test_scenario.sh |