Origyn 'minting-start'

deploy local is compiling but i get this error running the deploy.sh to ‘ic’

Please enter a passphrase for your identity: [hidden]
Decryption complete.
error: parser error
┌─ Candid argument:1:28

1 │ (record {owner = principal “”; storage_space = null})
│ ^^ Text is too short.

Error: Failed to create argument blob.
Caused by: Failed to create argument blob.
Invalid argument: Invalid Candid values: Candid parser error: Text is too short. at 27…29
(base) douglassmith@Douglass-MacBook-Pro minting-starter %

using:

1 Like

I think you need to put an owner in an environment variable somewhere…let me find out from the team.

Try moving this admin_principal assignment outside of the if statement(ie To line 134):

I’ll file a bug and we’ll get it updated.

1 Like

thanks for the help. that did it.

1 Like

@skilesare … love this project thanks.
more of an artist that a developer here so i may well be over my head .
watched the api walk thru. i cant seem to post any nfts for sale as i stand. the phonebook stand in is confusing. guessing a piece is missing for nft sales to be processed.
the origyn_os looks intriguing.
looking forward to further progress.

You don’t have to use the phone book…you can just use your canister id(not as pretty). Let me know where you are having issues and I’ll try to help. We have an upcoming video as well. :slight_smile:

is there a install.sh that will install the origyn_sale_reference so as to make it available to the origyn_nft_reference canister as here:
https://relg2-2aaaa-aaaak-qaw3q-cai.raw.ic0.app/-/sd-0/-/sd.ai.nft0.png

There should be some scripts in the various test folders on origy_nft and the test_sales_canister file should have some decent tests that show the set up. We have a dapp with some gui features but we haven’t released that one yet. I’ll try to get a status update tomorrow.

look forward to the see what’s in store
thanks

@Motokoder @skilesare

watched latest #4 video -thanks great info

i having no problem deploying to ic but
i am not able to place collection or items in ‘for sale’ state.

is this final piece still unavailable to me?

1 Like

Are you using the marketplace dapp to do so or dfx?

This test has an example of the call to start an auction: origyn_nft/test_runner_nft.mo at 36ef6288bfce61fb5dea5ae68424d924b5741990 · ORIGYN-SA/origyn_nft · GitHub

I’m using /marketplace
Yeah i can ping all the links /wallet /marketplace/ledger/data/. … which needs changed to /nftdata

is there a dfx canister call that will start a sale/auction?
that would rock!

Well…depends on if you have dfx access to your principal. Feel free to send me the link and I’ll try to take a look…I can also connect you with a dev to debug.

You should see something like below:

Clicking start auction should work if you are the owner of the NFT.

https://relg2-2aaaa-aaaak-qaw3q-cai.raw.ic0.app/collection/-/marketplace#/sd-0

“make an offer” does make escrow entry and connects to wallet.

i think ownership and the principals may be mismatched

douglassmith@Douglass-MacBook-Pro minting-starter % dfx identity get-principal
Please enter a passphrase for your identity: [hidden]
Decryption complete.
v7at5-idcfg-y5qih-5puko-d5dcl-mhdcq-aepyz-e3ymy-kp43z-b6gsl-pae

Which principal are you logged in as? You need to be logged in as the principal that owns the nft to start an auction with it.

You have a couple different strategies currently if you want to sell a collection with a constant price. You can make the owner your dfx identity and then manage them via dfx starting an auction that has a min == buy it now price. Or you can try to use the sales canister that is included…but we don’t have a public front end for that yet.

Likely you want to do something like this from the NFT owner(check the API because this was an old command I had sitting around):

dfx canister --network ic call origyn_nft_reference market_transfer_nft_origyn '( record {
    token_id="ogy.nftforgood_uffc.0";
    sales_config =  record {
        escrow_receipt = null;
        pricing = variant {
            auction = record{
                reserve = null;
                token = variant {
                    ic = record{
                        canister = principal "ryjl3-tyaaa-aaaaa-aaaba-cai";
                        standard = variant {Ledger =null};
                        decimals = 8:nat;
                        symbol = "ICP";
                        fee = 10000;
                    }
                };
                buy_now= null;
                start_price = 3_500_000_000:nat;
                start_date = 0;
                ending = variant{date = 1651906800000000000:int};
                min_increase = variant{amount = 100_000_000:nat};
            }
        }
    }
})'

One more note. I don’t think we support an auction if the NFT hasn’t been minted yet. So if you want to use the above you’ll need to need to call mint_nft_origyn on it and assign the owner as your dfx principal.

2 Likes

thanks so much. the code above adds it to the marketplace. YEAH!

make a bid here:

https://relg2-2aaaa-aaaak-qaw3q-cai.raw.ic0.app/collection/-/marketplace#/

artwork is ai using stable-diffusion

1 Like

Very cool! We already found a bug in the offer mechanism :grimacing:

Looking at getting you a fix and how to deploy an updated dapp.

2 Likes