Commit 182d978
[ADV-152] BTC implementation (#39)
* feat: first iteration on data model & api
* fix(chains.ts): added btc chain early informations
* feat: implement single get address state
* feat: add address validation & get balance
* feat: add route /addresses/state
* fix: try to fix build by specifying openapi
* fix:try string instead of integer
* fix:turn `pipe(coalesce)` into `transform`
* Update OpenAPI JSON docs
* fix: make multi address state endpoint available
* Update OpenAPI JSON docs
* fix: make address vs origin more explicit in doc
* Update OpenAPI JSON docs
* Update src/app/model/types_WIP.ts
Co-authored-by: Hakim <162046728+hakim-adamik@users.noreply.github.com>
* fix: transaction schema naming and missing fields
* fix: chains
* fix(model/service.ts): remove useless method
* fix: replace state origin by account_id
* fix: renamed account_id to accountId
* Update OpenAPI JSON docs
* fix: MultiRecipientTransaction model definition
* fix:add support for single sender in prevalidation
* feat: fill chain parameters
* fix: non working transactionMethodAdaptator
* Update OpenAPI JSON docs
* fix: code style & error handling
* Implementation of GET addresses and xpub states (#54)
* fully typed xpub parsing supported
* feat: Add unconfirmed balance
* feat:Adds prevalidation and tx broadcast
* fix: zod<->openapi generation issues
* fix: remove useless type guard of multiRecipientTx
* fix: Code style & error handling
* fix: confirmation number for BTC
* [BTC] Tx crafting (#65)
* feat: Adds simple TX crafting
* feat: adds support for useMaxAmount
Additionally:
- improved coinselect types and documentation
- moved validation from zod to BTC service prevalidate as handling of
simple transactions is widely different in BTC
- fixed a potential race condition in transaction encoding
* fix: patch package.lock version
* [BTC] Merge TX_TO_MANY feature to normal TX_NATIVE (#66)
* [adv-279] fix broadcast error on nano (#64)
* fix: attempt signature for legacy
* feat: merge TX_TO_MANY feature to normal TX_NATIVE
- LOTS of code style cleans
- remove all wrappers
- use the new tx schema
- replace usage of `plain` with `data`
- moved transaction mod per chainId preValidation to zod
- removed `PlainTransaction` usage in favor of `Transaction['data']`
- introduce `CompleteTransaction` to differentiate before and after
calling the method `completeTransaction` in the Family Service
new signatures:
- `completeTransaction(Transaction) => CompleteTransaction`
- `validateTransaction(CompleteTransaction)`
- `encodeTransactionToSign(completeTransaction)`
- `encodeTransactionToBroadcast(completeTransaction)`
- change on /addresses/state:
- aggregated all balances together
- use model `AccountState` instead of `AddressState`
- use the fiel `accountId` instead of `address` or `origin`
- removed MultiBalancesService
---------
Co-authored-by: hakim-adamik <hakim@adamik.io>
* revert: plans for pubkey to address
* Update pnpm-lock.yaml
* Minor review fixes
* Last batch of review fixes
* Update OpenAPI JSON docs
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hakim <162046728+hakim-adamik@users.noreply.github.com>
Co-authored-by: hakim-adamik <hakim@adamik.io>1 parent fbd5544 commit 182d978
67 files changed
Lines changed: 4090 additions & 1587 deletions
File tree
- patches
- public
- src/app
- api
- account
- history
- state
- addresses/state
- address
- encode
- state
- validate
- chains
- [chainId]
- token/[tokenId]
- validators
- transaction
- broadcast
- encode
- validate
- config
- families
- algorand
- service
- bitcoin
- backend
- service
- cosmos
- service
- evm
- service
- model
- tools/openapi
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
37 | | - | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
53 | 61 | | |
54 | | - | |
| 62 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments