Skip to content

Commit

Permalink
add last update timestamp to oracle exchage rate struct (#68)
Browse files Browse the repository at this point in the history
* add last update timestamp to oracle exchage rate struct

* bump rust version

* bump rust version

* update github actions

* update github actions

* update workflow

* fix workflow

* fix workflow
  • Loading branch information
udpatil authored Sep 28, 2023
1 parent a2c38e8 commit eee7f0c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/Basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.63.0
toolchain: 1.70.0
target: wasm32-unknown-unknown
override: true

- name: Run unit tests
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --all
args: --verbose -p sei-cosmwasm #--all TODO: fix sei-integration-tests compatibility
env:
RUST_BACKTRACE: 1

Expand All @@ -47,7 +47,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.63.0
toolchain: 1.70.0
override: true
components: rustfmt, clippy

Expand All @@ -61,13 +61,14 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -W warnings
args: -p sei-cosmwasm -p sei-tester -- -W warnings # TODO: fix so that we can remove the package specifications after sei-integration-tests is fixed

- name: Generate Schema For sei-tester
uses: actions-rs/cargo@v1
with:
command: run
args: --example schema -p sei-tester
# TODO: re-enable after fixing sei-integration-tests
# - name: Generate Schema For sei-tester
# uses: actions-rs/cargo@v1
# with:
# command: run
# args: --example schema -p sei-tester

- name: Generate Schema For sei-cosmwasm
uses: actions-rs/cargo@v1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This repository contains the sei-cosmwasm package to support smart contract quer
docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/rust-optimizer:0.12.6
cosmwasm/rust-optimizer:0.14.0
```

## Testing with LocalSei
Expand Down
2 changes: 1 addition & 1 deletion packages/sei-cosmwasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sei-cosmwasm"
version = "0.4.11"
version = "0.4.12"
edition = "2021"
description = "Bindings and helpers for cosmwasm contracts to interact with sei blockchain"
license = "Apache-2.0"
Expand Down
1 change: 1 addition & 0 deletions packages/sei-cosmwasm/src/proto_structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use cosmwasm_std::{Decimal, Uint64};
pub struct OracleExchangeRate {
pub exchange_rate: Decimal,
pub last_update: Uint64,
pub last_update_timestamp: u64,
}

// ExchangeRateItem is data format returned from OracleRequest::ExchangeRates query
Expand Down

0 comments on commit eee7f0c

Please sign in to comment.