Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@snowflake-so/safe-apps-provider

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snowflake-so/safe-apps-provider

A React library provides Provider, Context API and hooks to support Snowflake Safe Apps integration.

  • 1.0.16
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Safe Apps Provider

A React library provides Provider, Context API and hooks to support Snowflake Safe Apps integration.

Installation

npm

npm install @snowflake-so/safe-apps-provider

yarn add @snowflake-so/safe-apps-provider

Quick start guide

Note: The implemented application only works inner Snowflake Safe app.

Wrap your root component with SafeProvider and use the React hook useSafeContext to retrieve the data of the Snowflake Safe parent window.

import React from "react";
import { useSafe, SafeProvider } from "@snowflake-so/safe-apps-provider";

const AppContent = () => {
  const { safe } = useSafe();
  return <div>{safe.safeInfo.vaultAddress}</div>;
};

const App = () => {
  return (
    <SafeProvider>
      <AppContent />
    </SafeProvider>
  );
};

export default App;

Support

Struggle with the SDK integration?

If you have any problem with using the SDK in your system, drop a question our Snowflake Discord #sdk to receive a support from our engineers.

Find a bug or want to contribute to Snowflake?

If you find a bug or have any problem and idea while using the SDK, you can create an issue on SDK Github.

License MIT

Keywords

FAQs

Package last updated on 28 Aug 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc