Pages:
Author

Topic: 300 BTC Coding Contest: Distributed Exchange (MasterCoin Developer Thread) - page 34. (Read 129207 times)

sr. member
Activity: 449
Merit: 250
MyMastercoin Wallet

http://mymastercoins.com/MyMSCWallet.aspx


Please post here if you find any bugs.  Thanks to Zathras for the send multisig  Smiley

Awesome HUGE news!!!!

Hi aTriz,

If you are able to test it, please post your findings here.

The contest  also gives a prizes for testing Smiley


hero member
Activity: 1232
Merit: 683
Tontogether | Save Smart & Win Big
MyMastercoin Wallet

http://mymastercoins.com/MyMSCWallet.aspx


Please post here if you find any bugs.  Thanks to Zathras for the send multisig  Smiley

Awesome HUGE news!!!!
sr. member
Activity: 449
Merit: 250
MyMastercoins Wallet

http://mymastercoins.com/MyMSCWallet.aspx


Please post here if you find any bugs.  Thanks to Zathras for the send multisig  Smiley

Edit
The package folder contains the windows installer.
The source code in vb.net is also included (under folder source code) You can compile it in vs 2010.
There is also an easyinstall folder.  This contains the database and exe files.
legendary
Activity: 1498
Merit: 1000
member
Activity: 205
Merit: 10
Forbes covers Mastercoin Decentralized Exchange. This is all thanks to you guys : )
 
http://www.forbes.com/sites/jasperhamill/2013/11/30/fed-up-with-bitcoin-heres-how-to-start-your-own-currency/?utm_campaign=techtwittersf&utm_source=twitter&utm_medium=social

And well done Michael Terpin, you are the man. Best Media Lead in Bitcoin. He knows his stuff. Great article.

Well done!
member
Activity: 114
Merit: 10
Forbes covers Mastercoin Decentralized Exchange. This is all thanks to you guys : )
 
http://www.forbes.com/sites/jasperhamill/2013/11/30/fed-up-with-bitcoin-heres-how-to-start-your-own-currency/?utm_campaign=techtwittersf&utm_source=twitter&utm_medium=social

And well done Michael Terpin, you are the man. Best Media Lead in Bitcoin. He knows his stuff. Great article.
sr. member
Activity: 449
Merit: 250
Hi Zathras,


I've finished testing the wallet with your multisig encodetx  and it worked.  For the payment I used the sendmany api.   Buy this might not work if a user has multiple MSC address (send many api requires an Account  input not a specific address). 

So from the encodetx i'd like to make an  encodepaymenttx.  This is for sending payment to a Seller (after the buyer has Purchased a Sell Offer).

Example Buyer wants to send 1 BTC to Seller

Buyer is the fromadd
Seller is the toadd


SatAmount =  100000000   (Amount to send is Satoshi)
txfee = 6000  (Dust to Exodus)
changeamount = (fromtxamount) - (SatAmounttoPay + txfee)

Is this correct (below is the code for your reference)?

Thank you =)

Code:
        'handle change
        changeamount = (fromtxamount) - (SatAmounttoPay + txfee)

        'build tx hex raw
        txhex = "01000000" 'version
        txhex = txhex & "01" 'vin count
        txhex = txhex & txidtohex(fromtxid) 'input txid hex
        txhex = txhex & i32tohex(fromtxvout) 'input vout 00000000
        txhex = txhex & "00" 'scriptsig length
        txhex = txhex & "ffffffff" 'sequence

        txhex = txhex & "03" 'number of vouts,

        'change output
        txhex = txhex & i64tohex(changeamount) 'changeamount value
        txhex = txhex & "19" 'length - 25 bytes
        txhex = txhex & "76a914" & addresstopubkey(fromadd) & "88ac" 'change scriptpubkey
        'exodus output
        txhex = txhex & i64tohex(txfee)
        txhex = txhex & "19"
        txhex = txhex & "76a914946cb2e08075bcbaf157e47bcb67eb2b2339d24288ac" 'exodus scriptpubkey
        'reference/destination output
        txhex = txhex & i64tohex(SatAmounttoPay)
        txhex = txhex & "19"
        txhex = txhex & "76a914" & addresstopubkey(toadd) & "88ac" 'data scriptpubkey

hero member
Activity: 938
Merit: 1000
I'm really behind on all Mastercoin stuff, busy times! But I found 15 minutes to send in a pull request. I hope it's clear enough.
sr. member
Activity: 449
Merit: 250
Grats on getting that out in the wild! Cheesy

I was hoping to get this out next week just so that we can post tramsactions but the blockchain loading is really very slow (50 weeks to go Smiley

Ouch.  Did you not have too much luck running bitcoind over at AWS and making your RPC calls to bitcoind there for your initial testing?  Please don't hesitate to let me know if you need help with this btw, anything to help with development speed Smiley


Bitcoind in aws ran out of disk space (30 gb) so I have to buy more disk space and run it again. Once I have the full block chain ill test your codes to send multisig.   If it works, next step is to  release it in the wild with big disclaimer Smiley.

How is your wallet implementation?  I think you made a test msc purchase and it looks ok. Congrats !
legendary
Activity: 1834
Merit: 1019
Is there anything I can help with in the meantime while Bitcoin-QT is syncing?
sr. member
Activity: 266
Merit: 250
Grats on getting that out in the wild! Cheesy

I was hoping to get this out next week just so that we can post tramsactions but the blockchain loading is really very slow (50 weeks to go Smiley

Ouch.  Did you not have too much luck running bitcoind over at AWS and making your RPC calls to bitcoind there for your initial testing?  Please don't hesitate to let me know if you need help with this btw, anything to help with development speed Smiley
sr. member
Activity: 449
Merit: 250
Grats on getting that out in the wild! Cheesy

I was hoping to get this out next week just so that we can post tramsactions but the blockchain loading is really very slow (50 weeks to go Smiley
sr. member
Activity: 449
Merit: 250
Although my validation is not finalized (missing some code in dist exchange, in simple send from exodus, and on perfect sequence), I already export the mastercoin_verify
https://masterchain.info/mastercoin_verify/
where are the others to compare?
I would like to know at least if some part is similar ;-)



Hi Grazcoin,

Please try
http://www.mymastercoins.com/jaddress.aspx
http://www.mymastercoins.com/jtransactions.aspx?Address=$Addresshere

hero member
Activity: 938
Merit: 1000
Grats on getting that out in the wild! Cheesy
sr. member
Activity: 449
Merit: 250
MyMastercoins Wallet

Mymastercoins.com engine to parse the transactions
Allows multiple address in one wallet (You must create an account in bitcoin-qt named MYMSC)
Can be easily expanded for multiple currency


Things to do
Test the multisig sending module of zathras (still waiting for the blockchain to load).
And charting features



http://mymastercoins.com/mmc/mmc2.jpg

http://mymastercoins.com/mmc/mmc3.jpg

http://mymastercoins.com/mmc/mmc4.jpg

http://mymastercoins.com/mmc/mmc5.jpg

http://mymastercoins.com/mmc/mmc6.jpg
hero member
Activity: 938
Merit: 1000
Although my validation is not finalized (missing some code in dist exchange, in simple send from exodus, and on perfect sequence), I already export the mastercoin_verify
https://masterchain.info/mastercoin_verify/
where are the others to compare?
I would like to know at least if some part is similar ;-)

http://mastercoin-explorer.com/mastercoin_verify/addresses

Mine is there. However at the moment my data is not working properly yet. I still need to find the time to update my distributed exchange code after yesterday's decision. Smiley
legendary
Activity: 1834
Merit: 1019
As soon as my damned laptop will sync the blockchain 100% I will join in on testing!! Wish I could help more on this front in the mean time guys.  Also, can our devs please check the last few posts on the main thread, around the same time as this time stamp? I'd like you to weigh in your thoughts about things very relevant to you.
sr. member
Activity: 266
Merit: 250
Quick (well not so quick if you read it!) X-post from rbdrbd's thread just in case any of the other devs who don't use .NET want to see how my library encodes transactions.

Run the result through decoderawtransaction to see what it's doing.

DEVELOPERS ONLY.  THIS IS NOT READY FOR END USERS.  THANKS!

Hey rbdrbd,

Here's the cli wrapper you asked for.  Just provides a binary to expose the library functions for encoding transactions.  Note there is no state or validation here, we're just creating the transaction.  The result can be signed & broadcast if you're happy with the output.

Please use with care, it's completely untested (there could be bad numeric conversions or other bugs for example) so only test against a wallet with fractional amounts Smiley

Let me know how you get on with it under Mono.  I'll take a look at putting sqlite support into the engine over the weekend, but for the next few days I really need to hunt down these bugs that are messing up my DEx states.

Thanks! Smiley

Built against .NET4.  Pick it up from here.  Note, use the -type=type switch to select between send, sell & accept.

Simple send:
Use the bitcoinrpc switches from the engine and -am (amount) -to (to address) -fr (from address) and -cu (currency type) switches.  For example:
Code:
MasterchestCLI.exe -bitcoinrpcserv=127.0.0.1 -bitcoinrpcport=8332 -bitcoinrpcuser=ooo -bitcoinrpcpass=ooo -type=send -fr=1KUu56RMsafvgwxkiGHmptrLLmBgQ16uQG -to=1MCHESTptvd2LnNp7wmr2sGTpRomteAkq8 -cu=MSC -am=1.234



Sell offer:
Use the bitcoinrpc switches from the engine and -am (sale amount) -fr (from address) -cu (currency type) -of (offer amount) -tl (timelimit) -mf (minfee) switches.  For example:
Code:
-bitcoinrpcserv=127.0.0.1 -bitcoinrpcport=8332 -bitcoinrpcuser=ooo -bitcoinrpcpass=ooo -type=sell -fr=1KUu56RMsafvgwxkiGHmptrLLmBgQ16uQG -cu=MSC -am=1.234 -of=0.5 -tl=6 -mf=0.0001



Accept offer:
Use the bitcoinrpc switches from the engine and -am (purchase amount) -fr (from address) -to (to address) -cu (currency type) switches.  For example:
Code:
-bitcoinrpcserv=127.0.0.1 -bitcoinrpcport=8332 -bitcoinrpcuser=ooo -bitcoinrpcpass=ooo -type=accept -fr=1KUu56RMsafvgwxkiGHmptrLLmBgQ16uQG -to=1MCHESTptvd2LnNp7wmr2sGTpRomteAkq8 -cu=MSC -am=1.234



member
Activity: 114
Merit: 10
LETS GET THESE GREAT DEVELOPERS FULL TIME ON MASTERCOIN

In my opinion the best way to do this is reliably and predictably vest the Dev MSC generated each month and we would have $312,500 USD in BONUSES, to add to the already great BTC bounties we offer.

If that's split between the current four Devs they would have made $78,125 USD in Dev MSC EACH MONTH the last three months = $234,375 USD and they would have quit their jobs by now. It really is that simple.

Even if we have 12 full time Developers working right now they would still be making $26,041 per month each just in bonuses from Dev MSC!

There would have to be 36 full time developers splitting the Bonus evenly to equal $8,680 USD per month and they would still be better off to work for the BTC and Dev MSC than take a $6,000 per month salary.

I say we unleash our most powerful weapon, thus far left neutered and under used for lack of a specified "Distribution Rate" in the MSC protocol.

I hope you will all vote in this poll going on right now and support the idea of actually using this Dev MSC that sitting there unused right now, for the most important purpose of all. Actually developing Mastercoin features and rewarding those who are doing just that.

https://bitcointalksearch.org/topic/poll-should-the-dev-mastercoin-distribution-rate-be-fixed-by-the-msc-protocol-348028

sr. member
Activity: 284
Merit: 250
Although my validation is not finalized (missing some code in dist exchange, in simple send from exodus, and on perfect sequence), I already export the mastercoin_verify
https://masterchain.info/mastercoin_verify/
where are the others to compare?
I would like to know at least if some part is similar ;-)

Pages:
Jump to: