-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description Various patches for 1.2.0 - [x] Fix for when both key and script was registered with same hash - [x] Fix for drep_script format according to CIP-105, implementation was in conflict with pre-defined roles - [x] Pool stat fix, rollback to previous code until DBSync gets a fix - [x] Replace usage of `view` column with own bech32 utility functions - [x] Utility function for stake_address encoding/decoding - [x] stake_address.view references - [x] Cache data that rely on bech32 format for stake account - [x] Any cache references that rely on stake account in bech32 format - [x] pool_hash.view references - [x] Cache data including bech32 format for pool IDs - [x] Any cache references that rely on pool ID in bech32 format ### Cancelled: - [ ] DRep view references - cancelled due to presence of pre-created roles in dbsync - [ ] multi_asset > fingerprint references - requires addition of blake2b extension, TBC - if/when dbsync retires bech32 - [ ] Truncate (delete from) multi_asset.fingerprint, stake_address.view column and corresponding indexes to save on disk space and background maintenance on Postgres DB => In absence of tx_out.address, the primary benefactor of this would be multi_asset.fingerprint, but that's currently not being handled in this release - Hence, skipped this item accordingly --------- Co-authored-by: rdlrt <3169068+rdlrt@users.noreply.github.com> Co-authored-by: Greg Beresnev <greg.beresnev@yarris.com>
- Loading branch information
1 parent
613ff7b
commit 7c6a243
Showing
63 changed files
with
531 additions
and
406 deletions.
There are no files selected for viewing
This file contains 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
-- CIP References | ||
-- 0005: Common bech32 prefixes https://cips.cardano.org/cip/CIP-0005 | ||
-- 0019: Cardano Addresses https://cips.cardano.org/cip/CIP-0019 | ||
|
||
CREATE OR REPLACE FUNCTION grest.cip5_hex_to_stake_addr(_raw bytea) | ||
RETURNS text | ||
LANGUAGE plpgsql STABLE | ||
AS $$ | ||
BEGIN | ||
IF _raw IS NULL THEN | ||
RETURN NULL; | ||
END IF; | ||
IF SUBSTRING(ENCODE(_raw, 'hex') from 2 for 1) = '0' THEN | ||
RETURN b32_encode('stake_test', _raw::text); | ||
ELSE | ||
RETURN b32_encode('stake', _raw::text); | ||
END IF; | ||
END; | ||
$$; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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 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 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.