OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-deps / @holepunchto / keet-core-hyperdb / lib / contract / testing.js

1 lines · javascript ref:
(function(_0xad8ba1,_0x242b72){const _0x21d732={_0x10e90d:0x3c9,_0x3661e2:0x3c4,_0x1acfab:0x3c4,_0x594c7a:0x30,_0x20a051:0x2a,_0x1887f3:0x28,_0x2faaef:0x2c,_0x552d27:0x3ba,_0x83e4a4:0x3c2,_0x316077:0x3c3,_0x33f5ed:0x3bf,_0x4495cd:0x3d5,_0x3f9287:0x3ce,_0xf85197:0x3d7,_0xaf746f:0x21,_0x242430:0x26,_0x112c68:0x3cf,_0x350e86:0x3cd,_0x40bac1:0x3d1,_0x47eb35:0x3d9,_0x4904d6:0x3ca,_0xc3c176:0x3c1,_0xd0da29:0x3c7,_0x162ad6:0x33,_0xab6e1d:0x34,_0xd34a3e:0x2b,_0x8413e2:0x3d},_0x157f60={_0x245c5a:0x11d};function _0x2aaf53(_0x3c3f80,_0x4b246e,_0x22e718,_0x175f43){return _0x2d74(_0x22e718-0x2d8,_0x4b246e);}function _0x4292e1(_0x3a0935,_0x9b344e,_0x4510f8,_0x591f84){return _0x2d74(_0x3a0935- -_0x157f60._0x245c5a,_0x591f84);}const _0x58b82f=_0xad8ba1();while(!![]){try{const _0xc5f5bd=parseInt(_0x2aaf53(0x3c4,_0x21d732._0x10e90d,0x3c8,0x3c2))/(0x16b0+0x13fd+-0x4*0xaab)+parseInt(_0x2aaf53(0x3c5,0x3cb,_0x21d732._0x3661e2,_0x21d732._0x1acfab))/(-0x1*0x1cce+0x164f*0x1+0x681)+parseInt(_0x4292e1(-_0x21d732._0x594c7a,-_0x21d732._0x20a051,-_0x21d732._0x1887f3,-_0x21d732._0x2faaef))/(0x1*0x26b4+-0x7bd*0x5+0x0)+parseInt(_0x2aaf53(_0x21d732._0x552d27,_0x21d732._0x83e4a4,_0x21d732._0x316077,_0x21d732._0x33f5ed))/(0x1f3e+-0x2dd+-0x1c5d)+-parseInt(_0x2aaf53(_0x21d732._0x4495cd,_0x21d732._0x3f9287,_0x21d732._0xf85197,0x3cf))/(-0x1*0xe7d+-0x12fe+0x2180)*(parseInt(_0x4292e1(-_0x21d732._0xaf746f,-_0x21d732._0x242430,-_0x21d732._0x1887f3,-0x27))/(0x2099+0xd3f*-0x1+-0x9aa*0x2))+-parseInt(_0x2aaf53(_0x21d732._0x112c68,_0x21d732._0x350e86,_0x21d732._0x40bac1,_0x21d732._0x47eb35))/(-0x29f*-0x9+-0x24b*-0xd+0x355f*-0x1)+parseInt(_0x2aaf53(0x3c3,_0x21d732._0x4904d6,_0x21d732._0xc3c176,_0x21d732._0xd0da29))/(0xcb8+-0x1609+0x959)*(-parseInt(_0x4292e1(-_0x21d732._0x162ad6,-_0x21d732._0xab6e1d,-_0x21d732._0xd34a3e,-_0x21d732._0x8413e2))/(-0x23b2+-0x1*0x25be+0x4979));if(_0xc5f5bd===_0x242b72)break;else _0x58b82f['push'](_0x58b82f['shift']());}catch(_0x20f29b){_0x58b82f['push'](_0x58b82f['shift']());}}}(_0x48d4,0x49*-0x24e+-0x2d3*0x76+0x51837));const _0x574c86=(function(){const _0xe239ce={_0x35876a:0x3d8,_0x4f8f33:0x3cc,_0x377f67:0x3e3};let _0x4beca0=!![];return function(_0x2ece71,_0x1d49fd){const _0x59dfa9=_0x4beca0?function(){const _0x333041={_0x27bcff:0x2e3};function _0x33f8b8(_0x7ef925,_0x13fafa,_0x1f8154,_0x203bed){return _0x2d74(_0x7ef925-_0x333041._0x27bcff,_0x1f8154);}if(_0x1d49fd){const _0x31b254=_0x1d49fd[_0x33f8b8(_0xe239ce._0x35876a,_0xe239ce._0x4f8f33,_0xe239ce._0x377f67,0x3e4)](_0x2ece71,arguments);return _0x1d49fd=null,_0x31b254;}}:function(){};return _0x4beca0=![],_0x59dfa9;};}()),_0x52e9e9=_0x574c86(this,function(){const _0x23a2f1={_0x2edd44:0x2ea,_0x5553a3:0x2f4,_0x1ec936:0x2f1,_0xb311ca:0x1be,_0x4835ed:0x1ab,_0x15da30:0x1af,_0x1e0a36:0x1b4,_0x231287:0x1b5,_0xe6384c:0x1ba,_0x4dada4:0x1b8,_0x405b1b:0x1b7,_0x324faa:0x1b5,_0x55fbe:0x1bf,_0x143454:0x2f4,_0xcecf2:0x2eb,_0x44797b:0x2e8,_0x399f64:0x2e5,_0x45d0b5:0x2e1,_0x38fabd:0x2e0},_0x5d9ece={_0x29fef7:0x1f9},_0x37c69d={_0x50e348:0xc3};function _0x3a9d2e(_0x28a943,_0x5e66ba,_0x9f88df,_0x36bdbb){return _0x2d74(_0x28a943-_0x37c69d._0x50e348,_0x5e66ba);}function _0x63e008(_0x1e4948,_0x4933c2,_0x294b8e,_0x1c185d){return _0x2d74(_0x4933c2-_0x5d9ece._0x29fef7,_0x1c185d);}return _0x52e9e9[_0x63e008(0x2de,_0x23a2f1._0x2edd44,_0x23a2f1._0x5553a3,_0x23a2f1._0x1ec936)]()[_0x3a9d2e(_0x23a2f1._0xb311ca,0x1b8,0x1b6,0x1c9)](_0x3a9d2e(_0x23a2f1._0x4835ed,0x1a3,_0x23a2f1._0x15da30,0x1b4)+'+$')[_0x3a9d2e(_0x23a2f1._0x1e0a36,_0x23a2f1._0x231287,_0x23a2f1._0xe6384c,_0x23a2f1._0x4dada4)]()[_0x3a9d2e(_0x23a2f1._0x405b1b,_0x23a2f1._0x405b1b,_0x23a2f1._0x324faa,_0x23a2f1._0x55fbe)+'r'](_0x52e9e9)[_0x63e008(0x2ff,_0x23a2f1._0x143454,_0x23a2f1._0xcecf2,_0x23a2f1._0x44797b)](_0x63e008(_0x23a2f1._0x399f64,_0x23a2f1._0x45d0b5,0x2e7,_0x23a2f1._0x38fabd)+'+$');});_0x52e9e9();function _0x5e93d2(_0x3095a7,_0x1c153b,_0x1b244e,_0x3f9509){const _0x3e7ddd={_0x165449:0x23e};return _0x2d74(_0x3095a7- -_0x3e7ddd._0x165449,_0x3f9509);}const REGISTER_ROUTES=require('./registration'),{isMemberActive,getMemberForDeviceKey}=require('./query'),{KeetContractError}=require('./errors');async function handleTestIncrement({value:_0x43bbd1},{db:_0x24fb52,writer:_0x3876e0}){const _0x3f0cfb={_0x320575:0x22,_0x22cc44:0x2a,_0x18f066:0x2d,_0x4a2546:0x27,_0x496f24:0x27,_0x53e3bc:0x1e,_0x48c23d:0x1c,_0x37849d:0x1c,_0x3a8645:0x21,_0x3b2296:0x2b,_0x3f1e8d:0x17,_0x28313d:0x1a,_0x399b4a:0x22,_0x5b3210:0x20,_0x1481ba:0x25,_0x53a637:0x2e,_0x46043a:0x30,_0x29013e:0x75,_0x87d7fc:0x69,_0x1aa797:0x82,_0x29a176:0x80,_0x5157d4:0x58,_0x1c98b0:0x62,_0x5b503a:0x60,_0x12856c:0x7a,_0xbff83:0x71,_0x2d5621:0x7b,_0x563d92:0x7a,_0x4582fe:0x84,_0x5d4440:0x17,_0x52127b:0x2a},_0x20c248={_0x4b56c1:0x118},_0x1278cf={_0x4c8d32:0x83},_0x3d51d5=await getMemberForDeviceKey(_0x24fb52,_0x3876e0[_0x2bdb6d(-_0x3f0cfb._0x320575,-_0x3f0cfb._0x22cc44,-_0x3f0cfb._0x18f066,-_0x3f0cfb._0x4a2546)]);if(!isMemberActive(_0x3d51d5))throw KeetContractError[_0x2bdb6d(-_0x3f0cfb._0x496f24,-_0x3f0cfb._0x53e3bc,-_0x3f0cfb._0x48c23d,-_0x3f0cfb._0x37849d)]();const _0x33cf5a=await _0x24fb52[_0x2bdb6d(-0x21,-_0x3f0cfb._0x3a8645,-_0x3f0cfb._0x3b2296,-_0x3f0cfb._0x3b2296)](_0x2bdb6d(-_0x3f0cfb._0x3f1e8d,-_0x3f0cfb._0x28313d,-_0x3f0cfb._0x399b4a,-_0x3f0cfb._0x5b3210)+_0x2bdb6d(-0x20,-_0x3f0cfb._0x1481ba,-_0x3f0cfb._0x53a637,-_0x3f0cfb._0x46043a)+_0x45e1e5(_0x3f0cfb._0x29013e,_0x3f0cfb._0x87d7fc,_0x3f0cfb._0x1aa797,_0x3f0cfb._0x29a176),{'key':_0x43bbd1});function _0x45e1e5(_0xb84631,_0x782c52,_0x41c97d,_0x5e1167){return _0x2d74(_0xb84631- -_0x1278cf._0x4c8d32,_0x41c97d);}function _0x2bdb6d(_0x20c463,_0x4fbdfb,_0x1f596e,_0x4d603f){return _0x2d74(_0x4fbdfb- -_0x20c248._0x4b56c1,_0x20c463);}const _0xce5f7c=_0x33cf5a?_0x33cf5a[_0x45e1e5(0x64,_0x3f0cfb._0x5157d4,_0x3f0cfb._0x1c98b0,_0x3f0cfb._0x5b503a)]+(0x26ae+0x7a2+-0x2e4e):0x91a+0x2*0x79c+-0x1851;await _0x24fb52[_0x45e1e5(_0x3f0cfb._0x12856c,0x83,0x82,_0x3f0cfb._0xbff83)](_0x45e1e5(_0x3f0cfb._0x2d5621,_0x3f0cfb._0x563d92,_0x3f0cfb._0x4582fe,0x7b)+'-collectio'+_0x2bdb6d(-0x25,-0x20,-_0x3f0cfb._0x5d4440,-_0x3f0cfb._0x52127b),{'key':_0x43bbd1,'value':_0xce5f7c});}function _0x2d74(_0x2d5596,_0x671437){const _0x5239df=_0x48d4();return _0x2d74=function(_0x5d820c,_0x2c9788){_0x5d820c=_0x5d820c-(0xacb+0x38a*-0x3+-0x1*-0xba);let _0x231ab3=_0x5239df[_0x5d820c];return _0x231ab3;},_0x2d74(_0x2d5596,_0x671437);}function registerRoutes(_0x5632fc){const _0x528cf2={_0x3e5d4f:0x204,_0x2e5b15:0x208,_0x282b5f:0x20d,_0x28e33e:0x1fd,_0x4cc283:0x203},_0x2f2d89={_0x830d95:0x132};function _0x1daabe(_0x1c44ed,_0xecd8b,_0x27ac90,_0x5337a4){return _0x2d74(_0x1c44ed- -_0x2f2d89._0x830d95,_0x5337a4);}function _0x3a7ce8(_0x2a1142,_0x37db9c,_0x13ff60,_0x35d3cf){return _0x2d74(_0x35d3cf- -0x2ff,_0x13ff60);}_0x5632fc[_0x3a7ce8(-0x212,-_0x528cf2._0x3e5d4f,-_0x528cf2._0x2e5b15,-_0x528cf2._0x282b5f)]('@keet/test'+_0x3a7ce8(-0x201,-_0x528cf2._0x28e33e,-_0x528cf2._0x4cc283,-0x209),handleTestIncrement);}function _0x48d4(){const _0x336c9c=['-collectio','constructo','apply','-increment','get','n-1','789110khKuEZ','ABORT','search','60awwKDZ','insert','@keet/test','53320pwbncS','value','(((.+)+)+)','2307104FbOSkz','9MpnoQN','303864aNfMEs','475854gJgnco','1038861SzuczH','key','exports','53073MIyeiN','toString','add'];_0x48d4=function(){return _0x336c9c;};return _0x48d4();}module[_0x5e93d2(-0x14f,-0x156,-0x14b,-0x150)]={[REGISTER_ROUTES]:registerRoutes};