UNPKG

@metamask/keyring-api

Version:
1 lines 842 B
{"version":3,"file":"address.cjs","sourceRoot":"","sources":["../../src/api/address.ts"],"names":[],"mappings":";;;AACA,uDAA+C;AAC/C,2CAAsD;AAEtD;;GAEG;AACU,QAAA,4BAA4B,GAAG,IAAA,oBAAM,EAAC;IACjD;;OAEG;IACH,OAAO,EAAE,2BAAmB;CAC7B,CAAC,CAAC","sourcesContent":["import type { Infer } from '@metamask/superstruct';\nimport { object } from '@metamask/superstruct';\nimport { CaipAccountIdStruct } from '@metamask/utils';\n\n/**\n * An account's address that has been resolved from a signing request.\n */\nexport const ResolvedAccountAddressStruct = object({\n /**\n * Account main address (CAIP-10 account ID).\n */\n address: CaipAccountIdStruct,\n});\n\n/**\n * Resolve account's address object.\n *\n * See {@link ResolvedAccountAddressStruct}.\n */\nexport type ResolvedAccountAddress = Infer<typeof ResolvedAccountAddressStruct>;\n"]}