This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add V4 order format * Bump ganache snapshot version to include V3 & V4 * Add ExchangeProxy (v4) address * Add Bytes32 type * Use Bytes32 and fix EIP712 type and encoding * []byte encoding should work * Switch to cherry-picked go-ethereum * Set correct reference hash, test passes * Add sign test (fails) * Signature test * Verify signer address * Fix signature * Fix taker/maker * use OrderWithMetadata as the common type * Document contract events * Cleanup * Add DevUtilsV4 contract addresses * Document wrapper generation * Require V4 addresses in app config * add FindOrdersV4 and AddOrdersV4 * move queries to sql_queries.go and sql_v4_queries.go also fixes insertQuery * Add generated contracts * Fix build issues * Document wrapper gen * Fixed Exchange wrapper * ABI type conversion * Implement validator * Scenario support for v4 orders * Test validator v4 * Fix length test * Fix signature test * Add SignatureType to ABI struct * Helper to create an eth client * Ganache orderhash workaround * Fix test * Test siging util * Validator v4 tests * Minimal failing state test * Fix orderstate test * Cleanup * Add V4 orderstate * Set ERC20 allowances on V3 & V4 * Fix batch test * Cleanup * Exact chunking * Fix OffchainValidate test * Skip failing v3 test * add remaining db methods,add graphql findOrderV4 schema and resolver (#1005) * add remaining db methods,add graphql findOrderV4 schema and resolver * add order v4 signature into sqltypes and db * add jsonschema validators, new types, v4 signature storage * adds marshallers for the signed order type * make GetCurrentMaxExpirationTime use both v3 and v4 orders * add batch validation to addOrdersV4 * P2P v4: PubSub and Ordersync (with orderwatcher pr merged in) (#1011) * Add aplicable tests * Mechanical replacements * More test porting * Fix exchange address in check * V4 orders in orderInfoToOrderWithMetadata * Handle mixed orders * Fix taker address * Generic db.AddOrders * Handle V4 orders in setupInMemoryOrderState * Use FindOrdersV4 * Fix keeping rejected V4 orders * Decode assetData for tokens * V4 support in findOrdersByTokenAddress * Add v4 support to more queries * Add V4 to generateOrderEventsIfChanged * Dispatching UpdateOrder * Set V4 fields in orderevent * Dispatch expiry update * V4 has no maker fee * Support V4 in ERC20 approve * Handle mixed orders * Fix tests * Dispatch expiry in convertValidationResultsIntoOrderEvents * Support ExchangeOrderCancelledEventV4 * Add ExchangePairCancelledLimitOrdersEventV4 * Fix tests * More V4 dispatching in order watcher * Add Cancelled event * Fix TestOrderWatcherV4HandleOrderExpirationsExpired * Use GetOderV4 * Fix UpdateOrder ErrNotFound * Add ExchangeLimitOrderFilledEventV4 * OrderSync V4 scafolding * Create ordersync protocol V4 * Integrate V4 service with App * Add V4 pubsub receiver * Handle v4 messages * Simlpify and share V4 * Fix tests * Remove debug prints * Increase test timeout * Update ganache snapshot * Unahck order hash * Upgrade to snapshot 6.5.11 * chore: v4 clients and minor changes * ADDS websocket client onReconnected optional callback * FIXES disable results caching * ADDS gitpkg integration * update apollo client, use fetchPolicy on subscription * add graphql addOrdersV4 onto client * continue the v4 client progress * add gql resolver changes * fix client hash and query * fix mesh graphql client * update conversions * move queries, update tests * use nested type for signature in ts SignedOrderV4 * update protocol strings * bump vbersion to 10.3.0 * add numOrderV4 to Stats and other missing fields * update client types to accept new GetStats query results * fix types and export some order results * use proper VerifyingContract field on the OrderV4 types Co-authored-by: Kim Persson <[email protected]> * ADDS random client fixes (#1014) * Order event order fields are optional * Allow event order fields to be null * Regenerate graphql types * send v4 order events * fix: graphql client V4 order query response structure (#1017) * FIXES graphql client V4 order query response structure * FIXES remove duplicate signature properties from parsed orders * FIXES unify OrderV4WithMetadata fields returned by queries and mutations * Add back INVALID order event end state (#1027) * add back " INVALID" end state * add log msg for uncaught RejectedOrderStatus * cut release 11.0.0 Co-authored-by: Remco Bloemen <[email protected]> Co-authored-by: Kim Persson <[email protected]> Co-authored-by: Kim Persson <[email protected]> Co-authored-by: Xianny <[email protected]>
- Loading branch information