Skip to content

Commit

Permalink
Add attachment and attachment-type in CDDL
Browse files Browse the repository at this point in the history
This update corresponds to Cadence PR 3131:
onflow/cadence#3131

This change does not affect CCF Codec because it 
was already implemented and deployed in the codec.
  • Loading branch information
fxamacker authored Oct 22, 2024
1 parent 6b39848 commit f1702cd
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions ccf_specs.md
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,8 @@ cbor-tag-resource-type = 161
cbor-tag-event-type = 162
cbor-tag-contract-type = 163
cbor-tag-enum-type = 164
; 165-175 are reserved
cbor-tag-attachment-type = 165
; 166-175 are reserved
; interface types
cbor-tag-struct-interface-type = 176
Expand Down Expand Up @@ -711,7 +712,8 @@ cbor-tag-resource-type-value = 209
cbor-tag-event-type-value = 210
cbor-tag-contract-type-value = 211
cbor-tag-enum-type-value = 212
; 213-223 are reserved
cbor-tag-attachment-type-value = 213
; 214-223 are reserved
; interface type values
cbor-tag-struct-interface-type-value = 224
Expand Down Expand Up @@ -739,6 +741,7 @@ composite-typedef = [
/ contract-type
/ event-type
/ enum-type
/ attachment-type
/ struct-interface-type
/ resource-interface-type
/ contract-interface-type
Expand Down Expand Up @@ -790,6 +793,10 @@ enum-type =
; cbor-tag-enum-type
#6.164(composite-type)
attachment-type =
; cbor-tag-attachment-type
#6.165(composite-type)
struct-interface-type =
; cbor-tag-struct-interface-type
#6.176(interface-type)
Expand Down Expand Up @@ -1066,6 +1073,7 @@ type-value = simple-type-value
/ contract-type-value
/ event-type-value
/ enum-type-value
/ attachment-type-value
/ struct-interface-type-value
/ resource-interface-type-value
/ contract-interface-type-value
Expand Down Expand Up @@ -1121,6 +1129,10 @@ enum-type-value =
; cbor-tag-enum-type-value
#6.212(composite-type-value)
attachment-type-value =
; cbor-tag-attachment-type-value
#6.213(composite-type-value)
struct-interface-type-value =
; cbor-tag-struct-interface-type-value
#6.224(composite-type-value)
Expand Down

0 comments on commit f1702cd

Please sign in to comment.