Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. import "Ads.txt.sol";
  2.  
  3. contract RTB {
  4. function makeBidRequest(address resellerId, address publisherId, uint256 floor) {
  5. Ads_txt adsTxt = Ads_txt.at(0xABCDED)
  6. // check that this seller is authorized to represent this publisher id...
  7. Publisher publisher = adsTxt.publishers[publisherId]
  8. require(address(publisher.id) != address(0x0), "Publisher is not registered");
  9. Reseller reseller = adsTxt.resellers[publisherId][resellerId]
  10. require(address(reseller.id) != address(0x0), "Resller is not registered for the given publisher");
  11. // ... make bids!
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement