Skip to content

27 implement config parameter management - #32

Open
sofia-bobbiesi wants to merge 89 commits into
mainfrom
27-implement-config-parameter-management
Open

27 implement config parameter management#32
sofia-bobbiesi wants to merge 89 commits into
mainfrom
27-implement-config-parameter-management

Conversation

@sofia-bobbiesi

Copy link
Copy Markdown
Collaborator

No description provided.

sofia-bobbiesi and others added 30 commits July 8, 2026 16:29
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…ment with enhanced market configuration and validator details

Co-authored-by: Francisco Joray <franciscojoray@users.noreply.github.com>
…h detailed market parameters and collateral handling
Co-authored-by: Francisco Joray <franciscojoray@users.noreply.github.com>
Co-authored-by: Francisco Joray <franciscojoray@users.noreply.github.com>

@rober-m rober-m left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!! 😃 I like where this is going!

I left some comments, and I'll push a few small commits to address some of them, but this will need more work before merging. Some notes in general:

  • We need to add the specs of the settings protocol.
  • Vesting broke. I'll fix it in a stacked PR and leave it as-is here to avoid confusion.
  • We have to add TS formatting rules or a hook to the repo to avoid formatting noise.
  • We're not testing the case when the Datum has to have a specific shape in the e2e (validate_datum != True)
  • I updated the compiler to v1.1.21, but I didn't re-generate the blueprints. We should re-generate them eventually, but leaving it up to you if you want to revert the compiler version for now.
  • Tx3 is not capturing all cases (no withdrawal for auth and not generic datum)

The rest of the notes are in specific places. Thank you for your work!!

Comment thread docs/explorations/prediction-market-conditional-token/diagrams.typ
Comment thread docs/explorations/protocol-settings/diagrams.typ Outdated
Comment thread docs/explorations/protocol-settings/diagrams.typ Outdated
Comment thread docs/explorations/protocol-settings/diagrams.typ Outdated
Comment thread offchain/meshjs/e2e/scripts/devnet-test.sh Outdated
Comment on lines +49 to +54
type OptionalInt {
Some {
value: Int,
},
None,
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no Option<Data> type in Tx3? Should there be?

Comment thread offchain/tx3/settings/main.tx3 Outdated
Comment on lines +61 to +62
current: Int,
next: OptionalInt,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Why are these Int and OptionalInt? These should be generic!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a test for different shapes

}

signers {
Applier,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this work for withdrawal scripts? Do we need to define all transactions twice (once for auth-by-signature and once for auth-by-withdrawal-script)?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, every transaction authorized by signature has a counterpart authorized by script.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems very fragile and hacky. Not sure what to do about it, but I'm pretty sure it'll break soon

sofia-bobbiesi and others added 22 commits August 20, 2026 12:39
@sofia-bobbiesi
sofia-bobbiesi requested a review from rober-m August 25, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Config Parameter Management

6 participants