Skip to content

test(db-sync): add off-chain voting anchor data#3497

Open
ArturWieczorek wants to merge 1 commit into
masterfrom
artur/offchain-voting-anchor-test-data
Open

test(db-sync): add off-chain voting anchor data#3497
ArturWieczorek wants to merge 1 commit into
masterfrom
artur/offchain-voting-anchor-test-data

Conversation

@ArturWieczorek

Copy link
Copy Markdown
Collaborator

Add the anchor metadata test vectors used by the off-chain voting anchor db-sync tests:

  • governance_action_anchor_cip_100_non_conformant.json: valid JSON that does not conform to CIP-100 (an author is missing its witness).
  • governance_action_anchor_invalid_json.json: content that is not valid JSON.

Committing these first lets their raw URLs be shortened (an on-chain anchor URL is limited to 128 bytes) and referenced from the tests.

Add the anchor metadata test vectors used by the off-chain voting
anchor db-sync tests:

- governance_action_anchor_cip_100_non_conformant.json: valid JSON
  that does not conform to CIP-100 (an author is missing its witness).
- governance_action_anchor_invalid_json.json: content that is not
  valid JSON.

Committing these first lets their raw URLs be shortened (an on-chain
anchor URL is limited to 128 bytes) and referenced from the tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant