Skip to content

Commit

Permalink
chore(lint): format
Browse files Browse the repository at this point in the history
Signed-off-by: sam bacha <sam@manifoldfinance.com>
  • Loading branch information
sambacha committed Sep 21, 2021
1 parent c1ca27d commit 4a281b1
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 19 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ types/
docs/
*.svg
*.png
*.graphql
11 changes: 6 additions & 5 deletions packages/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
"name": "@openmev/graphql",
"version": "0.0.0",
"description": "OpenMEV SDK",
"files": ["src/*", "schemas/*"],
"scripts": {
},
"files": [
"src/*",
"schemas/*"
],
"scripts": {},
"keywords": [
"ethereum",
"defi",
Expand All @@ -20,6 +22,5 @@
"url": "git+https://github.com/manifoldfinance/openmev-sdk.git",
"directory": "packages/graphql"
},
"devDependencies": {
}
"devDependencies": {}
}
16 changes: 14 additions & 2 deletions packages/graphql/src/eth.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,20 @@ union eth_Transaction__blockHash = String
union eth_Transaction__blockNumber = String
union eth_Transaction__gasPrice = String
union eth_Transaction__receipt = eth_TransactionReceipt
union eth_Transaction_payload = eth_FrontierTransaction | eth_EIP2930Transaction | eth_EIP1559Transaction
union eth_Transaction_action = action_SwapExactTokensForTokens | action_SwapTokensForExactTokens | action_SwapExactETHForTokens | action_SwapTokensForExactETH | action_SwapExactTokensForETH | action_SwapETHForExactTokens | action_SwapExactTokensForTokensSupportingFeeOnTransferTokens | action_SwapExactETHForTokensSupportingFeeOnTransferTokens | action_SwapExactTokensForETHSupportingFeeOnTransferTokens
union eth_Transaction_payload =
eth_FrontierTransaction
| eth_EIP2930Transaction
| eth_EIP1559Transaction
union eth_Transaction_action =
action_SwapExactTokensForTokens
| action_SwapTokensForExactTokens
| action_SwapExactETHForTokens
| action_SwapTokensForExactETH
| action_SwapExactTokensForETH
| action_SwapETHForExactTokens
| action_SwapExactTokensForTokensSupportingFeeOnTransferTokens
| action_SwapExactETHForTokensSupportingFeeOnTransferTokens
| action_SwapExactTokensForETHSupportingFeeOnTransferTokens
type eth_TransactionLogKey {
transactionHash: String
transactionIndex: Int
Expand Down
27 changes: 24 additions & 3 deletions packages/graphql/src/rpc.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@ type SendTransaction {
transaction: eth_Transaction
action: SendTransaction_action
}
union SendTransaction_action = action_SwapExactTokensForTokens | action_SwapTokensForExactTokens | action_SwapExactETHForTokens | action_SwapTokensForExactETH | action_SwapExactTokensForETH | action_SwapETHForExactTokens | action_SwapExactTokensForTokensSupportingFeeOnTransferTokens | action_SwapExactETHForTokensSupportingFeeOnTransferTokens | action_SwapExactTokensForETHSupportingFeeOnTransferTokens
union SendTransaction_action =
action_SwapExactTokensForTokens
| action_SwapTokensForExactTokens
| action_SwapExactETHForTokens
| action_SwapTokensForExactETH
| action_SwapExactTokensForETH
| action_SwapETHForExactTokens
| action_SwapExactTokensForTokensSupportingFeeOnTransferTokens
| action_SwapExactETHForTokensSupportingFeeOnTransferTokens
| action_SwapExactTokensForETHSupportingFeeOnTransferTokens
type eth_AccountKey {
address: String
}
Expand Down Expand Up @@ -189,8 +198,20 @@ union eth_Transaction__blockHash = String
union eth_Transaction__blockNumber = String
union eth_Transaction__gasPrice = String
union eth_Transaction__receipt = eth_TransactionReceipt
union eth_Transaction_payload = eth_FrontierTransaction | eth_EIP2930Transaction | eth_EIP1559Transaction
union eth_Transaction_action = action_SwapExactTokensForTokens | action_SwapTokensForExactTokens | action_SwapExactETHForTokens | action_SwapTokensForExactETH | action_SwapExactTokensForETH | action_SwapETHForExactTokens | action_SwapExactTokensForTokensSupportingFeeOnTransferTokens | action_SwapExactETHForTokensSupportingFeeOnTransferTokens | action_SwapExactTokensForETHSupportingFeeOnTransferTokens
union eth_Transaction_payload =
eth_FrontierTransaction
| eth_EIP2930Transaction
| eth_EIP1559Transaction
union eth_Transaction_action =
action_SwapExactTokensForTokens
| action_SwapTokensForExactTokens
| action_SwapExactETHForTokens
| action_SwapTokensForExactETH
| action_SwapExactTokensForETH
| action_SwapETHForExactTokens
| action_SwapExactTokensForTokensSupportingFeeOnTransferTokens
| action_SwapExactETHForTokensSupportingFeeOnTransferTokens
| action_SwapExactTokensForETHSupportingFeeOnTransferTokens
type eth_TransactionLogKey {
transactionHash: String
transactionIndex: Int
Expand Down
1 change: 0 additions & 1 deletion packages/protobufs/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{
"extends": "../../api-extractor.json"
}
4 changes: 1 addition & 3 deletions packages/protobufs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,5 @@
"forceConsistentCasingInFileNames": true
},
"exclude": ["dist", "node_modules"],
"include": [
"./src"
]
"include": ["./src"]
}
14 changes: 12 additions & 2 deletions packages/sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,18 @@
*/

export * from './action';
export { systemConfigIdFromJSON, bundleSourceIdFromJSON, BundleSourceId, Miner, MinerRelaySystemConfig, SystemConfig, MarketContract, SushiLiquidityPair, UniLiquidityPair} from './config';
export {
systemConfigIdFromJSON,
bundleSourceIdFromJSON,
BundleSourceId,
Miner,
MinerRelaySystemConfig,
SystemConfig,
MarketContract,
SushiLiquidityPair,
UniLiquidityPair,
} from './config';
export { GasPrices, EstimatedGasPrice, BlockPrice } from './gas';
export { SushiLiquidity, BlockSushiLiquidity} from './sushi';
export { SushiLiquidity, BlockSushiLiquidity } from './sushi';
export { UniLiquidity, BlockUniLiquidity } from './uni';
export { rawBody } from './rawBody';
6 changes: 3 additions & 3 deletions packages/sdk/src/rawBody.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { keccak256 } from "@ethersproject/keccak256";
import { toUtf8Bytes } from "@ethersproject/strings";
import { keccak256 } from '@ethersproject/keccak256';
import { toUtf8Bytes } from '@ethersproject/strings';

export function rawBody(text: string): string {
return keccak256(toUtf8Bytes(text));
return keccak256(toUtf8Bytes(text));
}

0 comments on commit 4a281b1

Please sign in to comment.