Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oracle Push command #5

Closed
wants to merge 47 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
169e49c
comment out tests for now
harsh-ps-2003 Oct 29, 2024
14c1478
refactoring
harsh-ps-2003 Oct 29, 2024
5faf841
nit
harsh-ps-2003 Oct 30, 2024
31315d4
dont use miden-assembly
harsh-ps-2003 Oct 30, 2024
3dbcac0
use txn executor
harsh-ps-2003 Oct 30, 2024
c306f89
push tests
harsh-ps-2003 Oct 30, 2024
f328635
Merge branch 'astraly-labs:main' into push
harsh-ps-2003 Oct 30, 2024
10340a4
nit
harsh-ps-2003 Oct 31, 2024
8f23c84
nits
harsh-ps-2003 Oct 31, 2024
b2c1e79
nits
harsh-ps-2003 Oct 31, 2024
370b20d
WIP tests
harsh-ps-2003 Oct 31, 2024
836f9fb
test nits
harsh-ps-2003 Nov 1, 2024
7e1f031
nits
harsh-ps-2003 Nov 1, 2024
a73f33e
nits
harsh-ps-2003 Nov 1, 2024
0e91913
disabling read for now
harsh-ps-2003 Nov 2, 2024
2b8a4b0
fix: oracle_account_creation_and_pushing_data_to_read
Dominik1999 Nov 4, 2024
2c14d83
test nits
harsh-ps-2003 Nov 5, 2024
a1dd581
test nit
harsh-ps-2003 Nov 5, 2024
4895caf
NITS
harsh-ps-2003 Nov 5, 2024
4cf5ac0
nits for sig
harsh-ps-2003 Nov 5, 2024
5580e1a
external masm lib not supported!
harsh-ps-2003 Nov 5, 2024
cde8828
encoding/decoding of asset pair
harsh-ps-2003 Nov 6, 2024
3ea4ada
basic push working!
harsh-ps-2003 Nov 6, 2024
b7aeebe
conversion issues
harsh-ps-2003 Nov 7, 2024
21a0ac2
starting to setup read
harsh-ps-2003 Nov 7, 2024
6e3ee67
dont verify dp sig
harsh-ps-2003 Nov 9, 2024
8e9a301
remove read form tests
harsh-ps-2003 Nov 9, 2024
b52760a
use pragma sdk for pushing every 10min
harsh-ps-2003 Nov 11, 2024
6f246c7
sync in CI too avoid problem with miden client
harsh-ps-2003 Nov 11, 2024
926ab91
refactor for miden 0.6
harsh-ps-2003 Nov 13, 2024
9f67672
test nits
harsh-ps-2003 Nov 13, 2024
7abb096
Fix test
igamigo Nov 13, 2024
702edce
Merge pull request #1 from igamigo/igamigo-fix-test
harsh-ps-2003 Nov 13, 2024
eb687e4
test fix nit
harsh-ps-2003 Nov 13, 2024
189ae74
cli nit
harsh-ps-2003 Nov 14, 2024
f2ef967
db handled by client itself!
harsh-ps-2003 Nov 14, 2024
87bbaf9
component should support all types!
harsh-ps-2003 Nov 14, 2024
93c7207
pragma-sdk has to be installed
harsh-ps-2003 Nov 14, 2024
0c25352
prepare for read
harsh-ps-2003 Nov 22, 2024
ee7e0bd
use oracle component lib later!
harsh-ps-2003 Nov 22, 2024
46f099d
enable data provider public key verification when pushing
harsh-ps-2003 Nov 22, 2024
009e648
use mockchain for reading test
harsh-ps-2003 Nov 23, 2024
4dc4cf4
nits
harsh-ps-2003 Nov 23, 2024
fb78fd2
working on read test
harsh-ps-2003 Nov 26, 2024
8510ce0
nit
harsh-ps-2003 Nov 26, 2024
f42c7e4
use next branch for miden-lib
harsh-ps-2003 Nov 26, 2024
3228268
nits
harsh-ps-2003 Nov 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[target.aarch64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
"-C", "link-arg=-Wl,-rpath,/Users/harshpratapsingh/Desktop/venv/lib"
]
9 changes: 7 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Build and Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

Expand Down Expand Up @@ -36,5 +35,11 @@ jobs:
- name: Build the CLI
run: cargo install --path .

- name: Initialize Miden
run: pragma-miden init

- name: Sync Miden
run: pragma-miden sync

- name: Run tests
run: cargo test --verbose
run: cargo test
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"workbench.colorCustomizations": {
"editorLineNumber.foreground": "#00ff00",
"activityBar.background": "#153406",
"titleBar.activeBackground": "#1D4908",
"titleBar.activeForeground": "#F4FDEF"
}
}
49 changes: 37 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,27 @@
name = "pragma-miden"
version = "0.1.0"
edition = "2021"
authors = ["Harsh Pratap Singh <[email protected]>"]

[features]
testing = ["miden-tx/testing"]
default = ["rand_chacha"]

[dependencies]
miden-client = { version = "0.5", features = ["concurrent", "testing", "sqlite", "tonic"] }
miden-crypto = { version = "0.10", default-features = false }
miden-lib = { version = "0.5", default-features = false }
miden-objects = { version = "0.5", default-features = false }
miden-tx = { version = "0.5" }
miden-cli = { version = "0.5" }
assembly = { package = "miden-assembly", version = "0.10", default-features = false }
miden-client = { version = "0.6", features = ["concurrent", "testing", "sqlite", "tonic"] }
miden-crypto = { version = "0.12", default-features = false }
miden-lib = { git = "https://github.com/0xPolygonMiden/miden-base", branch = "next", default-features = false, features = ["concurrent", "testing"] }
miden-objects = { git = "https://github.com/0xPolygonMiden/miden-base", branch = "next", default-features = false, features = ["concurrent", "testing"] }
miden-tx = { git = "https://github.com/0xPolygonMiden/miden-base", branch = "next", features = ["concurrent", "testing"] }
miden-air = { version = "0.11", default-features = false }
miden-cli = { version = "0.6" }
miden-assembly = { version = "0.11", default-features = false, features = ["testing"] }

rusqlite = { version = "0.31", features = ["vtab", "array", "bundled"]}
rand = "0.8"
rusqlite = { version = "0.32", features = ["vtab", "array", "bundled"]}
rand = { version = "0.8", default-features = false }
tonic = { version = "0.12.3" }
tokio = { version = "1.40.0", features = ["rt-multi-thread", "net", "macros"] }
clap = { version = "4.5", features = ["derive"] }
clap = { version = "4.5.20", features = ["derive"] }
log = { version = "0.4.22" }
env_logger = { version = "0.11.5" }
colored = { version = "2.1.0" }
Expand All @@ -25,5 +31,24 @@ tracing = { version = "0.1.40" }
tracing-subscriber = { version = "0.3" }
winter-maybe-async = "0.10"
hex = "0.4.3"
rand_chacha = "0.3"
once_cell = "1.20"
rand_chacha = { version = "0.3", default-features = false, optional = true }
once_cell = "1.18"
pyo3 = { version = "0.22.6", features = ["auto-initialize"] }
tokio-stream = "0.1.1"
async-trait = "0.1.83"
thiserror = "2.0.1"

[build-dependencies]
pyo3-build-config = { version = "0.22.6", features = ["resolve-config"] }

[[test]]
name = "integration"
path = "src/accounts/tests.rs"
required-features = ["testing"]

[env]
PYO3_PYTHON = "/opt/homebrew/bin/python3"

[[bin]]
name = "pragma-miden"
path = "src/main.rs"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ The project is organized as follows:
|----------------------------|--------|
| Oracle Account | ✅ |
| Publisher Registry Account | ❌ |
| Python SDK | |
| Python SDK | |

## Getting Started

Expand Down
13 changes: 13 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[build-system]
requires = ["maturin>=1.4,<2.0"]
build-backend = "maturin"

[project]
name = "pragma-miden"
requires-python = ">=3.8"
dependencies = [
"pragma-sdk>=2.3.2"
]

[tool.maturin]
features = ["pyo3/extension-module"]
Loading
Loading