Skip to content
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

[anchor] PROGRAMS #405

Closed
5 tasks
frankiebee opened this issue Jul 25, 2024 · 0 comments · Fixed by #409
Closed
5 tasks

[anchor] PROGRAMS #405

frankiebee opened this issue Jul 25, 2024 · 0 comments · Fixed by #409
Assignees
Labels
anchor Issue lists to encapsulate a concept documentation Improvements or additions to documentation enhancement New feature or request housekeeping lets keep the house in order proposal i have a dream

Comments

@frankiebee
Copy link
Contributor

frankiebee commented Jul 25, 2024

Programs are a multi fasted concept
Programs control weather or not you can get a signature. they are

context

https://github.com/entropyxyz/programs

requesting a signature may require auxiliaryData this is how a program sees into what
and although auxiliaryData is an unknown[]
we want other developers outside of @entropxyz to be able

  • entropy.programs.dev.deploy({ bytecode, configurationSchema, auxiliaryDataSchema }) -> Promise<pointer>
  • entropy.programs.dev.getByDeployer(address) -> Promise<ProgramPointers[]>
  • entropy.programs.dev.fetchByDeployer(address) -> Promise<ProgramInfo[]>
  • entropy.dev.get(programPointer)->Promise<ProgramInfo>
  • types in separate file
  export interface ProgramInfo {
        /// The bytecode of the program.
         bytecode: Vec<u8>,
        /// The schema for the Program's configuration parameters.
        ///
        /// While this isn't strictly enforced, it is recommended to follow something like
        /// [JSON Schema](https://json-schema.org/) in order to simplify the life of off-chain
        /// actors.
         configurationSchema: Vec<u8>,
        /// The schema for the Program's auxiliary data.
        ///
        /// While this isn't strictly enforced, it is recommended to follow something like
        /// [JSON Schema](https://json-schema.org/) in order to simplify the life of off-chain
        /// actors.
         auxiliaryDataSchema: Vec<u8>,
        /// The location of the oracle data needed for this program
         oracleDataPointer: Vec<u8>,
        /// Deployer of the program
         deployer: SS58Address,
        /// Accounts that use this program
         refCounter: u128,
    }
@frankiebee frankiebee added documentation Improvements or additions to documentation enhancement New feature or request anchor Issue lists to encapsulate a concept housekeeping lets keep the house in order proposal i have a dream labels Jul 25, 2024
frankiebee added a commit that referenced this issue Oct 2, 2024
<!-- Provide a brief description of the changes made in this PR -->

## Related Issue(s)
<!-- Link to the issue(s) that this PR addresses -->

closes #405 


## Testing
<!-- Describe how you tested the changes -->

- [x] Unit tests added/updated
- [x] Integration tests added/updated

## Checklist
<!-- Confirm that the following items are true and correct: -->

- [x] I have performed a self-review of my code.
- [ ] I have commented my code.
- [ ] I have updated documentation, where necessary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
anchor Issue lists to encapsulate a concept documentation Improvements or additions to documentation enhancement New feature or request housekeeping lets keep the house in order proposal i have a dream
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants