@civic/gateway-notifications
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Gateway Notification

An Anchor program, typescript client, and cli tool to create short-lived notifications of gateway-related events.

Quick Start

yarn global add @civic/gateway-notifications

# get all notifications for the gatbGF9DvLAw3kWyn1EmH5Nh1Sqp8sTukF7yaQpSc71 network on mainnet-beta
gw-notifications fetch -n gatbGF9DvLAw3kWyn1EmH5Nh1Sqp8sTukF7yaQpSc71 -c mainnet-beta

CLI

To run via the cli, first install @identity.com/solana-gatekeeper-lib.

# Issue a new token on devnet using the dev civic gatekeeper key
gateway issue -c devnet -g G1y4BUXnbSMsdcXbCTMEdRWW9Th9tU9WfAmgbPDX7rRG.json <OWNER>
# Immediately revoke the token
gateway revoke -c devnet -g G1y4BUXnbSMsdcXbCTMEdRWW9Th9tU9WfAmgbPDX7rRG.json <GATEWAY_TOKEN>

# Publish a notification using the notification CLI tool.
WALLET=G1y4BUXnbSMsdcXbCTMEdRWW9Th9tU9WfAmgbPDX7rRG.json ./bin/run notify -g <GATEWAY_TOKEN>

Program

This program uses Anchor. To follow the below steps, install the anchor cli either via Cargo or NPM.

Build the program:

yarn build

Run the tests:

yarn test

Readme

Keywords

none

Package Sidebar

Install

npm i @civic/gateway-notifications

Weekly Downloads

1

Version

0.1.0

License

none

Unpacked Size

42.2 kB

Total Files

38

Last publish

Collaborators

  • callforsanity
  • jp-civic
  • chriteixeira
  • daneel
  • mitchcivic
  • dankelleher
  • jonthepilot
  • rado0x54
  • civicfinance
  • kevinhcolgan
  • flippiescholtz
  • tyronemichael
  • lucmir