mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-18 04:34:19 +01:00
* [common] rework address encoding * new address encoding * replace offchain address by vtxo output key in DB * merge migrations files into init one * fix txbuilder fixtures * fix transaction events * OOR scheme * fix conflicts * [sdk] OOR * update WASM wrappers * revert renaming * revert API changes * update parser.go * fix vtxosToTxsCovenantless * add settled and spent in Utxo and Transaction * Fixes (#5) * Revert unneeded changes and rename claim to settle * Revert changes to wasm and rename claim to settle --------- Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com>
42 lines
746 B
Go
42 lines
746 B
Go
//go:build js && wasm
|
|
// +build js,wasm
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"runtime/debug"
|
|
)
|
|
|
|
var (
|
|
Version = "dev"
|
|
CommitSHA = "unknown"
|
|
BuildTime = "unknown"
|
|
)
|
|
|
|
func init() {
|
|
if info, available := debug.ReadBuildInfo(); available {
|
|
for _, setting := range info.Settings {
|
|
switch setting.Key {
|
|
case "vcs.revision":
|
|
CommitSHA = setting.Value
|
|
case "vcs.time":
|
|
BuildTime = setting.Value
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// PrintBuildInfo prints the build information
|
|
func PrintBuildInfo() {
|
|
fmt.Printf("ARK SDK WebAssembly Module\n")
|
|
fmt.Printf("Version: %s\n", Version)
|
|
fmt.Printf("Commit: %s\n", CommitSHA)
|
|
fmt.Printf("Build Time: %s\n", BuildTime)
|
|
}
|
|
|
|
// GetVersion returns the version string
|
|
func GetVersion() string {
|
|
return Version
|
|
}
|