Use dot to separate purpose from validator name in blueprint
The rationale is two folds:
1. It's more consistent with how we already separate the validator
name from its module.
2. Because `_` may be present in Aiken's validator's name, it is hard
to read and I am afraid it could potentially conflict later on. So
it's better to use a separator that cannot appear in validator
names.
This commit is contained in:
@@ -93,7 +93,7 @@
|
||||
]
|
||||
, [ 2
|
||||
, [ 1
|
||||
, h'{{ certificates.purposes_publish.hash }}'
|
||||
, h'{{ certificates.purposes.publish.hash }}'
|
||||
]
|
||||
, h'11111111111111111111111111111111111111111111111111111111'
|
||||
]
|
||||
@@ -109,7 +109,7 @@
|
||||
|
||||
{ 5: [[2, 20, 121([]), [1000000, 100000000]]]
|
||||
|
||||
, 7: [h'{{ certificates.purposes_publish.cbor }}']
|
||||
, 7: [h'{{ certificates.purposes.publish.cbor }}']
|
||||
},
|
||||
|
||||
true,
|
||||
|
||||
@@ -11,15 +11,15 @@
|
||||
, { 0: h'000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
|
||||
, 1:
|
||||
[ 1000000
|
||||
, { h'{{ mint.test_1_mint.hash }}': { h'74756e61': 100000000000000 }
|
||||
, h'{{ mint.test_2_mint.hash }}': { h'61696b656e': 42 }
|
||||
, { h'{{ mint.test_1.mint.hash }}': { h'74756e61': 100000000000000 }
|
||||
, h'{{ mint.test_2.mint.hash }}': { h'61696b656e': 42 }
|
||||
}
|
||||
]
|
||||
}
|
||||
, { 0: h'100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
|
||||
, 1:
|
||||
[ 1000000
|
||||
, { h'{{ mint.test_2_mint.hash }}': { h'63617264616e6f': 1 }
|
||||
, { h'{{ mint.test_2.mint.hash }}': { h'63617264616e6f': 1 }
|
||||
}
|
||||
]
|
||||
, 3: 24(h'82034463666F6F')
|
||||
@@ -29,10 +29,10 @@
|
||||
, 2: 42
|
||||
|
||||
, 9:
|
||||
{ h'{{ mint.test_1_mint.hash }}':
|
||||
{ h'{{ mint.test_1.mint.hash }}':
|
||||
{ h'74756e61': 100000000000000
|
||||
}
|
||||
, h'{{ mint.test_2_mint.hash }}':
|
||||
, h'{{ mint.test_2.mint.hash }}':
|
||||
{ h'63617264616e6f': 1
|
||||
, h'61696b656e': -14
|
||||
}
|
||||
@@ -65,8 +65,8 @@
|
||||
]
|
||||
|
||||
, 7:
|
||||
[ h'{{ mint.test_1_mint.cbor }}'
|
||||
, h'{{ mint.test_2_mint.cbor }}'
|
||||
[ h'{{ mint.test_1.mint.cbor }}'
|
||||
, h'{{ mint.test_2.mint.cbor }}'
|
||||
]
|
||||
|
||||
},
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
, h'F000000000000000000000000000000000000000000000000000000000'
|
||||
, [ 2
|
||||
, { h'E022222222222222222222222222222222222222222222222222222222': 1000000 }
|
||||
, h'{{ proposing_all.guardrails_propose.hash }}'
|
||||
, h'{{ proposing_all.guardrails.propose.hash }}'
|
||||
]
|
||||
, [ "https://aiken-lang.org"
|
||||
, h'0000000000000000000000000000000000000000000000000000000000000000'
|
||||
@@ -112,7 +112,7 @@
|
||||
|
||||
{ 5: [[5, 3, 121([]), [1000000, 100000000]]]
|
||||
|
||||
, 7: [h'{{ proposing_all.guardrails_propose.cbor }}']
|
||||
, 7: [h'{{ proposing_all.guardrails.propose.cbor }}']
|
||||
},
|
||||
|
||||
true,
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
, 32: 20
|
||||
, 33: 30([15, 1])
|
||||
}
|
||||
, h'{{ proposing_pparams.guardrails_propose.hash }}'
|
||||
, h'{{ proposing_pparams.guardrails.propose.hash }}'
|
||||
]
|
||||
, [ "https://aiken-lang.org"
|
||||
, h'0000000000000000000000000000000000000000000000000000000000000000'
|
||||
@@ -73,7 +73,7 @@
|
||||
|
||||
{ 5: [[5, 0, 121([]), [1000000, 100000000]]]
|
||||
|
||||
, 7: [h'{{ proposing_pparams.guardrails_propose.cbor }}']
|
||||
, 7: [h'{{ proposing_pparams.guardrails.propose.cbor }}']
|
||||
},
|
||||
|
||||
true,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[
|
||||
{ 0: h'70{{ simple_spend.simple_spend_spend.hash }}'
|
||||
{ 0: h'70{{ simple_spend.simple_spend.spend.hash }}'
|
||||
, 1: 1000000000
|
||||
, 2: [1, 24(h'd87980')]
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
{ 5: [[0, 0, 121([]), [1000000, 100000000]]]
|
||||
|
||||
, 7: [h'{{ simple_spend.simple_spend_spend.cbor }}']
|
||||
, 7: [h'{{ simple_spend.simple_spend.spend.cbor }}']
|
||||
|
||||
},
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
, [ h'7777777777777777777777777777777777777777777777777777777777777777', 2 ]: [ 2, null ]
|
||||
}
|
||||
|
||||
, [ 3, h'{{ voting.purposes_vote.hash }}' ]:
|
||||
, [ 3, h'{{ voting.purposes.vote.hash }}' ]:
|
||||
{ [ h'9999999999999999999999999999999999999999999999999999999999999999', 3 ]: [ 0, null ]
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
{ [ h'9999999999999999999999999999999999999999999999999999999999999999', 4 ]: [ 1, null ]
|
||||
}
|
||||
|
||||
, [ 1, h'{{ voting.purposes_vote.hash }}' ]:
|
||||
, [ 1, h'{{ voting.purposes.vote.hash }}' ]:
|
||||
{ [ h'9999999999999999999999999999999999999999999999999999999999999999', 1 ]: [ 1, null ]
|
||||
}
|
||||
}
|
||||
@@ -43,7 +43,7 @@
|
||||
, [4, 0, 121([42]), [1000000, 100000000]]
|
||||
]
|
||||
|
||||
, 7: [h'{{ voting.purposes_vote.cbor }}']
|
||||
, 7: [h'{{ voting.purposes.vote.cbor }}']
|
||||
},
|
||||
|
||||
true,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[
|
||||
{ 0: h'30{{ withdraw.thing_spend.hash }}{{ withdraw.thing_spend.hash }}'
|
||||
{ 0: h'30{{ withdraw.thing.spend.hash }}{{ withdraw.thing.spend.hash }}'
|
||||
, 1: 1000000
|
||||
, 2: [1, 24(h'd87980')]
|
||||
, 3: 24(h'8203{{ withdraw.thing_spend.cbor }}')
|
||||
, 3: 24(h'8203{{ withdraw.thing.spend.cbor }}')
|
||||
}
|
||||
]
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
, 5:
|
||||
{ h'E000000000000000000000000000000000000000000000000000000000': 14
|
||||
, h'F0{{ withdraw.thing_withdraw.hash }}': 0
|
||||
, h'F0{{ withdraw.thing.withdraw.hash }}': 0
|
||||
}
|
||||
|
||||
, 14:
|
||||
|
||||
Reference in New Issue
Block a user