Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import "Ads.txt.sol";
- contract RTB {
- function makeBidRequest(address resellerId, address publisherId, uint256 floor) {
- Ads_txt adsTxt = Ads_txt.at(0xABCDED)
- // check that this seller is authorized to represent this publisher id...
- Publisher publisher = adsTxt.publishers[publisherId]
- require(address(publisher.id) != address(0x0), "Publisher is not registered");
- Reseller reseller = adsTxt.resellers[publisherId][resellerId]
- require(address(reseller.id) != address(0x0), "Resller is not registered for the given publisher");
- // ... make bids!
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement