1.0.13 • Published 7 months ago

compliance-sdk v1.0.13

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

compliance sdk

A simple package to help ensure compliance with OFAC sanctions by updating code bases (e.g. front-ends, other applicable products) with the latest no-fly addresses list.

Purpose

The Compliance SDK aims to simplify the process of staying up-to-date with the latest OFAC sanctioned addresses by centralizing them in one place.

Update Cadence

Please note that there is currently no SLA for how quickly the repository will be updated to reflect the most recent OFAC sanctioned addresses. Updates will be done on a best-effort basis.

Usage

To get started, import the SDK into your project. Then, choose one of the following options:

Option One: Import the SANCTIONED_ADDRESSES list

You can import the SANCTIONED_ADDRESSES list directly into your code. Please note that when the list is updated and published to the NPM registry, you will need to update your dependency accordingly.

Option Two: Make an API call

Alternatively, you can make an API call to retrieve the latest OFAC sanctions list. Here's an example in TypeScript:

import axios from "axios";

export async function SanctionedAddressAPI(): Promise<string[]> {
  return await axios
    .get(
      "https://celo-org.github.io/compliance/ofac.sanctions.json"
    )
    .then((response) => {
      return response.data;
    })
    .catch((err) => {
      console.log(err);
    });
}

note: No changes to your code will be necessary when the list is updated as this API will always return the latest version.

Contributing

This project has two main lists, ofac.sanctions.json and list.ts. Both these lists hold the same set of addresses. The former is used for the API call, while the latter is used for the direct import.

To contribute, modify the ofac.sanctions.json list in the root directory.

When the change is merged into the main branch, Github will automatically serve the updated list at the API endpoint.sla

1.0.14

4 months ago

1.0.9

8 months ago

1.0.8

9 months ago

1.0.11

7 months ago

1.0.10

8 months ago

1.0.13

7 months ago

1.0.12

7 months ago

1.0.7

12 months ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.0

3 years ago