Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

CIP-0116? | Universal JSON Encoding for Domain Types #766

Merged
merged 64 commits into from
May 14, 2024
Merged
Changes from 1 commit
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
cd585c9
JSON-spec: add specs for numeric types
klntsky Jan 26, 2024
88fc4c9
Add Address types and PlutusData
klntsky Jan 26, 2024
345d3cf
Re-implement PlutusData via oneOf
klntsky Jan 26, 2024
b2be44f
Switch to `tag`/`value`-based encoding of PlutusData for ease of prog…
klntsky Jan 29, 2024
b4e91ab
Add schema for TransactionOutput subtypes
klntsky Jan 29, 2024
55a6644
Add TransactionMetadatum
klntsky Jan 29, 2024
9c48c2e
More types
klntsky Jan 30, 2024
55348c6
Rename cardano.json to cardano-babbage.json
klntsky Feb 19, 2024
6da3763
Add NativeScript, Update, TransactionBody
klntsky Feb 20, 2024
a72e822
- Fix: requiredProperties -> required
klntsky Feb 21, 2024
088b881
Use `format` instead of `contentEncoding`
klntsky Feb 21, 2024
88ce339
Fix `pattern` for ByteString - it can be empty
klntsky Feb 21, 2024
13ec4cf
Add a README, rename the schema file
klntsky Feb 21, 2024
746debe
Apply suggestions from code review by Ryun1
klntsky Feb 22, 2024
06cf021
Fix header layout
klntsky Feb 22, 2024
f01e7e7
Remove a dead link
klntsky Feb 22, 2024
b259b4d
Expand "Limitations", add info on encoding of binary types
klntsky Feb 22, 2024
96acbaa
Fix RewardAddress prefix
klntsky Feb 22, 2024
b1bc4a1
Add note on uniqueness of encoding & move scope of the schema section
klntsky Feb 23, 2024
07db939
Add TransactionMetadata, AuxiliaryData and Transaction types
klntsky Feb 23, 2024
cfd5c58
Typo: requiredProperties -> required
klntsky Feb 23, 2024
6fc9917
Use uniform names for numeric types
klntsky Feb 23, 2024
02ec737
Complete the definitions + fixes
klntsky Feb 28, 2024
4062971
Fix PlutusScript, add titles everywhere
klntsky Feb 28, 2024
b6aaea7
Add a note on AuxiliaryData
klntsky Feb 28, 2024
ea31486
fix bracket mismatch in code sample
rphair Mar 7, 2024
f0d2f63
setting candidate CIP number to 116
rphair Mar 7, 2024
d90f1fb
Fix suggested by Evgeny: Use BigInt in PlutusData
klntsky Mar 21, 2024
ed7c56d
Fix suggested by Evgeny
klntsky Mar 21, 2024
c8b5301
Apply suggestions + fixes
klntsky Apr 10, 2024
1498dd1
Assign a number
klntsky Apr 10, 2024
4ab4608
Fix Mint type. Update docs for `Map` type schema.
klntsky Apr 11, 2024
e22fbb4
Add a link to the repo with tests
klntsky Apr 18, 2024
ec684bc
small tidy
Ryun1 Mar 6, 2024
08e8fee
fix header link
Ryun1 Mar 6, 2024
280fd5f
added changelog template
Ryun1 Mar 7, 2024
f127bf9
add notes to rationale
Ryun1 Mar 7, 2024
b72870c
editorial adjustments
Ryun1 Apr 18, 2024
26e7a36
flesh out rationale
Ryun1 Apr 18, 2024
ff1a9d6
Merge branch 'klntsky/json-spec-cip' into ryun1/json-spec-cip-worksho…
Ryun1 Apr 18, 2024
bfdc224
fix typo
Ryun1 Apr 18, 2024
0c18016
Update CIP-0116/README.md
Ryun1 Apr 19, 2024
1c93732
Update CIP-0116/README.md
Ryun1 Apr 19, 2024
e2ddb40
Update CIP-0116/README.md
Ryun1 Apr 19, 2024
865f4ef
Update CIP-0116/README.md
Ryun1 Apr 19, 2024
3960d0c
adjust scope rationale
Ryun1 Apr 19, 2024
7ce52f4
Update CIP-0116/README.md
Ryun1 Apr 19, 2024
08e9ebb
Update cardano-babbage.json
klntsky Apr 25, 2024
4b042df
Format
klntsky Apr 25, 2024
caadc7c
Fix incorrectly specified required field
klntsky Apr 25, 2024
987aa28
Fix incorrectly specified required Mint properties
klntsky Apr 25, 2024
144e049
Add missing Array wrapper for Mint assets
klntsky Apr 25, 2024
eab98df
Add new formats
klntsky Apr 26, 2024
cdc6b6b
Specify length for BootstrapWitness chain_code
klntsky Apr 26, 2024
16c9e4d
Move PoolMetadataHash to a separate type
klntsky Apr 29, 2024
c081411
Specify VRFCert proof length
klntsky Apr 29, 2024
89736cf
Remove legacy HeaderLeaderCert
klntsky Apr 29, 2024
cc391f2
Inline AuxiliaryDataSet type
klntsky Apr 29, 2024
820350b
Update 'Path to active'
klntsky Apr 29, 2024
86d9692
Merge branch 'klntsky/json-spec-cip' into ryun1/json-spec-cip-worksho…
Ryun1 May 3, 2024
71593aa
Update CIP-0116/README.md
Ryun1 May 3, 2024
d11978a
Add myself to implementors
klntsky May 3, 2024
15fc23a
Use PoolPubKeyHash instead of Ed25519KeyHash in stake delegation cert
klntsky May 3, 2024
ac0ad54
Merge pull request #3 from Ryun1/ryun1/json-spec-cip-workshop-feedback
klntsky May 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Switch to tag/value-based encoding of PlutusData for ease of prog…
…rammatic processing
  • Loading branch information
klntsky committed Jan 29, 2024
commit b2be44f52a032c2a3c179912de6ac6d53a7b7e7d
44 changes: 37 additions & 7 deletions CIP-XXXX/schema.json
Original file line number Diff line number Diff line change
@@ -85,14 +85,32 @@
"oneOf": [
{
"title": "PlutusDataList",
"type": "array",
"items": {
"$ref": "cardano.json#/definitions/PlutusData"
"type": "object",
"properties": {
"tag": {
"type": "string",
"enum": [
"list"
]
},
"contents": {
"type": "array",
"items": {
"$ref": "cardano.json#/definitions/PlutusData"
}
}
}
},
{
"title": "PlutusDataConstr",
"type": "object",
"properties": {
"tag": {
"type": "string",
"enum": [
"constr"
]
},
"alternative": {
"$ref": "cardano.json#/definitions/BigNum"
},
@@ -114,7 +132,7 @@
"map"
]
},
"value": {
"contents": {
"type": "array",
"items": {
"type": "object",
@@ -131,6 +149,7 @@
}
},
{
"title": "PlutusDataInteger",
"type": "object",
"properties": {
"tag": {
@@ -146,9 +165,20 @@
},
{
"title": "PlutusDataBytes",
"type": "string",
"contentEncoding": "hex",
"pattern": "^([0-9a-f][0-9a-f])*$"
"type": "object",
"properties": {
"tag": {
"type": "string",
"enum": [
"bytes"
]
},
"value": {
"type": "string",
"contentEncoding": "hex",
"pattern": "^([0-9a-f][0-9a-f])*$"
}
}
}
]
}