File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
packages/multichain/src/scope Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,21 @@ import type {
12
12
Json ,
13
13
} from '@metamask/utils' ;
14
14
15
- // These External prefixed types represent the CAIP-217
16
- // Scope and ScopeObject as defined in the spec.
15
+ /**
16
+ * Represents a `scopeString` as defined in [CAIP-217](https://chainagnostic.org/CAIPs/caip-217).
17
+ */
17
18
export type ExternalScopeString = CaipChainId | CaipNamespace ;
19
+ /**
20
+ * Represents a `scopeObject` as defined in [CAIP-217](https://chainagnostic.org/CAIPs/caip-217).
21
+ */
18
22
export type ExternalScopeObject = Omit < ScopeObject , 'accounts' > & {
19
23
references ?: CaipReference [ ] ;
20
24
accounts ?: CaipAccountId [ ] ;
21
25
} ;
26
+ /**
27
+ * Represents a `scope` as defined in [CAIP-217](https://chainagnostic.org/CAIPs/caip-217).
28
+ * TODO update the language in CAIP-217 to use "scope" instead of "scopeObject" for this full record type.
29
+ */
22
30
export type ExternalScopesObject = Record <
23
31
ExternalScopeString ,
24
32
ExternalScopeObject
You can’t perform that action at this time.
0 commit comments