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

integrations/viem: initial package work #268

Closed
wants to merge 4 commits into from

Conversation

CedarMist
Copy link
Member

@CedarMist CedarMist commented Jan 31, 2024

Ideas:

  • Remove ethers dependency from cipher.ts
    • Share cipher.ts between multiple packages (so, this remains in the core?)
  • Add a integrations/ethers package
  • Share tsconfig between the packages

TODO:

  • Add examples/viem
  • Add examples/wagmi

transport: provider
});

const hash = await walletClient.deployContract({
Copy link
Contributor

Choose a reason for hiding this comment

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

May not be using Viem right. I get a deploy error.

TransactionExecutionError: The method does not exist / is not available.
...
Details: the method eth_sendTransaction does not exist/is not available
Version: [email protected]
    at getTransactionError (file:///Users/xi/oasis/sapphire-paratime/node_modules/.pnpm/[email protected][email protected]/node_modules/viem/_esm/utils/errors/getTransactionError.js:11:12)
    at sendTransaction (file:///Users/xi/oasis/sapphire-paratime/node_modules/.pnpm/[email protected][email protected]/node_modules/viem/_esm/actions/wallet/sendTransaction.js:123:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async main (file:///Users/xi/oasis/sapphire-paratime/examples/viem/build/examples/viem/src/index.js:38:18)
    at async file:///Users/xi/oasis/sapphire-paratime/examples/viem/build/examples/viem/src/index.js:73:1 {
  details: 'the method eth_sendTransaction does not exist/is not available',
  docsPath: undefined,
  metaMessages: [
    'URL: http://127.0.0.1:8545',
    'Request body: {"method":"eth_sendTransaction","params":[{"data":"...","from":"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"}]}',
    ' ',
    'Request Arguments:',
    '  chain:  Oasis Sapphire Testnet (id: 23293)\n' +
      '  from:   0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266\n' +
      '  data:  ...'
  ],
  shortMessage: 'The method does not exist / is not available.',
  version: '[email protected]',
  cause: MethodNotFoundRpcError: The method does not exist / is not available.
  
  URL: http://127.0.0.1:8545

@aefhm
Copy link
Contributor

aefhm commented Jul 30, 2024

Closing in favor of #303.

@aefhm aefhm closed this Jul 30, 2024
@aefhm aefhm deleted the CedarMist/sapphire-viem branch July 30, 2024 16:06
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