ensdomains / ensjs

ENS javascript library for contract interaction
MIT License
120 stars 56 forks source link

feat: local ur unwrap #178

Closed TateB closed 5 months ago

TateB commented 5 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 5 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