This repository has been archived by the owner on Jul 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into python/sra-client-config-order-fix
- Loading branch information
Showing
79 changed files
with
3,046 additions
and
869 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
# command: npm set prefix=/home/circleci/npm && echo 'export PATH=$HOME/circleci/npm/bin:$PATH' >> /home/circleci/.bashrc | ||
- run: | ||
name: install-yarn | ||
command: npm install --global [email protected] | ||
command: npm install --force --global [email protected] | ||
- run: | ||
name: yarn | ||
command: yarn --frozen-lockfile --ignore-engines install || yarn --frozen-lockfile --ignore-engines install | ||
|
@@ -77,7 +77,7 @@ jobs: | |
- restore_cache: | ||
keys: | ||
- repo-{{ .Environment.CIRCLE_SHA1 }} | ||
- run: yarn wsrun test:circleci @0x/contracts-multisig @0x/contracts-utils @0x/contracts-exchange-libs @0x/contracts-erc20 @0x/contracts-erc721 @0x/contracts-erc1155 @0x/contracts-asset-proxy @0x/contracts-exchange-forwarder @0x/contracts-tests @0x/contracts-staking @0x/contracts-coordinator @0x/contracts-erc20-bridge-sampler | ||
- run: yarn wsrun test:circleci @0x/contracts-multisig @0x/contracts-utils @0x/contracts-exchange-libs @0x/contracts-erc20 @0x/contracts-erc721 @0x/contracts-erc1155 @0x/contracts-asset-proxy @0x/contracts-exchange-forwarder @0x/contracts-tests @0x/contracts-staking @0x/contracts-coordinator @0x/contracts-erc20-bridge-sampler | ||
# TODO(dorothy-zbornak): Re-enable after updating this package for | ||
# 3.0. At that time, also remove exclusion from monorepo | ||
# package.json's test script. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { AbiEncoder, BigNumber } from '@0x/utils'; | ||
|
||
export enum DydxBridgeActionType { | ||
Deposit, | ||
Withdraw, | ||
} | ||
|
||
export interface DydxBrigeAction { | ||
actionType: DydxBridgeActionType; | ||
accountId: BigNumber; | ||
marketId: BigNumber; | ||
conversionRateNumerator: BigNumber; | ||
conversionRateDenominator: BigNumber; | ||
} | ||
|
||
export interface DydxBridgeData { | ||
accountNumbers: BigNumber[]; | ||
actions: DydxBrigeAction[]; | ||
} | ||
|
||
export const dydxBridgeDataEncoder = AbiEncoder.create([ | ||
{ | ||
name: 'bridgeData', | ||
type: 'tuple', | ||
components: [ | ||
{ name: 'accountNumbers', type: 'uint256[]' }, | ||
{ | ||
name: 'actions', | ||
type: 'tuple[]', | ||
components: [ | ||
{ name: 'actionType', type: 'uint8' }, | ||
{ name: 'accountId', type: 'uint256' }, | ||
{ name: 'marketId', type: 'uint256' }, | ||
{ name: 'conversionRateNumerator', type: 'uint256' }, | ||
{ name: 'conversionRateDenominator', type: 'uint256' }, | ||
], | ||
}, | ||
], | ||
}, | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.