Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
Update to hyperdrive 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangoree committed Jan 17, 2024
1 parent 2e5d575 commit 78b7709
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
uses: actions/checkout@master
with:
repository: delvtech/hyperdrive
ref: 'v0.4.0'
ref: 'v0.5.0'
path: './hyperdrive'
ssh-key: ${{ secrets.HYPERDRIVE_ACCESS_KEY }}

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/hyperdrive-wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hyperdrive-wasm"
version = "0.4.0"
version = "0.5.0"
edition = "2021"

[lib]
Expand Down
1 change: 1 addition & 0 deletions crates/hyperdrive-wasm/example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const MAX_BUDGET = BigInt(MAX_U256).toString();
const examplePoolInfo = {
shareReserves: '10000000000000000000000000',
shareAdjustment: '0',
zombieBaseProceeds: '0',
zombieShareReserves: '0',
bondReserves: '10217899519533796120000000',
lpTotalSupply: '9999990000000000000000000',
Expand Down
8 changes: 4 additions & 4 deletions crates/hyperdrive-wasm/example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/hyperdrive-wasm/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"webpack-dev-server": "^4.15.1"
},
"dependencies": {
"@delvtech/hyperdrive-wasm": "file:delvtech-hyperdrive-wasm-0.4.0.tgz"
"@delvtech/hyperdrive-wasm": "file:delvtech-hyperdrive-wasm-0.5.0.tgz"
}
}
8 changes: 4 additions & 4 deletions crates/hyperdrive-wasm/example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# yarn lockfile v1


"@delvtech/hyperdrive-wasm@file:delvtech-hyperdrive-wasm-0.4.0.tgz":
version "0.4.0"
resolved "file:delvtech-hyperdrive-wasm-0.4.0.tgz"
integrity sha512-9Nr0zcu0+D52EmGQe4SK4WPLaMXT9/AGW6y3ASk2xGM9gcKqQ9adlq+9KJVQfJX9SOC69x4DWR7gR7NF7okAbg==
"@delvtech/hyperdrive-wasm@file:delvtech-hyperdrive-wasm-0.5.0.tgz":
version "0.5.0"
resolved "file:delvtech-hyperdrive-wasm-0.5.0.tgz"
integrity sha512-15IAqWt3hKn43k0jZccJA0KsdWHdf0fehV8rVAotNXn7fD+AkJ5CyyC8UURsSg0yQbZ+CRgFMexoxLgI3VeiCA==

"@discoveryjs/json-ext@^0.5.0":
version "0.5.7"
Expand Down
3 changes: 3 additions & 0 deletions crates/hyperdrive-wasm/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ interface JsPoolInfo {
withdrawalSharesProceeds: string,
lpSharePrice: string,
longExposure: string,
zombieBaseProceeds: string,
zombieShareReserves: string,
}
"#;
Expand Down Expand Up @@ -106,6 +107,7 @@ pub struct StringPoolInfo {
pub withdrawalSharesProceeds: String,
pub lpSharePrice: String,
pub longExposure: String,
pub zombieBaseProceeds: String,
pub zombieShareReserves: String,
}

Expand Down Expand Up @@ -133,6 +135,7 @@ impl From<&JsPoolInfo> for PoolInfo {
&js_pool_info.withdrawalSharesReadyToWithdraw,
)
.unwrap(),
zombie_base_proceeds: U256::from_dec_str(&js_pool_info.zombieBaseProceeds).unwrap(),
zombie_share_reserves: U256::from_dec_str(&js_pool_info.zombieShareReserves).unwrap(),
}
}
Expand Down

0 comments on commit 78b7709

Please sign in to comment.