entropyxyz / sdk

Official JavaScript SDK for Entropy blockchain.
GNU Affero General Public License v3.0
8 stars 0 forks source link

adding hash and auxilaryData to formatTxRequests #278

Closed jawndiego closed 8 months ago

jawndiego commented 8 months ago

added the following interface:

export interface UserSignatureRequest { message: string; auxilary_data?: Array<string | null> validators_info: ValidatorInfo[] timestamp: { secs_since_epoch: number; nanos_since_epoch: number; } hash: string }

that influences how we format our transaction requests. notice:

const txRequestData: UserSignatureRequest = { message: stripHexPrefix(strippedsigRequestHash), validators_info: validatorsInfo, timestamp: this.getTimeStamp(), auxilary_data: auxilaryData, hash }