@chainplatform/sdk 0.4.2 → 0.4.3

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 a0j=a0d;function a0d(H,d){const s=a0H();return a0d=function(y,t){y=y-0x0;let k=s[y];return k;},a0d(H,d);}import a0s from'crypto-js';import{MMKV}from'react-native-mmkv';export function getAccessToken(H,d,s,y,t=a0j('0x0')+a0j('0x1')){const o=a0d,k={'kzcQj':function(E,u){return E!=u;},'neBOi':o('0x2')+o('0x3')+o('0x4'),'AGEPY':function(E,u){return E==u;},'FrOrZ':function(E,u){return E==u;},'BowGf':function(E){return E();},'XlQHf':function(E,u){return E!=u;},'KDoaV':o('0x5')+o('0x6')+'e','YrkNC':function(E,u){return E(u);},'fgQnw':function(E,u){return E==u;},'jrWqM':function(E,u){return E==u;},'eGFxu':function(E,u){return E!=u;},'eWsxl':function(E,u){return E!=u;},'ksUHR':function(E,u){return E===u;},'oTlbw':o('0x7')+o('0x8'),'sUimv':function(E,u){return E!=u;},'LRxGE':function(E,u){return E!=u;},'wlYJc':function(E,u){return E+u;},'qqfFk':o('0x9')+o('0xa')+o('0xb')+o('0xc')+o('0xd')+o('0xe')+o('0xf'),'hjdDP':o('0x10')+'\x20','xakUA':function(E,u){return E+u;},'psvuI':o('0x11')+o('0x12')+o('0x13')+o('0x14')+'N\x20','XpDgs':function(E,u){return E+u;},'nqyLq':o('0x15')+o('0x12')+o('0x13')+o('0x14')+'N\x20'};try{let E=s;if(k[o('0x16')+'Qj'](typeof window,k[o('0x17')+'Oi'])&&k[o('0x18')+'PY'](typeof window[o('0x19')+o('0x1a')+o('0x1b')+'G'],k[o('0x17')+'Oi'])&&(k[o('0x16')+'Qj'](typeof window[o('0x1c')+o('0x1d')+o('0x1e')+o('0x1f')+'S'],k[o('0x17')+'Oi'])&&k[o('0x20')+'rZ'](window[o('0x1c')+o('0x1d')+o('0x1e')+o('0x1f')+'S'],0x1)))return k[o('0x21')+'Gf'](removeUser),'';k[o('0x16')+'Qj'](typeof window,k[o('0x17')+'Oi'])&&k[o('0x18')+'PY'](typeof window[o('0x19')+o('0x1a')+o('0x1b')+'G'],k[o('0x17')+'Oi'])&&(k[o('0x22')+'Hf'](t,k[o('0x23')+'aV'])&&k[o('0x22')+'Hf'](typeof window[o('0x1c')+o('0x1d')+o('0x1e')+o('0x1f')+'S'],k[o('0x17')+'Oi'])&&k[o('0x20')+'rZ'](window[o('0x1c')+o('0x1d')+o('0x1e')+o('0x1f')+'S'],0x0)&&k[o('0x16')+'Qj'](typeof window[o('0x24')+o('0x25')+o('0x1e')+o('0x1f')+'S'],k[o('0x17')+'Oi'])&&(E=k[o('0x26')+'NC'](getData,window[o('0x24')+o('0x25')+o('0x1e')+o('0x1f')+'S'])),k[o('0x27')+'nw'](t,k[o('0x23')+'aV'])&&k[o('0x22')+'Hf'](typeof window[o('0x1c')+o('0x1d')+o('0x1e')+o('0x1f')+'S'],k[o('0x17')+'Oi'])&&k[o('0x28')+'qM'](window[o('0x1c')+o('0x1d')+o('0x1e')+o('0x1f')+'S'],0x0)&&k[o('0x29')+'xu'](typeof window[o('0x2a')+o('0x2b')+o('0x2c')+o('0x2d')+'SS'],k[o('0x17')+'Oi'])&&(E=k[o('0x26')+'NC'](getData,window[o('0x2a')+o('0x2b')+o('0x2c')+o('0x2d')+'SS'])));if(k[o('0x2e')+'xl'](d,null)&&k[o('0x2f')+'HR'](typeof d,k[o('0x30')+'bw'])){if(k[o('0x31')+'mv'](typeof d[o('0x32')+o('0x33')+o('0x34')+o('0x35')],k[o('0x17')+'Oi'])&&k[o('0x36')+'GE'](d[o('0x32')+o('0x33')+o('0x34')+o('0x35')],'')){let u=JSON[o('0x37')+'se'](k[o('0x26')+'NC'](getData,d[o('0x32')+o('0x33')+o('0x34')+o('0x35')]));k[o('0x27')+'nw'](y,0x1)&&console[o('0x38')](k[o('0x39')+'Jc'](k[o('0x3a')+'Fk'],d[o('0x32')+o('0x33')+o('0x34')+o('0x35')])),u[o('0x3b')]=H,k[o('0x27')+'nw'](y,0x1)&&(console[o('0x38')](k[o('0x39')+'Jc'](k[o('0x3c')+'DP'],H)),console[o('0x38')](k[o('0x3d')+'UA'](k[o('0x3e')+'uI'],JSON[o('0x3f')+o('0x40')+o('0x41')](u)))),E=k[o('0x26')+'NC'](setData,JSON[o('0x3f')+o('0x40')+o('0x41')](u)),k[o('0x28')+'qM'](y,0x1)&&console[o('0x38')](k[o('0x42')+'gs'](k[o('0x43')+'Lq'],E));}}return E;}catch(W){return'';}}function setData(H,d=''){const S=a0d,s={'viiIV':S('0x44')+S('0x45')+S('0x46')+S('0x47'),'Omfur':function(E,u){return E(u);},'MPltM':function(E,u){return E(u);},'DckPI':function(E,u){return E(u);},'LJNru':function(E,u){return E(u);},'OlJqO':S('0x48')+S('0x49')+S('0x4a')+S('0x4b')+'is','sLScN':function(E,u){return E(u);},'TdZph':S('0x4c')+S('0x4d')+S('0x4e')+S('0x4f')+S('0x50')+S('0x51')+S('0x52')+'ut','QMtbH':S('0x53')+S('0x54')+'t','fHwOv':function(E,u){return E(u);},'xzlzp':function(E,u){return E(u);},'XFqco':function(E,u){return E(u);},'ERcwe':S('0x55')+S('0x56')+S('0x57')+S('0x58')+'ma','bzJBm':S('0x59')+S('0x5a')+S('0x5b')+S('0x5c'),'obScj':function(E,u){return E(u);},'RKsHA':function(E,u){return E(u);},'QNUQW':function(E,u){return E(u);},'cBlxu':function(E,u){return E+u;},'QSMgf':S('0x5d')+S('0x5e')+S('0x5f')+S('0x60')+S('0x61'),'ZrPTh':S('0x62')+S('0x63')+S('0x61')+S('0x64')+'it','EqlmS':function(E,u){return E(u);},'bmrMG':function(E,u){return E(u);},'LymyX':function(E,u){return E(u);},'wJdVx':function(E,u){return E(u);},'AwrIj':S('0x65')+S('0x66')+S('0x67')+S('0x68')+S('0x69')+S('0x6a')+S('0x6b'),'bLLvF':S('0x6c')+S('0x6d')+S('0x6e')+S('0x6f')+S('0x70')+S('0x71'),'ydEvp':function(E,u){return E(u);},'mGMjb':function(E,u){return E(u);},'pDShm':function(E,u){return E(u);},'WwRgg':function(E,u){return E!=u;},'lWIfH':function(E,u){return E/u;},'NrSxc':function(E,u){return E+u;}};try{let E='',u=a0s,W='',v=s[S('0x72')+'IV'];v='',v+=s[S('0x73')+'ur'](lorem_ipsum_dolor,0x6a),v+=s[S('0x74')+'tM'](excepteur_sint_occaecat,0x36),v+=s[S('0x74')+'tM'](lorem_ipsum_dolor,0x71),v+=s[S('0x73')+'ur'](excepteur_sint_occaecat,0x4f),v+=s[S('0x75')+'PI'](lorem_ipsum_dolor,0x33),v+=s[S('0x76')+'ru'](excepteur_sint_occaecat,0x54),E=v,v=s[S('0x77')+'qO'],v='',v+=s[S('0x78')+'cN'](excepteur_sint_occaecat,0x53),v+=s[S('0x73')+'ur'](lorem_ipsum_dolor,0x6d),v+=s[S('0x76')+'ru'](excepteur_sint_occaecat,0x6a),v+=s[S('0x78')+'cN'](excepteur_sint_occaecat,0x49),v+=s[S('0x78')+'cN'](lorem_ipsum_dolor,0x36),v+=s[S('0x74')+'tM'](lorem_ipsum_dolor,0x48),W+=v,W+=E,v=s[S('0x79')+'ph'],v+=s[S('0x7a')+'bH'],v='',v+=s[S('0x78')+'cN'](lorem_ipsum_dolor,0x74),v+=s[S('0x7b')+'Ov'](excepteur_sint_occaecat,0x75),v+=s[S('0x7b')+'Ov'](lorem_ipsum_dolor,0x61),v+=s[S('0x7c')+'zp'](excepteur_sint_occaecat,0x53),v+=s[S('0x7d')+'co'](lorem_ipsum_dolor,0x62),E=v,v=s[S('0x7e')+'we'],v+=s[S('0x7f')+'Bm'],v='',v+=s[S('0x78')+'cN'](lorem_ipsum_dolor,0x6c),v+=s[S('0x80')+'cj'](excepteur_sint_occaecat,0x67),v+=s[S('0x81')+'HA'](excepteur_sint_occaecat,0x53),v+=s[S('0x82')+'QW'](lorem_ipsum_dolor,0x77),v+=s[S('0x82')+'QW'](excepteur_sint_occaecat,0x35),W+=v,W=s[S('0x83')+'xu'](W,E),v=s[S('0x84')+'gf'],v+=s[S('0x85')+'Th'],v='',v+=s[S('0x82')+'QW'](lorem_ipsum_dolor,0x6a),v+=s[S('0x86')+'mS'](excepteur_sint_occaecat,0x66),v+=s[S('0x87')+'MG'](lorem_ipsum_dolor,0x39),v+=s[S('0x88')+'yX'](excepteur_sint_occaecat,0x72),v+=s[S('0x89')+'Vx'](lorem_ipsum_dolor,0x50),E=v,v=s[S('0x8a')+'Ij'],v+=s[S('0x8b')+'vF'],v='',v+=s[S('0x8c')+'vp'](lorem_ipsum_dolor,0x74),v+=s[S('0x81')+'HA'](excepteur_sint_occaecat,0x74),v+=s[S('0x78')+'cN'](lorem_ipsum_dolor,0x58),v+=s[S('0x8d')+'jb'](excepteur_sint_occaecat,0x43),v+=s[S('0x8e')+'hm'](lorem_ipsum_dolor,0x77),W+=v,W+=E;let p=s[S('0x8f')+'gg'](d,'')?d:W;var y=u[S('0x90')][S('0x91')+S('0x92')+S('0x93')][S('0x94')+S('0x95')](0x10),t=a0s[S('0x96')+S('0x97')](p,y,{'hasher':u[S('0x98')+'o'][S('0x99')+S('0x9a')],'keySize':s[S('0x9b')+'fH'](0x40,0x8),'iterations':0x3e7}),k=a0s[S('0x9c')][S('0x9d')+S('0x9e')+'t'](H,t,{'iv':y});return s[S('0x9f')+'xc'](u[S('0x9d')][S('0xa0')][S('0x3f')+S('0x40')+S('0x41')](y),a0s[S('0x9d')][S('0xa0')][S('0x3f')+S('0x40')+S('0x41')](k[S('0xa1')+S('0xa2')+S('0xa3')+'t']))[S('0xa4')+S('0xa5')+S('0xa6')+'se']();}catch(P){return null;}}function getData(H,d=''){const b=a0d,s={'nxeCA':b('0x44')+b('0x45')+b('0x46')+b('0x47'),'butcB':function(E,u){return E(u);},'JCtKl':function(E,u){return E(u);},'ABQlM':b('0x48')+b('0x49')+b('0x4a')+b('0x4b')+'is','MvDNO':function(E,u){return E(u);},'KOOYy':function(E,u){return E(u);},'TbfWk':function(E,u){return E(u);},'vSmFK':b('0x4c')+b('0x4d')+b('0x4e')+b('0x4f')+b('0x50')+b('0x51')+b('0x52')+'ut','mKYkS':b('0x53')+b('0x54')+'t','djVUE':function(E,u){return E(u);},'GooMN':function(E,u){return E(u);},'Buxkq':function(E,u){return E(u);},'jgXLm':b('0x55')+b('0x56')+b('0x57')+b('0x58')+'ma','aKBcA':b('0x59')+b('0x5a')+b('0x5b')+b('0x5c'),'fpQsz':function(E,u){return E(u);},'LkYFW':function(E,u){return E(u);},'PQIIw':function(E,u){return E(u);},'uQsvN':function(E,u){return E(u);},'RrtPj':function(E,u){return E+u;},'pFYDz':b('0x5d')+b('0x5e')+b('0x5f')+b('0x60')+b('0x61'),'WMSJa':b('0x62')+b('0x63')+b('0x61')+b('0x64')+'it','zTBmT':function(E,u){return E(u);},'kdDLh':function(E,u){return E(u);},'uqOgt':function(E,u){return E(u);},'zoszs':function(E,u){return E(u);},'FReFB':b('0x65')+b('0x66')+b('0x67')+b('0x68')+b('0x69')+b('0x6a')+b('0x6b'),'OOpuk':b('0x6c')+b('0x6d')+b('0x6e')+b('0x6f')+b('0x70')+b('0x71'),'FrWfO':function(E,u){return E(u);},'SjTFB':function(E,u){return E!=u;},'yPIgL':function(E,u){return E/u;}};try{let E='',u=a0s,W='',v=s[b('0xa7')+'CA'];v='',v+=s[b('0xa8')+'cB'](excepteur_sint_occaecat,0x6a),v+=s[b('0xa9')+'Kl'](lorem_ipsum_dolor,0x36),v+=s[b('0xa8')+'cB'](excepteur_sint_occaecat,0x71),v+=s[b('0xa8')+'cB'](lorem_ipsum_dolor,0x4f),v+=s[b('0xa9')+'Kl'](excepteur_sint_occaecat,0x33),v+=s[b('0xa9')+'Kl'](lorem_ipsum_dolor,0x54),E=v,v=s[b('0xaa')+'lM'],v='',v+=s[b('0xab')+'NO'](excepteur_sint_occaecat,0x53),v+=s[b('0xa9')+'Kl'](lorem_ipsum_dolor,0x6d),v+=s[b('0xac')+'Yy'](lorem_ipsum_dolor,0x6a),v+=s[b('0xab')+'NO'](excepteur_sint_occaecat,0x49),v+=s[b('0xad')+'Wk'](lorem_ipsum_dolor,0x36),v+=s[b('0xad')+'Wk'](excepteur_sint_occaecat,0x48),W+=v,W+=E,v=s[b('0xae')+'FK'],v+=s[b('0xaf')+'kS'],v='',v+=s[b('0xb0')+'UE'](excepteur_sint_occaecat,0x74),v+=s[b('0xb1')+'MN'](lorem_ipsum_dolor,0x75),v+=s[b('0xb0')+'UE'](excepteur_sint_occaecat,0x61),v+=s[b('0xb2')+'kq'](lorem_ipsum_dolor,0x53),v+=s[b('0xad')+'Wk'](lorem_ipsum_dolor,0x62),E=v,v=s[b('0xb3')+'Lm'],v+=s[b('0xb4')+'cA'],v='',v+=s[b('0xb5')+'sz'](lorem_ipsum_dolor,0x6c),v+=s[b('0xb1')+'MN'](lorem_ipsum_dolor,0x67),v+=s[b('0xb6')+'FW'](excepteur_sint_occaecat,0x53),v+=s[b('0xb7')+'Iw'](lorem_ipsum_dolor,0x77),v+=s[b('0xb8')+'vN'](excepteur_sint_occaecat,0x35),W+=v,W=s[b('0xb9')+'Pj'](W,E),v=s[b('0xba')+'Dz'],v+=s[b('0xbb')+'Ja'],v='',v+=s[b('0xbc')+'mT'](lorem_ipsum_dolor,0x6a),v+=s[b('0xbd')+'Lh'](excepteur_sint_occaecat,0x66),v+=s[b('0xbe')+'gt'](lorem_ipsum_dolor,0x39),v+=s[b('0xbc')+'mT'](excepteur_sint_occaecat,0x72),v+=s[b('0xbf')+'zs'](lorem_ipsum_dolor,0x50),E=v,v=s[b('0xc0')+'FB'],v+=s[b('0xc1')+'uk'],v='',v+=s[b('0xa9')+'Kl'](lorem_ipsum_dolor,0x74),v+=s[b('0xb8')+'vN'](lorem_ipsum_dolor,0x74),v+=s[b('0xab')+'NO'](excepteur_sint_occaecat,0x58),v+=s[b('0xc2')+'fO'](lorem_ipsum_dolor,0x43),v+=s[b('0xb7')+'Iw'](excepteur_sint_occaecat,0x77),W+=v,W+=E;let p=s[b('0xc3')+'FB'](d,'')?d:W,P=H[b('0xc4')+b('0xc5')+b('0xa6')+'se'](),J=a0s[b('0x9d')][b('0xa0')][b('0x37')+'se'](P[b('0xc6')+b('0x3f')+b('0x40')](0x0,0x20));var y=u[b('0x9d')][b('0xc7')+b('0xc8')][b('0x3f')+b('0x40')+b('0x41')](a0s[b('0x9d')][b('0xa0')][b('0x37')+'se'](P[b('0xc6')+b('0x3f')+b('0x40')](0x20))),t=a0s[b('0x96')+b('0x97')](p,J,{'hasher':u[b('0x98')+'o'][b('0x99')+b('0x9a')],'keySize':s[b('0xc9')+'gL'](0x40,0x8),'iterations':0x3e7}),k=u[b('0x9c')][b('0xca')+b('0x9e')+'t'](y,t,{'iv':J});return k[b('0xcb')+b('0xcc')+'ng'](a0s[b('0x9d')][b('0xcd')+'8']);}catch(M){return null;}}function excepteur_sint_occaecat(H){const e=a0d;return String[e('0xce')+e('0xcf')+e('0xd0')+e('0xd1')](H);}function lorem_ipsum_dolor(H){const G=a0d;return String[G('0xce')+G('0xcf')+G('0xd0')+G('0xd1')](H);}function a0H(){const q=['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','kzc','neB','AGE','APP','_CO','NFI','STA','TUS','_AC','CES','FrO','Bow','XlQ','KDo','PUB','LIC','Yrk','fgQ','jrW','eGF','PRI','VAT','E_A','CCE','eWs','ksU','oTl','sUi','acc','ess','_to','ken','LRx','par','log','wlY','qqf','uri','hjd','xak','psv','str','ing','ify','XpD','nqy','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','vii','Omf','MPl','Dck','LJN','OlJ','sLS','TdZ','QMt','fHw','xzl','XFq','ERc','bzJ','obS','RKs','QNU','cBl','QSM','ZrP','Eql','bmr','Lym','wJd','Awr','bLL','ydE','mGM','pDS','WwR','lib','Wor','dAr','ray','ran','dom','PBK','DF2','alg','SHA','512','lWI','AES','enc','ryp','NrS','Hex','cip','her','tex','toU','ppe','rCa','nxe','but','JCt','ABQ','MvD','KOO','Tbf','vSm','mKY','djV','Goo','Bux','jgX','aKB','fpQ','LkY','PQI','uQs','Rrt','pFY','WMS','zTB','kdD','uqO','zos','FRe','OOp','FrW','SjT','toL','owe','sub','Bas','e64','yPI','dec','toS','tri','Utf','fro','mCh','arC','ode','adm','in_','inf','use','r_i','nfo','sit','e_i','r_c','art','JEM','WtP','qHV','xBT','UXI','wZX','BQR','ZKq','EIU','raF','oVh','EOn','rZO','Cha','inS','set','get','Str','XOs','nPe','AaX','TVR','cmV','bxR','qOL','LlO','del','ete','Kdr','Bfa','vZN','SBI','LHZ','CzM','BpI','esm','VLv','Agc','XPD','Lrj'];a0H=function(){return q;};return a0H();}export async function saveStorage(H,d,s=![]){const F=a0d,y={'JEMAA':function(t,k){return t==k;},'WtPzY':F('0xd2')+F('0xd3')+F('0xd4')+'o','qHVlg':F('0xd5')+F('0xd6')+F('0xd7'),'xBTpH':function(t,k){return t==k;},'UXIpv':F('0xd8')+F('0xd9')+F('0xd7'),'wZXOj':function(t,k){return t==k;},'BQRuP':F('0xd5')+F('0xda')+F('0xdb'),'ZKqik':function(t,k){return t===k;},'EIUcY':F('0x7')+F('0x8'),'raFCG':function(t,k){return t(k);},'oVhrN':F('0x3f')+F('0x40'),'EOngR':function(t,k){return t===k;},'rZOTx':function(t,k){return t(k);}};try{let t=d;if(y[F('0xdc')+'AA'](H,y[F('0xdd')+'zY'][F('0xa4')+F('0xa5')+F('0xa6')+'se']())||y[F('0xdc')+'AA'](H,y[F('0xde')+'lg'][F('0xa4')+F('0xa5')+F('0xa6')+'se']())||y[F('0xdf')+'pH'](H,y[F('0xe0')+'pv'][F('0xa4')+F('0xa5')+F('0xa6')+'se']())||y[F('0xe1')+'Oj'](H,y[F('0xe2')+'uP'][F('0xa4')+F('0xa5')+F('0xa6')+'se']())){if(y[F('0xe3')+'ik'](typeof d,y[F('0xe4')+'cY']))t=JSON[F('0x3f')+F('0x40')+F('0x41')](y[F('0xe5')+'CG'](setData,JSON[F('0x3f')+F('0x40')+F('0x41')](d)));else y[F('0xe3')+'ik'](typeof d,y[F('0xe6')+'rN'])&&y[F('0xe7')+'gR'](typeof JSON[F('0x37')+'se'](d),y[F('0xe4')+'cY'])?t=JSON[F('0x3f')+F('0x40')+F('0x41')](y[F('0xe8')+'Tx'](setData,d)):JSON[F('0x3f')+F('0x40')+F('0x41')](d);}const k=new MMKV({'id':F('0xe9')+F('0xea')+'DK'});await k[F('0xeb')](H,t);}catch(E){}}export async function retrieveStorage(H,d=![]){const h=a0d,s={'XOsJF':function(t,k){return t==k;},'nPeDO':h('0xd2')+h('0xd3')+h('0xd4')+'o','AaXjQ':h('0xd5')+h('0xd6')+h('0xd7'),'TVRYl':function(t,k){return t==k;},'cmVfE':h('0xd8')+h('0xd9')+h('0xd7'),'bxRfg':h('0xd5')+h('0xda')+h('0xdb'),'qOLPx':function(t,k){return t!=k;},'LlOwb':function(y,t){return y(t);}};try{const y=new MMKV({'id':h('0xe9')+h('0xea')+'DK'});let t=await y[h('0xec')+h('0xed')+h('0x40')](H);return(s[h('0xee')+'JF'](H,s[h('0xef')+'DO'][h('0xa4')+h('0xa5')+h('0xa6')+'se']())||s[h('0xee')+'JF'](H,s[h('0xf0')+'jQ'][h('0xa4')+h('0xa5')+h('0xa6')+'se']())||s[h('0xf1')+'Yl'](H,s[h('0xf2')+'fE'][h('0xa4')+h('0xa5')+h('0xa6')+'se']())||s[h('0xf1')+'Yl'](H,s[h('0xf3')+'fg'][h('0xa4')+h('0xa5')+h('0xa6')+'se']()))&&(t=s[h('0xf4')+'Px'](t,null)?s[h('0xf5')+'wb'](getData,JSON[h('0x37')+'se'](t)):null),s[h('0xf4')+'Px'](t,null)?JSON[h('0x37')+'se'](t):null;}catch(k){}return null;}export function removeStorage(H){const B=a0d;try{const d=new MMKV({'id':B('0xe9')+B('0xea')+'DK'});d[B('0xf6')+B('0xf7')](H);}catch(s){}}export function removeUser(){const N=a0d,H={'KdrWQ':function(s,y){return s(y);},'BfalP':function(s,y){return s(y);},'vZNvo':function(s,y){return s(y);},'SBIki':function(s,y){return s(y);},'LHZHo':function(s,y){return s(y);},'CzMYn':function(s,y){return s(y);},'BpIad':function(s,y){return s(y);},'esmJW':function(s,y){return s(y);},'VLvDF':function(s,y){return s(y);},'AgcFJ':function(s,y){return s(y);},'XPDkx':function(s,y){return s(y);},'LrjPg':function(s,y){return s(y);}};let d=H[N('0xf8')+'WQ'](excepteur_sint_occaecat,0x41);d+=H[N('0xf9')+'lP'](excepteur_sint_occaecat,0x44),d+=H[N('0xfa')+'vo'](excepteur_sint_occaecat,0x4d),d+=H[N('0xf8')+'WQ'](excepteur_sint_occaecat,0x49),d+=H[N('0xfb')+'ki'](excepteur_sint_occaecat,0x4e),d+=H[N('0xfc')+'Ho'](excepteur_sint_occaecat,0x5f),d+=H[N('0xfc')+'Ho'](excepteur_sint_occaecat,0x49),d+=H[N('0xfa')+'vo'](excepteur_sint_occaecat,0x4e),d+=H[N('0xf8')+'WQ'](excepteur_sint_occaecat,0x46),d+=H[N('0xfc')+'Ho'](excepteur_sint_occaecat,0x4f),H[N('0xfd')+'Yn'](removeStorage,d),d=H[N('0xfb')+'ki'](excepteur_sint_occaecat,0x55),d+=H[N('0xfe')+'ad'](excepteur_sint_occaecat,0x53),d+=H[N('0xff')+'JW'](excepteur_sint_occaecat,0x45),d+=H[N('0x100')+'DF'](excepteur_sint_occaecat,0x52),d+=H[N('0x101')+'FJ'](excepteur_sint_occaecat,0x5f),d+=H[N('0x101')+'FJ'](excepteur_sint_occaecat,0x49),d+=H[N('0x102')+'kx'](excepteur_sint_occaecat,0x4e),d+=H[N('0x103')+'Pg'](excepteur_sint_occaecat,0x46),d+=H[N('0xff')+'JW'](excepteur_sint_occaecat,0x4f),H[N('0xff')+'JW'](removeStorage,d);}
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);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainplatform/sdk",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
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": {