Skip to content

Commit 021e0cc

Browse files
committed
Added RoleBasedModel and Validaiton
1 parent 5dade82 commit 021e0cc

14 files changed

+16507
-22
lines changed

bin/src/AggregationAndValidation-solc-output.json

Lines changed: 12163 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"inputs":[{"internalType":"address","name":"trainerNodeAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"taskId","type":"uint256"},{"indexed":false,"internalType":"string","name":"ipfsHash","type":"string"}],"name":"AggregatedModelStored","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"taskID","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"aggregrationModel","type":"bytes"}],"name":"AggregrationComplete","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"taskID","type":"uint256"},{"indexed":true,"internalType":"address","name":"trainer","type":"address"},{"indexed":false,"internalType":"bytes","name":"modelUpdates","type":"bytes"}],"name":"ModelSubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"taskID","type":"uint256"},{"indexed":true,"internalType":"address","name":"trainer","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"taskID","type":"uint256"},{"indexed":true,"internalType":"address","name":"creator","type":"address"},{"indexed":false,"internalType":"uint256","name":"rewards","type":"uint256"}],"name":"TaskCreated","type":"event"},{"inputs":[],"name":"AGGREGATOR_STAKE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CREATOR_STAKE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAINER_STAKE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"taskId","type":"uint256"}],"name":"aggregateAndValidate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"taskID","type":"uint256"}],"name":"stakeAsAggregrator","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"taskCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tasks","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"creator","type":"address"},{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"totalstaked","type":"uint256"},{"internalType":"bool","name":"isActive","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trainerNodeContract","outputs":[{"internalType":"contract TrainerNode","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
608034609457601f61092638819003918201601f19168301916001600160401b03831184841017609857808492602094604052833981010312609457516001600160a01b03811690819003609457674563918244f400006002556729a2241af62c0000600355671bc16d674ec80000600455600680546001600160a01b03191691909117905560405161087990816100ad8239f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe6080806040526004361015610012575f80fd5b5f905f3560e01c9081631713b12b1461075757508063586717301461073b57806382518d5a1461071e5780638d977672146106bc578063a71d1cc414610694578063ccd1ac43146101c3578063cd87c0c0146100965763ff0ac8ae14610076575f80fd5b346100935780600319360112610093576020600254604051908152f35b80fd5b5060203660031901126100935760043580825260016020526100c160ff600460408520015416610771565b6005546001600160a01b031661017e57600354341061012f5781526001602052600360408220338352600681016020523460408420550180549034820180921161011b5755600580546001600160a01b0319163317905580f35b634e487b7160e01b83526011600452602483fd5b60405162461bcd60e51b815260206004820152602160248201527f496e73756666696369656e74207374616b6520666f722061676772656761746f6044820152603960f91b6064820152608490fd5b60405162461bcd60e51b815260206004820152601b60248201527f41676772656761746f7220616c72656164792061737369676e656400000000006044820152606490fd5b50346103b75760203660031901126103b75760043590815f52600160205260018060a01b03600160405f20015416330361065857815f52600160205261021260ff600460405f20015416610771565b815f52600160205260405f2060058101908154801561061357600654606093915f916001600160a01b03165b8183106103bb5750505050600401805460ff191690556006546001600160a01b0316803b156103b7575f6040518092633263e16b60e01b8252818381610288888b60048401610811565b03925af180156103ac57610395575b506102ca7fb6b83c61ac55d8fd384f92c889654a3a5e3789c900771fa9e0ce15788d539f79916040519182918683610811565b0390a18181526001602052604081206005600282015491019081549081156103815792919204818115925b845481101561037d5761030881866107b2565b905460039190911b1c6001600160a01b03168284828288610374575b839283928392f11561036957906001917fab7542bafced3da2d8c881cb2dd1de859fac7c20d3650d2902ad389a64e08883604080518a8152876020820152a2016102f5565b6040513d84823e3d90fd5b506108fc610324565b5080f35b634e487b7160e01b84526012600452602484fd5b6103a29192505f906107db565b5f906102ca610297565b6040513d5f823e3d90fd5b5f80fd5b6103ce83859997959894989693966107b2565b90546040516341835af360e11b815260039290921b1c6001600160a01b03166004820152945f86602481855afa9586156103ac575f9661049d575b505f5b865181101561048857868861042183836107fd565b515114610432575b5060010161040c565b61047f82976020808061044860019782976107fd565b5101516040519584879551918291018487015e8401908282015f8152815193849201905e01015f815203601f1981018352826107db565b95905086610429565b5092966001919496989295500191909261023e565b9095503d805f833e6104af81836107db565b8101906020818303126103b75780519067ffffffffffffffff82116103b757019080601f830112156103b75781519167ffffffffffffffff83116105ff578260051b6040519361050260208301866107db565b8452602080850191830101918383116103b75760208101915b83831061052e575050505050945f610409565b825167ffffffffffffffff81116103b7578201906060828703601f1901126103b757604051906060820182811067ffffffffffffffff8211176105ff5760405260208301518252604083015167ffffffffffffffff81116103b7576020908401019187601f840112156103b75782519267ffffffffffffffff84116105ff57604051946105c5601f8601601f1916602001876107db565b84865289602086840101116103b7576020955f8787819882606097018386015e83010152858401520151604082015281520192019161051b565b634e487b7160e01b5f52604160045260245ffd5b60405162461bcd60e51b815260206004820152601960248201527f4e6f20747261696e65727320666f722074686973207461736b000000000000006044820152606490fd5b60405162461bcd60e51b81526020600482015260146024820152732737ba103a3432903a30b9b59031b932b0ba37b960611b6044820152606490fd5b346103b7575f3660031901126103b7576006546040516001600160a01b039091168152602090f35b346103b75760203660031901126103b7576004355f52600160205260a060405f20805490600180841b0360018201541690600281015460ff60046003840154930154169260405194855260208501526040840152606083015215156080820152f35b346103b7575f3660031901126103b7576020600454604051908152f35b346103b7575f3660031901126103b75760205f54604051908152f35b346103b7575f3660031901126103b7576020906003548152f35b1561077857565b60405162461bcd60e51b81526020600482015260126024820152715461736b206973206e6f742061637469766560701b6044820152606490fd5b80548210156107c7575f5260205f2001905f90565b634e487b7160e01b5f52603260045260245ffd5b90601f8019910116810190811067ffffffffffffffff8211176105ff57604052565b80518210156107c75760209160051b010190565b9060609260209183526040828401528051918291826040860152018484015e5f828201840152601f01601f191601019056fea264697066735822122039147817d9b735ea5deb644ca1f1355f8b625d8b0980f2317349527da812927064736f6c634300081c0033

0 commit comments

Comments
 (0)