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: stacks integration #417

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

CyrusVorwald
Copy link

Resolves #314, #315, #316, #317, #318, #319, #320

@CyrusVorwald CyrusVorwald marked this pull request as ready for review November 7, 2024 00:56
@github-actions github-actions bot added the test label Nov 7, 2024

func (c *Client) CallReadOnlyFunction(ctx context.Context, contractAddress string, contractName string, functionName string, functionArgs []string) (*string, error) {
fa := rpcClient.NewReadOnlyFunctionArgsschema(
"ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM",
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo or is the hardcoded address intentional ?

return address, nil
}

func (p *Provider) ImportKeystore(ctx context.Context, keyPath, passphrase string) (string, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The import keystore is normally used to import keys generated using external commands may be wallets into the relayer. So, the input may be file generated by cli commands or private key which would not be encrypted with the kms.

case "stacks":
return stacks.ChainIDMainnet, nil
case "stacks_testnet":
return stacks.ChainIDTestnet, nil
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can directly configure required chainId in the nid so we would know this via config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Stacks RPC Client
2 participants