@ledgerhq/context-module 0.0.0-develop-20260702003423 → 0.0.0-develop-20260703002922
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/package.json +1 -1
- package/lib/cjs/src/modules/solana/enum-variant/domain/EnumVariantContextLoader.js +1 -1
- package/lib/cjs/src/modules/solana/enum-variant/domain/EnumVariantContextLoader.js.map +3 -3
- package/lib/cjs/src/modules/solana/enum-variant/domain/EnumVariantContextLoader.test.js +1 -1
- package/lib/cjs/src/modules/solana/enum-variant/domain/EnumVariantContextLoader.test.js.map +3 -3
- package/lib/cjs/src/modules/solana/instruction-info/data/HttpInstructionInfoDataSource.js +1 -1
- package/lib/cjs/src/modules/solana/instruction-info/data/HttpInstructionInfoDataSource.js.map +3 -3
- package/lib/cjs/src/modules/solana/instruction-info/data/HttpInstructionInfoDataSource.test.js +1 -1
- package/lib/cjs/src/modules/solana/instruction-info/data/HttpInstructionInfoDataSource.test.js.map +3 -3
- package/lib/cjs/src/modules/solana/instruction-info/data/InstructionInfoDataSource.js +1 -1
- package/lib/cjs/src/modules/solana/instruction-info/data/InstructionInfoDataSource.js.map +1 -1
- package/lib/cjs/src/modules/solana/instruction-info/data/InstructionInfoDto.js +1 -1
- package/lib/cjs/src/modules/solana/instruction-info/data/InstructionInfoDto.js.map +2 -2
- package/lib/cjs/src/modules/solana/instruction-info/data/InstructionInfoMapper.js +2 -0
- package/lib/cjs/src/modules/solana/instruction-info/data/InstructionInfoMapper.js.map +7 -0
- package/lib/cjs/src/modules/solana/instruction-info/data/InstructionInfoMapper.test.js +2 -0
- package/lib/cjs/src/modules/solana/instruction-info/data/InstructionInfoMapper.test.js.map +7 -0
- package/lib/cjs/src/modules/solana/instruction-info/domain/InstructionInfoContextLoader.js +1 -1
- package/lib/cjs/src/modules/solana/instruction-info/domain/InstructionInfoContextLoader.js.map +3 -3
- package/lib/cjs/src/modules/solana/instruction-info/domain/InstructionInfoContextLoader.test.js +1 -1
- package/lib/cjs/src/modules/solana/instruction-info/domain/InstructionInfoContextLoader.test.js.map +3 -3
- package/lib/cjs/src/modules/solana/model/SolanaClearSignContext.js +1 -1
- package/lib/cjs/src/modules/solana/model/SolanaClearSignContext.js.map +2 -2
- package/lib/cjs/src/modules/solana/model/SolanaPayloads.js +1 -1
- package/lib/cjs/src/modules/solana/model/SolanaPayloads.js.map +2 -2
- package/lib/esm/package.json +1 -1
- package/lib/esm/src/modules/solana/enum-variant/domain/EnumVariantContextLoader.js +1 -1
- package/lib/esm/src/modules/solana/enum-variant/domain/EnumVariantContextLoader.js.map +3 -3
- package/lib/esm/src/modules/solana/enum-variant/domain/EnumVariantContextLoader.test.js +1 -1
- package/lib/esm/src/modules/solana/enum-variant/domain/EnumVariantContextLoader.test.js.map +3 -3
- package/lib/esm/src/modules/solana/instruction-info/data/HttpInstructionInfoDataSource.js +1 -1
- package/lib/esm/src/modules/solana/instruction-info/data/HttpInstructionInfoDataSource.js.map +3 -3
- package/lib/esm/src/modules/solana/instruction-info/data/HttpInstructionInfoDataSource.test.js +1 -1
- package/lib/esm/src/modules/solana/instruction-info/data/HttpInstructionInfoDataSource.test.js.map +3 -3
- package/lib/esm/src/modules/solana/instruction-info/data/InstructionInfoDto.js +1 -1
- package/lib/esm/src/modules/solana/instruction-info/data/InstructionInfoDto.js.map +2 -2
- package/lib/esm/src/modules/solana/instruction-info/data/InstructionInfoMapper.js +2 -0
- package/lib/esm/src/modules/solana/instruction-info/data/InstructionInfoMapper.js.map +7 -0
- package/lib/esm/src/modules/solana/instruction-info/data/InstructionInfoMapper.test.js +2 -0
- package/lib/esm/src/modules/solana/instruction-info/data/InstructionInfoMapper.test.js.map +7 -0
- package/lib/esm/src/modules/solana/instruction-info/domain/InstructionInfoContextLoader.js +1 -1
- package/lib/esm/src/modules/solana/instruction-info/domain/InstructionInfoContextLoader.js.map +3 -3
- package/lib/esm/src/modules/solana/instruction-info/domain/InstructionInfoContextLoader.test.js +1 -1
- package/lib/esm/src/modules/solana/instruction-info/domain/InstructionInfoContextLoader.test.js.map +3 -3
- package/lib/esm/src/modules/solana/model/SolanaClearSignContext.js +1 -1
- package/lib/esm/src/modules/solana/model/SolanaClearSignContext.js.map +2 -2
- package/lib/esm/src/modules/solana/model/SolanaPayloads.js +1 -1
- package/lib/esm/src/modules/solana/model/SolanaPayloads.js.map +2 -2
- package/lib/types/src/modules/solana/enum-variant/domain/EnumVariantContextLoader.d.ts +4 -4
- package/lib/types/src/modules/solana/enum-variant/domain/EnumVariantContextLoader.d.ts.map +1 -1
- package/lib/types/src/modules/solana/instruction-info/data/HttpInstructionInfoDataSource.d.ts.map +1 -1
- package/lib/types/src/modules/solana/instruction-info/data/InstructionInfoDataSource.d.ts +13 -4
- package/lib/types/src/modules/solana/instruction-info/data/InstructionInfoDataSource.d.ts.map +1 -1
- package/lib/types/src/modules/solana/instruction-info/data/InstructionInfoDto.d.ts +54 -5
- package/lib/types/src/modules/solana/instruction-info/data/InstructionInfoDto.d.ts.map +1 -1
- package/lib/types/src/modules/solana/instruction-info/data/InstructionInfoMapper.d.ts +23 -0
- package/lib/types/src/modules/solana/instruction-info/data/InstructionInfoMapper.d.ts.map +1 -0
- package/lib/types/src/modules/solana/instruction-info/data/InstructionInfoMapper.test.d.ts +2 -0
- package/lib/types/src/modules/solana/instruction-info/data/InstructionInfoMapper.test.d.ts.map +1 -0
- package/lib/types/src/modules/solana/instruction-info/domain/InstructionInfoContextLoader.d.ts +1 -5
- package/lib/types/src/modules/solana/instruction-info/domain/InstructionInfoContextLoader.d.ts.map +1 -1
- package/lib/types/src/modules/solana/model/SolanaClearSignContext.d.ts +1 -1
- package/lib/types/src/modules/solana/model/SolanaClearSignContext.d.ts.map +1 -1
- package/lib/types/src/modules/solana/model/SolanaPayloads.d.ts +68 -4
- package/lib/types/src/modules/solana/model/SolanaPayloads.d.ts.map +1 -1
- package/lib/types/tsconfig.prod.tsbuildinfo +1 -1
- package/package.json +5 -5
|
@@ -37,10 +37,13 @@ export type SolanaInstructionEnumVariant = {
|
|
|
37
37
|
descriptor: SolanaSignedDescriptor;
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
40
|
-
* Payload for ClearSignContextType.SOLANA_INSTRUCTION_INFO
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
40
|
+
* Payload for ClearSignContextType.SOLANA_INSTRUCTION_INFO.
|
|
41
|
+
*
|
|
42
|
+
* `instructionInfo` + `substructures` are the signed TLVs streamed to the
|
|
43
|
+
* device, and `enumVariants` are the signed enum-variant descriptors CAL
|
|
44
|
+
* bundles for the program's enums (used to build the host decode cache). The
|
|
45
|
+
* remaining fields are CAL's decoded JSON consumed host-side by the
|
|
46
|
+
* requirement builder.
|
|
44
47
|
*/
|
|
45
48
|
export type SolanaInstructionInfoPayload = {
|
|
46
49
|
programId: string;
|
|
@@ -48,6 +51,14 @@ export type SolanaInstructionInfoPayload = {
|
|
|
48
51
|
instructionInfo: SolanaSignedDescriptor;
|
|
49
52
|
substructures: SolanaInstructionSubstructure[];
|
|
50
53
|
enumVariants: SolanaInstructionEnumVariant[];
|
|
54
|
+
idlDescriptor: {
|
|
55
|
+
typePool: SolanaCalTypePoolEntry[];
|
|
56
|
+
rootType: number;
|
|
57
|
+
};
|
|
58
|
+
mintAssociations: SolanaCalMintAssociation[];
|
|
59
|
+
valueFlowPorts: SolanaCalValueFlowPort[];
|
|
60
|
+
accountResets: SolanaCalAccountReset[];
|
|
61
|
+
displayFields: SolanaCalDisplayField[];
|
|
51
62
|
};
|
|
52
63
|
export declare enum SolanaInstructionSubstructureKind {
|
|
53
64
|
DISPLAY_FIELD = 0,
|
|
@@ -59,6 +70,59 @@ export type SolanaInstructionSubstructure = {
|
|
|
59
70
|
kind: SolanaInstructionSubstructureKind;
|
|
60
71
|
data: string;
|
|
61
72
|
};
|
|
73
|
+
export type SolanaCalValue = {
|
|
74
|
+
source: string;
|
|
75
|
+
/** ACCOUNT_PATH: index into the instruction's accounts. */
|
|
76
|
+
account_index?: number;
|
|
77
|
+
/** CONSTANT: hex-encoded bytes. */
|
|
78
|
+
data?: string;
|
|
79
|
+
/** ARGUMENT_PATH: decoded steps. */
|
|
80
|
+
path?: {
|
|
81
|
+
steps: number[];
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export type SolanaCalTokenValue = {
|
|
85
|
+
kind: string;
|
|
86
|
+
value?: SolanaCalValue;
|
|
87
|
+
account_index?: number;
|
|
88
|
+
};
|
|
89
|
+
export type SolanaCalValueFlowPort = {
|
|
90
|
+
/** Ordered candidate list (spec form). */
|
|
91
|
+
account_indices?: number[];
|
|
92
|
+
/** Single-account form currently emitted by CAL; treated as a 1-element list. */
|
|
93
|
+
account_index?: number;
|
|
94
|
+
optional_account_strategy?: string;
|
|
95
|
+
token_value?: SolanaCalTokenValue;
|
|
96
|
+
};
|
|
97
|
+
export type SolanaCalAccountReset = {
|
|
98
|
+
account_index: number;
|
|
99
|
+
require_pre_balance_zero?: boolean;
|
|
100
|
+
};
|
|
101
|
+
export type SolanaCalDisplayField = {
|
|
102
|
+
name?: string;
|
|
103
|
+
param: {
|
|
104
|
+
type: string;
|
|
105
|
+
value?: SolanaCalValue;
|
|
106
|
+
token?: SolanaCalValue;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
export type SolanaCalTypePoolEntry = {
|
|
110
|
+
index: number;
|
|
111
|
+
kind: string;
|
|
112
|
+
refs?: number[];
|
|
113
|
+
size?: number;
|
|
114
|
+
encoding?: number;
|
|
115
|
+
len_kind?: string;
|
|
116
|
+
flag_kind?: string;
|
|
117
|
+
sentinel?: string;
|
|
118
|
+
disc_kind?: string;
|
|
119
|
+
total_variants?: number;
|
|
120
|
+
enum_id?: string;
|
|
121
|
+
};
|
|
122
|
+
export type SolanaCalMintAssociation = {
|
|
123
|
+
account_index: number;
|
|
124
|
+
mint_index: number;
|
|
125
|
+
};
|
|
62
126
|
/**
|
|
63
127
|
* Payload for ClearSignContextType.SOLANA_ENUM_VARIANT: one signed
|
|
64
128
|
* ENUM_VARIANT descriptor for a `(programId, enumId, variantIndex)` triple.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SolanaPayloads.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/solana/model/SolanaPayloads.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,eAAe,GAAG;IAC5B,qBAAqB,EAAE;QACrB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC;IACzD,YAAY,EAAE,yBAAyB,EAAE,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAQF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,sBAAsB,CAAC;CACpC,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"SolanaPayloads.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/solana/model/SolanaPayloads.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,eAAe,GAAG;IA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