0.0.71 • Published 11 months ago

@lit-protocol/contracts v0.0.71

Weekly downloads
-
License
-
Repository
-
Last release
11 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

11 months ago

0.0.71

11 months ago

0.0.69

11 months ago

0.0.68

12 months ago

0.0.66

1 year ago

0.0.64

1 year ago

0.0.65

1 year ago

0.0.63

1 year ago

0.0.62

1 year ago

0.0.61

1 year ago

0.0.60

1 year ago

0.0.59

1 year ago

0.0.58

1 year ago

0.0.57-cec340f

1 year ago

0.0.57-9a30451

1 year ago

0.0.57

1 year ago

0.0.56

1 year ago

0.0.55

1 year ago

0.0.54-2a9b9d2

1 year ago

0.0.54

1 year ago

0.0.53-9d352c9

1 year ago

0.0.53-fe98fb1

1 year ago

0.0.53-0e26502

1 year ago

0.0.53

1 year ago

0.0.51

1 year ago

0.0.50

1 year ago

0.0.44

1 year ago

0.0.49

1 year ago

0.0.48

1 year ago

0.0.47

1 year ago

0.0.46

1 year ago

0.0.45

1 year ago

0.0.43

1 year ago

0.0.41

1 year ago

0.0.40

1 year ago

0.0.39

1 year ago

0.0.38

1 year ago

0.0.37

1 year ago

0.0.36

1 year ago

0.0.35

1 year ago

0.0.34

1 year ago

0.0.33

1 year ago

0.0.32

1 year ago

0.0.31

1 year ago

0.0.30

1 year ago

0.0.29

1 year ago

0.0.28

1 year ago

0.0.27

1 year ago

0.0.26

1 year ago

0.0.25

1 year ago

0.0.24

1 year ago

0.0.23

1 year ago

0.0.22

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.0

1 year ago