pkg/client-sdk/wasm: build wasm (#238)

Signed-off-by: tiero <3596602+tiero@users.noreply.github.com>
This commit is contained in:
Marco Argentieri
2024-08-12 16:40:27 +02:00
committed by GitHub
parent 72a7f29bab
commit c559b91fec
17 changed files with 273 additions and 44 deletions

View File

@@ -0,0 +1,20 @@
//go:build js && wasm
// +build js,wasm
package main
import (
"github.com/ark-network/ark/pkg/client-sdk/wasm/browser"
)
func main() {
c := make(chan struct{}, 0)
println("ARK SDK WebAssembly module initialized")
browser.InitWrapper()
<-c
}
func init() {
// You can add any additional initialization here if needed
// This runs before the main function
}