@onekeyfe/hd-transport 1.0.19 → 1.0.20-alpha.1

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/dist/index.d.ts CHANGED
@@ -187,7 +187,7 @@ type BenfenGetAddress = {
187
187
  show_display?: boolean;
188
188
  };
189
189
  type BenfenAddress = {
190
- address: string;
190
+ address?: string;
191
191
  };
192
192
  type BenfenSignTx = {
193
193
  address_n: number[];
@@ -678,7 +678,16 @@ declare enum CardanoCertificateType {
678
678
  STAKE_REGISTRATION = 0,
679
679
  STAKE_DEREGISTRATION = 1,
680
680
  STAKE_DELEGATION = 2,
681
- STAKE_POOL_REGISTRATION = 3
681
+ STAKE_POOL_REGISTRATION = 3,
682
+ STAKE_REGISTRATION_CONWAY = 7,
683
+ STAKE_DEREGISTRATION_CONWAY = 8,
684
+ VOTE_DELEGATION = 9
685
+ }
686
+ declare enum CardanoDRepType {
687
+ KEY_HASH = 0,
688
+ SCRIPT_HASH = 1,
689
+ ABSTAIN = 2,
690
+ NO_CONFIDENCE = 3
682
691
  }
683
692
  declare enum CardanoPoolRelayType {
684
693
  SINGLE_HOST_IP = 0,
@@ -687,9 +696,9 @@ declare enum CardanoPoolRelayType {
687
696
  }
688
697
  declare enum CardanoTxAuxiliaryDataSupplementType {
689
698
  NONE = 0,
690
- GOVERNANCE_REGISTRATION_SIGNATURE = 1
699
+ CVOTE_REGISTRATION_SIGNATURE = 1
691
700
  }
692
- declare enum CardanoGovernanceRegistrationFormat {
701
+ declare enum CardanoCVoteRegistrationFormat {
693
702
  CIP15 = 0,
694
703
  CIP36 = 1
695
704
  }
@@ -740,6 +749,7 @@ type CardanoGetAddress = {
740
749
  network_id: number;
741
750
  address_parameters: CardanoAddressParametersType;
742
751
  derivation_type: CardanoDerivationType;
752
+ chunkify?: boolean;
743
753
  };
744
754
  type CardanoAddress = {
745
755
  address: string;
@@ -775,6 +785,8 @@ type CardanoSignTxInit = {
775
785
  has_collateral_return?: boolean;
776
786
  total_collateral?: UintType;
777
787
  reference_inputs_count?: number;
788
+ chunkify?: boolean;
789
+ tag_cbor_sets?: boolean;
778
790
  };
779
791
  type CardanoTxInput = {
780
792
  prev_hash: string;
@@ -832,6 +844,11 @@ type CardanoPoolParametersType = {
832
844
  owners_count: number;
833
845
  relays_count: number;
834
846
  };
847
+ type CardanoDRep = {
848
+ type: CardanoDRepType;
849
+ key_hash?: string;
850
+ script_hash?: string;
851
+ };
835
852
  type CardanoTxCertificate = {
836
853
  type: CardanoCertificateType;
837
854
  path?: number[];
@@ -839,6 +856,8 @@ type CardanoTxCertificate = {
839
856
  pool_parameters?: CardanoPoolParametersType;
840
857
  script_hash?: string;
841
858
  key_hash?: string;
859
+ deposit?: UintType;
860
+ drep?: CardanoDRep;
842
861
  };
843
862
  type CardanoTxWithdrawal = {
844
863
  path?: number[];
@@ -846,21 +865,22 @@ type CardanoTxWithdrawal = {
846
865
  script_hash?: string;
847
866
  key_hash?: string;
848
867
  };
849
- type CardanoGovernanceRegistrationDelegation = {
850
- voting_public_key: string;
868
+ type CardanoCVoteRegistrationDelegation = {
869
+ vote_public_key: string;
851
870
  weight: number;
852
871
  };
853
- type CardanoGovernanceRegistrationParametersType = {
854
- voting_public_key?: string;
872
+ type CardanoCVoteRegistrationParametersType = {
873
+ vote_public_key?: string;
855
874
  staking_path: number[];
856
- reward_address_parameters: CardanoAddressParametersType;
875
+ payment_address_parameters?: CardanoAddressParametersType;
857
876
  nonce: number;
858
- format?: CardanoGovernanceRegistrationFormat;
859
- delegations: CardanoGovernanceRegistrationDelegation[];
877
+ format?: CardanoCVoteRegistrationFormat;
878
+ delegations: CardanoCVoteRegistrationDelegation[];
860
879
  voting_purpose?: number;
880
+ payment_address?: string;
861
881
  };
862
882
  type CardanoTxAuxiliaryData = {
863
- governance_registration_parameters?: CardanoGovernanceRegistrationParametersType;
883
+ cvote_registration_parameters?: CardanoCVoteRegistrationParametersType;
864
884
  hash?: string;
865
885
  };
866
886
  type CardanoTxMint = {
@@ -882,7 +902,7 @@ type CardanoTxItemAck = {};
882
902
  type CardanoTxAuxiliaryDataSupplement = {
883
903
  type: CardanoTxAuxiliaryDataSupplementType;
884
904
  auxiliary_data_hash?: string;
885
- governance_signature?: string;
905
+ cvote_registration_signature?: string;
886
906
  };
887
907
  type CardanoTxWitnessRequest = {
888
908
  path: number[];
@@ -2659,23 +2679,27 @@ type SolanaSignTx = {
2659
2679
  type SolanaSignedTx = {
2660
2680
  signature?: string;
2661
2681
  };
2662
- declare enum SolanaMessageVersion {
2682
+ declare enum SolanaOffChainMessageVersion {
2663
2683
  MESSAGE_VERSION_0 = 0
2664
2684
  }
2665
- declare enum SolanaMessageFormat {
2685
+ declare enum SolanaOffChainMessageFormat {
2666
2686
  V0_RESTRICTED_ASCII = 0,
2667
2687
  V0_LIMITED_UTF8 = 1
2668
2688
  }
2669
- type SolanaSignMessage = {
2689
+ type SolanaSignOffChainMessage = {
2670
2690
  address_n: number[];
2671
2691
  message: string;
2672
- message_version?: SolanaMessageVersion;
2673
- message_format?: SolanaMessageFormat;
2692
+ message_version?: SolanaOffChainMessageVersion;
2693
+ message_format?: SolanaOffChainMessageFormat;
2674
2694
  application_domain?: string;
2675
2695
  };
2676
- type SolanaSignedMessage = {
2696
+ type SolanaSignUnsafeMessage = {
2697
+ address_n: number[];
2698
+ message: string;
2699
+ };
2700
+ type SolanaMessageSignature = {
2677
2701
  signature: string;
2678
- public_key: string;
2702
+ public_key?: string;
2679
2703
  };
2680
2704
  type StarcoinGetAddress = {
2681
2705
  address_n: number[];
@@ -3255,10 +3279,11 @@ type MessageType = {
3255
3279
  CardanoPoolRelayParameters: CardanoPoolRelayParameters;
3256
3280
  CardanoPoolMetadataType: CardanoPoolMetadataType;
3257
3281
  CardanoPoolParametersType: CardanoPoolParametersType;
3282
+ CardanoDRep: CardanoDRep;
3258
3283
  CardanoTxCertificate: CardanoTxCertificate;
3259
3284
  CardanoTxWithdrawal: CardanoTxWithdrawal;
3260
- CardanoGovernanceRegistrationDelegation: CardanoGovernanceRegistrationDelegation;
3261
- CardanoGovernanceRegistrationParametersType: CardanoGovernanceRegistrationParametersType;
3285
+ CardanoCVoteRegistrationDelegation: CardanoCVoteRegistrationDelegation;
3286
+ CardanoCVoteRegistrationParametersType: CardanoCVoteRegistrationParametersType;
3262
3287
  CardanoTxAuxiliaryData: CardanoTxAuxiliaryData;
3263
3288
  CardanoTxMint: CardanoTxMint;
3264
3289
  CardanoTxCollateralInput: CardanoTxCollateralInput;
@@ -3593,8 +3618,9 @@ type MessageType = {
3593
3618
  SolanaAddress: SolanaAddress;
3594
3619
  SolanaSignTx: SolanaSignTx;
3595
3620
  SolanaSignedTx: SolanaSignedTx;
3596
- SolanaSignMessage: SolanaSignMessage;
3597
- SolanaSignedMessage: SolanaSignedMessage;
3621
+ SolanaSignOffChainMessage: SolanaSignOffChainMessage;
3622
+ SolanaSignUnsafeMessage: SolanaSignUnsafeMessage;
3623
+ SolanaMessageSignature: SolanaMessageSignature;
3598
3624
  StarcoinGetAddress: StarcoinGetAddress;
3599
3625
  StarcoinAddress: StarcoinAddress;
3600
3626
  StarcoinGetPublicKey: StarcoinGetPublicKey;
@@ -3807,12 +3833,14 @@ type messages_CardanoTxOutputSerializationFormat = CardanoTxOutputSerializationF
3807
3833
  declare const messages_CardanoTxOutputSerializationFormat: typeof CardanoTxOutputSerializationFormat;
3808
3834
  type messages_CardanoCertificateType = CardanoCertificateType;
3809
3835
  declare const messages_CardanoCertificateType: typeof CardanoCertificateType;
3836
+ type messages_CardanoDRepType = CardanoDRepType;
3837
+ declare const messages_CardanoDRepType: typeof CardanoDRepType;
3810
3838
  type messages_CardanoPoolRelayType = CardanoPoolRelayType;
3811
3839
  declare const messages_CardanoPoolRelayType: typeof CardanoPoolRelayType;
3812
3840
  type messages_CardanoTxAuxiliaryDataSupplementType = CardanoTxAuxiliaryDataSupplementType;
3813
3841
  declare const messages_CardanoTxAuxiliaryDataSupplementType: typeof CardanoTxAuxiliaryDataSupplementType;
3814
- type messages_CardanoGovernanceRegistrationFormat = CardanoGovernanceRegistrationFormat;
3815
- declare const messages_CardanoGovernanceRegistrationFormat: typeof CardanoGovernanceRegistrationFormat;
3842
+ type messages_CardanoCVoteRegistrationFormat = CardanoCVoteRegistrationFormat;
3843
+ declare const messages_CardanoCVoteRegistrationFormat: typeof CardanoCVoteRegistrationFormat;
3816
3844
  type messages_CardanoTxSigningMode = CardanoTxSigningMode;
3817
3845
  declare const messages_CardanoTxSigningMode: typeof CardanoTxSigningMode;
3818
3846
  type messages_CardanoTxWitnessType = CardanoTxWitnessType;
@@ -3837,10 +3865,11 @@ type messages_CardanoPoolOwner = CardanoPoolOwner;
3837
3865
  type messages_CardanoPoolRelayParameters = CardanoPoolRelayParameters;
3838
3866
  type messages_CardanoPoolMetadataType = CardanoPoolMetadataType;
3839
3867
  type messages_CardanoPoolParametersType = CardanoPoolParametersType;
3868
+ type messages_CardanoDRep = CardanoDRep;
3840
3869
  type messages_CardanoTxCertificate = CardanoTxCertificate;
3841
3870
  type messages_CardanoTxWithdrawal = CardanoTxWithdrawal;
3842
- type messages_CardanoGovernanceRegistrationDelegation = CardanoGovernanceRegistrationDelegation;
3843
- type messages_CardanoGovernanceRegistrationParametersType = CardanoGovernanceRegistrationParametersType;
3871
+ type messages_CardanoCVoteRegistrationDelegation = CardanoCVoteRegistrationDelegation;
3872
+ type messages_CardanoCVoteRegistrationParametersType = CardanoCVoteRegistrationParametersType;
3844
3873
  type messages_CardanoTxAuxiliaryData = CardanoTxAuxiliaryData;
3845
3874
  type messages_CardanoTxMint = CardanoTxMint;
3846
3875
  type messages_CardanoTxCollateralInput = CardanoTxCollateralInput;
@@ -4227,12 +4256,13 @@ type messages_SolanaGetAddress = SolanaGetAddress;
4227
4256
  type messages_SolanaAddress = SolanaAddress;
4228
4257
  type messages_SolanaSignTx = SolanaSignTx;
4229
4258
  type messages_SolanaSignedTx = SolanaSignedTx;
4230
- type messages_SolanaMessageVersion = SolanaMessageVersion;
4231
- declare const messages_SolanaMessageVersion: typeof SolanaMessageVersion;
4232
- type messages_SolanaMessageFormat = SolanaMessageFormat;
4233
- declare const messages_SolanaMessageFormat: typeof SolanaMessageFormat;
4234
- type messages_SolanaSignMessage = SolanaSignMessage;
4235
- type messages_SolanaSignedMessage = SolanaSignedMessage;
4259
+ type messages_SolanaOffChainMessageVersion = SolanaOffChainMessageVersion;
4260
+ declare const messages_SolanaOffChainMessageVersion: typeof SolanaOffChainMessageVersion;
4261
+ type messages_SolanaOffChainMessageFormat = SolanaOffChainMessageFormat;
4262
+ declare const messages_SolanaOffChainMessageFormat: typeof SolanaOffChainMessageFormat;
4263
+ type messages_SolanaSignOffChainMessage = SolanaSignOffChainMessage;
4264
+ type messages_SolanaSignUnsafeMessage = SolanaSignUnsafeMessage;
4265
+ type messages_SolanaMessageSignature = SolanaMessageSignature;
4236
4266
  type messages_StarcoinGetAddress = StarcoinGetAddress;
4237
4267
  type messages_StarcoinAddress = StarcoinAddress;
4238
4268
  type messages_StarcoinGetPublicKey = StarcoinGetPublicKey;
@@ -4446,9 +4476,10 @@ declare namespace messages {
4446
4476
  messages_CardanoNativeScriptHashDisplayFormat as CardanoNativeScriptHashDisplayFormat,
4447
4477
  messages_CardanoTxOutputSerializationFormat as CardanoTxOutputSerializationFormat,
4448
4478
  messages_CardanoCertificateType as CardanoCertificateType,
4479
+ messages_CardanoDRepType as CardanoDRepType,
4449
4480
  messages_CardanoPoolRelayType as CardanoPoolRelayType,
4450
4481
  messages_CardanoTxAuxiliaryDataSupplementType as CardanoTxAuxiliaryDataSupplementType,
4451
- messages_CardanoGovernanceRegistrationFormat as CardanoGovernanceRegistrationFormat,
4482
+ messages_CardanoCVoteRegistrationFormat as CardanoCVoteRegistrationFormat,
4452
4483
  messages_CardanoTxSigningMode as CardanoTxSigningMode,
4453
4484
  messages_CardanoTxWitnessType as CardanoTxWitnessType,
4454
4485
  messages_CardanoBlockchainPointerType as CardanoBlockchainPointerType,
@@ -4471,10 +4502,11 @@ declare namespace messages {
4471
4502
  messages_CardanoPoolRelayParameters as CardanoPoolRelayParameters,
4472
4503
  messages_CardanoPoolMetadataType as CardanoPoolMetadataType,
4473
4504
  messages_CardanoPoolParametersType as CardanoPoolParametersType,
4505
+ messages_CardanoDRep as CardanoDRep,
4474
4506
  messages_CardanoTxCertificate as CardanoTxCertificate,
4475
4507
  messages_CardanoTxWithdrawal as CardanoTxWithdrawal,
4476
- messages_CardanoGovernanceRegistrationDelegation as CardanoGovernanceRegistrationDelegation,
4477
- messages_CardanoGovernanceRegistrationParametersType as CardanoGovernanceRegistrationParametersType,
4508
+ messages_CardanoCVoteRegistrationDelegation as CardanoCVoteRegistrationDelegation,
4509
+ messages_CardanoCVoteRegistrationParametersType as CardanoCVoteRegistrationParametersType,
4478
4510
  messages_CardanoTxAuxiliaryData as CardanoTxAuxiliaryData,
4479
4511
  messages_CardanoTxMint as CardanoTxMint,
4480
4512
  messages_CardanoTxCollateralInput as CardanoTxCollateralInput,
@@ -4838,10 +4870,11 @@ declare namespace messages {
4838
4870
  messages_SolanaAddress as SolanaAddress,
4839
4871
  messages_SolanaSignTx as SolanaSignTx,
4840
4872
  messages_SolanaSignedTx as SolanaSignedTx,
4841
- messages_SolanaMessageVersion as SolanaMessageVersion,
4842
- messages_SolanaMessageFormat as SolanaMessageFormat,
4843
- messages_SolanaSignMessage as SolanaSignMessage,
4844
- messages_SolanaSignedMessage as SolanaSignedMessage,
4873
+ messages_SolanaOffChainMessageVersion as SolanaOffChainMessageVersion,
4874
+ messages_SolanaOffChainMessageFormat as SolanaOffChainMessageFormat,
4875
+ messages_SolanaSignOffChainMessage as SolanaSignOffChainMessage,
4876
+ messages_SolanaSignUnsafeMessage as SolanaSignUnsafeMessage,
4877
+ messages_SolanaMessageSignature as SolanaMessageSignature,
4845
4878
  messages_StarcoinGetAddress as StarcoinGetAddress,
4846
4879
  messages_StarcoinAddress as StarcoinAddress,
4847
4880
  messages_StarcoinGetPublicKey as StarcoinGetPublicKey,
@@ -4975,4 +5008,4 @@ declare const _default: {
4975
5008
  decodeProtocol: typeof decodeProtocol;
4976
5009
  };
4977
5010
 
4978
- export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignTx, AptosSignedTx, AuthorizeCoinJoin, BIP32Address, BUFFER_SIZE, BackupDevice, BackupType, BatchGetPublickeys, BenfenAddress, BenfenGetAddress, BenfenMessageSignature, BenfenSignMessage, BenfenSignTx, BenfenSignedTx, BenfenTxAck, BenfenTxRequest, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, ButtonAck, ButtonRequest, ButtonRequestType, COMMON_HEADER_SIZE, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCertificateType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoGovernanceRegistrationDelegation, CardanoGovernanceRegistrationFormat, CardanoGovernanceRegistrationParametersType, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DeviceBackToBoot, DeviceEraseSector, DeviceInfo, DeviceInfoSettings, DnxAddress, DnxComputedKeyImage, DnxGetAddress, DnxInputAck, DnxInputRequest, DnxRTSigsRequest, DnxSignTx, DnxSignedTx, DnxTxKey, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_Capability, Enum_InputScriptType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FirmwareErase, FirmwareErase_ex, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetNextU2FCounter, GetOwnershipId, GetOwnershipProof, GetPublicKey, GetPublicKeyMultiple, HDNodePathType, HDNodeType, HEADER_SIZE, IdentityType, Initialize, InputScriptType, InternalInputScriptType, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MESSAGE_HEADER_BYTE, MESSAGE_TOP_CHAR, MessageFromOneKey, MessageKey, MessageResponse, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceInfo, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PassphraseAck, PassphraseRequest, Path, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetU2FCounter, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageFormat, SolanaMessageVersion, SolanaSignMessage, SolanaSignTx, SolanaSignedMessage, SolanaSignedTx, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignMessage, TonSignProof, TonSignedMessage, TonSignedProof, TonWalletVersion, TonWorkChain, Transport, TronAddress, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, VerifyMessage, WL_OperationType, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPublicCert, ZoomRequest, _default as default, facotry };
5011
+ export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignTx, AptosSignedTx, AuthorizeCoinJoin, BIP32Address, BUFFER_SIZE, BackupDevice, BackupType, BatchGetPublickeys, BenfenAddress, BenfenGetAddress, BenfenMessageSignature, BenfenSignMessage, BenfenSignTx, BenfenSignedTx, BenfenTxAck, BenfenTxRequest, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, ButtonAck, ButtonRequest, ButtonRequestType, COMMON_HEADER_SIZE, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCVoteRegistrationDelegation, CardanoCVoteRegistrationFormat, CardanoCVoteRegistrationParametersType, CardanoCertificateType, CardanoDRep, CardanoDRepType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DeviceBackToBoot, DeviceEraseSector, DeviceInfo, DeviceInfoSettings, DnxAddress, DnxComputedKeyImage, DnxGetAddress, DnxInputAck, DnxInputRequest, DnxRTSigsRequest, DnxSignTx, DnxSignedTx, DnxTxKey, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_Capability, Enum_InputScriptType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FirmwareErase, FirmwareErase_ex, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetNextU2FCounter, GetOwnershipId, GetOwnershipProof, GetPublicKey, GetPublicKeyMultiple, HDNodePathType, HDNodeType, HEADER_SIZE, IdentityType, Initialize, InputScriptType, InternalInputScriptType, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MESSAGE_HEADER_BYTE, MESSAGE_TOP_CHAR, MessageFromOneKey, MessageKey, MessageResponse, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceInfo, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PassphraseAck, PassphraseRequest, Path, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetU2FCounter, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageSignature, SolanaOffChainMessageFormat, SolanaOffChainMessageVersion, SolanaSignOffChainMessage, SolanaSignTx, SolanaSignUnsafeMessage, SolanaSignedTx, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignMessage, TonSignProof, TonSignedMessage, TonSignedProof, TonWalletVersion, TonWorkChain, Transport, TronAddress, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, VerifyMessage, WL_OperationType, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPublicCert, ZoomRequest, _default as default, facotry };
package/dist/index.js CHANGED
@@ -83,13 +83,13 @@ const primitiveTypes = [
83
83
  const isPrimitiveField = (field) => primitiveTypes.includes(field);
84
84
 
85
85
  const transform$1 = (field, value) => {
86
- if (field.optional && typeof value === 'undefined') {
86
+ if ((field === null || field === void 0 ? void 0 : field.optional) && typeof value === 'undefined') {
87
87
  return null;
88
88
  }
89
- if (field.type === 'bytes') {
89
+ if ((field === null || field === void 0 ? void 0 : field.type) === 'bytes') {
90
90
  return ByteBuffer__default["default"].wrap(value).toString('hex');
91
91
  }
92
- if (field.long) {
92
+ if (field === null || field === void 0 ? void 0 : field.long) {
93
93
  if (Number.isSafeInteger(value.toNumber())) {
94
94
  return value.toNumber();
95
95
  }
@@ -173,7 +173,7 @@ function patch(Message, payload) {
173
173
  if (typeof value === 'undefined') {
174
174
  return;
175
175
  }
176
- if (isPrimitiveField(field.type)) {
176
+ if (field && isPrimitiveField(field.type)) {
177
177
  if (field.repeated) {
178
178
  patched[key] = value.map((v) => transform(field.type, v));
179
179
  }
@@ -548,7 +548,17 @@ exports.CardanoCertificateType = void 0;
548
548
  CardanoCertificateType[CardanoCertificateType["STAKE_DEREGISTRATION"] = 1] = "STAKE_DEREGISTRATION";
549
549
  CardanoCertificateType[CardanoCertificateType["STAKE_DELEGATION"] = 2] = "STAKE_DELEGATION";
550
550
  CardanoCertificateType[CardanoCertificateType["STAKE_POOL_REGISTRATION"] = 3] = "STAKE_POOL_REGISTRATION";
551
+ CardanoCertificateType[CardanoCertificateType["STAKE_REGISTRATION_CONWAY"] = 7] = "STAKE_REGISTRATION_CONWAY";
552
+ CardanoCertificateType[CardanoCertificateType["STAKE_DEREGISTRATION_CONWAY"] = 8] = "STAKE_DEREGISTRATION_CONWAY";
553
+ CardanoCertificateType[CardanoCertificateType["VOTE_DELEGATION"] = 9] = "VOTE_DELEGATION";
551
554
  })(exports.CardanoCertificateType || (exports.CardanoCertificateType = {}));
555
+ exports.CardanoDRepType = void 0;
556
+ (function (CardanoDRepType) {
557
+ CardanoDRepType[CardanoDRepType["KEY_HASH"] = 0] = "KEY_HASH";
558
+ CardanoDRepType[CardanoDRepType["SCRIPT_HASH"] = 1] = "SCRIPT_HASH";
559
+ CardanoDRepType[CardanoDRepType["ABSTAIN"] = 2] = "ABSTAIN";
560
+ CardanoDRepType[CardanoDRepType["NO_CONFIDENCE"] = 3] = "NO_CONFIDENCE";
561
+ })(exports.CardanoDRepType || (exports.CardanoDRepType = {}));
552
562
  exports.CardanoPoolRelayType = void 0;
553
563
  (function (CardanoPoolRelayType) {
554
564
  CardanoPoolRelayType[CardanoPoolRelayType["SINGLE_HOST_IP"] = 0] = "SINGLE_HOST_IP";
@@ -558,13 +568,13 @@ exports.CardanoPoolRelayType = void 0;
558
568
  exports.CardanoTxAuxiliaryDataSupplementType = void 0;
559
569
  (function (CardanoTxAuxiliaryDataSupplementType) {
560
570
  CardanoTxAuxiliaryDataSupplementType[CardanoTxAuxiliaryDataSupplementType["NONE"] = 0] = "NONE";
561
- CardanoTxAuxiliaryDataSupplementType[CardanoTxAuxiliaryDataSupplementType["GOVERNANCE_REGISTRATION_SIGNATURE"] = 1] = "GOVERNANCE_REGISTRATION_SIGNATURE";
571
+ CardanoTxAuxiliaryDataSupplementType[CardanoTxAuxiliaryDataSupplementType["CVOTE_REGISTRATION_SIGNATURE"] = 1] = "CVOTE_REGISTRATION_SIGNATURE";
562
572
  })(exports.CardanoTxAuxiliaryDataSupplementType || (exports.CardanoTxAuxiliaryDataSupplementType = {}));
563
- exports.CardanoGovernanceRegistrationFormat = void 0;
564
- (function (CardanoGovernanceRegistrationFormat) {
565
- CardanoGovernanceRegistrationFormat[CardanoGovernanceRegistrationFormat["CIP15"] = 0] = "CIP15";
566
- CardanoGovernanceRegistrationFormat[CardanoGovernanceRegistrationFormat["CIP36"] = 1] = "CIP36";
567
- })(exports.CardanoGovernanceRegistrationFormat || (exports.CardanoGovernanceRegistrationFormat = {}));
573
+ exports.CardanoCVoteRegistrationFormat = void 0;
574
+ (function (CardanoCVoteRegistrationFormat) {
575
+ CardanoCVoteRegistrationFormat[CardanoCVoteRegistrationFormat["CIP15"] = 0] = "CIP15";
576
+ CardanoCVoteRegistrationFormat[CardanoCVoteRegistrationFormat["CIP36"] = 1] = "CIP36";
577
+ })(exports.CardanoCVoteRegistrationFormat || (exports.CardanoCVoteRegistrationFormat = {}));
568
578
  exports.CardanoTxSigningMode = void 0;
569
579
  (function (CardanoTxSigningMode) {
570
580
  CardanoTxSigningMode[CardanoTxSigningMode["ORDINARY_TRANSACTION"] = 0] = "ORDINARY_TRANSACTION";
@@ -765,15 +775,15 @@ exports.NEMImportanceTransferMode = void 0;
765
775
  NEMImportanceTransferMode[NEMImportanceTransferMode["ImportanceTransfer_Activate"] = 1] = "ImportanceTransfer_Activate";
766
776
  NEMImportanceTransferMode[NEMImportanceTransferMode["ImportanceTransfer_Deactivate"] = 2] = "ImportanceTransfer_Deactivate";
767
777
  })(exports.NEMImportanceTransferMode || (exports.NEMImportanceTransferMode = {}));
768
- exports.SolanaMessageVersion = void 0;
769
- (function (SolanaMessageVersion) {
770
- SolanaMessageVersion[SolanaMessageVersion["MESSAGE_VERSION_0"] = 0] = "MESSAGE_VERSION_0";
771
- })(exports.SolanaMessageVersion || (exports.SolanaMessageVersion = {}));
772
- exports.SolanaMessageFormat = void 0;
773
- (function (SolanaMessageFormat) {
774
- SolanaMessageFormat[SolanaMessageFormat["V0_RESTRICTED_ASCII"] = 0] = "V0_RESTRICTED_ASCII";
775
- SolanaMessageFormat[SolanaMessageFormat["V0_LIMITED_UTF8"] = 1] = "V0_LIMITED_UTF8";
776
- })(exports.SolanaMessageFormat || (exports.SolanaMessageFormat = {}));
778
+ exports.SolanaOffChainMessageVersion = void 0;
779
+ (function (SolanaOffChainMessageVersion) {
780
+ SolanaOffChainMessageVersion[SolanaOffChainMessageVersion["MESSAGE_VERSION_0"] = 0] = "MESSAGE_VERSION_0";
781
+ })(exports.SolanaOffChainMessageVersion || (exports.SolanaOffChainMessageVersion = {}));
782
+ exports.SolanaOffChainMessageFormat = void 0;
783
+ (function (SolanaOffChainMessageFormat) {
784
+ SolanaOffChainMessageFormat[SolanaOffChainMessageFormat["V0_RESTRICTED_ASCII"] = 0] = "V0_RESTRICTED_ASCII";
785
+ SolanaOffChainMessageFormat[SolanaOffChainMessageFormat["V0_LIMITED_UTF8"] = 1] = "V0_LIMITED_UTF8";
786
+ })(exports.SolanaOffChainMessageFormat || (exports.SolanaOffChainMessageFormat = {}));
777
787
  exports.StellarAssetType = void 0;
778
788
  (function (StellarAssetType) {
779
789
  StellarAssetType[StellarAssetType["NATIVE"] = 0] = "NATIVE";
@@ -842,9 +852,10 @@ var messages = /*#__PURE__*/Object.freeze({
842
852
  get CardanoNativeScriptHashDisplayFormat () { return exports.CardanoNativeScriptHashDisplayFormat; },
843
853
  get CardanoTxOutputSerializationFormat () { return exports.CardanoTxOutputSerializationFormat; },
844
854
  get CardanoCertificateType () { return exports.CardanoCertificateType; },
855
+ get CardanoDRepType () { return exports.CardanoDRepType; },
845
856
  get CardanoPoolRelayType () { return exports.CardanoPoolRelayType; },
846
857
  get CardanoTxAuxiliaryDataSupplementType () { return exports.CardanoTxAuxiliaryDataSupplementType; },
847
- get CardanoGovernanceRegistrationFormat () { return exports.CardanoGovernanceRegistrationFormat; },
858
+ get CardanoCVoteRegistrationFormat () { return exports.CardanoCVoteRegistrationFormat; },
848
859
  get CardanoTxSigningMode () { return exports.CardanoTxSigningMode; },
849
860
  get CardanoTxWitnessType () { return exports.CardanoTxWitnessType; },
850
861
  get FailureType () { return exports.FailureType; },
@@ -870,8 +881,8 @@ var messages = /*#__PURE__*/Object.freeze({
870
881
  get NEMSupplyChangeType () { return exports.NEMSupplyChangeType; },
871
882
  get NEMModificationType () { return exports.NEMModificationType; },
872
883
  get NEMImportanceTransferMode () { return exports.NEMImportanceTransferMode; },
873
- get SolanaMessageVersion () { return exports.SolanaMessageVersion; },
874
- get SolanaMessageFormat () { return exports.SolanaMessageFormat; },
884
+ get SolanaOffChainMessageVersion () { return exports.SolanaOffChainMessageVersion; },
885
+ get SolanaOffChainMessageFormat () { return exports.SolanaOffChainMessageFormat; },
875
886
  get StellarAssetType () { return exports.StellarAssetType; },
876
887
  get StellarMemoType () { return exports.StellarMemoType; },
877
888
  get StellarSignerType () { return exports.StellarSignerType; },
@@ -94,7 +94,7 @@ export type BenfenGetAddress = {
94
94
  show_display?: boolean;
95
95
  };
96
96
  export type BenfenAddress = {
97
- address: string;
97
+ address?: string;
98
98
  };
99
99
  export type BenfenSignTx = {
100
100
  address_n: number[];
@@ -585,7 +585,16 @@ export declare enum CardanoCertificateType {
585
585
  STAKE_REGISTRATION = 0,
586
586
  STAKE_DEREGISTRATION = 1,
587
587
  STAKE_DELEGATION = 2,
588
- STAKE_POOL_REGISTRATION = 3
588
+ STAKE_POOL_REGISTRATION = 3,
589
+ STAKE_REGISTRATION_CONWAY = 7,
590
+ STAKE_DEREGISTRATION_CONWAY = 8,
591
+ VOTE_DELEGATION = 9
592
+ }
593
+ export declare enum CardanoDRepType {
594
+ KEY_HASH = 0,
595
+ SCRIPT_HASH = 1,
596
+ ABSTAIN = 2,
597
+ NO_CONFIDENCE = 3
589
598
  }
590
599
  export declare enum CardanoPoolRelayType {
591
600
  SINGLE_HOST_IP = 0,
@@ -594,9 +603,9 @@ export declare enum CardanoPoolRelayType {
594
603
  }
595
604
  export declare enum CardanoTxAuxiliaryDataSupplementType {
596
605
  NONE = 0,
597
- GOVERNANCE_REGISTRATION_SIGNATURE = 1
606
+ CVOTE_REGISTRATION_SIGNATURE = 1
598
607
  }
599
- export declare enum CardanoGovernanceRegistrationFormat {
608
+ export declare enum CardanoCVoteRegistrationFormat {
600
609
  CIP15 = 0,
601
610
  CIP36 = 1
602
611
  }
@@ -647,6 +656,7 @@ export type CardanoGetAddress = {
647
656
  network_id: number;
648
657
  address_parameters: CardanoAddressParametersType;
649
658
  derivation_type: CardanoDerivationType;
659
+ chunkify?: boolean;
650
660
  };
651
661
  export type CardanoAddress = {
652
662
  address: string;
@@ -682,6 +692,8 @@ export type CardanoSignTxInit = {
682
692
  has_collateral_return?: boolean;
683
693
  total_collateral?: UintType;
684
694
  reference_inputs_count?: number;
695
+ chunkify?: boolean;
696
+ tag_cbor_sets?: boolean;
685
697
  };
686
698
  export type CardanoTxInput = {
687
699
  prev_hash: string;
@@ -739,6 +751,11 @@ export type CardanoPoolParametersType = {
739
751
  owners_count: number;
740
752
  relays_count: number;
741
753
  };
754
+ export type CardanoDRep = {
755
+ type: CardanoDRepType;
756
+ key_hash?: string;
757
+ script_hash?: string;
758
+ };
742
759
  export type CardanoTxCertificate = {
743
760
  type: CardanoCertificateType;
744
761
  path?: number[];
@@ -746,6 +763,8 @@ export type CardanoTxCertificate = {
746
763
  pool_parameters?: CardanoPoolParametersType;
747
764
  script_hash?: string;
748
765
  key_hash?: string;
766
+ deposit?: UintType;
767
+ drep?: CardanoDRep;
749
768
  };
750
769
  export type CardanoTxWithdrawal = {
751
770
  path?: number[];
@@ -753,21 +772,22 @@ export type CardanoTxWithdrawal = {
753
772
  script_hash?: string;
754
773
  key_hash?: string;
755
774
  };
756
- export type CardanoGovernanceRegistrationDelegation = {
757
- voting_public_key: string;
775
+ export type CardanoCVoteRegistrationDelegation = {
776
+ vote_public_key: string;
758
777
  weight: number;
759
778
  };
760
- export type CardanoGovernanceRegistrationParametersType = {
761
- voting_public_key?: string;
779
+ export type CardanoCVoteRegistrationParametersType = {
780
+ vote_public_key?: string;
762
781
  staking_path: number[];
763
- reward_address_parameters: CardanoAddressParametersType;
782
+ payment_address_parameters?: CardanoAddressParametersType;
764
783
  nonce: number;
765
- format?: CardanoGovernanceRegistrationFormat;
766
- delegations: CardanoGovernanceRegistrationDelegation[];
784
+ format?: CardanoCVoteRegistrationFormat;
785
+ delegations: CardanoCVoteRegistrationDelegation[];
767
786
  voting_purpose?: number;
787
+ payment_address?: string;
768
788
  };
769
789
  export type CardanoTxAuxiliaryData = {
770
- governance_registration_parameters?: CardanoGovernanceRegistrationParametersType;
790
+ cvote_registration_parameters?: CardanoCVoteRegistrationParametersType;
771
791
  hash?: string;
772
792
  };
773
793
  export type CardanoTxMint = {
@@ -789,7 +809,7 @@ export type CardanoTxItemAck = {};
789
809
  export type CardanoTxAuxiliaryDataSupplement = {
790
810
  type: CardanoTxAuxiliaryDataSupplementType;
791
811
  auxiliary_data_hash?: string;
792
- governance_signature?: string;
812
+ cvote_registration_signature?: string;
793
813
  };
794
814
  export type CardanoTxWitnessRequest = {
795
815
  path: number[];
@@ -2566,23 +2586,27 @@ export type SolanaSignTx = {
2566
2586
  export type SolanaSignedTx = {
2567
2587
  signature?: string;
2568
2588
  };
2569
- export declare enum SolanaMessageVersion {
2589
+ export declare enum SolanaOffChainMessageVersion {
2570
2590
  MESSAGE_VERSION_0 = 0
2571
2591
  }
2572
- export declare enum SolanaMessageFormat {
2592
+ export declare enum SolanaOffChainMessageFormat {
2573
2593
  V0_RESTRICTED_ASCII = 0,
2574
2594
  V0_LIMITED_UTF8 = 1
2575
2595
  }
2576
- export type SolanaSignMessage = {
2596
+ export type SolanaSignOffChainMessage = {
2577
2597
  address_n: number[];
2578
2598
  message: string;
2579
- message_version?: SolanaMessageVersion;
2580
- message_format?: SolanaMessageFormat;
2599
+ message_version?: SolanaOffChainMessageVersion;
2600
+ message_format?: SolanaOffChainMessageFormat;
2581
2601
  application_domain?: string;
2582
2602
  };
2583
- export type SolanaSignedMessage = {
2603
+ export type SolanaSignUnsafeMessage = {
2604
+ address_n: number[];
2605
+ message: string;
2606
+ };
2607
+ export type SolanaMessageSignature = {
2584
2608
  signature: string;
2585
- public_key: string;
2609
+ public_key?: string;
2586
2610
  };
2587
2611
  export type StarcoinGetAddress = {
2588
2612
  address_n: number[];
@@ -3162,10 +3186,11 @@ export type MessageType = {
3162
3186
  CardanoPoolRelayParameters: CardanoPoolRelayParameters;
3163
3187
  CardanoPoolMetadataType: CardanoPoolMetadataType;
3164
3188
  CardanoPoolParametersType: CardanoPoolParametersType;
3189
+ CardanoDRep: CardanoDRep;
3165
3190
  CardanoTxCertificate: CardanoTxCertificate;
3166
3191
  CardanoTxWithdrawal: CardanoTxWithdrawal;
3167
- CardanoGovernanceRegistrationDelegation: CardanoGovernanceRegistrationDelegation;
3168
- CardanoGovernanceRegistrationParametersType: CardanoGovernanceRegistrationParametersType;
3192
+ CardanoCVoteRegistrationDelegation: CardanoCVoteRegistrationDelegation;
3193
+ CardanoCVoteRegistrationParametersType: CardanoCVoteRegistrationParametersType;
3169
3194
  CardanoTxAuxiliaryData: CardanoTxAuxiliaryData;
3170
3195
  CardanoTxMint: CardanoTxMint;
3171
3196
  CardanoTxCollateralInput: CardanoTxCollateralInput;
@@ -3500,8 +3525,9 @@ export type MessageType = {
3500
3525
  SolanaAddress: SolanaAddress;
3501
3526
  SolanaSignTx: SolanaSignTx;
3502
3527
  SolanaSignedTx: SolanaSignedTx;
3503
- SolanaSignMessage: SolanaSignMessage;
3504
- SolanaSignedMessage: SolanaSignedMessage;
3528
+ SolanaSignOffChainMessage: SolanaSignOffChainMessage;
3529
+ SolanaSignUnsafeMessage: SolanaSignUnsafeMessage;
3530
+ SolanaMessageSignature: SolanaMessageSignature;
3505
3531
  StarcoinGetAddress: StarcoinGetAddress;
3506
3532
  StarcoinAddress: StarcoinAddress;
3507
3533
  StarcoinGetPublicKey: StarcoinGetPublicKey;