-
Notifications
You must be signed in to change notification settings - Fork 4
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
base: main
Are you sure you want to change the base?
Conversation
|
||
func (c *Client) CallReadOnlyFunction(ctx context.Context, contractAddress string, contractName string, functionName string, functionArgs []string) (*string, error) { | ||
fa := rpcClient.NewReadOnlyFunctionArgsschema( | ||
"ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM", |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
Resolves #314, #315, #316, #317, #318, #319, #320