ensdomains / ensjs

ENS javascript library for contract interaction
MIT License
129 stars 59 forks source link

feat: local ur unwrap #178

Closed TateB closed 7 months ago

TateB commented 8 months ago

adds ccipRequest func which is exported from /utils

ccipRequest removes the universal-offchain-unwrapper requirement from the universal resolver contract, and replaces it with local logic that unwraps ccip-read requests.

can be used like so:

const chain = addEnsContracts(mainnet)
const publicClient = createPublicClient({
  chain,
  transport: http(),
  ccipRead: {
    request: ccipRequest(chain),
  },
})
sonarcloud[bot] commented 8 months ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
8.2% Duplication on New Code

See analysis details on SonarCloud