Louis Singer
0d39bb6b9f
Add integration tests for sweeping rounds ( #339 )
...
* add "block" scheduler type + sweep integration test
* increase timeout in integrationtests
* remove config logs
* rename scheduler package name
* rename package
* rename packages
2024-10-05 16:12:46 +02:00
Pietralberto Mazza
1d40892196
Add auto-unlocker ( #347 )
...
* Add auto-unlocker
* Fixes
2024-10-04 17:08:43 +02:00
Louis Singer
10ef0dbffa
Add reversible policy to pending vtxos ( #311 )
...
* [server] descriptor-based vtxo script
* [server] fix unit tests
* [sdk] descriptor based vtxo
* empty config check & version flag support
* fix: empty config check & version flag support (#309 )
* fix
* [sdk] several fixes
* [sdk][server] several fixes
* [common][sdk] add reversible VtxoScript type, use it in async payment
* [common] improve parser
* [common] fix reversible vtxo parser
* [sdk] remove logs
* fix forfeit map
* remove debug log
* [sdk] do not allow reversible vtxo script in case of self-transfer
* remove signing pubkey
* remove signer public key, craft forfeit txs client side
* go work sync
* fix linter errors
* rename MakeForfeitTxs to BuildForfeitTxs
* fix conflicts
* fix tests
* comment VtxoScript type
* revert ROUND_INTERVAL value
---------
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com >
Co-authored-by: sekulicd <sekula87@gmail.com >
2024-09-19 10:01:33 +02:00
Louis Singer
0fb34cb13d
Dynamic min-relay-fee and dust amount ( #280 )
...
* [btc-embedded] add chainfee.Estimator and extraAPI interfaces
* dynamic fee amount
* dynamic dust amount
* [client] fix linter errors
* [domain] fix unit tests
* [server] return dust amount in GetInfo RPC
* [sdk] fix lnd dependencie
* go work sync
* fix witness stack size forfeit tx size estimator
* remove hardcoded fee values in covenant txbuilder
* lower liquid feerate
* fix after reviews
* go work sync
2024-09-10 17:22:09 +02:00
Louis Singer
4da76ec88b
New boarding protocol ( #279 )
...
* [domain] add reverse boarding inputs in Payment struct
* [tx-builder] support reverse boarding script
* [wallet] add GetTransaction
* [api-spec][application] add reverse boarding support in covenantless
* [config] add reverse boarding config
* [api-spec] add ReverseBoardingAddress RPC
* [domain][application] support empty forfeits txs in EndFinalization events
* [tx-builder] optional connector output in round tx
* [btc-embedded] fix getTx and taproot finalizer
* whitelist ReverseBoardingAddress RPC
* [test] add reverse boarding integration test
* [client] support reverse boarding
* [sdk] support reverse boarding
* [e2e] add sleep time after faucet
* [test] run using bitcoin-core RPC
* [tx-builder] fix GetSweepInput
* [application][tx-builder] support reverse onboarding in covenant
* [cli] support reverse onboarding in covenant CLI
* [test] rework integration tests
* [sdk] remove onchain wallet, replace by onboarding address
* remove old onboarding protocols
* [sdk] Fix RegisterPayment
* [e2e] add more funds to covenant ASP
* [e2e] add sleeping time
* several fixes
* descriptor boarding
* remove boarding delay from info
* [sdk] implement descriptor boarding
* go mod tidy
* fixes and revert error msgs
* move descriptor pkg to common
* add replace in go.mod
* [sdk] fix unit tests
* rename DescriptorInput --> BoardingInput
* genrest in SDK
* remove boarding input from domain
* remove all "reverse boarding"
* rename "onboarding" ==> "boarding"
* remove outdate payment unit test
* use tmpfs docker volument for compose testing files
* several fixes
2024-09-04 19:21:26 +02:00
Marco Argentieri
94cd222004
wallet: bitcoind support with RPC polling ( #254 )
...
* support bitcoind connection
* fix: wallet should be the varibale, not s.wallet
* block cache: up to 2M blocks
* WithBitcoind wait for sync
* WithBitcoind rename
* switch based on the ENV VARs
* Add make targets
2024-08-15 20:02:11 +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
Pietralberto Mazza
1c67c56d9d
Add admin APIs to manage wallet ( #226 )
...
* Add admin rpcs to manage wallet
* Fix
* Fixes
* Add sleeping time
* Increase sleeping time
2024-08-07 00:36:51 +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
e45bff3c70
Sqlite - add sqlc and migration ( #217 )
2024-07-26 02:09:48 +02:00
Louis Singer
bb208ec995
Implements SQLite repositories ( #180 )
...
* add sqlite db
* add .vscode to gitignore
* add vtxo repo
* add sqlite repos implementations
* add sqlite in db/service
* update go.mod
* fix sqlite
* move sqlite tests to service_test.go + fixes
* integration tests using sqlite + properly close statements
* implement GetRoundsIds
* add "tx" table to store forfeits, connectors and congestion trees
* add db max conn = 1
* upsert VTXO + fix onboarding
* remove json tags
* Fixes
* Fix
* fix lint
* fix config.go
* Fix rm config & open db only once
* Update makefile
---------
Co-authored-by: altafan <18440657+altafan@users.noreply.github.com >
2024-06-19 18:16:31 +02:00
Louis Singer
9fc49d9f08
Add AdminService ( #176 )
...
* add admin service
* go mod tidy
* fix linter: grpc.Dial
* fix ocean get balance
* fix linter
* add .vscode to gitignore
* rework admin balance API
* fix mockedwallet in covenantless pkg
* make proto
2024-05-31 15:46:46 +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
a5edd57f14
validate round lifetime before appService call ( #130 )
2024-03-19 13:02:13 +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
bcd66d7ae7
Fixes ( #107 )
2024-02-13 17:38:55 +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