@ledgerhq/hw-app-canton
Version:
Ledger Hardware Wallet Canton Application API
29 lines • 871 B
JavaScript
import { ProtobufTypes, lookupProtobufType } from "./protobufRoot";
function getDeviceDamlTransactionType() {
return ProtobufTypes.DeviceDamlTransaction;
}
function getDeviceMetadataType() {
return ProtobufTypes.DeviceMetadata;
}
function getNodeType() {
return ProtobufTypes.Node;
}
function getInputContractType() {
return ProtobufTypes.InputContract;
}
export function decodeDeviceDamlTransaction(data) {
return getDeviceDamlTransactionType().decode(data);
}
export function decodeDeviceMetadata(data) {
return getDeviceMetadataType().decode(data);
}
export function decodeNode(data) {
return getNodeType().decode(data);
}
export function decodeInputContract(data) {
return getInputContractType().decode(data);
}
export function lookupType(typeName) {
return lookupProtobufType(typeName);
}
//# sourceMappingURL=protobufUtils.js.map