Adds named resolution so that you can use .move names in your transactions. e.g. app@org::type::Type will be resolved to 0x1234::type::Type. This plugin will resolve all names & types in the transaction block.

To install this plugin globally in your app, use:

Transaction.registerGlobalSerializationPlugin(namedPackagesPlugin({ suiGraphQLClient }));

You can also define cache to pre-populate name resolutions locally (removes the GraphQL request).

Example: const cache = { 'std@framework': '0x1', 'std@framework::string::String': '0x1::string::String', } Transaction.registerGlobalSerializationPlugin(namedPackagesPlugin({ suiGraphQLClient, cache }));