Skip to main content

@cowprotocol/app-data

Namespaces

Classes

Interfaces

Type Aliases

AppDataParams

Ƭ AppDataParams: Partial<Omit<AppDataRootSchema, "version">>

Defined in

types.ts:3


IpfsHashInfo

Ƭ IpfsHashInfo: Object

Type declaration

NameTypeDescription
appDataContentstringFull appData content. It will be a the exact string that if hashed using keccak-256 you would get the returned appDataHex
appDataHexstringappData hex for CoW Orders. Its value is the multihash part of the IPFS CID, therefore it points to a IPFS document. Because its just the multihash, it doesn't have any infomation regarding the encoding and hashing algorithm. These parts are implicit. Currently, the implicit encoding is base16 and the implicit hashing algorithm is keccak256. See https://github.com/cowprotocol/app-data/blob/app-data-v1/src/api/appDataToCid.ts#L102 Previous versions used a different encoding and hashing algorithm (base58btc, dag-pb, sha2-256)
cidstringIPFS's content identifier See https://docs.ipfs.io/concepts/content-addressing/#identifier-formats

Defined in

types.ts:5


ValidationResult

Ƭ ValidationResult: Object

Type declaration

NameType
errors?string
successboolean

Defined in

types.ts:38

Functions

stringifyDeterministic

stringifyDeterministic(obj): Promise<string>

Parameters

NameType
objany

Returns

Promise<string>

Defined in

utils/stringify.ts:1