-
Notifications
You must be signed in to change notification settings - Fork 0
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
Economic Model, Verifier Update and Cleanup #19
Merged
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
a7f0121
clean up
xlassix 840d942
Add NFT_CONTRACT_ID to .env.example file
xlassix 62cea40
added cleanup
xlassix bfcc631
Fix panic message format for invalid payload check
xlassix 2bf8320
containerized
xlassix afa344d
containerise
xlassix 6976b5e
Add port 8007 to Dockerfile for bitte_plugin
xlassix 6e292a7
Update app service configuration in docker-compose.yml
xlassix 3a09c32
Remove submodule "src/verity" and update submodule URL
xlassix 2f55e7d
Update .env.example with new variables and values
xlassix b0cf9fe
Update path for verity-verifier in Cargo.toml
xlassix e3f1d7d
feature: helper clean up
xlassix 0441670
Fix typo in NEAR_CONTRACT_ADDRESS value in .env.example
xlassix 07b96b1
use fixtures over inputs for zkaf - remove dormant/unused files. upda…
rsoury 2464621
Update test job to run plugin tests instead of helper tests
xlassix 054e0b2
Add new Cargo.toml paths to linkedProjects in settings
xlassix 20e6bf4
corrected git_actions
xlassix 2b04f11
Update Dockerfile names for bitte_plugin and near_indexer
xlassix 82f2b94
Refactor cargo test command in rust.yml workflow
xlassix 615f4ba
Update open_api_handler.rs description for reward transaction
xlassix 9b142f3
Update project setup and configuration steps
xlassix 2b80fd1
Add environment variables to README files
xlassix dee23a9
Add function to add prefix if needed in tweet notifications
xlassix c303c18
Add rustup to install rust toolchain components
xlassix 1cf60dc
Update rust components in GitHub Actions workflow
xlassix 2f99079
Update rustup command in workflow file
xlassix f06e1ab
Update cargo-near version to 0.10.2 in rust workflow
xlassix 7980406
Update cargo-make version to 0.35.1 in rust workflow
xlassix 20aa301
Update cargo-near version to 0.9.0 in Rust workflow
xlassix 4c0a523
Update Cargo dependencies for Rust workflow
xlassix f28de85
Add PublicMetric and MintRequestStatus enums. Set cost_per_metric. <5…
xlassix 20a03fa
Refactor minting logic for mint_tweet_request
xlassix 5bab0af
Update cost_per_metric comment in set_cost_per_metric function
xlassix 3ad037a
Add price_per_point field and update min_deposit logic
xlassix 5f4e175
Add functionality to preserve mint request data
xlassix e48a1a6
Update MintRequestStatus and handling of claimable funds
xlassix 45c6772
Refactor claim_funds method parameters and logic
xlassix 39ec97e
Update README with Bitte Plugin setup instructions
xlassix 672ab2a
Update README.md with new section title and content
xlassix a2916b4
complete
xlassix 1b0fae0
Add script to set NFT account in verifier contract
xlassix b258699
Update cargo dependencies and remove commented out sections
xlassix bd3258b
Add User struct to metadata extraction function
xlassix c76b1b5
Update withdrawal calculation in CancelMintRequest event
xlassix dd62d1b
Add Unsuccessful status handling in is_tweet_available() method
xlassix 5541234
Update dependencies and add cancel contract call endpoint
xlassix 1900abb
Update verity-client URL and add anyhow dependency
xlassix bd28e55
Update Verity client and verifier versions
xlassix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
**/target/ | ||
.git/ | ||
.gitignore | ||
.vscode/ | ||
*.rs.bk | ||
.idea/ | ||
docs/ | ||
src/zkaf/ | ||
src/contracts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +0,0 @@ | ||
[submodule "src/verity"] | ||
path = src/verity | ||
url = git@github.com:usherlabs/verity.git | ||
[submodule "src/zkaf/methods/verity"] | ||
path = src/zkaf/methods/verity | ||
url = https://github.com/usherlabs/verity.git | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
{ | ||
"rust-analyzer.linkedProjects": [ | ||
"./src/near_nft/Cargo.toml", | ||
"./src/near_verifier/contract/Cargo.toml", | ||
"./src/near_verifier/integration-tests/Cargo.toml", | ||
"./src/notary/Cargo.toml", | ||
"./src/twitter/Cargo.toml", | ||
"./src/verifier/Cargo.toml", | ||
"./src/contract/nft/Cargo.toml", | ||
"./src/contract/verifier/contract/Cargo.toml", | ||
"./src/contract/nft/nft/Cargo.toml", | ||
"./src/contract/verifier/integration-tests/Cargo.toml", | ||
"./src/zkaf/Cargo.toml", | ||
"./src/bitte_plugin/Cargo.toml", | ||
"./src/helper/Cargo.toml", | ||
"./src/near_indexer/Cargo.toml", | ||
], | ||
"rust-analyzer.check.extraEnv": { | ||
"RISC0_SKIP_BUILD": "1", | ||
} | ||
}, | ||
"rust-analyzer.procMacro.enable": true, | ||
"rust-analyzer.server.path": null, | ||
"rust-analyzer.cargo.unsetTest": [ | ||
"clap", | ||
"clap_derive", | ||
"clap-derive" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
version: '3.8' | ||
|
||
services: | ||
postgres_db: | ||
image: postgres:16 | ||
hostname: postgres | ||
restart: always | ||
container_name: verity-near-indexer-pg | ||
environment: | ||
POSTGRES_USER: ${POSTGRES_USER} | ||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} | ||
POSTGRES_DB: ${POSTGRES_DB} | ||
PGDATA: /var/lib/postgresql/data/pgdata | ||
healthcheck: | ||
test: ["CMD-SHELL", "pg_isready -U postgres"] | ||
interval: 15s | ||
timeout: 10s | ||
retries: 5 | ||
ports: | ||
- "5432:5432" | ||
networks: | ||
- xnfts-network | ||
volumes: | ||
- postgres-near-indexer:/var/lib/postgresql/data | ||
|
||
app: | ||
build: | ||
dockerfile: ./src/near_indexer/.indexer.dockerfile | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consistency between this Dockerfile and the Dockerfile elsewhere. Consistency keeps maintainability. |
||
context: . | ||
container_name: verity-near-indexer-app | ||
environment: | ||
DATABASE_URL: ${DATABASE_URL} | ||
RUST_LOG: debug | ||
RUST_BACKTRACE: 1 | ||
networks: | ||
- xnfts-network | ||
depends_on: | ||
postgres_db: | ||
condition: service_healthy | ||
volumes: | ||
- .:/app | ||
command: > | ||
sh -c " | ||
sea-orm-cli migrate up --migration-dir ./src/near_indexer/migration && | ||
indexer | ||
" | ||
|
||
bitte_plugin: | ||
build: | ||
dockerfile: ./src/bitte_plugin/Dockerfile | ||
context: . | ||
container_name: verity-near-bitte-app | ||
env_file: | ||
- ./src/bitte_plugin/.env | ||
ports: | ||
- "8007:8007" | ||
volumes: | ||
- .:/bitte_plugin | ||
command: > | ||
sh -c "bitte_plugin" | ||
volumes: | ||
postgres-near-indexer: | ||
|
||
networks: | ||
xnfts-network: | ||
driver: bridge |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
THIRDWEB_CLIENT_ID=xxxxxxxxxxx | ||
TWEET_BEARER=XXXXXXXXXXXXXXXXXX | ||
ACCOUNT_ID=hello_world.near | ||
NEAR_CONTRACT_ADDRESS="xxxxxxxxxxxxxxx.testnet" | ||
HOST_URL="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.env.local | ||
.env | ||
/*.json | ||
!/package.json |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No such folder as
src/contract/
It's
src/contracts/
Please get better at picking up minor matters like this.