aeternity / aescan

Block Explorer and Analytics Platform
ISC License
6 stars 3 forks source link

Raw data pointer support for Ceres #733

Closed michele-franchi closed 2 months ago

janmichek commented 2 months ago

@michele-franchi Can you provide more information about it, please?

janmichek commented 2 months ago

https://github.com/aeternity/ae_mdw/pull/1708

janmichek commented 2 months ago

@michele-franchi do you have some findings about this?

michele-franchi commented 2 months ago

@janmichek here's an example of raw data pointers I created: https://testnet.aeternity.io/mdw/v2/names/testaensrawpointers.chain

with the following NameUpdateTx:

    const nameUpdateTx = await sdk.aensUpdate(name, {
        Pointer1: encode(Buffer.from('example data for pointer 1'), Encoding.Bytearray),
        Pointer2: encode(Buffer.from('example data for pointer 2'), Encoding.Bytearray),
        Pointer3: encode(Buffer.from('example data for pointer 3'), Encoding.Bytearray),
        Pointer4: encode(Buffer.from('example data for pointer 4'), Encoding.Bytearray),
    });

As you can see these pointers are not decoded in different places:

Custom pointers should be plain text if the value is not a valid blockchain entity. In a custom pointer I can add any string value.

Example mdw call: https://testnet.aeternity.io/mdw/v2/names/testaensrawpointers.chain