Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0xpolygon/static
Static file server
https://github.com/0xpolygon/static
matic
Last synced: 4 days ago
JSON representation
Static file server
- Host: GitHub
- URL: https://github.com/0xpolygon/static
- Owner: 0xPolygon
- Created: 2020-01-07T06:25:23.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-05T11:11:23.000Z (about 2 months ago)
- Last Synced: 2024-12-23T05:06:10.269Z (11 days ago)
- Topics: matic
- Language: JavaScript
- Homepage: https://static.polygon.technology
- Size: 6.81 MB
- Stars: 80
- Watchers: 32
- Forks: 50
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Static server
The private static server for Matic.
### How it works?
All files, in this repository, will be served over AWS S3 at `https://static.polygon.technology/`.
### Production
Master branch will be automatically deployed. No other action required.
## Package Usage
### Installation
```bash
$ npm i --save @maticnetwork/meta
```### Usage
```javascript
const Network = require("@maticnetwork/meta/network")// define network
const network = new Network("testnet", "mumbai")const Matic = network.Matic // all info related to Matic
const Main = network.Main // all info related to Main
const Heimdall = network.Heimdall // all info related to Heimdallconst RootChainABI = network.abi("RootChain")
// use matic js
let matic = new Matic ({
maticProvider: Matic.RPC,
mainProvider: Main.RPC,
registry: Main.Contracts.Registry,
...
...
})
```### Before Publishing
```
npm run minify
```