Marco Argentieri
6ce090bf53
add flag --version ( #255 )
...
* client: print version
* arkd: add --version
2024-08-15 03:51:16 +02:00
Marco Argentieri
62ea14ddb5
arkd: support signet ( #251 )
...
* pass MutinyNet parameters
* set signetblocktime=30
* supports signet in client and sdk
* ark: --network help message to support signet
* revert intialPeers set
2024-08-15 02:25:13 +02:00
Marco Argentieri
1b0252f3e4
Migrate to Go Workspaces ( #243 )
...
* api-spec: move the api-spec to root and init go.mod
* go mod tidy
* move buf files in the root as well
* gh action for api-spec changes only
* gh action for api-spec on push and pr
* introduce go.work and remove all replaces
* solve dependencies and force btcd/btcec@v2.3.3
* go work sync
* force btcd/btcec@v2.3.3
* go mod tidy
2024-08-13 03:27:41 +02:00
Marco Argentieri
f0a90c06ee
Move api-spec to root folder ( #242 )
...
* api-spec: move the api-spec to root and init go.mod
* go mod tidy
* move buf files in the root as well
* gh action for api-spec changes only
* gh action for api-spec on push and pr
2024-08-13 00:54:06 +02:00
Marco Argentieri
c559b91fec
pkg/client-sdk/wasm: build wasm ( #238 )
...
Signed-off-by: tiero <3596602+tiero@users.noreply.github.com >
2024-08-12 16:40:27 +02:00
Pietralberto Mazza
72a7f29bab
Add CreatePayment and CompletePayment ( #229 )
...
Co-authored-by: Marco Argentieri <tiero@users.noreply.github.com >
* Add claim command
* Persist pending data in sqlite repo
* Remove debug log
* Return pending data at interface level
* Fix unlocking btc wallet after restart
* Lint & Fix whitelist permissions
* Fix send command for covenant
* Update client/covenantless/claim.go
Signed-off-by: Marco Argentieri <3596602+tiero@users.noreply.github.com >
* Fix
* Pay for min relay fee instead of estimating fees for redeem and unconf forfeit txs
* Add support for pending payments (coventanless)
* Fixes
* Fixes
* Improve verbosity
* Fix coin selection
* Fix
---------
Signed-off-by: Marco Argentieri <3596602+tiero@users.noreply.github.com >
Co-authored-by: louisinger <louis@vulpem.com >
Co-authored-by: Marco Argentieri <tiero@users.noreply.github.com >
Co-authored-by: Marco Argentieri <3596602+tiero@users.noreply.github.com >
2024-08-10 19:18:02 +02:00
Pietralberto Mazza
57ce08f239
Support macaroons and TLS && Add arkd wallet cmds ( #232 )
...
* Update protos
* Update handlers
* Support macaroons and TLS
* Add arkd cli
* Minor fixes
* Update deps
* Fixes
* Update makefile
* Fixes
* Fix
* Fix
* Fix
* Remove trusted onboarding from client
* Completely remove trusted onboarding
* Fix compose files and add --no-macaroon flag to arkd cli
* Lint
* Remove e2e for trusted onboarding
* Add sleep time
2024-08-09 17:59:31 +02:00
Marco Argentieri
ff28f00730
client: Rename flag ark-url into asp-url ( #234 )
2024-08-09 17:08:17 +02:00
Pietralberto Mazza
fb8a127f4f
Update deps ( #223 )
2024-07-31 13:24:31 +02:00
Louis Singer
01297ae38c
Add support for covenant-less ASP ( #214 )
...
* scaffolding wallet
* remove wallet db, add loader instead
* wip
* implement some wallet methods
* signing and utxos
* renaming
* fee estimator
* chain source options
* config
* application service
* clark docker-compose
* CLI refactor
* v0 clark
* v0.1 clark
* fix SignTapscriptInput (btcwallet)
* wallet.Broadcast, send via explora
* fix ASP pubkey
* Use lnd's btcwallet & Add rpc to get wallet staus
* wip
* unilateral exit
* Fixes on watching for notifications and cli init
* handle non-final BIP68 errors
* Fixes
* Fixes
* Fix
* a
* fix onboard cosigners + revert tree validation
* fix covenant e2e tests
* fix covenantless e2e tests
* fix container naming
* fix lint error
* update REAME.md
* Add env var for wallet password
---------
Co-authored-by: altafan <18440657+altafan@users.noreply.github.com >
2024-07-30 20:57:52 +02:00
Pietralberto Mazza
89df461623
Update client sdk ( #207 )
...
* Add bitcoin networks
* Refactor client
* Refactor explorer
* Refactor store
* Refactor wallet
* Refactor sdk client
* Refactor wasm & Update examples
* Move common util funcs to internal/utils
* Move to constants for service types
* Add unit tests
* Parallelize tests
* Lint
* Add job to gh action
* go mod tidy
* Fixes
* Fixes
* Fix compose file
* Fixes
* Fixes after review:
* Drop factory pattern
* Drop password from ark client methods
* Make singlekey wallet manage store and wallet store instead of defining WalletStore as extension of Store
* Move constants to arksdk module
* Drop config and expect directory store and wallet as ark client factory args
* Fix
* Add constants for bitcoin/liquid explorer
* Fix test
* Fix wasm
* Rename client.Client to client.ASPClient
* Rename store.Store to store.ConfigStore
* Rename wallet.Wallet to wallet.WalletService
* Renamings
* Lint
* Fixes
* Move everything to internal/utils & move ComputeVtxoTaprootScript to common
* Go mod tidy
2024-07-30 16:08:23 +02:00
Dusan Sekulic
1f42843a69
Add first version of client SDK ( #193 )
...
* Add gRPC, REST, and gRPC-Web clients for server access
This commit introduces clients for gRPC, REST, and gRPC-Web to access the server.
- gRPC client: Includes additional argument opts ...grpc.CallOption in the interface for future extensibility.
- REST client: Factory function accepts http.Client as an argument to allow user customization.
- gRPC-Web client: Added a Log method for fast debugging in JavaScript.
The decision to use different interfaces for each client type is to accommodate specific features and extensibility requirements for each protocol.
* remove grpc web
* generate rest
* use grpc sdk in CLI
* temp wasm
* ark sdk
* renaming
* pr review refactor
* pr review refactor
* walletStore & configStore
* ark sdk wasm wrapper
* handle event stream with rest
* wip on supporting rest
* store init
* simulate event stream with rest
* fix rest sdk wip
* Fix returning forfeit txs in round event
* wasm first working e2e example
* pr review refactor
* pr review refactor
* pr review refactor
* Fixes
---------
Co-authored-by: altafan <18440657+altafan@users.noreply.github.com >
2024-07-18 16:27:14 +02:00
Louis Singer
329ba555db
Covenant-less TxBuilder ( #178 )
...
* initial commit
* wip
* add bitcointree pkg in common
* add bitcoin txbuilder
* fix BuildPoolTx test
* fix sweeper
* v0 musig2 congestion tree
* bitcointree: add signatures support
* add Makefile in common
* fix lint
* fix go.mod and TxBuilder
* go mod tidy
* rename "pset" --> "psbt"
* add GetSweepInput method in TxBuilder
* fix extractSweepLeaf (bitcoin tx builder)
2024-05-31 12:49:52 +02:00
Louis Singer
b5bac540ef
Use connectors utxos from swept rounds ( #167 )
...
* use connectors utxos from swept rounds
* revert docker-compose.regtest.yml
* add gitignore
* fix integration tests
2024-05-29 14:34:35 +02:00
Louis Singer
dca302df69
Dynamic amount in unroll closure ( #173 )
...
* update UnrollClosure
* update TrustedOnboarding flow + add TrustedOnboarding e2e test
* fix linter: grpc.Dial
* add comment
* integration tests: faucet the ASP with 2 utxos
2024-05-28 12:13:03 +02:00
Louis Singer
f1b83bd522
Add expireAt member in ListVtxo RPC ( #160 )
2024-05-01 16:42:13 +02:00
Louis Singer
3c9da99516
Add --datadir flag ( #152 )
...
* add --datadir flag
* map ENV variable to --datadir flag
* revert version var
2024-05-01 16:14:02 +02:00
Marco Argentieri
30c1df9a66
Improve README ( #157 )
...
* Prepare for default liquid, README and Release GH action
* improve README
2024-04-27 03:22:41 +02:00
Marco Argentieri
9496094443
Prepare for default liquid, README and Release GH action ( #156 )
2024-04-27 03:09:04 +02:00
tiero
4939cdaaa6
client: init network mainnet > liquid
2024-04-26 00:44:23 +02:00
tiero
085fac9372
client: mainnet > liquid
2024-04-25 20:30:31 +02:00
Pietralberto Mazza
7fc8d7d07d
Get current round & Return spent vtxos for user ( #139 )
2024-04-23 16:14:35 +02:00
Louis Singer
740d4fb7b1
Add TrustedOnboarding RPC ( #138 )
...
* add CreateOnboardingAddress rpc
* add TrustedOnboarding rpc
* remove log.Info in notifications.go
2024-04-23 14:54:27 +02:00
Louis Singer
852756eaba
Add integration tests and regtest support ( #128 )
...
* regtest support + integration tests (e2e)
* add integration CI
* add PR trigger on integration CI
* wait for ocean to be unlocked at startup
* integration tests: add tests flags and build docker images at startup
* use nigiri chopsticks-liquid
* fix after reviews
* Update client/init.go
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com >
* do not trigger integration on PR
---------
Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com >
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
2024-04-19 18:57:13 +02:00
Louis Singer
2261aa0699
Add --enable-expiry-coinselect flag in redeem & send cmds ( #131 )
2024-03-27 13:32:58 +01:00
tiero
14cefdf35d
fix: remove whitespace from ark wallet state keys
2024-03-19 13:34:52 +01:00
tiero
c327712fb5
fix: Dockerfile build args and ark-cli > ark for build-all script
2024-03-19 13:19:39 +01:00
Louis Singer
834af545de
Wait for boarding tx confirmation server-side ( #129 )
...
* wait for onboarding confirmation server side
* Update server/internal/core/application/service.go
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com >
* Update server/internal/core/application/service.go
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com >
* handleOnboarding func: sleep 30s if an error happens then retry
---------
Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com >
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
2024-03-08 17:24:47 +01:00
Pietralberto Mazza
fb64bd35d8
Support connectors validation client-side & Minor fixes ( #126 )
...
* Validate connectors client-side when sending offchain
* Minor fixes
* validate connector input in forfeit txs
---------
Co-authored-by: Louis <louis@vulpem.com >
2024-03-05 13:04:32 +01:00
Pietralberto Mazza
6d0d03e316
Cleanup ( #121 )
...
* Cleanup common
* Cleanup client
* Cleanup server
* Renamings
* Tidy up proto
* Update ocean protos
* Fixes
* Fixes
2024-02-28 18:05:03 +01:00
Pietralberto Mazza
1650ea5935
Support onboarding & Drop faucet ( #119 )
...
* Renaming
* Add server-side support for onboarding
* add onboard --amount command
* support client side onboarding
* Drop dummy tx builder
* Drop faucet
* Fixes
* fix public key encoding
* fix schnorr pub key check in validation
* fix server/README to accomodate onboarding
---------
Co-authored-by: Louis <louis@vulpem.com >
Co-authored-by: João Bordalo <bordalix@users.noreply.github.com >
2024-02-23 16:24:00 +01:00
Louis Singer
a95a829b20
Delay unilateral exit and support send to onchain address ( #117 )
...
* add delay on redeem close + forfeit close
* increase default round lifetime (16 minutes min)
* add sequence to final pset
* update CLI and server to support delayed vtxos oncahin
* rename future to "locked"
* add configurable EXIT_DELAY variable
* renaming
* rename "close" --> "closure"
* rename "close" to "closure"
* error message config.go
2024-02-22 16:47:52 +01:00
Pietralberto Mazza
7c8ee7ab12
Give expiration details only when flag is set ( #116 )
2024-02-21 14:47:39 +01:00
Louis Singer
936f9c5f51
Drop useless encoding ( #110 )
...
* drop asec private key encoding
* remove pubkey/relaykey/url encoding in common pkg
* fix pubkey encoding
* remove SecKey
2024-02-20 17:35:11 +01:00
Louis Singer
ffcf08420f
Add built-in cli to docker container ( #114 )
...
* add -faucet flag in scripts/build
* localhost guard on Faucet request
* add ark cli into docker image
* "BUILD_FLAG" => "BUILD_ARGS", "-faucet" => "with-faucet"
* [docker] use alpine:3.14 instead of debian
* Revert changes
* Expose docker volume for embedded wallet datadir
---------
Co-authored-by: altafan <18440657+altafan@users.noreply.github.com >
2024-02-20 17:28:08 +01:00
Louis Singer
b8e0914ba9
[Client] Add vtxo expiration details to balance & Fix coin selection
...
* add expiry details in balance command
* coin selection: sort vtxos by olderFirst
* rename type
* balance: add next expiration
* add next expiration in offchain_balance json
* print duration in nextExpiration
* fix dust coin selection
* refactor sort
2024-02-20 17:10:18 +01:00
Louis Singer
9944a3cc48
[client] Improve coinselection & verbosity ( #104 )
...
* cli logs + handle dust amount
* add wallet initialized
* Update client/common.go
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com >
---------
Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com >
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
2024-02-12 18:02:09 +01:00
João Bordalo
7778b6b5a1
[client] Add command to dump private key ( #101 )
...
* adds dumpPrivKey command
* Update client/dump.go
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
Signed-off-by: João Bordalo <bordalix@users.noreply.github.com >
---------
Signed-off-by: João Bordalo <bordalix@users.noreply.github.com >
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
2024-02-12 14:28:11 +01:00
Pietralberto Mazza
dc00d60585
Rename folders ( #97 )
...
* Rename arkd folder & drop cli
* Rename ark cli folder & update docs
* Update readme
* Fix
* scripts: add build-all
* Add target to build cli for all platforms
* Update build scripts
---------
Co-authored-by: tiero <3596602+tiero@users.noreply.github.com >
2024-02-09 19:32:58 +01:00