Louis Singer
024b0b8402
Hotifx: do not return locked connector utxos ( #186 )
2024-06-21 18:42:20 +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
Marco Argentieri
584131764f
Create LICENSE
...
Signed-off-by: Marco Argentieri <3596602+tiero@users.noreply.github.com >
2024-06-03 19:29:56 +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
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
2dae630daf
Trigger integration tests on PR ( #174 )
2024-05-23 17:54:00 +02:00
Louis Singer
a6e0b6f408
Fix badger repo SweepVtxo API ( #172 )
2024-05-23 14:43:30 +02:00
Luke
5f2e1ed31e
nit: Update README.md ( #169 )
...
Signed-off-by: Luke <u32luke@gmail.com >
2024-05-06 17:24:28 -05:00
Louis Singer
34aff2c4c3
ListVtxos rpc: return swept vtxos ( #168 )
2024-05-06 11:09:11 -05:00
Marco Argentieri
a3eb64c94c
improve README instructions ( #166 )
2024-05-02 23:32:52 -05:00
José A.P
166b4c99ad
Fix readme to use testnet for ark init ( #165 )
...
* Fix readme to use testnet for ark init
Signed-off-by: José A.P <53834183+Jossec101@users.noreply.github.com >
* Added to ark2 network param
Signed-off-by: José A.P <53834183+Jossec101@users.noreply.github.com >
---------
Signed-off-by: José A.P <53834183+Jossec101@users.noreply.github.com >
2024-05-02 23:27:01 -05:00
Justin Moon
06803ec7e9
fix: add -it flag to ark alias in README ( #164 )
2024-05-02 18:55:33 -05:00
Louis Singer
f1b83bd522
Add expireAt member in ListVtxo RPC ( #160 )
2024-05-01 16:42:13 +02:00
Louis Singer
02ff7c7ed9
Add roundInterval, network and minRelayFee to GetInfo RPC ( #159 )
2024-05-01 16:15:29 +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
tiero
9e42c7f9f9
config: update defaults
2024-04-30 22:34:36 -05:00
tiero
6cb79b6968
gh action: use -arm64
2024-04-30 17:51:28 -05:00
Louis Singer
85693e9e9a
update README.md ( #158 )
2024-04-30 17:45:37 -05:00
João Bordalo
caa6c51e3c
Merge pull request #162 from louisinger/addspentpoolid
...
add `spentBy` member in ListVtxos response
2024-04-30 16:48:55 +01:00
Louis Singer
3597594fe7
add spentBy member in ListVtxos
2024-04-30 17:46:12 +02:00
Louis Singer
dc64947d28
returns forfeitsTxs in Ping RPC while the finalization started ( #161 )
2024-04-29 18:58:11 +02:00
tiero
4ef35c8d26
improve README
2024-04-27 04:11:27 +02:00
tiero
ec3692e12d
gh action: permissions
2024-04-27 03:51:20 +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
Marco Argentieri
6608b2cc9a
ARK_NETWORK=liquid ( #140 )
...
* Update config.go
Signed-off-by: Marco Argentieri <3596602+tiero@users.noreply.github.com >
* common: mainnet > liquid
---------
Signed-off-by: Marco Argentieri <3596602+tiero@users.noreply.github.com >
2024-04-25 20:27:50 +02:00
Marco Argentieri
7c43152a8f
use another GOPROXY
...
Signed-off-by: Marco Argentieri <3596602+tiero@users.noreply.github.com >
2024-04-25 20:15:16 +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
7a58d97a34
check io.Copy errors in test/e2e/utils.go ( #136 )
2024-04-19 19:48:57 +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
Pietralberto Mazza
f9e7621165
Add grpc-gateway and /healthz endpoint ( #133 )
...
* Add grpc-gateway and /healthz endpoint
* Add nolint
* nosec
2024-04-19 17:11:59 +02:00
João Bordalo
f135869928
fix client binary name on server/README ( #134 )
2024-04-19 17:07:18 +02:00
Louis Singer
127c7a07de
Fix ValidateConnectors ( #132 )
...
* connector validation fix
* better fix
2024-03-27 17:36:04 +01: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
a5edd57f14
validate round lifetime before appService call ( #130 )
2024-03-19 13:02:13 +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
tiero
767935407d
Remove Website from monorepo
2024-03-05 14:25:53 +01:00
João Bordalo
a8f3039e69
Add gh/download links & Update roadmap ( #109 )
...
* adds homepage (wip)
* fix footer links
* update nomenclature link on blog post
* small fixes and markdown format
* link fix
* make all docs links relative
* fix vtxo links
* fix errors with Safari
* improves arm detection
* fix bottom color
* update roadmap
* adds faucet instructions
* change ark-cli instructions to accomodate PR 117
* instructions fixes to accomodate onboarding; ui improvements
2024-03-05 14:06:31 +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
Louis Singer
066e8eeabb
Prevent getting cheated by broadcasting forfeit transactions ( #123 )
...
* broadcast forfeit transaction in case the user is trying the cheat the ASP
* fix connector input + --cheat flag in CLI
* WIP
* cleaning and fixes
* add TODO
* sweeper.go: mark round swept if vtxo are redeemed
* fixes after reviews
* revert "--cheat" flag in client
* revert redeem.go
* optimization
* update account.go according to ocean ListUtxos new spec
* WaitForSync implementation
* ocean-wallet/service.go: remove go rountine while writing to notification channel
2024-03-04 13:58:36 +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