Smart contracts for the Gnosis Protocol v1
Main new feature is a Wrapper Contract that allows solutions submissions to be made cheaper thanks to the gas token.
This version introduced one breaking change to the migration script used by projects which integrate with BatchExchange contracts. Observe now that migrateBatchExchange
function now takes the BatchExchange contract as an input parameter.
Several dependency version bumps:
GP is now available on xDAI
Main new feature is the getTokenInfo method on BatchExchangeViewer to get decimals and token symbol by exchange ID.
Suppress all the version bumps and stray commits
Exporting new utility functions for amounts. This includes new functions:
getUnlimitedOrderAmounts getBuyAmountFromPrice getUnitPrice
and should make integration projects easier!
This release includes a new streamed event-based orderbook. Additionally the codebase has been partially migrated to TS, so there should be improved support for using this package with TypeScript.
export interface OrderBN { ... }
export decodeOrdersBN(...)
export const BatchExchange = ...
export const BatchExchangeViewer = ...
Is now:
export interface Order<BN> { ... }
export decodeOrders(...)
export const BatchExchangeArtifact = ...
export const BatchExchangeViewerArtifact = ...
import type
where appropriate (#760)applyEvent
Logic (#725)New Features:
BatchExchange Viewer Fixed