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

Feat/refactor source npm package #31

Closed
wants to merge 6 commits into from

Conversation

Dustin-Ray
Copy link
Contributor

Rationale for this change

What changes are included in this PR?

Are these changes tested?

fix: warn on equality, error on decrease && simplify code

fix: regenerate subxt for dynamic dory changes

The chain recently merged changes to the commitment schemes types.
This resulted in new type metadata being generated - in particular,
CommitmentScheme::Dory is now CommitmentScheme::DynamicDory.

feat: add and warn about postprocessing

feat: add `PostprocessingLevel`

fix: make sure it runs && address reviews

fix: use count(*) in count_table

fix: not use manual parsing

feat: add json files to .gitignore

fix: make `PostprocessingLevel` `ValueEnum`

refactor: move bins

fix: happy clippy

docs: add `README.md`

docs: swap out LICENSE

docs: address reviews

docs: address NIT

fix: change default SUBSTRATE_NODE_URL to use wss.

feat: copy chainlink example code

```
cp documentation/public/samples/ChainlinkFunctions/FunctionsConsumerExample.sol smart-contract/FunctionsConsumerExample.sol
cp -r smart-contract-examples/functions-examples/examples/5-use-secrets-threshold example
cp -r smart-contract-examples/functions-examples/package.json .
```

feat: add FunctionsConsumerAbi.json

This ABI file can be generated using any solidity compiler. This was copied from Remix.

feat: remove hardcoded values from example

doc: add README explaining how to run the example

feat: add code to retrieve sxt access token

Co-authored-by: Jay White <[email protected]>

chore: add .env.enc to .gitignore

feat: prepend wasm codegen to javascript job

```
cat sxt_proof_of_sql_sdk_wasm.js example/source.js > tmp && mv tmp example/source.js
```

fix: update generated javascript wasm bindings

* removed an `export`s
* now the wasm is loaded from a hardcoded url

feat: add commitment request and decoding

chore: add commented out line to enable running simulation only

style: format js code using prettier

`npx prettier example/source.js --write`

feat: update codegen

feat: add prover query and verification

refactored source code

secrets
@Dustin-Ray Dustin-Ray force-pushed the feat/refactor-source-npm-package branch from cf344e2 to 56fbdb0 Compare November 20, 2024 20:05
@Dustin-Ray
Copy link
Contributor Author

closing in favor of #33

@Dustin-Ray Dustin-Ray closed this Nov 21, 2024
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.

2 participants