Skip to content

integrations/viem: initial package work - #268

Closed
CedarMist wants to merge 4 commits into
mainfrom
CedarMist/sapphire-viem
Closed

integrations/viem: initial package work#268
CedarMist wants to merge 4 commits into
mainfrom
CedarMist/sapphire-viem

Conversation

@CedarMist

@CedarMist CedarMist commented Jan 31, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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: viem@2.6.1
    at getTransactionError (file:///Users/xi/oasis/sapphire-paratime/node_modules/.pnpm/viem@2.6.1_typescript@5.3.3/node_modules/viem/_esm/utils/errors/getTransactionError.js:11:12)
    at sendTransaction (file:///Users/xi/oasis/sapphire-paratime/node_modules/.pnpm/viem@2.6.1_typescript@5.3.3/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: 'viem@2.6.1',
  cause: MethodNotFoundRpcError: The method does not exist / is not available.
  
  URL: http://127.0.0.1:8545

@aefhm

aefhm commented Jul 30, 2024

Copy link
Copy Markdown
Contributor

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