anandcsingh / rankproof

1 stars 0 forks source link

Concerns #62

Open anandcsingh opened 1 year ago

anandcsingh commented 1 year ago
anandcsingh commented 1 year ago

type DashboardState = { martialArtsLoaded: boolean, martialArts: Array, } export default function Dashboard() {

let [state, setState] = useState({
martialArtsLoaded: false, martialArts: [], });



<img width="589" alt="image" src="https://github.com/anandcsingh/rankproof/assets/4129994/9c67d001-567d-409a-861b-12976352cb1e">
anandcsingh commented 1 year ago

How do I deploy smart contracts that do not inherit from SmartContract directly?

The code in the zkapp-cli looks specifically for classes that inherit from SmartContract You could probably walk up the tree

anandcsingh commented 1 year ago

Compilation for simple contracts takes to long Up to 2 mins for simple contracts

anandcsingh commented 1 year ago

How do I develop the web app using the local Blockchain to speed up development?

anandcsingh commented 1 year ago

Interacting with multiple contracts from the same web app was problematic first contract was loaded second contract failed to send/get data stating zkapp could not be found, call fetchAccount but that did not work

anandcsingh commented 1 year ago

Sending multiple transactions one after the other fails with the following error message. The transactions were in a loop that do not change state

Error: Failed to send transaction {
  statusCode: 200,
  statusText: `Couldn't send zkApp command: ["Insufficient_replace_fee"]`
}
anandcsingh commented 1 year ago

Calling fetchAccount from the zkApp UI with larger contract takes very long Impractical AllMartialArtsEvents

anandcsingh commented 1 year ago

My contract takes 4 + mins to comiple that is not the end version The end version throws an exception trying to compile or deploy cant recall ATM

anandcsingh commented 1 year ago

Office hours eluded me,

anandcsingh commented 1 year ago

The documentation search not working https://docs.minaprotocol.com/zkapps/how-to-write-a-zkapp-ui

Maybe it is now

anandcsingh commented 1 year ago

Fetching again taking too long, guess it is just the first time it is loaded in the browser, but devs need to know that to expect it otherwise they may go down some rabbit holes image

anandcsingh commented 1 year ago

Tried pass around the smart contract function so that it could be invoked dynamically Call bjj vs judo based on condition Got a null exception I believe when executing the transaction