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

Entropy Solidity SDK & usage example #1124

Merged
merged 9 commits into from
Oct 31, 2023
Merged

Entropy Solidity SDK & usage example #1124

merged 9 commits into from
Oct 31, 2023

Conversation

jayantk
Copy link
Contributor

@jayantk jayantk commented Oct 29, 2023

I wanted to make an example for how to use entropy. In order to do that, I needed to extract out the interface of the entropy contract into an SDK.

There is still work to do on the example. I've only added the solidity contract for the moment and checked that it builds. I think we also need to generate ABIs in the solidity SDK and then show how to interact with the example contract via typescript. I think that can wait for a future PR though because there's already a decent amount of stuff here.

@vercel
Copy link

vercel bot commented Oct 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
example-oracle-amm ⬜️ Ignored (Inspect) Visit Preview Oct 29, 2023 1:30pm
xc-admin-frontend ⬜️ Ignored (Inspect) Visit Preview Oct 29, 2023 1:30pm

@jayantk jayantk changed the title [wip] Entropy example usage & docs Entropy SDK & usage example Oct 29, 2023
@jayantk jayantk changed the title Entropy SDK & usage example Entropy Solidity SDK & usage example Oct 29, 2023
contract_addr: 0xD42c7a708E74AD19401D907a14146F006c851Ee3
eos-evm-testnet:
geth_rpc_addr: https://api.testnet.evm.eosnetwork.com/
contract_addr: 0xD42c7a708E74AD19401D907a14146F006c851Ee3
Copy link
Contributor Author

Choose a reason for hiding this comment

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

drive-by: deployed on some other networks

Copy link
Collaborator

Choose a reason for hiding this comment

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

ToDo: contract manager support

@@ -0,0 +1,79 @@
// SPDX-License-Identifier: Apache 2
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is copy/paste of the interface from PythRandom.

I've called this IEntropy to match the new name scheme. I'll circle back and rename the other contracts as well (didn't want to intermingle in this one PR).

@jayantk jayantk merged commit ddbbe2a into main Oct 31, 2023
@jayantk jayantk deleted the random_example branch October 31, 2023 13:32
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.

3 participants