Upgrade onchain gem