mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-06-30 16:11:54 +00:00
16 lines
394 B
TypeScript
16 lines
394 B
TypeScript
import { FluencePeer } from '@fluencelabs/fluence';
|
|
import { getAliasedData, registerNodeIdGetter } from '../compiled/examples/dataAlias';
|
|
|
|
export async function dataAliasCall() {
|
|
registerNodeIdGetter({
|
|
get: () => {
|
|
return {
|
|
peerId: 'peer id str',
|
|
name: 'name str',
|
|
};
|
|
},
|
|
});
|
|
|
|
return await getAliasedData();
|
|
}
|