-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: new PublishTemplate instruction #1208
feat: new PublishTemplate instruction #1208
Conversation
Test Results (CI)561 tests - 21 561 ✅ - 21 1h 22m 46s ⏱️ - 1h 35m 28s Results for commit b3ace13. ± Comparison against base commit 4d1117b. This pull request removes 21 tests.
♻️ This comment has been updated with latest results. |
dan_layer/engine/Cargo.toml
Outdated
@@ -19,6 +19,7 @@ tari_template_builtin = { workspace = true } | |||
tari_template_lib = { workspace = true } | |||
tari_utilities = { workspace = true } | |||
tari_transaction = { workspace = true } | |||
tari_consensus = { workspace = true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consensus and execution must remain decoupled.
I see you're using consensus constants to dictate the maximum permitted size of a template.
I suggest creating a TransactionProcessorConfig
struct that you pass into the processor that we can configure using consensus constants in the validator/indexer's bootstrap.rs
. The network can also go into that config as well as any future config.
pub struct TransactionProcessorConfig {
pub network: Network,
pub template_binary_max_size_bytes: usize
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, totally makes sense, let me update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just pushed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - you need to regenerate typescript bindings
@sdbondi I just pushed changes, now it should be okay |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
* development: feat: new PublishTemplate instruction (tari-project#1208)
Description
As part of #1207 , this PR contains the basic instruction and skeleton for instruction processing. There is a validation implemented for the new PublishTemplate instruction (where also we validate size of wasm binary).
Please note that in this PR there is no new substates or anything generated yet.
Motivation and Context
#1207
How Has This Been Tested?
Send a new transaction to VN:
Check printed out result and transaction result on UIs.
Examples:
Invalid wasm template binary
Size exceeding wasm template (manually set a lower limit to check error)
Success
What process can a PR reviewer use to test or verify this change?
Breaking Changes