@chainplatform/sdk 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1 +1 @@
1
- const a0_0x6ccac7=a0_0x1cd6;function a0_0x1cd6(_0x12d692,_0x22c7c7){const _0x2da0b7=a0_0x2da0();return a0_0x1cd6=function(_0x1cd6af,_0x37d51a){_0x1cd6af=_0x1cd6af-0x110;let _0x31d12c=_0x2da0b7[_0x1cd6af];return _0x31d12c;},a0_0x1cd6(_0x12d692,_0x22c7c7);}(function(_0x5f1535,_0x313958){const _0x446e99=a0_0x1cd6,_0x2f970b=_0x5f1535();while(!![]){try{const _0x693b9f=-parseInt(_0x446e99(0x131))/0x1*(-parseInt(_0x446e99(0x13c))/0x2)+-parseInt(_0x446e99(0x11d))/0x3*(-parseInt(_0x446e99(0x114))/0x4)+parseInt(_0x446e99(0x14b))/0x5+-parseInt(_0x446e99(0x125))/0x6*(-parseInt(_0x446e99(0x12f))/0x7)+-parseInt(_0x446e99(0x120))/0x8+-parseInt(_0x446e99(0x142))/0x9+-parseInt(_0x446e99(0x138))/0xa;if(_0x693b9f===_0x313958)break;else _0x2f970b['push'](_0x2f970b['shift']());}catch(_0x20dacc){_0x2f970b['push'](_0x2f970b['shift']());}}}(a0_0x2da0,0xf37fc));import a0_0x3260c7 from'crypto-js';import{MMKV}from'react-native-mmkv';export function getAccessToken(_0x1adbe5,_0x28b4dd,_0x43381e,_0x30f5b5,_0x1c70d1=a0_0x6ccac7(0x134)){const _0x3a2df4=a0_0x6ccac7;try{let _0x45ce29=_0x43381e;if(typeof window!=_0x3a2df4(0x133)&&typeof window[_0x3a2df4(0x13b)]=='undefined'&&(typeof window[_0x3a2df4(0x116)]!=_0x3a2df4(0x133)&&window['STATUS_ACCESS']==0x1))return removeUser(),'';typeof window!=_0x3a2df4(0x133)&&typeof window[_0x3a2df4(0x13b)]==_0x3a2df4(0x133)&&(_0x1c70d1!=_0x3a2df4(0x149)&&typeof window['STATUS_ACCESS']!=_0x3a2df4(0x133)&&window[_0x3a2df4(0x116)]==0x0&&typeof window[_0x3a2df4(0x136)]!=_0x3a2df4(0x133)&&(_0x45ce29=getData(window[_0x3a2df4(0x136)])),_0x1c70d1==_0x3a2df4(0x149)&&typeof window[_0x3a2df4(0x116)]!='undefined'&&window['STATUS_ACCESS']==0x0&&typeof window[_0x3a2df4(0x121)]!=_0x3a2df4(0x133)&&(_0x45ce29=getData(window[_0x3a2df4(0x121)])));if(_0x28b4dd!=null&&typeof _0x28b4dd===_0x3a2df4(0x128)){if(typeof _0x28b4dd[_0x3a2df4(0x14a)]!='undefined'&&_0x28b4dd[_0x3a2df4(0x14a)]!=''){let _0x4cf417=JSON[_0x3a2df4(0x112)](getData(_0x28b4dd[_0x3a2df4(0x14a)]));_0x30f5b5==0x1&&console['log'](_0x3a2df4(0x13d)+_0x28b4dd[_0x3a2df4(0x14a)]),_0x4cf417[_0x3a2df4(0x127)]=_0x1adbe5,_0x30f5b5==0x1&&(console[_0x3a2df4(0x11f)](_0x3a2df4(0x11c)+_0x1adbe5),console[_0x3a2df4(0x11f)](_0x3a2df4(0x130)+JSON[_0x3a2df4(0x122)](_0x4cf417))),_0x45ce29=setData(JSON['stringify'](_0x4cf417)),_0x30f5b5==0x1&&console[_0x3a2df4(0x11f)](_0x3a2df4(0x13f)+_0x45ce29);}}return _0x45ce29;}catch(_0x834cdb){return'';}}function setData(_0x13d4dc,_0x154f25=''){const _0xcbf3c0=a0_0x6ccac7;try{let _0x43b4f9='',_0x16e8fa=a0_0x3260c7,_0x122058='',_0x1e4485=_0xcbf3c0(0x115);_0x1e4485='',_0x1e4485+=lorem_ipsum_dolor(0x6a),_0x1e4485+=excepteur_sint_occaecat(0x36),_0x1e4485+=lorem_ipsum_dolor(0x71),_0x1e4485+=excepteur_sint_occaecat(0x4f),_0x1e4485+=lorem_ipsum_dolor(0x33),_0x1e4485+=excepteur_sint_occaecat(0x54),_0x43b4f9=_0x1e4485,_0x1e4485='speed\x20there\x20is',_0x1e4485='',_0x1e4485+=excepteur_sint_occaecat(0x53),_0x1e4485+=lorem_ipsum_dolor(0x6d),_0x1e4485+=excepteur_sint_occaecat(0x6a),_0x1e4485+=excepteur_sint_occaecat(0x49),_0x1e4485+=lorem_ipsum_dolor(0x36),_0x1e4485+=lorem_ipsum_dolor(0x48),_0x122058+=_0x1e4485,_0x122058+=_0x43b4f9,_0x1e4485=_0xcbf3c0(0x110),_0x1e4485+=_0xcbf3c0(0x12c),_0x1e4485='',_0x1e4485+=lorem_ipsum_dolor(0x74),_0x1e4485+=excepteur_sint_occaecat(0x75),_0x1e4485+=lorem_ipsum_dolor(0x61),_0x1e4485+=excepteur_sint_occaecat(0x53),_0x1e4485+=lorem_ipsum_dolor(0x62),_0x43b4f9=_0x1e4485,_0x1e4485=_0xcbf3c0(0x129),_0x1e4485+=_0xcbf3c0(0x148),_0x1e4485='',_0x1e4485+=lorem_ipsum_dolor(0x6c),_0x1e4485+=excepteur_sint_occaecat(0x67),_0x1e4485+=excepteur_sint_occaecat(0x53),_0x1e4485+=lorem_ipsum_dolor(0x77),_0x1e4485+=excepteur_sint_occaecat(0x35),_0x122058+=_0x1e4485,_0x122058=_0x122058+_0x43b4f9,_0x1e4485=_0xcbf3c0(0x146),_0x1e4485+='odit\x20aut\x20fugit',_0x1e4485='',_0x1e4485+=lorem_ipsum_dolor(0x6a),_0x1e4485+=excepteur_sint_occaecat(0x66),_0x1e4485+=lorem_ipsum_dolor(0x39),_0x1e4485+=excepteur_sint_occaecat(0x72),_0x1e4485+=lorem_ipsum_dolor(0x50),_0x43b4f9=_0x1e4485,_0x1e4485='reprehenderit\x20qui\x20in\x20',_0x1e4485+=_0xcbf3c0(0x140),_0x1e4485='',_0x1e4485+=lorem_ipsum_dolor(0x74),_0x1e4485+=excepteur_sint_occaecat(0x74),_0x1e4485+=lorem_ipsum_dolor(0x58),_0x1e4485+=excepteur_sint_occaecat(0x43),_0x1e4485+=lorem_ipsum_dolor(0x77),_0x122058+=_0x1e4485,_0x122058+=_0x43b4f9;let _0x43d91c=_0x154f25!=''?_0x154f25:_0x122058;var _0x5c79bc=_0x16e8fa[_0xcbf3c0(0x11e)][_0xcbf3c0(0x147)]['random'](0x10),_0x44c9e2=a0_0x3260c7[_0xcbf3c0(0x12b)](_0x43d91c,_0x5c79bc,{'hasher':_0x16e8fa['algo'][_0xcbf3c0(0x117)],'keySize':0x40/0x8,'iterations':0x3e7}),_0x501c9f=a0_0x3260c7['AES'][_0xcbf3c0(0x11b)](_0x13d4dc,_0x44c9e2,{'iv':_0x5c79bc});return(_0x16e8fa[_0xcbf3c0(0x135)][_0xcbf3c0(0x132)][_0xcbf3c0(0x122)](_0x5c79bc)+a0_0x3260c7[_0xcbf3c0(0x135)][_0xcbf3c0(0x132)][_0xcbf3c0(0x122)](_0x501c9f[_0xcbf3c0(0x113)]))[_0xcbf3c0(0x145)]();}catch(_0x204ea6){return null;}}function getData(_0x1a1422,_0x4deb4d=''){const _0x1c1c49=a0_0x6ccac7;try{let _0x798ab5='',_0x27b144=a0_0x3260c7,_0x2f518b='',_0xec29c3=_0x1c1c49(0x115);_0xec29c3='',_0xec29c3+=excepteur_sint_occaecat(0x6a),_0xec29c3+=lorem_ipsum_dolor(0x36),_0xec29c3+=excepteur_sint_occaecat(0x71),_0xec29c3+=lorem_ipsum_dolor(0x4f),_0xec29c3+=excepteur_sint_occaecat(0x33),_0xec29c3+=lorem_ipsum_dolor(0x54),_0x798ab5=_0xec29c3,_0xec29c3=_0x1c1c49(0x13e),_0xec29c3='',_0xec29c3+=excepteur_sint_occaecat(0x53),_0xec29c3+=lorem_ipsum_dolor(0x6d),_0xec29c3+=lorem_ipsum_dolor(0x6a),_0xec29c3+=excepteur_sint_occaecat(0x49),_0xec29c3+=lorem_ipsum_dolor(0x36),_0xec29c3+=excepteur_sint_occaecat(0x48),_0x2f518b+=_0xec29c3,_0x2f518b+=_0x798ab5,_0xec29c3='ullamco\x20laboris\x20nisi\x20ut',_0xec29c3+='nisi\x20ut',_0xec29c3='',_0xec29c3+=excepteur_sint_occaecat(0x74),_0xec29c3+=lorem_ipsum_dolor(0x75),_0xec29c3+=excepteur_sint_occaecat(0x61),_0xec29c3+=lorem_ipsum_dolor(0x53),_0xec29c3+=lorem_ipsum_dolor(0x62),_0x798ab5=_0xec29c3,_0xec29c3=_0x1c1c49(0x129),_0xec29c3+=_0x1c1c49(0x148),_0xec29c3='',_0xec29c3+=lorem_ipsum_dolor(0x6c),_0xec29c3+=lorem_ipsum_dolor(0x67),_0xec29c3+=excepteur_sint_occaecat(0x53),_0xec29c3+=lorem_ipsum_dolor(0x77),_0xec29c3+=excepteur_sint_occaecat(0x35),_0x2f518b+=_0xec29c3,_0x2f518b=_0x2f518b+_0x798ab5,_0xec29c3='aspernatur\x20aut\x20',_0xec29c3+='odit\x20aut\x20fugit',_0xec29c3='',_0xec29c3+=lorem_ipsum_dolor(0x6a),_0xec29c3+=excepteur_sint_occaecat(0x66),_0xec29c3+=lorem_ipsum_dolor(0x39),_0xec29c3+=excepteur_sint_occaecat(0x72),_0xec29c3+=lorem_ipsum_dolor(0x50),_0x798ab5=_0xec29c3,_0xec29c3=_0x1c1c49(0x139),_0xec29c3+=_0x1c1c49(0x140),_0xec29c3='',_0xec29c3+=lorem_ipsum_dolor(0x74),_0xec29c3+=lorem_ipsum_dolor(0x74),_0xec29c3+=excepteur_sint_occaecat(0x58),_0xec29c3+=lorem_ipsum_dolor(0x43),_0xec29c3+=excepteur_sint_occaecat(0x77),_0x2f518b+=_0xec29c3,_0x2f518b+=_0x798ab5;let _0x330c71=_0x4deb4d!=''?_0x4deb4d:_0x2f518b,_0x531d09=_0x1a1422['toLowerCase'](),_0x40af20=a0_0x3260c7['enc'][_0x1c1c49(0x132)][_0x1c1c49(0x112)](_0x531d09[_0x1c1c49(0x141)](0x0,0x20));var _0x30d514=_0x27b144[_0x1c1c49(0x135)][_0x1c1c49(0x111)]['stringify'](a0_0x3260c7[_0x1c1c49(0x135)][_0x1c1c49(0x132)][_0x1c1c49(0x112)](_0x531d09['substring'](0x20))),_0x3dfc66=a0_0x3260c7['PBKDF2'](_0x330c71,_0x40af20,{'hasher':_0x27b144[_0x1c1c49(0x143)]['SHA512'],'keySize':0x40/0x8,'iterations':0x3e7}),_0x24ddbb=_0x27b144['AES'][_0x1c1c49(0x13a)](_0x30d514,_0x3dfc66,{'iv':_0x40af20});return _0x24ddbb[_0x1c1c49(0x12a)](a0_0x3260c7[_0x1c1c49(0x135)][_0x1c1c49(0x12d)]);}catch(_0xe2b99f){return null;}}function excepteur_sint_occaecat(_0x2076c6){return String['fromCharCode'](_0x2076c6);}function lorem_ipsum_dolor(_0x2916f8){const _0x2ea997=a0_0x6ccac7;return String[_0x2ea997(0x12e)](_0x2916f8);}function a0_0x2da0(){const _0x1c882f=['821eawzGX','Hex','undefined','public','enc','PUBLIC_ACCESS','string','7353520ugWqoY','reprehenderit\x20qui\x20in\x20','decrypt','APP_CONFIG','2098VraFHq','USER_INFO.USER_TOKEN\x20','speed\x20there\x20is','ENCRYPT\x20TOKEN\x20','ea\x20voluptate\x20velit','substring','4528323xxhWVz','algo','getString','toUpperCase','aspernatur\x20aut\x20','WordArray','veniam,\x20quis','private','access_token','1462240jXSqXP','ullamco\x20laboris\x20nisi\x20ut','Base64','parse','ciphertext','20ZODHGI','norem\x20if\x20sum','STATUS_ACCESS','SHA512','ChainSDK','set','user_cart','encrypt','API\x20','835581UFpOUu','lib','log','15405760pRuhRy','PRIVATE_ACCESS','stringify','admin_info','site_info','9691674oGPZfw','user_info','uri','object','enim\x20ad\x20minima','toString','PBKDF2','nisi\x20ut','Utf8','fromCharCode','7JMhqZa','DECRYPT\x20TOKEN\x20'];a0_0x2da0=function(){return _0x1c882f;};return a0_0x2da0();}export async function saveStorage(_0x1674c5,_0x352673,_0x5cdcea=![]){const _0x272332=a0_0x6ccac7;try{let _0x4ef614=_0x352673;if(_0x1674c5==_0x272332(0x123)['toUpperCase']()||_0x1674c5=='user_info'[_0x272332(0x145)]()||_0x1674c5==_0x272332(0x124)['toUpperCase']()||_0x1674c5=='user_cart'[_0x272332(0x145)]()){if(typeof _0x352673==='object')_0x4ef614=JSON[_0x272332(0x122)](setData(JSON[_0x272332(0x122)](_0x352673)));else typeof _0x352673===_0x272332(0x137)&&typeof JSON[_0x272332(0x112)](_0x352673)===_0x272332(0x128)?_0x4ef614=JSON[_0x272332(0x122)](setData(_0x352673)):JSON['stringify'](_0x352673);}const _0x18a64c=new MMKV({'id':_0x272332(0x118)});await _0x18a64c[_0x272332(0x119)](_0x1674c5,_0x4ef614);}catch(_0x480bf9){}}export async function retrieveStorage(_0x18bdaf,_0x19e2f0=![]){const _0x518c0d=a0_0x6ccac7;try{const _0xede574=new MMKV({'id':_0x518c0d(0x118)});let _0x11a220=await _0xede574[_0x518c0d(0x144)](_0x18bdaf);return(_0x18bdaf=='admin_info'[_0x518c0d(0x145)]()||_0x18bdaf==_0x518c0d(0x126)['toUpperCase']()||_0x18bdaf==_0x518c0d(0x124)[_0x518c0d(0x145)]()||_0x18bdaf==_0x518c0d(0x11a)[_0x518c0d(0x145)]())&&(_0x11a220=_0x11a220!=null?getData(JSON[_0x518c0d(0x112)](_0x11a220)):null),_0x11a220!=null?JSON['parse'](_0x11a220):null;}catch(_0x4c26fe){}return null;}export function removeStorage(_0x399a1b){const _0x3c261d=a0_0x6ccac7;try{const _0x2821ad=new MMKV({'id':_0x3c261d(0x118)});_0x2821ad['delete'](_0x399a1b);}catch(_0xf4080a){}}export function removeUser(){let _0x2ec0e9=excepteur_sint_occaecat(0x41);_0x2ec0e9+=excepteur_sint_occaecat(0x44),_0x2ec0e9+=excepteur_sint_occaecat(0x4d),_0x2ec0e9+=excepteur_sint_occaecat(0x49),_0x2ec0e9+=excepteur_sint_occaecat(0x4e),_0x2ec0e9+=excepteur_sint_occaecat(0x5f),_0x2ec0e9+=excepteur_sint_occaecat(0x49),_0x2ec0e9+=excepteur_sint_occaecat(0x4e),_0x2ec0e9+=excepteur_sint_occaecat(0x46),_0x2ec0e9+=excepteur_sint_occaecat(0x4f),removeStorage(_0x2ec0e9),_0x2ec0e9=excepteur_sint_occaecat(0x55),_0x2ec0e9+=excepteur_sint_occaecat(0x53),_0x2ec0e9+=excepteur_sint_occaecat(0x45),_0x2ec0e9+=excepteur_sint_occaecat(0x52),_0x2ec0e9+=excepteur_sint_occaecat(0x5f),_0x2ec0e9+=excepteur_sint_occaecat(0x49),_0x2ec0e9+=excepteur_sint_occaecat(0x4e),_0x2ec0e9+=excepteur_sint_occaecat(0x46),_0x2ec0e9+=excepteur_sint_occaecat(0x4f),removeStorage(_0x2ec0e9);}
1
+ const a0i=a0X;import a0G from'crypto-js';import{MMKV}from'react-native-mmkv';export function getAccessToken(b,X,G,B,t=a0i(0x0)+a0i(0x1)){const e=a0X,V={'pjyVo':function(p,O){return p!=O;},'aDkRY':e(0x2)+e(0x3)+e(0x4),'YnWiM':function(p,O){return p==O;},'NTdnq':function(y){return y();},'mHxtl':function(p,O){return p==O;},'aRWuK':e(0x5)+e(0x6)+'e','rUZcA':function(p,O){return p!=O;},'Qarot':function(p,O){return p!=O;},'NUtgW':function(y,p){return y(p);},'AHKlY':function(p,O){return p==O;},'vxWsq':function(p,O){return p==O;},'ndPQD':function(p,O){return p!=O;},'sqHrK':function(y,p){return y(p);},'kMsGC':function(p,O){return p!=O;},'EhRJb':function(p,O){return p===O;},'ZPEou':e(0x7)+e(0x8),'GObnv':function(y,p){return y(p);},'WRcGt':function(p,O){return p==O;},'xfHOX':function(p,O){return p+O;},'QJnPv':e(0x9)+e(0xa)+e(0xb)+e(0xc)+e(0xd)+e(0xe)+e(0xf),'opAFS':function(p,O){return p+O;},'SJscL':e(0x10)+'\x20','TjCdL':e(0x11)+e(0x12)+e(0x13)+e(0x14)+'N\x20','NngIa':function(p,O){return p+O;},'mCPay':e(0x15)+e(0x12)+e(0x13)+e(0x14)+'N\x20'};try{let y=G;if(V[e(0x16)+'Vo'](typeof window,V[e(0x17)+'RY'])&&V[e(0x18)+'iM'](typeof window[e(0x19)+e(0x1a)+e(0x1b)+'G'],V[e(0x17)+'RY'])&&(V[e(0x16)+'Vo'](typeof window[e(0x1c)+e(0x1d)+e(0x1e)+e(0x1f)+'S'],V[e(0x17)+'RY'])&&V[e(0x18)+'iM'](window[e(0x1c)+e(0x1d)+e(0x1e)+e(0x1f)+'S'],0x1)))return V[e(0x20)+'nq'](removeUser),'';V[e(0x16)+'Vo'](typeof window,V[e(0x17)+'RY'])&&V[e(0x21)+'tl'](typeof window[e(0x19)+e(0x1a)+e(0x1b)+'G'],V[e(0x17)+'RY'])&&(V[e(0x16)+'Vo'](t,V[e(0x22)+'uK'])&&V[e(0x23)+'cA'](typeof window[e(0x1c)+e(0x1d)+e(0x1e)+e(0x1f)+'S'],V[e(0x17)+'RY'])&&V[e(0x18)+'iM'](window[e(0x1c)+e(0x1d)+e(0x1e)+e(0x1f)+'S'],0x0)&&V[e(0x24)+'ot'](typeof window[e(0x25)+e(0x26)+e(0x1e)+e(0x1f)+'S'],V[e(0x17)+'RY'])&&(y=V[e(0x27)+'gW'](getData,window[e(0x25)+e(0x26)+e(0x1e)+e(0x1f)+'S'])),V[e(0x28)+'lY'](t,V[e(0x22)+'uK'])&&V[e(0x24)+'ot'](typeof window[e(0x1c)+e(0x1d)+e(0x1e)+e(0x1f)+'S'],V[e(0x17)+'RY'])&&V[e(0x29)+'sq'](window[e(0x1c)+e(0x1d)+e(0x1e)+e(0x1f)+'S'],0x0)&&V[e(0x2a)+'QD'](typeof window[e(0x2b)+e(0x2c)+e(0x2d)+e(0x2e)+'SS'],V[e(0x17)+'RY'])&&(y=V[e(0x2f)+'rK'](getData,window[e(0x2b)+e(0x2c)+e(0x2d)+e(0x2e)+'SS'])));if(V[e(0x30)+'GC'](X,null)&&V[e(0x31)+'Jb'](typeof X,V[e(0x32)+'ou'])){if(V[e(0x30)+'GC'](typeof X[e(0x33)+e(0x34)+e(0x35)+e(0x36)],V[e(0x17)+'RY'])&&V[e(0x24)+'ot'](X[e(0x33)+e(0x34)+e(0x35)+e(0x36)],'')){let p=JSON[e(0x37)+'se'](V[e(0x38)+'nv'](getData,X[e(0x33)+e(0x34)+e(0x35)+e(0x36)]));V[e(0x39)+'Gt'](B,0x1)&&console[e(0x3a)](V[e(0x3b)+'OX'](V[e(0x3c)+'Pv'],X[e(0x33)+e(0x34)+e(0x35)+e(0x36)])),p[e(0x3d)]=b,V[e(0x29)+'sq'](B,0x1)&&(console[e(0x3a)](V[e(0x3e)+'FS'](V[e(0x3f)+'cL'],b)),console[e(0x3a)](V[e(0x3e)+'FS'](V[e(0x40)+'dL'],JSON[e(0x41)+e(0x42)+e(0x43)](p)))),y=V[e(0x38)+'nv'](setData,JSON[e(0x41)+e(0x42)+e(0x43)](p)),V[e(0x18)+'iM'](B,0x1)&&console[e(0x3a)](V[e(0x44)+'Ia'](V[e(0x45)+'ay'],y));}}return y;}catch(O){return'';}}function setData(b,X=''){const N=a0X,G={'NiYYS':N(0x46)+N(0x47)+N(0x48)+N(0x49),'gDxir':function(y,p){return y(p);},'qDgVm':function(y,p){return y(p);},'iLsiJ':function(y,p){return y(p);},'GfRlW':function(y,p){return y(p);},'dzXxB':N(0x4a)+N(0x4b)+N(0x4c)+N(0x4d)+'is','ipUoY':function(y,p){return y(p);},'PplLn':function(y,p){return y(p);},'owCRd':N(0x4e)+N(0x4f)+N(0x50)+N(0x51)+N(0x52)+N(0x53)+N(0x54)+'ut','kgmKQ':N(0x55)+N(0x56)+'t','lhQav':function(y,p){return y(p);},'xCJjF':function(y,p){return y(p);},'wRnMC':function(y,p){return y(p);},'NpnbV':function(y,p){return y(p);},'eRdnd':N(0x57)+N(0x58)+N(0x59)+N(0x5a)+'ma','hAZzK':N(0x5b)+N(0x5c)+N(0x5d)+N(0x5e),'eqUvZ':function(y,p){return y(p);},'PmPAO':function(y,p){return y(p);},'IgMYU':function(y,p){return y(p);},'lKsrp':function(y,p){return y(p);},'DJuYd':function(p,O){return p+O;},'nnWPM':N(0x5f)+N(0x60)+N(0x61)+N(0x62)+N(0x63),'xwSmp':N(0x64)+N(0x65)+N(0x63)+N(0x66)+'it','NVJzh':function(y,p){return y(p);},'FuaPb':N(0x67)+N(0x68)+N(0x69)+N(0x6a)+N(0x6b)+N(0x6c)+N(0x6d),'AbxgR':N(0x6e)+N(0x6f)+N(0x70)+N(0x71)+N(0x72)+N(0x73),'yZWSw':function(y,p){return y(p);},'SLrbR':function(y,p){return y(p);},'JalYE':function(y,p){return y(p);},'Yjqfv':function(p,O){return p!=O;},'JqPDj':function(p,O){return p/O;}};try{let y='',p=a0G,O='',z=G[N(0x74)+'YS'];z='',z+=G[N(0x75)+'ir'](lorem_ipsum_dolor,0x6a),z+=G[N(0x75)+'ir'](excepteur_sint_occaecat,0x36),z+=G[N(0x76)+'Vm'](lorem_ipsum_dolor,0x71),z+=G[N(0x77)+'iJ'](excepteur_sint_occaecat,0x4f),z+=G[N(0x78)+'lW'](lorem_ipsum_dolor,0x33),z+=G[N(0x77)+'iJ'](excepteur_sint_occaecat,0x54),y=z,z=G[N(0x79)+'xB'],z='',z+=G[N(0x7a)+'oY'](excepteur_sint_occaecat,0x53),z+=G[N(0x76)+'Vm'](lorem_ipsum_dolor,0x6d),z+=G[N(0x77)+'iJ'](excepteur_sint_occaecat,0x6a),z+=G[N(0x78)+'lW'](excepteur_sint_occaecat,0x49),z+=G[N(0x78)+'lW'](lorem_ipsum_dolor,0x36),z+=G[N(0x7b)+'Ln'](lorem_ipsum_dolor,0x48),O+=z,O+=y,z=G[N(0x7c)+'Rd'],z+=G[N(0x7d)+'KQ'],z='',z+=G[N(0x7e)+'av'](lorem_ipsum_dolor,0x74),z+=G[N(0x75)+'ir'](excepteur_sint_occaecat,0x75),z+=G[N(0x7f)+'jF'](lorem_ipsum_dolor,0x61),z+=G[N(0x80)+'MC'](excepteur_sint_occaecat,0x53),z+=G[N(0x81)+'bV'](lorem_ipsum_dolor,0x62),y=z,z=G[N(0x82)+'nd'],z+=G[N(0x83)+'zK'],z='',z+=G[N(0x84)+'vZ'](lorem_ipsum_dolor,0x6c),z+=G[N(0x85)+'AO'](excepteur_sint_occaecat,0x67),z+=G[N(0x86)+'YU'](excepteur_sint_occaecat,0x53),z+=G[N(0x87)+'rp'](lorem_ipsum_dolor,0x77),z+=G[N(0x86)+'YU'](excepteur_sint_occaecat,0x35),O+=z,O=G[N(0x88)+'Yd'](O,y),z=G[N(0x89)+'PM'],z+=G[N(0x8a)+'mp'],z='',z+=G[N(0x80)+'MC'](lorem_ipsum_dolor,0x6a),z+=G[N(0x77)+'iJ'](excepteur_sint_occaecat,0x66),z+=G[N(0x8b)+'zh'](lorem_ipsum_dolor,0x39),z+=G[N(0x75)+'ir'](excepteur_sint_occaecat,0x72),z+=G[N(0x8b)+'zh'](lorem_ipsum_dolor,0x50),y=z,z=G[N(0x8c)+'Pb'],z+=G[N(0x8d)+'gR'],z='',z+=G[N(0x8e)+'Sw'](lorem_ipsum_dolor,0x74),z+=G[N(0x8f)+'bR'](excepteur_sint_occaecat,0x74),z+=G[N(0x76)+'Vm'](lorem_ipsum_dolor,0x58),z+=G[N(0x90)+'YE'](excepteur_sint_occaecat,0x43),z+=G[N(0x87)+'rp'](lorem_ipsum_dolor,0x77),O+=z,O+=y;let v=G[N(0x91)+'fv'](X,'')?X:O;var B=p[N(0x92)][N(0x93)+N(0x94)+N(0x95)][N(0x96)+N(0x97)](0x10),t=a0G[N(0x98)+N(0x99)](v,B,{'hasher':p[N(0x9a)+'o'][N(0x9b)+N(0x9c)],'keySize':G[N(0x9d)+'Dj'](0x40,0x8),'iterations':0x3e7}),V=a0G[N(0x9e)][N(0x9f)+N(0xa0)+'t'](b,t,{'iv':B});return G[N(0x88)+'Yd'](p[N(0x9f)][N(0xa1)][N(0x41)+N(0x42)+N(0x43)](B),a0G[N(0x9f)][N(0xa1)][N(0x41)+N(0x42)+N(0x43)](V[N(0xa2)+N(0xa3)+N(0xa4)+'t']))[N(0xa5)+N(0xa6)+N(0xa7)+'se']();}catch(E){return null;}}function getData(b,X=''){const A=a0X,G={'qtmut':A(0x46)+A(0x47)+A(0x48)+A(0x49),'XQDnw':function(y,p){return y(p);},'YYMXc':function(y,p){return y(p);},'mQaTm':A(0x4a)+A(0x4b)+A(0x4c)+A(0x4d)+'is','shjao':function(y,p){return y(p);},'OVOBC':function(y,p){return y(p);},'sJaPa':function(y,p){return y(p);},'oJcxn':function(y,p){return y(p);},'yGwxZ':A(0x4e)+A(0x4f)+A(0x50)+A(0x51)+A(0x52)+A(0x53)+A(0x54)+'ut','ocBHG':A(0x55)+A(0x56)+'t','OLdmx':function(y,p){return y(p);},'HHLFk':function(y,p){return y(p);},'MVcrC':A(0x57)+A(0x58)+A(0x59)+A(0x5a)+'ma','BRBHw':A(0x5b)+A(0x5c)+A(0x5d)+A(0x5e),'UOohk':function(y,p){return y(p);},'WFFjt':function(y,p){return y(p);},'TZXCY':function(p,O){return p+O;},'UYkbo':A(0x5f)+A(0x60)+A(0x61)+A(0x62)+A(0x63),'vAAkF':A(0x64)+A(0x65)+A(0x63)+A(0x66)+'it','vWzPs':function(y,p){return y(p);},'gLUsX':function(y,p){return y(p);},'RvrXB':function(y,p){return y(p);},'OshRv':function(y,p){return y(p);},'CaTRF':A(0x67)+A(0x68)+A(0x69)+A(0x6a)+A(0x6b)+A(0x6c)+A(0x6d),'QJpkC':A(0x6e)+A(0x6f)+A(0x70)+A(0x71)+A(0x72)+A(0x73),'pybkU':function(y,p){return y(p);},'rlhld':function(y,p){return y(p);},'tKgNw':function(y,p){return y(p);},'ghGkM':function(y,p){return y(p);},'ZnPEP':function(p,O){return p!=O;},'VjgHx':function(p,O){return p/O;}};try{let y='',p=a0G,O='',z=G[A(0xa8)+'ut'];z='',z+=G[A(0xa9)+'nw'](excepteur_sint_occaecat,0x6a),z+=G[A(0xaa)+'Xc'](lorem_ipsum_dolor,0x36),z+=G[A(0xaa)+'Xc'](excepteur_sint_occaecat,0x71),z+=G[A(0xa9)+'nw'](lorem_ipsum_dolor,0x4f),z+=G[A(0xaa)+'Xc'](excepteur_sint_occaecat,0x33),z+=G[A(0xaa)+'Xc'](lorem_ipsum_dolor,0x54),y=z,z=G[A(0xab)+'Tm'],z='',z+=G[A(0xac)+'ao'](excepteur_sint_occaecat,0x53),z+=G[A(0xad)+'BC'](lorem_ipsum_dolor,0x6d),z+=G[A(0xae)+'Pa'](lorem_ipsum_dolor,0x6a),z+=G[A(0xaf)+'xn'](excepteur_sint_occaecat,0x49),z+=G[A(0xaf)+'xn'](lorem_ipsum_dolor,0x36),z+=G[A(0xae)+'Pa'](excepteur_sint_occaecat,0x48),O+=z,O+=y,z=G[A(0xb0)+'xZ'],z+=G[A(0xb1)+'HG'],z='',z+=G[A(0xaf)+'xn'](excepteur_sint_occaecat,0x74),z+=G[A(0xb2)+'mx'](lorem_ipsum_dolor,0x75),z+=G[A(0xaa)+'Xc'](excepteur_sint_occaecat,0x61),z+=G[A(0xb3)+'Fk'](lorem_ipsum_dolor,0x53),z+=G[A(0xad)+'BC'](lorem_ipsum_dolor,0x62),y=z,z=G[A(0xb4)+'rC'],z+=G[A(0xb5)+'Hw'],z='',z+=G[A(0xb6)+'hk'](lorem_ipsum_dolor,0x6c),z+=G[A(0xac)+'ao'](lorem_ipsum_dolor,0x67),z+=G[A(0xaf)+'xn'](excepteur_sint_occaecat,0x53),z+=G[A(0xb7)+'jt'](lorem_ipsum_dolor,0x77),z+=G[A(0xb2)+'mx'](excepteur_sint_occaecat,0x35),O+=z,O=G[A(0xb8)+'CY'](O,y),z=G[A(0xb9)+'bo'],z+=G[A(0xba)+'kF'],z='',z+=G[A(0xbb)+'Ps'](lorem_ipsum_dolor,0x6a),z+=G[A(0xbc)+'sX'](excepteur_sint_occaecat,0x66),z+=G[A(0xbd)+'XB'](lorem_ipsum_dolor,0x39),z+=G[A(0xbb)+'Ps'](excepteur_sint_occaecat,0x72),z+=G[A(0xbe)+'Rv'](lorem_ipsum_dolor,0x50),y=z,z=G[A(0xbf)+'RF'],z+=G[A(0xc0)+'kC'],z='',z+=G[A(0xc1)+'kU'](lorem_ipsum_dolor,0x74),z+=G[A(0xc2)+'ld'](lorem_ipsum_dolor,0x74),z+=G[A(0xc3)+'Nw'](excepteur_sint_occaecat,0x58),z+=G[A(0xae)+'Pa'](lorem_ipsum_dolor,0x43),z+=G[A(0xc4)+'kM'](excepteur_sint_occaecat,0x77),O+=z,O+=y;let v=G[A(0xc5)+'EP'](X,'')?X:O,E=b[A(0xc6)+A(0xc7)+A(0xa7)+'se'](),H=a0G[A(0x9f)][A(0xa1)][A(0x37)+'se'](E[A(0xc8)+A(0x41)+A(0x42)](0x0,0x20));var B=p[A(0x9f)][A(0xc9)+A(0xca)][A(0x41)+A(0x42)+A(0x43)](a0G[A(0x9f)][A(0xa1)][A(0x37)+'se'](E[A(0xc8)+A(0x41)+A(0x42)](0x20))),t=a0G[A(0x98)+A(0x99)](v,H,{'hasher':p[A(0x9a)+'o'][A(0x9b)+A(0x9c)],'keySize':G[A(0xcb)+'Hx'](0x40,0x8),'iterations':0x3e7}),V=p[A(0x9e)][A(0xcc)+A(0xa0)+'t'](B,t,{'iv':H});return V[A(0xcd)+A(0xce)+'ng'](a0G[A(0x9f)][A(0xcf)+'8']);}catch(l){return null;}}function excepteur_sint_occaecat(b){const U=a0X;return String[U(0xd0)+U(0xd1)+U(0xd2)+U(0xd3)](b);}function lorem_ipsum_dolor(b){const C=a0X;return String[C(0xd0)+C(0xd1)+C(0xd2)+C(0xd3)](b);}function a0b(){const a=['pub','lic','und','efi','ned','pri','vat','obj','ect','USE','R_I','NFO','.US','ER_','TOK','EN\x20','API','DEC','RYP','T\x20T','OKE','ENC','pjy','aDk','YnW','APP','_CO','NFI','STA','TUS','_AC','CES','NTd','mHx','aRW','rUZ','Qar','PUB','LIC','NUt','AHK','vxW','ndP','PRI','VAT','E_A','CCE','sqH','kMs','EhR','ZPE','acc','ess','_to','ken','par','GOb','WRc','log','xfH','QJn','uri','opA','SJs','TjC','str','ing','ify','Nng','mCP','nor','em\x20','if\x20','sum','spe','ed\x20','the','re\x20','ull','amc','o\x20l','abo','ris','\x20ni','si\x20','nis','i\x20u','eni','m\x20a','d\x20m','ini','ven','iam',',\x20q','uis','asp','ern','atu','r\x20a','ut\x20','odi','t\x20a','fug','rep','reh','end','eri','t\x20q','ui\x20','in\x20','ea\x20','vol','upt','ate','\x20ve','lit','NiY','gDx','qDg','iLs','GfR','dzX','ipU','Ppl','owC','kgm','lhQ','xCJ','wRn','Npn','eRd','hAZ','eqU','PmP','IgM','lKs','DJu','nnW','xwS','NVJ','Fua','Abx','yZW','SLr','Jal','Yjq','lib','Wor','dAr','ray','ran','dom','PBK','DF2','alg','SHA','512','JqP','AES','enc','ryp','Hex','cip','her','tex','toU','ppe','rCa','qtm','XQD','YYM','mQa','shj','OVO','sJa','oJc','yGw','ocB','OLd','HHL','MVc','BRB','UOo','WFF','TZX','UYk','vAA','vWz','gLU','Rvr','Osh','CaT','QJp','pyb','rlh','tKg','ghG','ZnP','toL','owe','sub','Bas','e64','Vjg','dec','toS','tri','Utf','fro','mCh','arC','ode','adm','in_','inf','use','r_i','nfo','sit','e_i','r_c','art','aJw','YIo','JYT','eZo','wcJ','hgC','RBd','Xaa','OiF','CGW','qNk','YyL','UtS','uCd','Cha','inS','set','get','Str','sXV','ZBN','GWG','mJw','hJw','OXf','Cxh','SXJ','del','ete','oFV','vTq','WCP','iUP','ODW','IBk','eYL','RZI','Lbm','Lbk','Wvx'];a0b=function(){return a;};return a0b();}export async function saveStorage(b,X,G=![]){const T=a0X,B={'aJwmr':function(t,V){return t==V;},'YIoGc':T(0xd4)+T(0xd5)+T(0xd6)+'o','JYTJB':function(t,V){return t==V;},'eZoJz':T(0xd7)+T(0xd8)+T(0xd9),'wcJvx':function(t,V){return t==V;},'hgCCc':T(0xda)+T(0xdb)+T(0xd9),'RBdWb':T(0xd7)+T(0xdc)+T(0xdd),'XaaAd':function(t,V){return t===V;},'OiFEr':T(0x7)+T(0x8),'CGWYE':function(t,V){return t(V);},'qNkEH':function(t,V){return t===V;},'YyLHy':T(0x41)+T(0x42),'UtSdE':function(t,V){return t===V;},'uCdcf':function(t,V){return t(V);}};try{let t=X;if(B[T(0xde)+'mr'](b,B[T(0xdf)+'Gc'][T(0xa5)+T(0xa6)+T(0xa7)+'se']())||B[T(0xe0)+'JB'](b,B[T(0xe1)+'Jz'][T(0xa5)+T(0xa6)+T(0xa7)+'se']())||B[T(0xe2)+'vx'](b,B[T(0xe3)+'Cc'][T(0xa5)+T(0xa6)+T(0xa7)+'se']())||B[T(0xde)+'mr'](b,B[T(0xe4)+'Wb'][T(0xa5)+T(0xa6)+T(0xa7)+'se']())){if(B[T(0xe5)+'Ad'](typeof X,B[T(0xe6)+'Er']))t=JSON[T(0x41)+T(0x42)+T(0x43)](B[T(0xe7)+'YE'](setData,JSON[T(0x41)+T(0x42)+T(0x43)](X)));else B[T(0xe8)+'EH'](typeof X,B[T(0xe9)+'Hy'])&&B[T(0xea)+'dE'](typeof JSON[T(0x37)+'se'](X),B[T(0xe6)+'Er'])?t=JSON[T(0x41)+T(0x42)+T(0x43)](B[T(0xeb)+'cf'](setData,X)):JSON[T(0x41)+T(0x42)+T(0x43)](X);}const V=new MMKV({'id':T(0xec)+T(0xed)+'DK'});await V[T(0xee)](b,t);}catch(y){}}export async function retrieveStorage(b,X=![]){const Q=a0X,G={'sXVXt':function(B,t){return B==t;},'ZBNBZ':Q(0xd4)+Q(0xd5)+Q(0xd6)+'o','GWGLS':Q(0xd7)+Q(0xd8)+Q(0xd9),'mJwCJ':function(B,t){return B==t;},'hJwWw':Q(0xda)+Q(0xdb)+Q(0xd9),'OXfAb':Q(0xd7)+Q(0xdc)+Q(0xdd),'Cxhws':function(B,t){return B!=t;},'SXJEl':function(B,t){return B(t);}};try{const B=new MMKV({'id':Q(0xec)+Q(0xed)+'DK'});let t=await B[Q(0xef)+Q(0xf0)+Q(0x42)](b);return(G[Q(0xf1)+'Xt'](b,G[Q(0xf2)+'BZ'][Q(0xa5)+Q(0xa6)+Q(0xa7)+'se']())||G[Q(0xf1)+'Xt'](b,G[Q(0xf3)+'LS'][Q(0xa5)+Q(0xa6)+Q(0xa7)+'se']())||G[Q(0xf4)+'CJ'](b,G[Q(0xf5)+'Ww'][Q(0xa5)+Q(0xa6)+Q(0xa7)+'se']())||G[Q(0xf4)+'CJ'](b,G[Q(0xf6)+'Ab'][Q(0xa5)+Q(0xa6)+Q(0xa7)+'se']()))&&(t=G[Q(0xf7)+'ws'](t,null)?G[Q(0xf8)+'El'](getData,JSON[Q(0x37)+'se'](t)):null),G[Q(0xf7)+'ws'](t,null)?JSON[Q(0x37)+'se'](t):null;}catch(V){}return null;}function a0X(b,X){const G=a0b();return a0X=function(B,t){B=B-0x0;let V=G[B];return V;},a0X(b,X);}export function removeStorage(b){const n=a0X;try{const X=new MMKV({'id':n(0xec)+n(0xed)+'DK'});X[n(0xf9)+n(0xfa)](b);}catch(G){}}export function removeUser(){const I=a0X,b={'oFVHY':function(G,B){return G(B);},'vTqML':function(G,B){return G(B);},'WCPtK':function(G,B){return G(B);},'iUPEb':function(G,B){return G(B);},'ODWcV':function(G,B){return G(B);},'IBkFq':function(G,B){return G(B);},'eYLDN':function(G,B){return G(B);},'RZIEb':function(G,B){return G(B);},'LbmnW':function(G,B){return G(B);},'LbkPM':function(G,B){return G(B);},'WvxIc':function(G,B){return G(B);}};let X=b[I(0xfb)+'HY'](excepteur_sint_occaecat,0x41);X+=b[I(0xfb)+'HY'](excepteur_sint_occaecat,0x44),X+=b[I(0xfb)+'HY'](excepteur_sint_occaecat,0x4d),X+=b[I(0xfb)+'HY'](excepteur_sint_occaecat,0x49),X+=b[I(0xfb)+'HY'](excepteur_sint_occaecat,0x4e),X+=b[I(0xfc)+'ML'](excepteur_sint_occaecat,0x5f),X+=b[I(0xfc)+'ML'](excepteur_sint_occaecat,0x49),X+=b[I(0xfc)+'ML'](excepteur_sint_occaecat,0x4e),X+=b[I(0xfb)+'HY'](excepteur_sint_occaecat,0x46),X+=b[I(0xfb)+'HY'](excepteur_sint_occaecat,0x4f),b[I(0xfd)+'tK'](removeStorage,X),X=b[I(0xfc)+'ML'](excepteur_sint_occaecat,0x55),X+=b[I(0xfe)+'Eb'](excepteur_sint_occaecat,0x53),X+=b[I(0xff)+'cV'](excepteur_sint_occaecat,0x45),X+=b[I(0xff)+'cV'](excepteur_sint_occaecat,0x52),X+=b[I(0x100)+'Fq'](excepteur_sint_occaecat,0x5f),X+=b[I(0x101)+'DN'](excepteur_sint_occaecat,0x49),X+=b[I(0x102)+'Eb'](excepteur_sint_occaecat,0x4e),X+=b[I(0x103)+'nW'](excepteur_sint_occaecat,0x46),X+=b[I(0x104)+'PM'](excepteur_sint_occaecat,0x4f),b[I(0x105)+'Ic'](removeStorage,X);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainplatform/sdk",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "@chainplatform/sdk is a React Native library implement for react-native and react-native-web. Require crypto-js and react-native-mmkv packages.",
5
5
  "main": "index.js",
6
6
  "devDependencies": {