Giter VIP home page Giter VIP logo

Comments (5)

Dominik1999 avatar Dominik1999 commented on July 26, 2024 1

this is related #550

The problem is storage and the reserved dataslots. However, I don't see why we can't merge a workaround until we have the correct package format

from miden-base.

partylikeits1983 avatar partylikeits1983 commented on July 26, 2024

The PR: #767

from miden-base.

bobbinth avatar bobbinth commented on July 26, 2024

If not critical, I'd prefer not to merge this as we should have a more general solution to accounts with custom code relatively soon (i.e., within the next month or so).

from miden-base.

partylikeits1983 avatar partylikeits1983 commented on July 26, 2024

If not critical, I'd prefer not to merge this as we should have a more general solution to accounts with custom code relatively soon (i.e., within the next month or so).

Ok no worries. The partially fillable swap note for the order book note is working and has been extensively tested using mock-datastore.

Is there a way to deploy a custom account to the miden localhost instance? I just need two extra "read-only" procedures in addition to the default account code, get_balance and get_id.

I want to deploy to miden-node this account:

use.miden::contracts::wallets::basic->basic_wallet
use.miden::contracts::auth::basic->basic_eoa
use.miden::account

export.basic_wallet::receive_asset
export.basic_wallet::send_asset
export.basic_eoa::auth_tx_rpo_falcon512

export.account::get_balance
export.account::get_id

from miden-base.

bobbinth avatar bobbinth commented on July 26, 2024

Is there a way to deploy a custom account to the miden localhost instance? I just need two extra "read-only" procedures in addition to the default account code, get_balance and get_id.

The only way to do that is to create an account programmatically (e.g., instantiate the Account struct with the code you'd like), the serialize it into .mac file (via the AccountData struct), and then import the .mac file in the client using the import command.

I think given the code you have above, instantiating AccountData struct and serializing it should be relatively straight-forward.

from miden-base.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.