submitProposal()

Hello everyone!

I’m new here on the forum, and also a beginner on this amazing crypto/dao/blockchain world.

A couple of friends and I are trying to arrange/add a button on a Dapp that allows someone to post a proposal on a DAO.

I just stepped here to ask if somebody could help me to understand exactly what kind of params the function submitProposal is waiting for.

Let me give you an example. Im working with Moloch Dao v.2:

contract.methods.submitProposal(
applicant,
sharesRequested,
lootRequested,
tributeOffered,
tributeToken,
paymentRequested,
paymentToken,
details
);

Might this dummy data do the trick?

const applicant = "0x1db3439a222c519ab44bb1144fc28167b4fa6ee6"; //  Vitalik Buterin  //  1000 Shares
const sharesRequested = 1; //  standardShareRequest; //  0 should work?
const lootRequested = 10; //  standardLootRequest; //  0 should work?
const tributeOffered = new web3.utils.BN("1000000000000000000"); //  standardTribute; //  0 should work?
const tributeToken = "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"; // (Token: Wrapped Ether (WETH))
const paymentRequested = 0; //  0 should work?
const paymentToken = "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"; // (Token: Wrapped Ether (WETH))
const details = {
  from: "0x1db3439a222c519ab44bb1144fc28167b4fa6ee6",
  msj: "submitProposalTest",
};

I also tried with other tokens like DAI or Tether but the result is always the same:

I’m working with a forked Mainnet on ganache-cli.

Thanks in advance for any kind of response/advise.

Regards,
Yenien.-