
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@resolverworks/ezccip
Advanced tools
Turnkey CCIP-Read Handler for ENS
npm i @resolverworks/ezccip
resolve(multicall(...))
multicall(resolve(...))
multicall(resolve(multicall(...)), ...)
serve()
to quickly launch a serverimport {EZCCIP} from '@resolverworks/ezccip';
let ezccip = new EZCCIP();
// implement a wildcard ENSIP-10 resolver
ezccip.enableENSIP10(async (name, context) => {
return {
async text(key) {
switch (key) {
case 'name': return 'Raffy';
case 'avatar': return 'https://raffy.antistupid.com/ens.jpg';
}
},
};
});
// implement an arbitrary function
ezccip.register('add(uint256, uint256) returns (uint256)', ([a, b]) => [a + b]);
// imagine: your HTTP server has a request for CCIP-Read from GET or POST
let {sender, data: calldata} = JSON.parse(req.body);
let {data, history} = await ezccip.handleRead(sender, calldata, {
signingKey, // your private key
resolver, // any TOR deployment
// all other values are considered "context" passed to each handler
thing: 1,
});
reply.json({data});
npm run start
demo.js
server will print:
0xd00d726b2aD6C81E894DC6B87BE6Ce9c5572D2cd http://localhost:8016
""
→0x828ec5bDe537B8673AF98D77bCB275ae1CA26D1f
← Mainnet
"s"
→0x9Ec7f2ce83fcDF589487303fA9984942EF80Cb39
← Sepolia
"g"
→0x9b87849Aa21889343b6fB1E146f9F734ecFA9982
← Goerli
keys
correspond to the TOR deployment on each chain.CONTEXT
:
0xd00d726b2aD6C81E894DC6B87BE6Ce9c5572D2cd http://localhost:8016/
0xd00d726b2aD6C81E894DC6B87BE6Ce9c5572D2cd http://localhost:8016/s
← /key
CONTEXT
ezccip.raffy.xyz
0xd00d726b2aD6C81E894DC6B87BE6Ce9c5572D2cd https://raffy.xyz/ezccip/
ezccip.eth
0xd00d726b2aD6C81E894DC6B87BE6Ce9c5572D2cd https://raffy.xyz/ezccip/s
FAQs
Turnkey CCIP-Read Handler
The npm package @resolverworks/ezccip receives a total of 19 weekly downloads. As such, @resolverworks/ezccip popularity was classified as not popular.
We found that @resolverworks/ezccip demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.