Skip to content

Commit

Permalink
stl: update
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Aug 1, 2024
1 parent 1e90b75 commit d06c627
Show file tree
Hide file tree
Showing 9 changed files with 184 additions and 176 deletions.
4 changes: 2 additions & 2 deletions src/stl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ use crate::{

/// Strict types id for the library providing data types for RGB consensus.
pub const LIB_ID_RGB_COMMIT: &str =
"stl:tjFc6jD7-fe78CxG-WdJlH!l-uXlFfW0-XwG1!qV-MNdtNGE#orbit-airport-voice";
"stl:4WY0kCd1-qKjYuh5-4GgHKme-XIsmv98-W5Z9$8D-vMjFt!Y#miranda-blue-promise";
/// Strict types id for the library providing data types for RGB consensus.
pub const LIB_ID_RGB_LOGIC: &str =
"stl:pxDxFGo9-MbacU6J-Qug1G$1-6LsuROd-Um1H$hU-T6o2Lgk#lobster-dilemma-famous";
"stl:Yd7koRpf-hs7nsKX-TOLAnZl-hIfJ9wQ-M8J58hj-n60RcaA#pioneer-gong-smoke";

fn _rgb_commit_stl() -> Result<TypeLib, CompileError> {
LibBuilder::new(libname!(LIB_NAME_RGB_COMMIT), tiny_bset! {
Expand Down
1 change: 1 addition & 0 deletions stl/AnchoredBundle.vesper
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ TransitionBundle rec
value rec Transition
ffv is U16 aka=Ffv
contractId bytes len=32 aka=ContractId
nonce is U8
transitionType is U16 aka=TransitionType
metadata map len=0..MAX8 aka=Metadata
key is U16 aka=MetaType
Expand Down
264 changes: 132 additions & 132 deletions stl/[email protected]

Large diffs are not rendered by default.

Binary file modified stl/[email protected]
Binary file not shown.
11 changes: 7 additions & 4 deletions stl/[email protected]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-
Id: stl:tjFc6jD7-fe78CxG-WdJlH!l-uXlFfW0-XwG1!qV-MNdtNGE#orbit-airport-voice
Id: stl:4WY0kCd1-qKjYuh5-4GgHKme-XIsmv98-W5Z9$8D-vMjFt!Y#miranda-blue-promise
Name: RGBCommit
Version: 0.1.0
Description: Consensus commitment layer for RGB smart contracts
Expand Down Expand Up @@ -211,9 +211,10 @@ data ContractId : [Byte ^ 32]
@mnemonic(short-noise-postal)
data DataState : [Byte]
@mnemonic(marco-taboo-trade)
@mnemonic(felix-random-mineral)
data Extension : ffv Ffv
, contractId ContractId
, nonce U8
, extensionType ExtensionType
, metadata Metadata
, globals GlobalState
Expand Down Expand Up @@ -308,8 +309,9 @@ data Metadata : {MetaType -> ^ ..0xff MetaValue}
@mnemonic(source-olga-mirage)
data Occurrences : min U16, max U16
@mnemonic(film-sting-tourist)
@mnemonic(chamber-provide-veteran)
data OpCommitment : ffv Ffv
, nonce U8
, opType TypeCommitment
, metadata CommitVerify.StrictHash
, globals CommitVerify.MerkleHash
Expand Down Expand Up @@ -369,9 +371,10 @@ data Schema : ffv Ffv
@mnemonic(ramirez-patron-simon)
data SchemaId : [Byte ^ 32]
@mnemonic(rainbow-program-george)
@mnemonic(abraham-think-brother)
data Transition : ffv Ffv
, contractId ContractId
, nonce U8
, transitionType TransitionType
, metadata Metadata
, globals GlobalState
Expand Down
38 changes: 19 additions & 19 deletions stl/[email protected]
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
-----BEGIN STRICT TYPE LIB-----
Id: stl:pxDxFGo9-MbacU6J-Qug1G$1-6LsuROd-Um1H$hU-T6o2Lgk#lobster-dilemma-famous
Id: stl:Yd7koRpf-hs7nsKX-TOLAnZl-hIfJ9wQ-M8J58hj-n60RcaA#pioneer-gong-smoke
Name: RGBLogic
Dependencies:
BPCore#garbo-radius-peru,
RGBCommit#orbit-airport-voice,
RGBCommit#miranda-blue-promise,
Bitcoin#signal-color-cipher
Check-SHA256: 38e2bb37b8957ba19378fef2e5a4ed01a3c40426fb19d763a30ef216e679caae
Check-SHA256: 6fb771ff6ce021d9af5e52a9614976e810066cc05e2177d98c99947c78139aa5

2vSEvOmAmtV*_s<midRhTh1hu7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ggkPIjuQHS#3Ua|L6d7%qre2Ut&TY<W;?
2~tNwLvL+uX><VqmB{9L9(7`0)Rt93YLV-HLXe?vTA1;^Q1`ZqBog<<1W#~DWCZ{SL}Fu5a&K>D1OfpD
bYXCEWpn@q0RnFxmidRhTh1hu7-!n@1Cr{swqbZoGSd8tmgp<3rE?FqADBNH?W>M^%H|xc>sh|Dn*!v8
^Ea7rh?dzC2n+%RZ*X#DbN~eb0&gCc`G>t*&Lor=XWH@ulIpd#VR%e3()@~+=qs(Ib4O0kT+rxDK6vW;
JU&?LxLM72H?wDC1Zo}=N}D)4mkCE~Z(?C=PjX}i0tIhyPjX}d5^!ZWmqRVqY#fz=E*t7rNLnhuswFP-
RvR}GCb>Ok18HP<00067PjF9iWCQ~M2WMq&WpinB0000131xV6Wo~n6Z*Bkv0|$3$bZ%vHa{=}XBbpbB
LK#dEwxUFHJ){RjtgLvL_X>0rou@Knb#Vo5Z*F5{00035Z*Xa30^w#fkSBGhsMxw5cp3r9ndQi`YyI(V
S@-_~yvW73=9S3idLDIRU(}XWLTZugenOC;Z(5k~zEJnJiX;;E#s3O)a$#<BX>@6CZU6=Y2X|?7Ze??G
0rm?cniq>g8B7tjqC|5&qz6Q-tazCB3Um~mr!r)9aRqK~ZewKt009JVaA{-$;bt_DCv~W(*t#Bg8Uf0g
<;b#Y{qb&D_x}UD$i=tjmB{9L9(7`0)Rt93YLV-HLXe?vTA1;^Q1`ZqBog<<3Rh`#Ze??GPjX}g0{{qN
a${&|c4cG$00036ZE0?0WB>&L0S>>o?Kom?q=ULN^A!11b?H{wM>P}NCm0qyW47Umu>uKnWo~p~bZK^F
0000AS7~%^Wpi^-Z*v9$254nzXJ~W)00aqiX>Db5bYX39002k

-----END STRICT TYPE LIB-----

Binary file modified stl/[email protected]
Binary file not shown.
40 changes: 21 additions & 19 deletions stl/[email protected]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-
Id: stl:pxDxFGo9-MbacU6J-Qug1G$1-6LsuROd-Um1H$hU-T6o2Lgk#lobster-dilemma-famous
Id: stl:Yd7koRpf-hs7nsKX-TOLAnZl-hIfJ9wQ-M8J58hj-n60RcaA#pioneer-gong-smoke
Name: RGBLogic
Version: 0.1.0
Description: Consensus logic layer for RGB smart contracts
Expand All @@ -18,15 +18,13 @@ import BPCore#garbo-radius-peru
use TapretRightBranch#miracle-patriot-touch
use OpretProof#good-village-flex

import RGBCommit#orbit-airport-voice
use XChainTxid#liquid-river-absorb
import RGBCommit#miranda-blue-promise
use OpId#picnic-single-gloria

import Bitcoin#signal-color-cipher
use ScriptBytes#equator-cockpit-gong
use TapNodeHash#paprika-amanda-hunter
use LeafScript#bison-doctor-oscar
use Txid#shallow-light-reverse
use InternalPk#habitat-paprika-oliver
use LeafVer#benefit-carbon-africa
use XOnlyPk#clever-swim-carpet
Expand All @@ -36,20 +34,24 @@ import Bitcoin#signal-color-cipher
data DbcProof : tapret#1 BPCore.TapretProof
| opret BPCore.OpretProof

@mnemonic(fiber-lucas-harmony)
data GlobalOrd : witnessOrd WitnessOrd?
, opid RGBCommit.OpId
, idx U16

@mnemonic(degree-journal-mayor)
data TxOrd : archived ()
| onChain TxPos
| offChain priority U32

@mnemonic(john-invest-weekend)
data TxPos : height U32, timestamp I64

@mnemonic(fish-yoyo-logic)
data WitnessOrd : pubOrd TxOrd, witnessId RGBCommit.XChainTxid
@mnemonic(east-sunset-extra)
data GlobalOrd : opOrd OpOrd, idx U16

@mnemonic(heroic-right-pepper)
data OpOrd : genesis ()
| extension (witness WitnessOrd
, nonce U8
, opid RGBCommit.OpId)
| transition#255 (witness WitnessOrd
, nonce U8
, opid RGBCommit.OpId)

@mnemonic(orange-john-cyclone)
data WitnessOrd : archived ()
| mined WitnessPos
| tentative ()

@mnemonic(snow-local-tonight)
data WitnessPos : height U32, timestamp I64


2 changes: 2 additions & 0 deletions stl/Transition.vesper
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ OpId commitment hasher=SHA256 tagged=urn:lnp-bp:rgb:operation#2024-02-03

OpCommitment rec
ffv is U16 aka=Ffv
nonce is U8
opType union TypeCommitment
genesis rec BaseCommitment wrapped tag=0
flags bytes len=1 aka=ReservedBytes1
Expand Down Expand Up @@ -39,6 +40,7 @@ OpCommitment rec
Transition rec
ffv is U16 aka=Ffv
contractId bytes len=32 aka=ContractId
nonce is U8
transitionType is U16 aka=TransitionType
metadata map len=0..MAX8 aka=Metadata
key is U16 aka=MetaType
Expand Down

0 comments on commit d06c627

Please sign in to comment.