@cowprotocol/app-data
Namespaces
Classes
Interfaces
Type Aliases
AppDataParams
Ƭ AppDataParams: Partial
<Omit
<AppDataRootSchema
, "version"
>>
Defined in
types.ts:3
IpfsHashInfo
Ƭ IpfsHashInfo: Object
Type declaration
Name | Type | Description |
---|---|---|
appDataContent | string | Full appData content. It will be a the exact string that if hashed using keccak-256 you would get the returned appDataHex |
appDataHex | string | appData 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) |
cid | string | IPFS's content identifier See https://docs.ipfs.io/concepts/content-addressing/#identifier-formats |
Defined in
types.ts:5
ValidationResult
Ƭ ValidationResult: Object
Type declaration
Name | Type |
---|---|
errors? | string |
success | boolean |
Defined in
types.ts:38
Functions
stringifyDeterministic
▸ stringifyDeterministic(obj
): Promise
<string
>
Parameters
Name | Type |
---|---|
obj | any |
Returns
Promise
<string
>
Defined in
utils/stringify.ts:1