1.0.7 • Published 3 years ago

madmenjs v1.0.7

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

madmenjs

https://madmen.app

Install the dependencies

npm install madmenjs

Usage

import Madmen from 'madmenjs'
....

const config = { publisher:'0x....'}

// default contract is deployed on polygon mumbai testnet
config.contract = '0x95AaFBCc74bC2c427f83f06B0b97D3aFC901d3fe'  // optional
config.chainRpc = 'https://rpc-mumbai.matic.today'  // optional
config.host = 'https://test.madmen.app'

const madmen = await Madmen(config)

const ad = await madmen.getAd(placementId)  // Get Ad information
or
const ad = await madmen.setWidget(placementId, container)  // Insert Ad element to container by element id
1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago