0.0.71 • Published 7 months ago

@lit-protocol/contracts v0.0.71

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

Fetch Lit contracts and have the same format as general-worker

To run locally, use the following command:

Ensure you have a fine-grain read-only personal access token for the lit-assets repository (GH_LIT_ASSETS_READ_ONLY_API). For the LIT_ABI_SOURCE environment variable, you can set it to either prod or dev.

eg.

LIT_ABI_SOURCE=prod GH_LIT_ASSETS_READ_ONLY_API=xxx bun run fetch-contracts.ts

// for specific branch
DEV_BRANCH=develop LIT_ABI_SOURCE=prod GH_LIT_ASSETS_READ_ONLY_API=xxx bun run fetch-contracts.ts

To trigger build

curl -X POST -H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token github_pat_<____YOUR_GITHUB_PERSONAL_ACCESS_TOKEN____>" \
https://api.github.com/repos/LIT-Protocol/lit-contracts/dispatches \
-d '{"event_type":"sync_trigger"}'

Installation

yarn add @lit-protocol/contracts

Usage

for "main" branch

Production (Getting data from networks repo )

import { datilDev, datilTest, datil } from "@lit-protocol/contracts";

console.log("datilDev:", datilDev);
console.log("datilTest:", datilTest);
console.log("datil:", datil);

Development (Getting data from lit-assets repo develop branch )

import { _datilDev, _datilTest, _datil } from "@lit-protocol/contracts";

console.log("datilDev:", _datilDev);
console.log("datilTest:", _datilTest);
console.log("datil:", _datil);

for any other branches with dev- prefix

Development (Getting data from lit-assets repo with whatever the branch name is)

eg. if your branch here is called dev-datil then it will pull data from lit-assets datil branch

the dev- prefix is to allow GitHub action to publish to npm.

import { _datilDev, _datilTest, _datil } from "@lit-protocol/contracts";

console.log("datilDev:", _datilDev);
console.log("datilTest:", _datilTest);
console.log("datil:", _datil);

Branching & dev strategy

npm.io

CI Workflow

npm.io

0.0.70

8 months ago

0.0.71

7 months ago

0.0.69

8 months ago

0.0.68

8 months ago

0.0.66

9 months ago

0.0.64

9 months ago

0.0.65

9 months ago

0.0.63

10 months ago

0.0.62

10 months ago

0.0.61

10 months ago

0.0.60

10 months ago

0.0.59

10 months ago

0.0.58

10 months ago

0.0.57-cec340f

10 months ago

0.0.57-9a30451

10 months ago

0.0.57

10 months ago

0.0.56

10 months ago

0.0.55

10 months ago

0.0.54-2a9b9d2

10 months ago

0.0.54

10 months ago

0.0.53-9d352c9

10 months ago

0.0.53-fe98fb1

10 months ago

0.0.53-0e26502

10 months ago

0.0.53

10 months ago

0.0.51

10 months ago

0.0.50

10 months ago

0.0.44

10 months ago

0.0.49

10 months ago

0.0.48

10 months ago

0.0.47

10 months ago

0.0.46

10 months ago

0.0.45

10 months ago

0.0.43

10 months ago

0.0.41

11 months ago

0.0.40

11 months ago

0.0.39

11 months ago

0.0.38

11 months ago

0.0.37

11 months ago

0.0.36

11 months ago

0.0.35

11 months ago

0.0.34

11 months ago

0.0.33

11 months ago

0.0.32

11 months ago

0.0.31

11 months ago

0.0.30

11 months ago

0.0.29

11 months ago

0.0.28

11 months ago

0.0.27

11 months ago

0.0.26

11 months ago

0.0.25

11 months ago

0.0.24

11 months ago

0.0.23

11 months ago

0.0.22

11 months ago

0.0.21

11 months ago

0.0.20

11 months ago

0.0.19

11 months ago

0.0.18

11 months ago

0.0.17

11 months ago

0.0.16

11 months ago

0.0.15

11 months ago

0.0.14

11 months ago

0.0.13

11 months ago

0.0.12

11 months ago

0.0.11

11 months ago

0.0.10

11 months ago

0.0.9

11 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.0

11 months ago