MCPcopy Index your code
hub / github.com/SmartTokenLabs/TokenScript / renegotiateAll

Function renegotiateAll

bootstrap-js/tokenscript-bootstrap.js:1168–1184  ·  view source on GitHub ↗
(filter = '')

Source from the content-addressed store, hash-verified

1166 }
1167
1168 async function renegotiateAll(filter = ''){
1169 // console.log('renegotiateAll fired. filter = '+filter);
1170 // console.log(Date.now());
1171 window.ogStart = Date.now();
1172 await init();
1173
1174 // console.log('tokenNodesList');
1175 // console.log(tokenNodesList);
1176
1177 if (!bar || !tokenNodesList) return;
1178
1179 // const nodes = bar.querySelectorAll('.ts_token_bar_body > *:not(.notokens)');
1180 // nodes.forEach(item=>{item.remove()});
1181
1182 let tokens = Object.keys(tokenNodesList);
1183 tokens.forEach(async tokenName=> await negotiate(tokenName,filter, tsDebug))
1184 }
1185
1186 async function passiveRenegotiateAll(){
1187 if (!tsActive) return;

Callers

nothing calls this directly

Calls 2

initFunction · 0.85
negotiateFunction · 0.85

Tested by

no test coverage detected