Files
aqua-playground/src/examples/dataAliasCall.ts

16 lines
394 B
TypeScript
Raw Normal View History

import { FluencePeer } from '@fluencelabs/fluence';
import { getAliasedData, registerNodeIdGetter } from '../compiled/examples/dataAlias';
2021-04-14 02:38:35 +03:00
export async function dataAliasCall() {
registerNodeIdGetter({
get: () => {
return {
peerId: 'peer id str',
name: 'name str',
};
},
});
2021-04-14 02:38:35 +03:00
return await getAliasedData();
2021-04-15 12:45:18 +03:00
}