-
Notifications
You must be signed in to change notification settings - Fork 54
Arkade Asset Exploration #814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
aruokhai
wants to merge
142
commits into
master
Choose a base branch
from
ark-asset
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 126 commits
Commits
Show all changes
142 commits
Select commit
Hold shift + click to select a range
9a313a3
Implement Asset encoding and decoding with associated types and methods
aruokhai 99e524f
Implement OP_RETURN encoding and decoding for Asset struct
aruokhai 00bceae
Refactor Asset struct and update encoding/decoding for ControlOutput
aruokhai a485da4
Refactor Asset struct to replace ControlOutput with ControlPubkey and…
aruokhai ceaae90
Added Logic to Build Asset Transfer Logic
aruokhai 5be0b54
Merge branch 'master' into ark-asset
altafan bf54472
Implement asset validation logic and enhance error handling in transa…
aruokhai 18bb7ed
Merge remote-tracking branch 'origin/ark-asset' into ark-asset
aruokhai f12610c
fixed asset tlv encoding and decoding
aruokhai c669682
Add unit tests for asset encoding and decoding functions
aruokhai b9fd748
Enhance asset transaction validation with clearer error messages and …
aruokhai 64240be
Merge remote-tracking branch 'origin/master' into ark-asset
aruokhai 7ec66ee
Refactor asset encoding functions to use consistent naming convention…
aruokhai 49b5b61
Add Asset field to Vtxo struct and IsSeal field to Input struct
aruokhai b90c677
Add AssetOutput struct and update RegisterMessage to include AssetOut…
aruokhai 8802830
Implement asset handling in intent processing and transaction building
aruokhai 7b3dfbd
Refactor proof and service layers to use wire.OutPoint for outpoints;…
aruokhai 90085d4
added Teleport Vtxoscript
aruokhai 8f016e0
added asset teleport pubkey
aruokhai f06847b
Enhance asset handling by adding teleport hash and pubkey to Receiver…
aruokhai 25ec9c0
Refactor teleport pubkey comparison and error handling in getOutputVt…
aruokhai 7ec6ffc
Refactor asset transaction validation to ensure proper handling of re…
aruokhai 3ec8cfe
added support for minting and burning
aruokhai b21d6a9
Refactor asset handling to support asset groups; update encoding, dec…
aruokhai 00269b5
Implement asset transaction rebuilding logic; add support for asset g…
aruokhai 69be853
Refactor asset transaction validation and encoding; update control as…
aruokhai 458e572
Enhance control asset handling in BuildAssetTxs; ensure proper identi…
aruokhai 8755d34
Fix control asset handling in BuildAssetTxs; ensure checkpoint inputs…
aruokhai 3f4259f
debugging
aruokhai 2fa69c4
Refactor control asset handling in BuildAssetTxs; improve vtxo search…
aruokhai 30f8e3a
Refactor BuildAssetTxs to derive transaction IDs for control asset in…
aruokhai 6336dbc
Refactor asset handling to replace Txid with Txhash; improve consiste…
aruokhai bf6efd1
Remove unnecessary bytes comparison in buildAssetCheckpointTx; simpli…
aruokhai 1008480
Refactor asset transaction validation and rebuilding; enhance control…
aruokhai e74fa62
implemented storing of asset and its metadata
aruokhai 23cfb48
Refactor BuildAssetTxs to improve control and normal asset handling; …
aruokhai 576fa80
Add unit tests for asset transaction rebuilding
aruokhai 94cfd15
Add asset retrieval method to indexer service
aruokhai b4d1a18
Add asset repository implementations for BadgerDB and Postgress
aruokhai eab7d61
feat: Enhance asset handling in indexer service
aruokhai cc66b36
implemented encoding for immutable asset metadata
aruokhai 0160bbc
feat: Add immutable field to asset model and update related queries
aruokhai bc3a85f
Implement sub-dust key handling in asset group and related transactions
aruokhai afbf1f5
feat: Update EncodeOpret method to accept an amount parameter and adj…
aruokhai 475df2b
Refactors asset decoding to simplify logic and remove batch ID
aruokhai a2d7eba
feat: support multiple control and normal assets in asset group OP_RE…
aruokhai 29b88e2
feat: Update asset inputs to use teleport commitments to checkpoint h…
aruokhai ada7ce9
feat: Introduce TeleportWitness to AssetInput, encapsulating public k…
aruokhai 0202f29
feat: Implement teleport asset storage and simplify teleport asset le…
aruokhai 4575fb2
feat: replace TeleportWitness PublicKey with Script and update commit…
aruokhai 83bc94f
feat: implement `Get` and `Update` for `TeleportAsset` and persist it…
aruokhai 503bffe
feat: Validate teleport asset exists and is not claimed before proces…
aruokhai 0988459
feat: Make Asset.ControlAssetId optional by changing its type to a po…
aruokhai 67a7b17
fix multiasset checkpoint building
aruokhai b1356b5
refactor: Streamline asset validation and storage logic by consolidat…
aruokhai a38298f
fix: prevent updating asset metadata when the provided list is empty
aruokhai b94ba96
feat: add `DeriveAssetGroupFromTx` to extract asset group from transa…
aruokhai a2d3a4e
refactor: Aggregate asset VTXOs for single anchor insertion, adjust r…
aruokhai 290378c
refactor: Decouple asset output processing from output indexes and re…
aruokhai ceb2c42
refactor: remove redundant `AssetAmount` field from `Receiver`, add `…
aruokhai dd3840e
feat: Add teleport hash subscription and event tracking to indexer.
aruokhai 48b0fb6
feat: Add an `immutable` field to the `Asset` message and update its …
aruokhai 6b6f2e4
feat: Include asset ID in asset anchor creation and retrieval operati…
aruokhai 3689fb5
feat: Enhance TeleportEvent structure with asset ID and amount fields…
aruokhai 85253b1
Refactor asset management: rename tables and update queries
aruokhai dd8b49f
feat: Implement duplicate asset output vout checks in asset transacti…
aruokhai 0929702
Align With Protocol spec
aruokhai d85a862
feat: Add control asset existence verification for new issuances in a…
aruokhai 712548a
fix: aligning more to protocol spec, by removing Asset Input hash
aruokhai cae1a90
fix: update function call to BuildAssetTxs for asset transaction reco…
aruokhai 6f211fc
ensure non uniqueness of controlid so as to ensure metadata update
aruokhai 96f2759
fix: change asset output and input types from uint16 to uint32 for pr…
aruokhai 14b735a
refactor: remove TODO comments for asset builder and subdust key in t…
aruokhai fb84ec5
refactor: rename AssetGroup to AssetPacket and update related functions
aruokhai 253aa17
improve validation: check control asset before proceeding
aruokhai f63e8ee
debug: log control asset during validation of normal assets
aruokhai f987328
refactor: replace direct control asset validation with dedicated method
aruokhai 40c1cf0
Merge remote-tracking branch 'origin/master' into ark-asset
aruokhai 0105ccd
lint fix
aruokhai 108941e
refactor: remove unused restoreWatchingVtxos function and clean up im…
aruokhai 3572f46
feat: Add Control Asset ID to Asset Group functionality
aruokhai 3908e05
GetIntentsByTxid scaffolding
bitcoin-coder-bob 6d478ad
refactor: seperate subdust packet from asset packet
aruokhai 38a9a38
refactor: fix Intent to implicitly derive AssetGroup Details from the…
aruokhai b7630a6
refractor: split AssetPacket and SubdustPacket
aruokhai f0b2b4e
store intents with txid, custom migration for sqlite & postgres, badg…
bitcoin-coder-bob 40e700e
add txid to intent in badger addOrUpdateRound
bitcoin-coder-bob ae83eb9
change buf.Dockerfile back
bitcoin-coder-bob 268f178
migration to handle indexes, views, badger fixes
bitcoin-coder-bob 428583a
linting
bitcoin-coder-bob fc536f3
Added extension abstraction for VTXOs and migrated asset data to exte…
aruokhai 0568933
bring in changes from master
bitcoin-coder-bob 8c5e844
context usage fix, badger intent index do not err on error
bitcoin-coder-bob fa2121e
lint check, schema fix on migration
bitcoin-coder-bob a78f19c
remove left join for migration on vtxo_new
bitcoin-coder-bob 8cf98fd
Create index on intent txid in custom migration
bitcoin-coder-bob dee9d59
- Add a uniqueness check for asset input vins during asset transition…
aruokhai 469d492
test dummy values, remove index creation from migration files, assume…
bitcoin-coder-bob 3645815
lint
bitcoin-coder-bob 57081ec
attempt to simplify txid migration for intent table
bitcoin-coder-bob 366cc27
lint
bitcoin-coder-bob a03f7f4
run backfill only when txid column already exists
bitcoin-coder-bob 0b8604a
postgres migration call
bitcoin-coder-bob e9d2091
check txid existence in postgres migration
bitcoin-coder-bob 6f51a74
postgres syntax fix
bitcoin-coder-bob 7fae7fe
remove PrepareContext
bitcoin-coder-bob 4487985
read all rows before updating
bitcoin-coder-bob 8391abb
log
bitcoin-coder-bob 475352c
backfill badger txids in intents
bitcoin-coder-bob 87924e3
Remove badger migration for intent txid
bitcoin-coder-bob f460212
tests for sqlite and postgres migrations
bitcoin-coder-bob 769d26e
linting
bitcoin-coder-bob 8edeaf8
Refactor asset teleport handling and related structures
aruokhai 1bc961c
refactor: update teleport asset structure and related database queries
aruokhai 5531489
refactor: enhance asset validation error handling and metadata integr…
aruokhai 2b83e99
feat: Replace TLV-based asset group encoding/decoding with a custom b…
aruokhai 1df3d19
Comment cleanup
bitcoin-coder-bob db44f15
err handling in backfillIntent
bitcoin-coder-bob 9cfbb83
remove extra txid derivation
bitcoin-coder-bob 27c13e0
test missing intent, fxn for dup migration code, badger intent err ha…
bitcoin-coder-bob ee73a29
err check ordering
bitcoin-coder-bob 79fe6db
unexport fxn, cleanup fxn in test
bitcoin-coder-bob 7278814
fix: add Vtxo extensions to tx event subscription vtxos
aruokhai 76eb292
Merge remote-tracking branch 'origin/bob/GetIntentWithTxid' into ark-…
aruokhai 7403746
refactor: update teleport input validation to use intent proof from r…
aruokhai 2aa9ef9
fix packet out being verified
aruokhai ba1fb42
refactor: streamline teleport asset validation and insertion logic in…
aruokhai 9ba2f87
Merge remote-tracking branch 'origin/master' into ark-asset
aruokhai 49152ab
debugging
aruokhai 4f6b466
refactor: remove unused asset handling logic in getOutputVtxosLeaves …
aruokhai 02cf0a5
refactor: enhance asset forfeit transaction verification and encoding…
aruokhai 6634f65
reintroduce changes
aruokhai 8f6e3d8
Fixes & Renaming
altafan c2952ce
Merge branch 'master' into ark-asset
altafan e7ae434
Drop (un)subscribe for teleport hashes rpcs & Fix permissions
altafan f5d7d8e
Fixes
altafan 88c6f8d
Remove debug log
altafan 10fed22
Lint
altafan ef8111c
Go mod tidy
altafan eb50b11
refactor: rename `AssetId.TxHash` to `Txid`, update `TeleportWitness`…
aruokhai 428056d
fix: Use `input.Witness.Index` instead of `input.Vin` for teleport in…
aruokhai 8d4e7de
Fix
altafan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.