Skip to content

Instantly share code, notes, and snippets.

View dredshep's full-sized avatar

dredshep dredshep

View GitHub Profile
@dredshep
dredshep / ZkEVMBalancerApiResponseTypes.ts
Last active August 7, 2023 14:45
Balancer API Token
//source: https://app.quicktype.io/?l=ts
interface APRApiResponse {
feesSnapshot: string;
c: null;
apr: Apr;
holdersCount: string;
isNew: boolean;
root3Alpha: null;
protocolYieldFeeCache: null | string;
[{"inputs":[{"internalType":"contract IVault","name":"_vault","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"enum IVault.SwapKind","name":"kind","type":"uint8"},{"components":[{"internalType":"bytes32","name":"poolId","type":"bytes32"},{"internalType":"uint256","name":"assetInIndex","type":"uint256"},{"internalType":"uint256","name":"assetOutIndex","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"userData","type":"bytes"}],"internalType":"struct IVault.BatchSwapStep[]","name":"swaps","type":"tuple[]"},{"internalType":"contract IAsset[]","name":"assets","type":"address[]"},{"components":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"bool","name":"fromInternalBalance","type":"bool"},{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"bool","name":"toInternalBalance","type":"bool"}],"internalType":"struct IVault.FundManagement","name"
@dredshep
dredshep / mongodb-installation-instructions.md
Last active February 10, 2021 01:21
Mongodb authentication setup instructions (Ubuntu 20.04)

To enable authentication, simply run: mongo

> use admin
> db.createUser(
  {
    user: "admin",
    pwd: "admin123",
    roles: [ { role: "userAdminAnyDatabase", db: "admin" }, "readWriteAnyDatabase" ]
  }