@bennyblader/ddk-rn 0.3.26 → 0.3.30

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/src/ddk_ffi.ts CHANGED
@@ -148,6 +148,32 @@ export function createCet(
148
148
  )
149
149
  );
150
150
  }
151
+ export function createCetAdaptorPointsFromOracleInfo(
152
+ oracleInfo: Array<OracleInfo>,
153
+ msgs: Array<Array<Array<Array</*u8*/ number>>>>
154
+ ): Array<Array</*u8*/ number>> /*throws*/ {
155
+ return FfiConverterArrayArrayUInt8.lift(
156
+ uniffiCaller.rustCallWithError(
157
+ /*liftError:*/ FfiConverterTypeDLCError.lift.bind(
158
+ FfiConverterTypeDLCError
159
+ ),
160
+ /*caller:*/ (callStatus) => {
161
+ return (() => {
162
+ console.debug(
163
+ `-- uniffi_ddk_ffi_fn_func_create_cet_adaptor_points_from_oracle_info`
164
+ );
165
+ return nativeModule()
166
+ .ubrn_uniffi_ddk_ffi_fn_func_create_cet_adaptor_points_from_oracle_info;
167
+ })()(
168
+ FfiConverterArrayTypeOracleInfo.lower(oracleInfo),
169
+ FfiConverterArrayArrayArrayArrayUInt8.lower(msgs),
170
+ callStatus
171
+ );
172
+ },
173
+ /*liftString:*/ FfiConverterString.lift
174
+ )
175
+ );
176
+ }
151
177
  export function createCetAdaptorSignatureFromOracleInfo(
152
178
  cet: Transaction,
153
179
  oracleInfo: OracleInfo,
@@ -2125,6 +2151,14 @@ function uniffiEnsureInitialized() {
2125
2151
  'uniffi_ddk_ffi_checksum_func_create_cet'
2126
2152
  );
2127
2153
  }
2154
+ if (
2155
+ nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_points_from_oracle_info() !==
2156
+ 6552
2157
+ ) {
2158
+ throw new UniffiInternalError.ApiChecksumMismatch(
2159
+ 'uniffi_ddk_ffi_checksum_func_create_cet_adaptor_points_from_oracle_info'
2160
+ );
2161
+ }
2128
2162
  if (
2129
2163
  nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_cet_adaptor_signature_from_oracle_info() !==
2130
2164
  65174