Make the well-known agoricNames namespace so that we can E(home.agoricNames).lookup('issuer', 'IST') and likewise for brand, installation, instance, etc.

use vat-agoricNames, makeWellKnownSpaces

  • Parameters

    • Optionallog: {
          (...data: any[]): void;
          (message?: any, ...optionalParams: any[]): void;
      } = ...
        • (...data): void
        • Parameters

          • Rest...data: any[]

          Returns void

        • (message?, ...optionalParams): void
        • Prints to stdout with newline. Multiple arguments can be passed, with the first used as the primary message and all additional used as substitution values similar to printf(3) (the arguments are all passed to util.format()).

          const count = 5;
          console.log('count: %d', count);
          // Prints: count: 5, to stdout
          console.log('count:', count);
          // Prints: count: 5, to stdout

          See util.format() for more information.

          Parameters

          • Optionalmessage: any
          • Rest...optionalParams: any[]

          Returns void

          v0.1.100

    • reserved: Record<string, Record<string, unknown>> = agoricNamesReserved

      a property for each of issuer, brand, etc. with a value whose keys are names to reserve.

      For static typing and integrating with the bootstrap permit system, return { produce, consume } spaces rather than NameAdmins.

    Returns Promise<{
        agoricNames: NameHub<any>;
        agoricNamesAdmin: NameAdmin;
        spaces: WellKnownSpaces;
    }>