-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add checks for max length of fields in CIP-0108
- Loading branch information
Showing
3 changed files
with
83 additions
and
2 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
66 changes: 66 additions & 0 deletions
66
...test/cardano-api-test/files/input/gov-anchor-data/too-long-title-treasury-withdraw.jsonld
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,66 @@ | ||
{ | ||
"@context": { | ||
"@language": "en-us", | ||
"CIP100": "https://github.com/cardano-foundation/CIPs/blob/master/CIP-0100/README.md#", | ||
"CIP108": "https://github.com/cardano-foundation/CIPs/blob/master/CIP-0108/README.md#", | ||
"hashAlgorithm": "CIP100:hashAlgorithm", | ||
"body": { | ||
"@id": "CIP108:body", | ||
"@context": { | ||
"references": { | ||
"@id": "CIP108:references", | ||
"@container": "@set", | ||
"@context": { | ||
"GovernanceMetadata": "CIP100:GovernanceMetadataReference", | ||
"Other": "CIP100:OtherReference", | ||
"label": "CIP100:reference-label", | ||
"uri": "CIP100:reference-uri", | ||
"referenceHash": { | ||
"@id": "CIP108:referenceHash", | ||
"@context": { | ||
"hashDigest": "CIP108:hashDigest", | ||
"hashAlgorithm": "CIP100:hashAlgorithm" | ||
} | ||
} | ||
} | ||
}, | ||
"title": "CIP108:title", | ||
"abstract": "CIP108:abstract", | ||
"motivation": "CIP108:motivation", | ||
"rationale": "CIP108:rationale" | ||
} | ||
}, | ||
"authors": { | ||
"@id": "CIP100:authors", | ||
"@container": "@set", | ||
"@context": { | ||
"name": "http://xmlns.com/foaf/0.1/name", | ||
"witness": { | ||
"@id": "CIP100:witness", | ||
"@context": { | ||
"witnessAlgorithm": "CIP100:witnessAlgorithm", | ||
"publicKey": "CIP100:publicKey", | ||
"signature": "CIP100:signature" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"hashAlgorithm": "blake2b-256", | ||
"body": { | ||
"title": "Buy Ryan an island that is sunny and full of palm trees and has a lot of sand and is quiet yet not too far away.", | ||
"abstract": "Withdraw 200000000000 ADA from the treasury so Ryan can buy an island.", | ||
"motivation": "The current problem is that Ryan does not have an island, but he would really like an island.", | ||
"rationale": "With these funds from the treasury will be sold for **cold hard cash**, this cash can then be used to purchase an island for Ryan. An example of this island is provided in the references." | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Ryan Williams", | ||
"witness": { | ||
"witnessAlgorithm": "ed25519", | ||
"publicKey": "7ea09a34aebb13c9841c71397b1cabfec5ddf950405293dee496cac2f437480a", | ||
"signature": "a476985b4cc0d457f247797611799a6f6a80fc8cb7ec9dcb5a8223888d0618e30de165f3d869c4a0d9107d8a5b612ad7c5e42441907f5b91796f0d7187d64a01" | ||
} | ||
} | ||
] | ||
} |