0.2.0 • Published 2 years ago

@getlit/contracts v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

What

The @getlit/contracts script fetches contract data from the https://lit-general-worker.getlit.dev/contract-addresses API and generates contract files, including JSON, JS, and TypeScript files. It also produces typechain types for the contracts.

See ./lit-contracts

Quick Start

npx @getlit/contracts

Usage

To run the script:

npx @getlit/contracts [options]

Options

  • --update: Flag to indicate if existing contracts should be updated with newer versions.
  • --outdir: Specify the output directory for generated contract files. Default is 'lit-contracts'.
  • --network: Specify the network ('cayenne' or 'serrano') to determine the API endpoint. Default is 'cayenne'.

Demo

Init

npx @getlit/sdk

Update

npx @getlit/sdk --update

0.2.0

2 years ago

0.1.18

2 years ago

0.1.17

2 years ago

0.1.16

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago