updated README
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Jul 14 2023
- updated utxos API to return the single entry utxo object directly
- updated utxo response in xecUtxos and slpUtxos
Although having said that, changing prices after launch is meant to be extremely rare.
- deprecated the legacy utxos() function
- the utxosSeparated() function is now refactored as the new utxos() function which interacts with chronik
- the xecUtxos() and slpUtxos() functions now calls upon the refactored utxos() function for chronik interaction
- bumped version to 1.0.0 to reflect breaking change
- updated README
- added isValidAliasPricing in validation.js that checks alias pricing response for keys and value types
- updated error handling for alias price retrieval logic
- aligned error handling in registerAlias
- updated error handling to lock UI with UI notification
- removed redoondant exception check for server unavailability
Jul 13 2023
Removed redundant array size checks
Good point,
- utxosByType now split into separate xecUtxos and slpUtxos functions that leverage the existing utxos API for chronik interaction and specifically returns XEC or SLP utxos.
- Updated utxosSeparated to leverage the existing utxos API as well, returning an object containing XEC and SLP utxo sets.
And further discussion / alignment with Pierre on coin selection algos
Subject to D14257 landing
- Reverted the existing .script().utxos() function to maintain backwards compatibility
- Added a new .script().utxosByType(type) function to only return XEC or SLP UTXOs based on supplied type. Wallets which don't support eTokens can use this to easily retrieve UTXOs to spend without worrying about accidentally burning SLP UTXOs.
- Added a new .script().utxosSeparated() function to return all UTXOs however neatly separated into two separate XEC and SLP UTXO arrays. Cashtab and other eToken compatible wallets can use this to refresh its XEC and SLP utxo sets without additional parsing logic.
- updated README and bumped package.json
- similar to D14247, removed unreachable exception checks
- corrected error handling flow
- updated to retrieve registration prices once on page load and saved in state
- error notification on price retrieval errors on page load, this can be tested by changing const priceResponse = await queryAliasServer('prices', ''); to const priceResponse = await queryAliasServer('prices', 'aaa'); in Alias.js to trigger an exception. Verify the UI error notification and the permanent disabling of the Register button
- removed redundant getAliasRegistrationFee
Updated conditional statements
Jul 12 2023
Removed the duplicated utxo set in the existing utxos array.
Responding to feedback
Updated pre-registration to check for aliasDetails.error
Added aliasDetails.error check
Rebased to D14246
Jul 11 2023
Updated if statement and registration status check
In D14239#318337, @Fabien wrote:OK with the function move, but the registration fees should not be hardcoded in cashtab. A much better strategy is to gather them from the alias server via some endpoint so maintenance happens at a single place and the price is publicly accessible to anybody without having to dig into the spec. It also can be changed much more easily if somebody else decides to build another registration app.
Removed change to aliasPaymentAddress
To be rebased once D14246 lands
Jul 10 2023
rebase
- rebased to use the new queryAliasServer wrapper
- added try/catch blocks for alias-server queries
Jul 9 2023
- rebased to use the new queryAliasServer wrapper
Jul 8 2023
Refactored p2pkh byte count calculation breakdowns and brought it back to fundamentals
- bytecount formula is under review
- updated utxo collection approach to assumes 2 outputs initially and then if change output is not required update the bytecount/txFee using 1 output count
- updated getInputUtxos to return inputs, outputCount and txFee
- updated terminology and naming throughout module
- updated .gitignore
- implemented eslint module to standardize headers
Jul 7 2023
Updated catch block to log the endpoint output on error
rebase/lint
yup, monorepo version has the token api
Consolidated getAliasDetails and getAliasesForAddress into a single alias-server wrapper, passing in the endpoint and query param as inputs. Unit tests updated accordingly.
Jul 6 2023
improved error handling for when alias-server is non-responsive, improved code efficient per feedback
Jul 5 2023
Updated comments and variables as per feedback, added two unit tests for greater than circulating supply and with decimal points
on hold from review until alias-server's avalanche finalization checks in handleBlockConnected() are updated. This is needed to verify that a confirmed alias registration alias is reflected in the Alias.js page
updated per various feedback, added unit test for an XEC amount equal to current circulating supply and updated example to use 1 sat / byte for tx fee calculation
Jul 4 2023
- removed bignumber.js dependency
- XEC to sats conversion moved into separate convertXecToSatoshis() function
- updated contextual comments throughout example
