Options
All
  • Public
  • Public/Protected
  • All
Menu

@provenanceio/wallet-utils

Index

Interfaces

Type aliases

Variables

Functions

Type aliases

AccessConfigDisplay: AccessConfig.AsObject
AtsMessage: { contractType: "ats"; msg: ExecuteMsg }

Type declaration

  • contractType: "ats"
  • msg: ExecuteMsg
CancelSoftwareUpgradeProposalDisplay: CancelSoftwareUpgradeProposal.AsObject
CoinAsObject: { amount: string | number; denom: string }

Type declaration

  • amount: string | number
  • denom: string
FallbackGenericMessageName: "MsgGeneric" | "MsgExecuteContractGeneric"
GenericDisplay: {}

Type declaration

  • [key: string]: any
InstantiateContractProposalDisplay: InstantiateContractProposal.AsObject
MsgAcceptPaymentRequestDisplay: MsgAcceptPaymentRequest.AsObject
MsgBeginRedelegateDisplay: MsgBeginRedelegate.AsObject
MsgCancelOrderRequestDisplay: MsgCancelOrderRequest.AsObject
MsgCancelPaymentsRequestDisplay: MsgCancelPaymentsRequest.AsObject
MsgCommitFundsRequestDisplay: MsgCommitFundsRequest.AsObject
MsgCreateAskRequestDisplay: MsgCreateAskRequest.AsObject
MsgCreateBidRequestDisplay: MsgCreateBidRequest.AsObject
MsgCreateGroupDisplay: MsgCreateGroup.AsObject
MsgCreateGroupPolicyDisplay: MsgCreateGroupPolicy.AsObject
MsgCreateGroupWithPolicyDisplay: MsgCreateGroupWithPolicy.AsObject
MsgCreatePaymentRequestDisplay: MsgCreatePaymentRequest.AsObject
MsgCreateValidatorDisplay: Omit<MsgCreateValidator.AsObject, "pubkey"> & { pubkey: PubKey.AsObject }
MsgCreateVestingAccountDisplay: MsgCreateVestingAccount.AsObject
MsgDelegateDisplay: MsgDelegate.AsObject
MsgDepositDisplay: MsgDeposit.AsObject
MsgEditValidatorDisplay: MsgEditValidator.AsObject
MsgExecDisplay: MsgExec.AsObject
MsgExecLegacyContentDisplay: MsgExecLegacyContent.AsObject
MsgExecuteContractDisplay: { fundsList: CoinAsObject[]; msg: any; sender: string }

Type declaration

MsgExecuteContractParams: (Omit<MsgExecuteContract.AsObject, "msg"> & UnknownContract) | (Omit<MsgExecuteContract.AsObject, "msg"> & AtsMessage) | (Omit<MsgExecuteContract.AsObject, "msg"> & { msg: DigitalCurrencyConsortiumExecuteMsg })
MsgFundCommunityPoolDisplay: MsgFundCommunityPool.AsObject
MsgGrantDisplay: MsgGrant.AsObject & { transferLimit: Coin.AsObject }
MsgGroupVoteDisplay: MsgGroupVote.AsObject
MsgInstantiateContract2Display: MsgInstantiateContract2.AsObject
MsgInstantiateContractDisplay: MsgInstantiateContract.AsObject
MsgLeaveGroupDisplay: MsgLeaveGroup.AsObject
MsgRejectPaymentRequestDisplay: MsgRejectPaymentRequest.AsObject
MsgRejectPaymentsRequestDisplay: MsgRejectPaymentsRequest.AsObject
MsgRevokeDisplay: MsgRevoke.AsObject
MsgSendDisplay: MsgSend.AsObject
MsgSetWithdrawAddressDisplay: MsgSetWithdrawAddress.AsObject
MsgSubmitEvidenceDisplay: Omit<MsgSubmitEvidence.AsObject, "evidence"> & { evidence: Evidence.AsObject }
MsgSubmitGroupProposalDisplay: MsgSubmitGroupProposal.AsObject
MsgSubmitProposalDisplay: MsgSubmitProposal.AsObject
MsgUndelegateDisplay: MsgUndelegate.AsObject
MsgUnjailDisplay: MsgUnjail.AsObject
MsgUpdateGroupAdminDisplay: MsgUpdateGroupAdmin.AsObject
MsgUpdateGroupMembersDisplay: MsgUpdateGroupMembers.AsObject
MsgUpdateGroupMetadataDisplay: MsgUpdateGroupMetadata.AsObject
MsgUpdateGroupPolicyAdminDisplay: MsgUpdateGroupPolicyAdmin.AsObject
MsgUpdateGroupPolicyDecisionPolicyDisplay: MsgUpdateGroupPolicyDecisionPolicy.AsObject
MsgUpdateGroupPolicyMetadataDisplay: MsgUpdateGroupPolicyMetadata.AsObject
MsgVerifyInvariantDisplay: MsgVerifyInvariant.AsObject
MsgVoteDisplay: MsgVote.AsObject
MsgVoteWeightedDisplay: MsgVoteWeighted.AsObject
MsgWithdrawDelegatorRewardDisplay: MsgWithdrawDelegatorReward.AsObject
MsgWithdrawProposalDisplay: MsgWithdrawProposal.AsObject
MsgWithdrawValidatorCommissionDisplay: MsgWithdrawValidatorCommission.AsObject
ParameterChangeProposalDisplay: ParameterChangeProposal.AsObject
PlanDisplay: Plan.AsObject
ProposalDisplay: Proposal.AsObject
ReadableMessageNames: "MsgGrant" | "MsgRevoke" | "MsgSend" | "MsgVerifyInvariant" | "PubKey" | "MsgFundCommunityPool" | "MsgSetWithdrawAddress" | "MsgWithdrawDelegatorReward" | "MsgWithdrawValidatorCommission" | "MsgSubmitEvidence" | "MsgCreateGroup" | "MsgUpdateGroupMembers" | "MsgUpdateGroupAdmin" | "MsgUpdateGroupMetadata" | "MsgCreateGroupPolicy" | "MsgUpdateGroupPolicyAdmin" | "MsgCreateGroupWithPolicy" | "MsgUpdateGroupPolicyDecisionPolicy" | "MsgUpdateGroupPolicyMetadata" | "MsgSubmitGroupProposal" | "MsgWithdrawProposal" | "MsgGroupVote" | "MsgExec" | "MsgLeaveGroup" | "MsgDeposit" | "MsgExecLegacyContent" | "MsgSubmitProposal" | "TextProposal" | "SoftwareUpgradeProposal" | "CancelSoftwareUpgradeProposal" | "Plan" | "StoreCodeProposal" | "InstantiateCodeProposal" | "AccessConfig" | "ParameterChangeProposal" | "ParamChange" | "MsgVote" | "MsgVoteWeighted" | "Proposal" | "MsgUnjail" | "MsgBeginRedelegate" | "MsgCreateValidator" | "MsgDelegate" | "MsgEditValidator" | "MsgUndelegate" | "MsgCreateVestingAccount" | "MsgExecuteContract" | "MsgInstantiateContract" | "MsgInstantiateContract2" | "MsgAddAttributeRequest" | "MsgDeleteAttributeRequest" | "MsgDeleteDistinctAttributeRequest" | "MsgUpdateAttributeRequest" | "MarkerTransferAuthorization" | "MsgActivateRequest" | "MsgAddAccessRequest" | "MsgAddMarkerRequest" | "MsgBurnRequest" | "MsgCancelRequest" | "MsgDeleteAccessRequest" | "MsgDeleteRequest" | "MsgFinalizeRequest" | "MsgMintRequest" | "MsgSetDenomMetadataRequest" | "MsgTransferRequest" | "MsgWithdrawRequest" | "MsgAddContractSpecToScopeSpecRequest" | "MsgAddScopeDataAccessRequest" | "MsgAddScopeOwnerRequest" | "MsgBindOSLocatorRequest" | "MsgDeleteContractSpecFromScopeSpecRequest" | "MsgDeleteContractSpecificationRequest" | "MsgDeleteOSLocatorRequest" | "MsgDeleteRecordRequest" | "MsgDeleteRecordSpecificationRequest" | "MsgDeleteScopeDataAccessRequest" | "MsgDeleteScopeOwnerRequest" | "MsgDeleteScopeRequest" | "MsgDeleteScopeSpecificationRequest" | "MsgModifyOSLocatorRequest" | "MsgWriteContractSpecificationRequest" | "MsgWriteRecordRequest" | "MsgWriteRecordSpecificationRequest" | "MsgWriteScopeRequest" | "MsgWriteScopeSpecificationRequest" | "MsgWriteSessionRequest" | "MsgBindNameRequest" | "MsgDeleteNameRequest" | "Evidence" | "MsgCommitFundsRequest" | "MsgCreatePaymentRequest" | "MsgAcceptPaymentRequest" | "MsgRejectPaymentRequest" | "MsgRejectPaymentsRequest" | "MsgCancelPaymentsRequest" | "MsgCreateAskRequest" | "MsgCreateBidRequest" | "MsgCancelOrderRequest"
SoftwareUpgradeProposalDisplay: SoftwareUpgradeProposal.AsObject
StoreCodeProposalDisplay: StoreCodeProposal.AsObject
SupportedMessageTypeNames: "cosmos.authz.v1beta1.MsgGrant" | "cosmos.authz.v1beta1.MsgRevoke" | "cosmos.bank.v1beta1.MsgSend" | "cosmos.crisis.v1beta1.MsgVerifyInvariant" | "cosmos.crypto.secp256k1.PubKey" | "cosmos.distribution.v1beta1.MsgFundCommunityPool" | "cosmos.distribution.v1beta1.MsgSetWithdrawAddress" | "cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward" | "cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission" | "cosmos.evidence.v1beta1.MsgSubmitEvidence" | "cosmos.group.v1.MsgCreateGroup" | "cosmos.group.v1.MsgUpdateGroupMembers" | "cosmos.group.v1.MsgUpdateGroupAdmin" | "cosmos.group.v1.MsgUpdateGroupMetadata" | "cosmos.group.v1.MsgCreateGroupPolicy" | "cosmos.group.v1.MsgUpdateGroupPolicyAdmin" | "cosmos.group.v1.MsgCreateGroupWithPolicy" | "cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy" | "cosmos.group.v1.MsgUpdateGroupPolicyMetadata" | "cosmos.group.v1.MsgSubmitProposal" | "cosmos.group.v1.MsgWithdrawProposal" | "cosmos.group.v1.MsgVote" | "cosmos.group.v1.MsgExec" | "cosmos.group.v1.MsgLeaveGroup" | "cosmos.gov.v1.MsgDeposit" | "cosmos.gov.v1.MsgExecLegacyContent" | "cosmos.gov.v1.MsgSubmitProposal" | "cosmos.gov.v1.MsgVote" | "cosmos.gov.v1.MsgVoteWeighted" | "cosmos.gov.v1.Proposal" | "cosmos.gov.v1beta1.TextProposal" | "cosmos.params.v1beta1.ParamChange" | "cosmos.params.v1beta1.ParameterChangeProposal" | "cosmos.slashing.v1beta1.MsgUnjail" | "cosmos.staking.v1beta1.MsgBeginRedelegate" | "cosmos.staking.v1beta1.MsgCreateValidator" | "cosmos.staking.v1beta1.MsgDelegate" | "cosmos.staking.v1beta1.MsgEditValidator" | "cosmos.staking.v1beta1.MsgUndelegate" | "cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal" | "cosmos.upgrade.v1beta1.Plan" | "cosmos.upgrade.v1beta1.SoftwareUpgradeProposal" | "cosmos.vesting.v1beta1.MsgCreateVestingAccount" | "cosmwasm.wasm.v1.AccessConfig" | "cosmwasm.wasm.v1.InstantiateCodeProposal" | "cosmwasm.wasm.v1.MsgExecuteContract" | "cosmwasm.wasm.v1.MsgInstantiateContract" | "cosmwasm.wasm.v1.MsgInstantiateContract2" | "cosmwasm.wasm.v1.StoreCodeProposal" | "provenance.attribute.v1.MsgAddAttributeRequest" | "provenance.attribute.v1.MsgDeleteAttributeRequest" | "provenance.attribute.v1.MsgDeleteDistinctAttributeRequest" | "provenance.attribute.v1.MsgUpdateAttributeRequest" | "provenance.marker.v1.MarkerTransferAuthorization" | "provenance.marker.v1.MsgActivateRequest" | "provenance.marker.v1.MsgAddAccessRequest" | "provenance.marker.v1.MsgAddMarkerRequest" | "provenance.marker.v1.MsgBurnRequest" | "provenance.marker.v1.MsgCancelRequest" | "provenance.marker.v1.MsgDeleteAccessRequest" | "provenance.marker.v1.MsgDeleteRequest" | "provenance.marker.v1.MsgFinalizeRequest" | "provenance.marker.v1.MsgMintRequest" | "provenance.marker.v1.MsgSetDenomMetadataRequest" | "provenance.marker.v1.MsgTransferRequest" | "provenance.marker.v1.MsgWithdrawRequest" | "provenance.metadata.v1.MsgAddContractSpecToScopeSpecRequest" | "provenance.metadata.v1.MsgAddScopeDataAccessRequest" | "provenance.metadata.v1.MsgAddScopeOwnerRequest" | "provenance.metadata.v1.MsgBindOSLocatorRequest" | "provenance.metadata.v1.MsgDeleteContractSpecFromScopeSpecRequest" | "provenance.metadata.v1.MsgDeleteContractSpecificationRequest" | "provenance.metadata.v1.MsgDeleteOSLocatorRequest" | "provenance.metadata.v1.MsgDeleteRecordRequest" | "provenance.metadata.v1.MsgDeleteRecordSpecificationRequest" | "provenance.metadata.v1.MsgDeleteScopeDataAccessRequest" | "provenance.metadata.v1.MsgDeleteScopeOwnerRequest" | "provenance.metadata.v1.MsgDeleteScopeRequest" | "provenance.metadata.v1.MsgDeleteScopeSpecificationRequest" | "provenance.metadata.v1.MsgModifyOSLocatorRequest" | "provenance.metadata.v1.MsgWriteContractSpecificationRequest" | "provenance.metadata.v1.MsgWriteRecordRequest" | "provenance.metadata.v1.MsgWriteRecordSpecificationRequest" | "provenance.metadata.v1.MsgWriteScopeRequest" | "provenance.metadata.v1.MsgWriteScopeSpecificationRequest" | "provenance.metadata.v1.MsgWriteSessionRequest" | "provenance.name.v1.MsgBindNameRequest" | "provenance.name.v1.MsgDeleteNameRequest" | "tendermint.abci.Evidence" | "provenance.exchange.v1.MsgCommitFundsRequest" | "provenance.exchange.v1.MsgCreatePaymentRequest" | "provenance.exchange.v1.MsgAcceptPaymentRequest" | "provenance.exchange.v1.MsgRejectPaymentRequest" | "provenance.exchange.v1.MsgRejectPaymentsRequest" | "provenance.exchange.v1.MsgCancelPaymentsRequest" | "provenance.exchange.v1.MsgCreateAskRequest" | "provenance.exchange.v1.MsgCreateBidRequest" | "provenance.exchange.v1.MsgCancelOrderRequest"
TextProposalDisplay: TextProposal.AsObject

Variables

MESSAGE_PROTOS: { [ key in SupportedMessageTypeNames]: typeof Message } = ...
TYPE_NAMES_READABLE_MAP: { [ key in ReadableMessageNames]: SupportedMessageTypeNames } = ...
accessTypeOptions: string[] = ...

Returns Access Type enum values as strings for display

execOptions: string[] = ...

Returns Exec enum values as strings for display

govVoteOptions: string[] = ...

Returns governnance vote option enum values as strings for display

groupVoteOptions: string[] = ...

Returns group vote option enum values as strings for display

Functions

  • broadcastTx(serviceAddress: string, request: BroadcastTxRequest): Promise<AsObject>
  • buildAuthInfo(__namedParameters: BuildAuthInfo): AuthInfo
  • buildBroadcastTxRequest(__namedParameters: BuildBroadcastTxRequestProps): BroadcastTxRequest
  • buildCalculateTxFeeRequest(__namedParameters: CalculateTxFeesRequestParams): CalculateTxFeesRequest
  • buildMessage(type: ReadableMessageNames, params: AsObject | MsgExecuteContractParams | MsgGrantDisplay | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | MsgSubmitEvidenceDisplay | AsObject | AsObject | AsObject | AsObject | AsObject | MsgCreateValidatorDisplay | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject): undefined | MsgDelegate | MsgSend | MsgCreateGroup | MsgSubmitProposal | MsgVote | MsgExec | MsgInstantiateContract | MsgInstantiateContract2 | MsgExecuteContract
  • builds the message for submission to the blockchain

    Parameters

    • type: ReadableMessageNames

      identifies the type of message being built

    • params: AsObject | MsgExecuteContractParams | MsgGrantDisplay | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | MsgSubmitEvidenceDisplay | AsObject | AsObject | AsObject | AsObject | AsObject | MsgCreateValidatorDisplay | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject | AsObject

      the parameters of the message being built

    Returns undefined | MsgDelegate | MsgSend | MsgCreateGroup | MsgSubmitProposal | MsgVote | MsgExec | MsgInstantiateContract | MsgInstantiateContract2 | MsgExecuteContract

    formatted message of the provided type

  • buildSignDoc(accNumber: number, chainId: string, txRaw: TxRaw): SignDoc
  • Builds the SignDoc, which is the type used for generating sign bytes for SIGN_MODE_DIRECT

    Parameters

    • accNumber: number

      the account number of the account in state

    • chainId: string

      the unique identifier of the chain this transaction targets. It prevents signed transactions from being used on another chain by an attacker

    • txRaw: TxRaw

      a variant of Tx that pins the signer's exact binary representation of body and auth_info. This is used for signing, broadcasting and verification. The binary serialize(tx: TxRaw) is stored in Tendermint and the hash sha256(serialize(tx: TxRaw)) becomes the "txhash", commonly used as the transaction ID.

    Returns SignDoc

    The SignDoc type used for generating sign bytes for SIGN_MODE_DIRECT reference: https://github.com/cosmos/cosmos-sdk/blob/v0.47.0-rc1/proto/cosmos/tx/v1beta1/tx.proto#L13-L26

  • buildSignerInfo(baseAccount: BaseAccount, pubKeyBytes: Uint8Array): SignerInfo
  • Builds the SignerInfo messages, which describes the public key and signing mode of a single top-level signer

    Parameters

    • baseAccount: BaseAccount
    • pubKeyBytes: Uint8Array

    Returns SignerInfo

  • buildTxBody(__namedParameters: BuildTxBodyProps): TxBody
  • calculateTxFees(serviceAddress: string, request: CalculateTxFeesRequest): Promise<AsObject>
  • capitalize(str?: string, type?: "default" | "camelcase" | "uppercase"): string
  • Returns a base64 encoded string of the provided message.

    Parameters

    • type: ReadableMessageNames

      the type of the message. If message type is unsupported, update ReadableMessageNames in types.

    • msg: Message

      the message to convert to base64.

    Returns string

    a base 64 string of the provided message

  • displayAddress(fieldValue?: string): string
  • displayAmountList(fieldValue: AmountList): string[]
  • amountList is an array of objects: amountList: [{ denom: 'a', amount: '1' }, {...}] Note: If the denom is nhash, autoconvert to hash

    Parameters

    • fieldValue: AmountList

    Returns string[]

  • displayCapitalizedString(fieldValue: any): string
  • displayCoinAsObject(fieldValue: string | number | CoinAsObject): string
  • displayDateAndTime(fieldValue: string): string
  • displayGasPrice(fieldValue: GasPrice): string
  • displayHashFormat(fieldValue: string, toFixed?: number): string
  • displayMetadataFields(__namedParameters: { peerMetadataDate?: number; peerMetadataDescription?: string; peerMetadataName?: string }): { date: string; description: string; platform: string }
  • Parameters

    • __namedParameters: { peerMetadataDate?: number; peerMetadataDescription?: string; peerMetadataName?: string }
      • Optional peerMetadataDate?: number
      • Optional peerMetadataDescription?: string
      • Optional peerMetadataName?: string

    Returns { date: string; description: string; platform: string }

    • date: string
    • description: string
    • platform: string
  • formatCustomObj(key: string, value: any): null | string | string[]
  • Deduce the formatting function based on the field and/or value. Value is formatted below, otherwise it may be an array/object which is recursively unpacked message-service and passed through the formatting function again.

    Parameters

    • key: string
    • value: any

    Returns null | string | string[]

  • formatSingleValue(value: any): string
  • Deduce the formatting function based on the field and/or value. Value is formatted below, otherwise it may be an array/object which is recursively unpacked message-service and passed through the formatting function again.

    Parameters

    • value: any

    Returns string

  • getAccountInfo(address: string, serviceAddress: string): Promise<{ accountNumber: number; baseAccount: BaseAccount; sequence: number }>
  • Parameters

    • address: string
    • serviceAddress: string

    Returns Promise<{ accountNumber: number; baseAccount: BaseAccount; sequence: number }>

  • getBalancesList(address: string, serviceAddress: string): Promise<AsObject>
  • getGroupInfo(serviceAddress: string, groupId: number): Promise<AsObject>
  • getGroupMembers(serviceAddress: string, groupId: number): Promise<AsObject>
  • getGroupPolicyByAdmin(admin: string, serviceAddress: string): Promise<AsObject>
  • getGroupPolicyByGroup(groupId: number, serviceAddress: string): Promise<AsObject>
  • getGroupPolicyInfo(address: string, serviceAddress: string): Promise<AsObject>
  • getGroupProposal(serviceAddress: string, proposalId: number): Promise<AsObject>
  • getGroupProposalByGroupPolicy(address: string, serviceAddress: string): Promise<AsObject>
  • getGroupsByAdmin(admin: string, serviceAddress: string): Promise<AsObject>
  • getGroupsByMember(address: string, serviceAddress: string): Promise<AsObject>
  • getJSType(obj: any): "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "array" | "null"
  • Parameters

    • obj: any

    Returns "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "array" | "null"

  • hashFormat(amount: string | number, amountType?: "nhash" | "hash", fixedAmount?: number): number
  • Parameters

    • amount: string | number
    • amountType: "nhash" | "hash" = 'nhash'
    • fixedAmount: number = 9

    Returns number

  • msgAnyB64toAny(msgAnyB64: string): Any
  • Converts a base64 message into a google proto

    Parameters

    • msgAnyB64: string

      base64 encoded string

    Returns Any

    google proto of the provided base64 message string

  • numberFormat(rawValue: string | number, digits?: number, extraOptions?: { maximumFractionDigits?: number; maximumSignificantDigits?: number; minimumSignificantDigits?: number; shorthand?: boolean }): string
  • Parameters

    • rawValue: string | number
    • digits: number = 1
    • extraOptions: { maximumFractionDigits?: number; maximumSignificantDigits?: number; minimumSignificantDigits?: number; shorthand?: boolean } = {}
      • Optional maximumFractionDigits?: number
      • Optional maximumSignificantDigits?: number
      • Optional minimumSignificantDigits?: number
      • Optional shorthand?: boolean

    Returns string

  • sha256(bytes: Uint8Array): Uint8Array
  • sha256 encryption of a byte array

    Parameters

    • bytes: Uint8Array

      a byte array (Uint8Array)

    Returns Uint8Array

    a sha256 encryted version of the given byte array

  • signBytes(bytes: Uint8Array, privateKey: Uint8Array): Uint8Array
  • sha256 encrypted, ECDSA signed version of the given byte array

    Parameters

    • bytes: Uint8Array

      byte array (Uint8Array) to encrypt and sign

    • privateKey: Uint8Array

      private key to sign with

    Returns Uint8Array

    a sha256 encrypted, ECDSA signed version of the given byte array

  • trimString(text?: string, maxLength: number, ellipsisIndex?: number, ellipsisValue?: string): string
  • Parameters

    • text: string = ''
    • maxLength: number
    • ellipsisIndex: number = -1
    • ellipsisValue: string = '...'

    Returns string

Generated using TypeDoc