Files
ark/pkg/client-sdk/wasm/main.go
Louis Singer bcb2b2075f Add support for Out Of Round txs (#359)
* [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>
2024-10-24 17:43:27 +02:00

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
}