Skip to content

Commit

Permalink
Merge pull request #151 from balancer-labs/develop
Browse files Browse the repository at this point in the history
v0.1.24
  • Loading branch information
johngrantuk authored Sep 20, 2022
2 parents b773e31 + 32feab2 commit 2ad6c99
Show file tree
Hide file tree
Showing 36 changed files with 4,287 additions and 463 deletions.
3 changes: 2 additions & 1 deletion balancer-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@balancer-labs/sdk",
"version": "0.1.23",
"version": "0.1.24",
"description": "JavaScript SDK for interacting with the Balancer Protocol V2",
"license": "GPL-3.0-only",
"homepage": "https://github.com/balancer-labs/balancer-sdk/balancer-js#readme",
Expand Down Expand Up @@ -51,6 +51,7 @@
"@graphql-codegen/typescript-graphql-request": "^4.3.0",
"@graphql-codegen/typescript-operations": "^2.2.0",
"@graphql-codegen/typescript-resolvers": "2.4.1",
"@nomicfoundation/hardhat-network-helpers": "^1.0.4",
"@nomiclabs/hardhat-ethers": "^2.0.5",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.1.0",
Expand Down
3 changes: 3 additions & 0 deletions balancer-js/src/balancerErrors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export enum BalancerErrorCode {
NO_POOL_DATA = 'NO_POOL_DATA',
INPUT_OUT_OF_BOUNDS = 'INPUT_OUT_OF_BOUNDS',
INPUT_LENGTH_MISMATCH = 'INPUT_LENGTH_MISMATCH',
INPUT_ZERO_NOT_ALLOWED = 'INPUT_ZERO_NOT_ALLOWED',
TOKEN_MISMATCH = 'TOKEN_MISMATCH',
MISSING_TOKENS = 'MISSING_TOKENS',
MISSING_AMP = 'MISSING_AMP',
Expand Down Expand Up @@ -57,6 +58,8 @@ export class BalancerError extends Error {
return 'missing price rate';
case BalancerErrorCode.MISSING_WEIGHT:
return 'missing weight';
case BalancerErrorCode.INPUT_ZERO_NOT_ALLOWED:
return 'zero input not allowed';
default:
return 'Unknown error';
}
Expand Down
2 changes: 2 additions & 0 deletions balancer-js/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export * from './pool-stable';
export * from './pool-weighted';
export * from './pool-composable-stable';
export * from './pool-utils';
export * from './lib/utils';
export * from './types';
Expand All @@ -15,6 +16,7 @@ export * from './modules/sor/sor.module';
export * from './modules/pools';
export * from './modules/data';
export * from './balancerErrors';
export * from './lib/utils/signatures';
export {
SwapInfo,
SubgraphPoolBase,
Expand Down
Loading

0 comments on commit 2ad6c99

Please sign in to comment.