-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'validate-acceptances' of https://github.com/mrnaveira/tari
- Loading branch information
Showing
35 changed files
with
365 additions
and
103 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<dl> | ||
<dt>Abandoned interval</dt><dd>{{abandoned_interval}}</dd> | ||
<dt>Minimum quorum required</dt><dd>{{minimum_quorum_required}}</dd> | ||
</dl> |
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,5 @@ | ||
<dl> | ||
<dt>Public nonce commitment</dt><dd>{{hex public_nonce_commitment}}</dd> | ||
<dt>Signature u</dt><dd>{{hex signature_u}}</dd> | ||
<dt>Signature v</dt><dd>{{hex signature_v}}</dd> | ||
</dl> |
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,6 @@ | ||
<dl> | ||
<dt>Members</dt> | ||
{{#each this.members as |member|}} | ||
<dd>{{hex member}}</dd> | ||
{{/each}} | ||
</dl> |
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,6 @@ | ||
<dl> | ||
<dt>Signatures</dt> | ||
{{#each signatures as |signature|}} | ||
<dd>{{>Signature signature}}</dd> | ||
{{/each}} | ||
</dl> |
7 changes: 7 additions & 0 deletions
7
applications/tari_explorer/partials/ConstitutionChangeRules.hbs
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,7 @@ | ||
<dl> | ||
<dt>Change flags</dt><dd>{{change_flags}}</dd> | ||
{{#if requirements_for_constitution_change}} | ||
<dt>Requirements for constitution change</dt> | ||
<dd>{{>RequirementsForConstitutionChange requirements_for_constitution_change}}</dd> | ||
{{/if}} | ||
</dl> |
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,7 @@ | ||
<dl> | ||
<dt>Validator node public key</dt><dd>{{hex validator_node_public_key}}</dd> | ||
{{#if signature}} | ||
<dt>Signature</dt> | ||
<dd>{{>Signature signature}}</dd> | ||
{{/if}} | ||
</dl> |
4 changes: 4 additions & 0 deletions
4
applications/tari_explorer/partials/ContractAcceptanceRequirements.hbs
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,4 @@ | ||
<dl> | ||
<dt>Acceptance period expiry</dt><dd>{{acceptance_period_expiry}}</dd> | ||
<dt>Minimum quorum required</dt><dd>{{minimum_quorum_required}}</dd> | ||
</dl> |
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,16 @@ | ||
<dl> | ||
<dt>Proposal id</dt><dd>{{proposal_id}}</dd> | ||
{{#if validator_committee}} | ||
<dt>Validator committee</dt> | ||
{{>CommitteeMembers validator_committee}} | ||
{{/if}} | ||
{{#if validator_signatures}} | ||
<dt>Validator signatures</dt> | ||
{{>CommitteeSignatures validator_signatures}} | ||
{{/if}} | ||
{{#if updated_constitution}} | ||
<dt>Updated constitution</dt> | ||
<dd>{{>ContractConstitution updated_constitution}}</dd> | ||
{{/if}} | ||
<dt>Activation window</dt><dd>{{activation_window}}</dd> | ||
</dl> |
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,4 @@ | ||
<dl> | ||
<dt>Merkle root</dt><dd>{{hex merkle_root}}</dd> | ||
<dt>Signatures</dt><dd>{{>CommitteeSignatures signatures}}</dd> | ||
</dl> |
18 changes: 18 additions & 0 deletions
18
applications/tari_explorer/partials/ContractConstitution.hbs
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,18 @@ | ||
<dl> | ||
<dt>Validator committee</dt> | ||
<dd>{{>CommitteeMembers validator_committee}}</dd> | ||
{{#if acceptance_requirements}} | ||
<dt>Acceptance requirements</dt> | ||
<dd>{{>ContractAcceptanceRequirements acceptance_requirements}}</dd> | ||
{{/if}} | ||
<dt>Consensus</dt><dd>{{consensus}}</dd> | ||
{{#if checkpoint_params}} | ||
<dt>Checkpoint params</dt> | ||
<dd>{{>CheckpointParameters checkpoint_params}}</dd> | ||
{{/if}} | ||
{{#if constitution_change_rules}} | ||
<dt>Constitution change rules</dt> | ||
<dd>{{>ConstitutionChangeRules constitution_change_rules}}</dd> | ||
{{/if}} | ||
<dt>Initial reward</dt><dd>{{initial_reward}}</dd> | ||
</dl> |
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,5 @@ | ||
<dl> | ||
<dt>Contract name</dt><dd>{{contract_name}}</dd> | ||
<dt>Contract issuer</dt><dd>{{hex contract_issuer}}</dd> | ||
<dt>Contract spec</dt><dd>{{>ContractSpecification contract_spec}}</dd> | ||
</dl> |
9 changes: 9 additions & 0 deletions
9
applications/tari_explorer/partials/ContractSpecification.hbs
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,9 @@ | ||
<dl> | ||
<dt>runtime</dt><dd>{{runtime}}</dd> | ||
{{#if public_functions.length}} | ||
<dt>Public functions</dt> | ||
{{#each public_functions as |public_function|}} | ||
<dd>{{>PublicFunction public_function}}</dd> | ||
{{/each}} | ||
{{/if}} | ||
</dl> |
11 changes: 11 additions & 0 deletions
11
applications/tari_explorer/partials/ContractUpdateProposal.hbs
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,11 @@ | ||
<dl> | ||
<dt>Proposal id</dt><dd>{{proposal_id}}</dd> | ||
{{#if signature}} | ||
<dt>Signature</dt> | ||
<dd>{{>Signature signature}}</dd> | ||
{{/if}} | ||
{{#if updated_constitution}} | ||
<dt>Updated constitution</dt> | ||
<dd>{{>ContractConstitution updated_constitution}}</dd> | ||
{{/if}} | ||
</dl> |
8 changes: 8 additions & 0 deletions
8
applications/tari_explorer/partials/ContractUpdateProposalAcceptance.hbs
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,8 @@ | ||
<dl> | ||
<dt>Proposal id</dt><dd>{{proposal_id}}</dd> | ||
<dt>Validator node public key</dt><dd>{{hex validator_node_public_key}}</dd> | ||
{{#if signature}} | ||
<dt>Signature</dt> | ||
<dd>{{>Signature signature}}</dd> | ||
{{/if}} | ||
</dl> |
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,4 @@ | ||
<dl> | ||
<dt>Template id</dt><dd>{{hex template_id}}</dd> | ||
<dt>Function id</dt><dd>{{function_id}}</dd> | ||
</dl> |
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,39 @@ | ||
{{#*inline 1}} | ||
Coinbase | ||
{{/inline}} | ||
{{#*inline 2}} | ||
Contract definition | ||
{{/inline}} | ||
{{#*inline 3}} | ||
Contract constitution | ||
{{/inline}} | ||
{{#*inline 4}} | ||
Contract validator acceptance | ||
{{/inline}} | ||
{{#*inline 5}} | ||
Contract checkpoint | ||
{{/inline}} | ||
{{#*inline 6}} | ||
Contract constitution proposal | ||
{{/inline}} | ||
{{#*inline 7}} | ||
Contract constitution change acceptance | ||
{{/inline}} | ||
<dl> | ||
<dt>Version</dt><dd>{{version}}</dd> | ||
<dt>Output Type</dt> | ||
<dd> | ||
{{#> (lookup . 'output_type')}} | ||
{{!-- Lookup to output_type 0 will evaluate as undefined, so there can't be inline partial for 0 as is for the rest above--}} | ||
Standard | ||
{{/undefined}} | ||
</dd> | ||
<dt>Maturity</dt><dd>{{maturity}}</dd> | ||
{{#if metadata.length}}<dt>Metadata</dt><dd>{{json metadata}}</dd>{{/if}} | ||
<dt>Recovery byte</dt><dd>{{recovery_byte}}</dd> | ||
{{#if sidechain_features}} | ||
<dt>Sidechain Features</dt> | ||
{{>SideChainFeatures sidechain_features}} | ||
{{/if}} | ||
{{#if unique_id.length}}<dt>Unique id</dt><dd>{{hex unique_id}}</dd>{{/if}} | ||
</dl> |
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,4 @@ | ||
<dl> | ||
<dt>Name</dt><dd>{{name}}</dd> | ||
<dt>Function</dt><dd>{{>FunctionRef function}}</dd> | ||
</dl> |
6 changes: 6 additions & 0 deletions
6
applications/tari_explorer/partials/RequirementsForConstitutionChange.hbs
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,6 @@ | ||
<dl> | ||
<dt>Minimum constitution committee signatures</dt> | ||
<dd>{{minimum_constitution_committee_signatures}}</dd> | ||
<dt>Constitution committee</dt> | ||
<dd>{{>CommitteeMembers constitution_committee}}</dd> | ||
</dl> |
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,33 @@ | ||
<dd> | ||
<dl> | ||
<dt>Contract id</dt><dd>{{hex contract_id}}</dd> | ||
{{#if definition}} | ||
<dt>Definition</dt> | ||
<dd>{{>ContractDefinition definition}}</dd> | ||
{{/if}} | ||
{{#if constitution}} | ||
<dt>Constitution</dt> | ||
<dd>{{>ContractConstitution constitution}}</dd> | ||
{{/if}} | ||
{{#if acceptance}} | ||
<dt>Acceptance</dt> | ||
<dd>{{>ContractAcceptance acceptance}}</dd> | ||
{{/if}} | ||
{{#if update_proposal}} | ||
<dt>Update proposal</dt> | ||
<dd>{{>ContractUpdateProposal update_proposal}}</dd> | ||
{{/if}} | ||
{{#if update_proposal_acceptance}} | ||
<dt>Update proposal acceptance</dt> | ||
<dd>{{>ContractUpdateProposalAcceptance update_proposal_acceptance}}</dd> | ||
{{/if}} | ||
{{#if amendment}} | ||
<dt>amendment</dt> | ||
<dd>{{>ContractAmendment amendment}}</dd> | ||
{{/if}} | ||
{{#if checkpoint}} | ||
<dt>Checkpoint</dt> | ||
<dd>{{>ContractCheckpoint checkpoint}}</dd> | ||
{{/if}} | ||
</dl> | ||
</dd> |
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,4 @@ | ||
<dl> | ||
<dt>Public nonce</dt><dd>{{hex public_nonce}}</dd> | ||
<dt>Signature</dt><dd>{{hex signature}}</dd> | ||
</dl> |
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,13 @@ | ||
<dl> | ||
<dt>Features</dt><dd>{{>OutputFeatures features}}</dd> | ||
<dt>Commitment</dt><dd>{{hex commitment}}</dd> | ||
<dt>Hash</dt><dd>{{hex hash}}</dd> | ||
<dt>Script</dt><dd>{{hex script}}</dd> | ||
<dt>Input data</dt><dd>{{hex input_data}}</dd> | ||
<dt>Script signature</dt><dd>{{>ComSignature script_signature}}</dd> | ||
<dt>Sender offset public key</dt><dd>{{hex sender_offset_public_key}}</dd> | ||
<dt>Output hash</dt><dd>{{hex output_hash}}</dd> | ||
<dt>Covenant</dt><dd>{{hex covenant}}</dd> | ||
<dt>Version</dt><dd>{{version}}</dd> | ||
<dt>Encrypted value</dt><dd>{{hex encrypted_value}}</dd> | ||
</dl> |
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,9 @@ | ||
<dl> | ||
<dt>Features</dt><dd>{{features}}</dd> | ||
<dt>Fee</dt><dd>{{fee}}</dd> | ||
<dt>Lock height</dt><dd>{{lock_height}}</dd> | ||
<dt>Excess</dt><dd>{{hex excess}}</dd> | ||
<dt>Excess sig</dt><dd>{{>Signature excess_sig}}</dd> | ||
<dt>Hash</dt><dd>{{hex hash}}</dd> | ||
<dt>Version</dt><dd>{{version}}</dd> | ||
</dl> |
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,15 @@ | ||
<dl> | ||
<dt>Features</dt> | ||
<dd> | ||
{{>OutputFeatures features}} | ||
</dd> | ||
<dt>Commitment</dt><dd>{{hex commitment}}</dd> | ||
<dt>Hash</dt><dd>{{hex hash}}</dd> | ||
<dt>Script</dt><dd>{{hex script}}</dd> | ||
<dt>Sender offset public key</dt><dd>{{hex sender_offset_public_key}}</dd> | ||
<dt>Metadata signature</dt> | ||
<dd>{{>ComSignature metadata_signature}}</dd> | ||
{{#if covenant.length}}<dt>Covenant</dt><dd>{{covenant}}</dd>{{/if}} | ||
<dt>Version</dt><dd>{{version}}</dd> | ||
{{#if encrypted_value.length}}<dt>Encrypted value</dt><dd>{{hex encrypted_value}}</dd>{{/if}} | ||
</dl> |
Oops, something went wrong.