mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 12:14:21 +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>
24 lines
422 B
Go
24 lines
422 B
Go
//go:build js && wasm
|
|
// +build js,wasm
|
|
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/ark-network/ark/pkg/client-sdk/wasm/browser"
|
|
)
|
|
|
|
func main() {
|
|
c := make(chan struct{}, 0)
|
|
ctx := context.Background()
|
|
storeSvc := browser.NewLocalStorageStore()
|
|
|
|
if err := browser.NewCovenantlessClient(ctx, storeSvc); err != nil {
|
|
browser.ConsoleError(err)
|
|
return
|
|
}
|
|
println("ARK SDK WebAssembly module initialized")
|
|
<-c
|
|
}
|