Skip to content

Instantly share code, notes, and snippets.

View Aboudjem's full-sized avatar

Adam Boudj Aboudjem

View GitHub Profile
@Aboudjem
Aboudjem / dump.json
Created November 2, 2021 08:24
dumpAll
This file has been truncated, but you can view the full file.
[{"model": "callback.sendqueue", "pk": 1, "fields": {"contract": "PricingTable", "method": "addPricingTableItem", "params": [[5000000, 10000000, 1, 20, 29, 80000, 90000, 6500, 7000, 1200, 1600, true]], "sent": true, "success": true, "txid": "0x8595dc92d4c1d3be45ac122f49b1d9b5d1e0e862c605a2de623d1734f3f53a02", "db_object_id": 1, "returned": 606, "created": "2021-09-27T18:15:35.026", "updated": "2021-09-27T18:15:40.641"}}, {"model": "callback.sendqueue", "pk": 2, "fields": {"contract": "PricingTable", "method": "addPricingTableItem", "params": [[5000000, 10000000, 3, 20, 29, 80000, 90000, 7000, 7500, 1200, 1600, true]], "sent": true, "success": true, "txid": "0x3a6b6d598ddabbf8715b3bfe2c773033d5f8d7b447ceb871e7ce07244f5777f6", "db_object_id": 2, "returned": 607, "created": "2021-09-27T18:15:42.728", "updated": "2021-09-27T18:15:46.690"}}, {"model": "callback.sendqueue", "pk": 3, "fields": {"contract": "PricingTable", "method": "addPricingTableItem", "params": [[5000000, 10000000, 5, 20, 29, 70000, 90000, 7500,
pragma solidity ^0.6.0;
import "openzeppelin-solidity/contracts/access/Roles.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
contract AgentRole is Ownable {
using Roles for Roles.Role;
event AgentAdded(address indexed account);
event AgentRemoved(address indexed account);