elective-stereophonic
elective-stereophonic
Dividends+ Release singapore
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client: Nxt 1.11.15

Pages: [1] 2 3 ... 6  All

Author Topic: Dividends+ Release  (Read 22667 times)

valarmg

  • Hero Member
  • *****
  • Karma: +178/-57
  • Offline Offline
  • Posts: 1766
    • View Profile
Dividends+ Release
« on: July 31, 2014, 11:01:37 am »

Latest Update: Dividends has been integrated into the latest superNET release. So the best way to keep up to date is to download the latest software from multigateway.org or from supernet.org or from https://nxtforum.org/lite-multigateway-releases/

Latest Update: Dividends has been integrated into the latest MGW release. So the best way to keep up to date is to download the latest software from multigateway.org


Note: When doing dividend payments, make sure to copy the log (from both stages) into a text editor/excel sheet to review. If you see any problems, send me the log. Thanks.
Release version 1.1: https://www.dropbox.com/s/pfkeq7af9c8taby/ui_v11.rar (depreciated, see above)



Recommended to use the standard NRS client (1-click installer not yet supported)
Instructions: Merge the ui directory with the one from the client download (this only ends up replacing index.html and adding one javascript file.)
Note to MGW users: Unfortunately this and MGW won't work at the same time. You have to use a different directory or swap in or out Longzai's index.html with this index.html.

If you have installed correctly, you should see NxtServices>Dividends+ in the side menu. Clicking on this gives the options of Dividends or Automatic Asset Distribution. Both are a two step process. Click on calculate and the results box will outline what the plugin intends to do (Password not needed for this section, you don't even have to own the assets). Click on Activate to send out the Nxt or Assets. Record the results of the calculate stage, because the results aren't always reported for the activate stage.

The dividend calculation can take 10/15mins for assets with lots of assetholders.

Before actually sending dividends, check that the output from the calculation is correct. For sending, you could first try it out on less serious assets (I bought a few fake litecoin assets (9545582885005657403) and used those to test it.)

Please post bugs in this thread as well as successful dividend payments.

ToDo list:
1. Allow dividend payments in assets.
2. Implement timestamp feature.
3. Try and speed up dividend calculation.
4. Improve result reporting. (At the moment, final report is only a list of TXs; should report Nxt rather than quant)
5. Include loading bar for dividend calculation.
6. Include option to allow some accounts to be excluded from dividend payments.
7. For Automatic Asset Distribution, include option to pay out Nxt, and allow paying out of variable amounts.
8. Test and get working well on 1-click installer.

Note: This new release doesn't use any 3rd party software just interfaces with the core (It doesn't use the old NxtServices dividend script).
« Last Edit: January 11, 2015, 10:44:32 pm by valarmg »
Logged
NXT-CSED-4PK5-AR4V-6UB5V

valarmg

  • Hero Member
  • *****
  • Karma: +178/-57
  • Offline Offline
  • Posts: 1766
    • View Profile
Re: Dividends+ Release
« Reply #1 on: July 31, 2014, 11:39:02 pm »

Thanks to Coinomat for doing some testing, I've caught a few bugs and made a new release. Version 0.3 is now in the OP.

This script was just used to make its first dividend payments. (A whopping 50K Nxt for MPFiatGate.) So it now seems to be working well.
Logged
NXT-CSED-4PK5-AR4V-6UB5V

Sebastien256

  • Hero Member
  • *****
  • Karma: +169/-24
  • Offline Offline
  • Posts: 2823
  • ^LOOK UP^ = Nxt community!
    • View Profile
Re: Dividends+ Release
« Reply #2 on: July 31, 2014, 11:46:50 pm »

nice correctly reveive the MPFiatGate dividend.  :)
Logged
Please drop your ideas concerning Nxt and/or NRS in this topic -> List of feature request for Nxt and/or NRS (with the full list in OP).

Darkhorse

  • Hero Member
  • *****
  • Karma: +61/-8
  • Offline Offline
  • Posts: 1016
  • Keep It Simple
    • View Profile
Re: Dividends+ Release
« Reply #3 on: August 01, 2014, 02:20:39 am »

Valarmg,

Tested Asset distribution this morning with 5 accounts. It is working now perfectly.
Logged
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬  ▄▀▀▀▀▀▀▀▀▄  ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬●  nimirum  ●▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
▬▬▬ ◖ENDING CENSHORSIP ONLINE◗  ◖ ICO OPEN NOW◗ ▬▬▬

cobaltskky

  • Hero Member
  • *****
  • Karma: +226/-138
  • Offline Offline
  • Posts: 2344
    • View Profile
Re: Dividends+ Release
« Reply #4 on: August 01, 2014, 02:59:55 am »

Nicely done, Valarmg!!!  Looks great!
Logged

pf

  • Hero Member
  • *****
  • Karma: +161/-197
  • Offline Offline
  • Posts: 1340
    • View Profile
Re: Dividends+ Release
« Reply #5 on: August 01, 2014, 05:14:21 am »

Is there an API way to interact with this via curl?
I would like to use it to just calculate the shareholders at a given block height
or possibly input the total amount of dividend, the asset number, and the block height and have it return a json array of the shareholder's NXT account numbers, the amount of dividend each should be sent...
Logged
---
NXT Multipool! Mine Scrypt, SHA, Keccak or X11 for NXT! http://hashrate.org
http://hashrate.org/getting_started for port info!

valarmg

  • Hero Member
  • *****
  • Karma: +178/-57
  • Offline Offline
  • Posts: 1766
    • View Profile
Re: Dividends+ Release
« Reply #6 on: August 01, 2014, 08:02:44 am »

Is there an API way to interact with this via curl?
I would like to use it to just calculate the shareholders at a given block height
or possibly input the total amount of dividend, the asset number, and the block height and have it return a json array of the shareholder's NXT account numbers, the amount of dividend each should be sent...

There's no API interface. However, the second part is possible.

This is a 2 stage process. After the first part (Press Calculate), you'll get an output that looks like:
amount1,NXT_account_number1,asset1
amount2,NXT_account_number2,asset2

You can copy that information and paste it into an excel sheet or text file. That would allow your third party program to pay out the dividends.
Logged
NXT-CSED-4PK5-AR4V-6UB5V

pf

  • Hero Member
  • *****
  • Karma: +161/-197
  • Offline Offline
  • Posts: 1340
    • View Profile
Re: Dividends+ Release
« Reply #7 on: August 01, 2014, 08:16:29 am »

Is there an API way to interact with this via curl?
I would like to use it to just calculate the shareholders at a given block height
or possibly input the total amount of dividend, the asset number, and the block height and have it return a json array of the shareholder's NXT account numbers, the amount of dividend each should be sent...

There's no API interface. However, the second part is possible.

This is a 2 stage process. After the first part (Press Calculate), you'll get an output that looks like:
amount1,NXT_account_number1,asset1
amount2,NXT_account_number2,asset2

You can copy that information and paste it into an excel sheet or text file. That would allow your third party program to pay out the dividends.
I am looking for a way to do this programatically, so that i can integrate the dividend calculations right into the hashrate.org pool code.
I guess I'll have to tear apart the actual javascript and try and write the same sort of functionality in node.js tomorrow
4 miners up so far, six more to go, what a late night
Logged
---
NXT Multipool! Mine Scrypt, SHA, Keccak or X11 for NXT! http://hashrate.org
http://hashrate.org/getting_started for port info!

valarmg

  • Hero Member
  • *****
  • Karma: +178/-57
  • Offline Offline
  • Posts: 1766
    • View Profile
Re: Dividends+ Release
« Reply #8 on: August 01, 2014, 08:36:38 am »


I am looking for a way to do this programatically, so that i can integrate the dividend calculations right into the hashrate.org pool code.
I guess I'll have to tear apart the actual javascript and try and write the same sort of functionality in node.js tomorrow
4 miners up so far, six more to go, what a late night

Ok, well I guess once dividend functionality comes out in the core, there'll be an API then but not sure when that's expected.

James has written dividend functionality in C, and there is an API to that. You'll need to be running the NxtServices module (which takes about half an hour to load up). M09 is the latest version of NxtServices, not sure where the latest thread on that is since not many people are using it now.
Logged
NXT-CSED-4PK5-AR4V-6UB5V

pf

  • Hero Member
  • *****
  • Karma: +161/-197
  • Offline Offline
  • Posts: 1340
    • View Profile
Re: Dividends+ Release
« Reply #9 on: August 01, 2014, 08:38:42 am »


I am looking for a way to do this programatically, so that i can integrate the dividend calculations right into the hashrate.org pool code.
I guess I'll have to tear apart the actual javascript and try and write the same sort of functionality in node.js tomorrow
4 miners up so far, six more to go, what a late night

Ok, well I guess once dividend functionality comes out in the core, there'll be an API then but not sure when that's expected.

James has written dividend functionality in C, and there is an API to that. You'll need to be running the NxtServices module (which takes about half an hour to load up). M09 is the latest version of NxtServices, not sure where the latest thread on that is since not many people are using it now.
do you happen to have a download link that works, for that nxtservices module? for linux -  I saw a mac and a windows downloads, but I didn't see anything about linux.
Logged
---
NXT Multipool! Mine Scrypt, SHA, Keccak or X11 for NXT! http://hashrate.org
http://hashrate.org/getting_started for port info!

valarmg

  • Hero Member
  • *****
  • Karma: +178/-57
  • Offline Offline
  • Posts: 1766
    • View Profile
Re: Dividends+ Release
« Reply #10 on: August 01, 2014, 09:09:17 am »


I am looking for a way to do this programatically, so that i can integrate the dividend calculations right into the hashrate.org pool code.
I guess I'll have to tear apart the actual javascript and try and write the same sort of functionality in node.js tomorrow
4 miners up so far, six more to go, what a late night

Ok, well I guess once dividend functionality comes out in the core, there'll be an API then but not sure when that's expected.

James has written dividend functionality in C, and there is an API to that. You'll need to be running the NxtServices module (which takes about half an hour to load up). M09 is the latest version of NxtServices, not sure where the latest thread on that is since not many people are using it now.
do you happen to have a download link that works, for that nxtservices module? for linux -  I saw a mac and a windows downloads, but I didn't see anything about linux.

http://209.126.70.170/NXTservices_M09_unix (Thanks to VanBreuk for finding it for me.) Once NxtServices is running, do to localhost:7777 and you should be able to see the API calls.
« Last Edit: August 01, 2014, 10:08:37 am by valarmg »
Logged
NXT-CSED-4PK5-AR4V-6UB5V

Pakis

  • Jr. Member
  • **
  • Karma: +5/-0
  • Offline Offline
  • Posts: 29
    • View Profile
Re: Dividends+ Release
« Reply #11 on: August 03, 2014, 07:16:35 am »

Thanks for developing this module.
My experience of using this module to distribute my asset was not very pleasing.
First try was 250 addresses in one go only 59 got shares.
You can see the log of using this application at the nxtblocks.info at the asset's address NXT-2J43-PSJT-QTFF-HWHDV starting at 2014-08-02 15:35:24 and ending at 2014-08-02 19:07:08
Generally if you go for 10 or more addresses at one go something brakes.
I admin I did 30 in one go and 20 instantly but I could not repeat it.
I think you should add a bigger delay between sending each transaction.

Best Regards.
Logged

valarmg

  • Hero Member
  • *****
  • Karma: +178/-57
  • Offline Offline
  • Posts: 1766
    • View Profile
Re: Dividends+ Release
« Reply #12 on: August 03, 2014, 08:56:10 am »

Thanks for developing this module.
My experience of using this module to distribute my asset was not very pleasing.
First try was 250 addresses in one go only 59 got shares.
You can see the log of using this application at the nxtblocks.info at the asset's address NXT-2J43-PSJT-QTFF-HWHDV starting at 2014-08-02 15:35:24 and ending at 2014-08-02 19:07:08
Generally if you go for 10 or more addresses at one go something brakes.
I admin I did 30 in one go and 20 instantly but I could not repeat it.
I think you should add a bigger delay between sending each transaction.

Best Regards.

Thanks for using it and letting me know. I've just made an update which slows down the sending out of transactions. Better to be slow and make sure they all do through.

All: Make sure to update to version 0.4 is you are distributing to more than a handful assetholders.

Logged
NXT-CSED-4PK5-AR4V-6UB5V

pf

  • Hero Member
  • *****
  • Karma: +161/-197
  • Offline Offline
  • Posts: 1340
    • View Profile
Re: Dividends+ Release
« Reply #13 on: August 03, 2014, 09:36:22 pm »

any chance there's an updated version of NXTServices?
also, is the source for NXTServices available anywhere? it must have a GLICC dependency >2.13?

I just get
./NXTservices_M09_unix: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by ./NXTservices_M09_unix)
./NXTservices_M09_unix: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17' not found (required by ./NXTservices_M09_unix)
./NXTservices_M09_unix: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by ./NXTservices_M09_unix)

Logged
---
NXT Multipool! Mine Scrypt, SHA, Keccak or X11 for NXT! http://hashrate.org
http://hashrate.org/getting_started for port info!

jl777

  • Hero Member
  • *****
  • Karma: +718/-123
  • Offline Offline
  • Posts: 6170
    • View Profile
Re: Dividends+ Release
« Reply #14 on: August 03, 2014, 11:24:09 pm »

any chance there's an updated version of NXTServices?
also, is the source for NXTServices available anywhere? it must have a GLICC dependency >2.13?

I just get
./NXTservices_M09_unix: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by ./NXTservices_M09_unix)
./NXTservices_M09_unix: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17' not found (required by ./NXTservices_M09_unix)
./NXTservices_M09_unix: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by ./NXTservices_M09_unix)
I am in the process of getting the NXTservices code into a library that is easily compiled and also easier to make part of any project
give me a few days
Logged
There are over 1000 people in SuperNET slack! http://slackinvite.supernet.org/ automatically sends you an invite

I am just a simple C programmer

pf

  • Hero Member
  • *****
  • Karma: +161/-197
  • Offline Offline
  • Posts: 1340
    • View Profile
Re: Dividends+ Release
« Reply #15 on: August 04, 2014, 07:23:48 pm »

any chance there's an updated version of NXTServices?
also, is the source for NXTServices available anywhere? it must have a GLICC dependency >2.13?

I just get
./NXTservices_M09_unix: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by ./NXTservices_M09_unix)
./NXTservices_M09_unix: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17' not found (required by ./NXTservices_M09_unix)
./NXTservices_M09_unix: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by ./NXTservices_M09_unix)
I am in the process of getting the NXTservices code into a library that is easily compiled and also easier to make part of any project
give me a few days

Please let me know if I can do any beta testing or anything, James! Thank you!
Logged
---
NXT Multipool! Mine Scrypt, SHA, Keccak or X11 for NXT! http://hashrate.org
http://hashrate.org/getting_started for port info!

Pakis

  • Jr. Member
  • **
  • Karma: +5/-0
  • Offline Offline
  • Posts: 29
    • View Profile
Re: Dividends+ Release
« Reply #16 on: August 05, 2014, 07:38:20 pm »

Thanks for developing this module.
My experience of using this module to distribute my asset was not very pleasing.
First try was 250 addresses in one go only 59 got shares.
You can see the log of using this application at the nxtblocks.info at the asset's address NXT-2J43-PSJT-QTFF-HWHDV starting at 2014-08-02 15:35:24 and ending at 2014-08-02 19:07:08
Generally if you go for 10 or more addresses at one go something brakes.
I admin I did 30 in one go and 20 instantly but I could not repeat it.
I think you should add a bigger delay between sending each transaction.

Best Regards.

Thanks for using it and letting me know. I've just made an update which slows down the sending out of transactions. Better to be slow and make sure they all do through.

All: Make sure to update to version 0.4 is you are distributing to more than a handful assetholders.
You did it.
I sent shares to 520 address in one go. It works, but it locks the ui for the time it takes to send the shares.

If you know it you don't bother. But if you are doing it for the first time you might think something is not right because the interface doesn't respont to anything. It also pops a message saying that the application is not responding suggesting that something is wrong while it is still working.

Thanks anyway.
You saved me from alot of coping and pasting.
Logged

valarmg

  • Hero Member
  • *****
  • Karma: +178/-57
  • Offline Offline
  • Posts: 1766
    • View Profile
Re: Dividends+ Release
« Reply #17 on: August 06, 2014, 02:33:00 pm »

Thanks for developing this module.
My experience of using this module to distribute my asset was not very pleasing.
First try was 250 addresses in one go only 59 got shares.
You can see the log of using this application at the nxtblocks.info at the asset's address NXT-2J43-PSJT-QTFF-HWHDV starting at 2014-08-02 15:35:24 and ending at 2014-08-02 19:07:08
Generally if you go for 10 or more addresses at one go something brakes.
I admin I did 30 in one go and 20 instantly but I could not repeat it.
I think you should add a bigger delay between sending each transaction.

Best Regards.

Thanks for using it and letting me know. I've just made an update which slows down the sending out of transactions. Better to be slow and make sure they all do through.

All: Make sure to update to version 0.4 is you are distributing to more than a handful assetholders.
You did it.
I sent shares to 520 address in one go. It works, but it locks the ui for the time it takes to send the shares.

If you know it you don't bother. But if you are doing it for the first time you might think something is not right because the interface doesn't respont to anything. It also pops a message saying that the application is not responding suggesting that something is wrong while it is still working.

Thanks anyway.
You saved me from alot of coping and pasting.

Okay, thanks. I'll look into adding a loading bar so it looks like something is happening.
Logged
NXT-CSED-4PK5-AR4V-6UB5V

valarmg

  • Hero Member
  • *****
  • Karma: +178/-57
  • Offline Offline
  • Posts: 1766
    • View Profile
Re: Dividends+ Release
« Reply #18 on: August 08, 2014, 03:01:54 pm »

I made a new release and updated the OP.

Version 5 has the ability to choose the timestamp for dividend calculation and the ability to pay in assets.

Logged
NXT-CSED-4PK5-AR4V-6UB5V

qbd1313

  • Sr. Member
  • ****
  • Karma: +10/-8
  • Offline Offline
  • Posts: 372
    • View Profile
Re: Dividends+ Release
« Reply #19 on: August 08, 2014, 03:53:58 pm »

great job
thx valarmg
Logged
Pages: [1] 2 3 ... 6  All
 

elective-stereophonic
elective-stereophonic
assembly
assembly