1.0.7 • Published 2 years ago

madmenjs v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago