npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

arnacon-sponsor-wrapper

v0.0.2

Published

Meta-tx sponsorship helper SDK

Downloads

262

Readme

arnacon-service-provider

1) What this repo is

Small plugin for arnacon-sdk that allows the arnacon-sdk to use a sponsored transaction (instead of normal transactions) for all arnacon-sdk transactions. This wrapper is meant for arnacon service providers or domain owners who have our PALO tokens, but do not have native currency of a blockchain network to pay for transaction fees.

2) Main functions

  • createSponsorAndEmitMetaTx({ privateKey, targetRpc, sponsorRpc, delegationContract, sponsorshipContract, txRequestBuilder? })
    • Builds the execute hook for normal calls (contract calls/transfers) and is used with sdk.setExecuteFunction(...).
    • privateKey: sponsee private key used to sign delegation payloads.
    • targetRpc: RPC of the target chain where the final tx is broadcast.
    • sponsorRpc: RPC of Sapphire where the sponsor contract is queried.
    • delegationContract: address of deployed delegation contract on target chain.
    • sponsorshipContract: address of deployed sponsor contract on Sapphire.
    • txRequestBuilder (optional): custom builder for gas/tx request fields.
  • createSponsorAndEmitMetaDeploy({ privateKey, targetRpc, sponsorRpc, delegationContract, sponsorshipContract, txRequestBuilder? })
    • Builds the deploy hook for contract deployments and is used with sdk.setDeployFunction(...).
    • privateKey: sponsee private key used to sign deploy delegation payloads.
    • targetRpc: RPC of the target chain where delegated deploy tx is broadcast.
    • sponsorRpc: RPC of Sapphire where the sponsor contract is queried.
    • delegationContract: address of deployed delegation contract that exposes deployCreate.
    • sponsorshipContract: address of deployed sponsor contract on Sapphire.
    • txRequestBuilder (optional): custom builder for gas/tx request fields.

3) File structure

  • src/ (the logic of the SDK)
    • SponsorshipClient.js -> main sponsorship logic (createSponsorAndEmitMetaTx() and createSponsorAndEmitMetaDeploy())
    • index.js -> exports
  • contracts/ (the contract code we have deployed that the SDK uses)
    • sponsorship/delegation.sol -> delegated calls + deploy + NFT receiver support
    • sponsorship/sponsor.sol -> signs sponsored type-4 tx
    • sponsorship/tempERC20.sol -> simple test token
  • scripts/ (testing/deployment example scripts)
    • deploy-sepolia-delegation.js -> deploy delegation on Sepolia
    • configure-sponsor-sepolia.js -> point sponsor to Sepolia + delegation
    • example/example.js -> usage example with arnacon-sdk

4) How the flow works for an arnacon service provider or domain owner

  • Load both SDKs: arnacon-sdk and this wrapper SDK.
  • Initialize createSponsorAndEmitMetaTx(...) and createSponsorAndEmitMetaDeploy(...).
  • Wrap arnacon-sdk tx execution by setting:
    • sdk.setExecuteFunction(...)
    • sdk.setDeployFunction(...)
  • Use arnacon-sdk methods as usual (registerAsDomainOwner, purchaseName, etc.); calls/deploys now go through sponsored flow.

5) Required config values

  • privateKey (sponsee key, AKA the key of the domain owner/ service provider)
  • targetRpc (optional override)
  • sponsorRpc (optional override)
  • delegationContract (optional override)
  • sponsorshipContract (optional override)

6) Default values (when omitted)

For both createSponsorAndEmitMetaTx(...) and createSponsorAndEmitMetaDeploy(...), only privateKey is required.
If omitted, these defaults are used:

  • targetRpc: https://ethereum-sepolia-rpc.publicnode.com
  • sponsorRpc: https://testnet.sapphire.oasis.io
  • delegationContract: 0xd49F6dcDAD074160D8a31e5D58e3e65eEfEb29ef
  • sponsorshipContract: 0x338eD21Adeca4f980706B7E93a9467251d05Eb14