Commit graph

32 commits

Author SHA1 Message Date
Nathan Hourt
c530867933 Progress #17
- Add initial support for vesting genesis balances
- Add owner/active keys to genesis accounts
- Cleanup circa balance_object and evaluator
2015-06-30 17:05:17 -04:00
Nathan Hourt
391b0bec45 Progress #17: Remove GRAPHENE_INITIAL_SUPPLY
The INITIAL_SUPPLY macro is generally not useful, and there's no good
way to fulfill the promise it creates. By removing it, I can skip the
scaling on the genesis values. Now, if there is an allocation at
genesis, the supply is determined by that allocation. Otherwise, the
supply is GRAPHENE_MAX_SHARE_SUPPLY and it all belongs to
GRAPHENE_COMMITTEE_ACCOUNT.

Also, remove one of the redundant and confusing MAX_SUPPLY macros and
unify the usage to always be GRAPHENE_MAX_SHARE_SUPPLY.
2015-06-29 17:50:56 -04:00
Vikram Rajkumar
f0ea015ccf Clean up is_valid_name and remove child accounts; #15, #93 2015-06-29 15:25:53 -04:00
Vikram Rajkumar
605824952c Clean up is_valid_symbol 2015-06-29 15:25:53 -04:00
Peter Conrad
1acf66265f Allow double hyphens 2015-06-29 11:56:30 +02:00
Daniel Larimer
d3391c0fe5 #98 Implement Balance Object and Evaluator 2015-06-27 11:49:41 -04:00
Nathan Hourt
cfcafcb5c2 Progress #66: Set initial fees
There is now a default value for all fees
2015-06-23 17:09:55 -04:00
Nathan Hourt
08cba191c7 Progress #66: Audit calculate_fee implementations
I've audited all the calculate_fee impls and they all should be
reasonable at this point.

TODO: Set default fee values.
2015-06-23 14:19:39 -04:00
Daniel Larimer
b5b9d6d053 Issue #67 - add url to delegate/witness create operation 2015-06-23 11:08:12 -04:00
Daniel Larimer
da4bf0adc2 Issue #67 - add name/url to worker create operation 2015-06-23 10:33:11 -04:00
Daniel Larimer
06a9488f8b Issue #53 - flexible vesting balance creation
Use static variant to allow the types of vesting balances to be easily
extended and the creation operation allows for many different types of
initialization parameters.

Added a check that requires a minimum claim date which allows creating
of vesting balance objects with a cliff.
2015-06-23 10:14:40 -04:00
Daniel Larimer
8ac4bc1d58 Fix #39 Refactor assert_operation
Reasons:
  1. The protocol should not depend upon implementation details such as
  how the database objects are structured or reflected
  2. The protocol should deal in abstract concepts
  3. Should use fc::datastream rather than istringstream for performance
  and memory allocation reasons
  4. Fees should be charged proportional to the size of the operation
  5. Validate on the assert operation should also perform sanity checks
  on types
  6. Protocol definition objects should never depend upon the database
  because they may be used in situations where the database and
  evaluators are not present.
  7. Reflected field names should never have '_' in them because they
  become part of the *PUBLIC* json definition.
2015-06-23 09:14:18 -04:00
theoreticalbts
da77990b72 Implement field_reflector and assert_op 2015-06-22 13:26:08 -04:00
Daniel Larimer
49b2ce8094 Merge branch 'callprice'
Conflicts:
	tests/common/database_fixture.hpp
2015-06-21 19:41:32 -04:00
Nathan Hourt
127ca9f8de WIP: Remove call price from call_order_update_operation 2015-06-19 18:14:23 -04:00
Daniel Larimer
f88a7682dd cheap names must have a number, dot, dash or slash 2015-06-19 16:21:47 -04:00
Daniel Larimer
7dd2a6dff5 adding description field to asset options 2015-06-19 16:13:32 -04:00
Daniel Larimer
ef4ed937cb Fix update_call_order
- redefine price feeds
- clean up unit test spam
2015-06-18 15:17:48 -04:00
Nathan Hourt
377432453f Lay to rest #16
It's finally done.
2015-06-16 14:42:05 -04:00
Daniel Larimer
9dbf78c891 start refactoring short 2015-06-16 09:52:33 -04:00
Nathan Hourt
81c6338dfe Begin test for cashback rewards 2015-06-15 17:31:43 -04:00
Vikram Rajkumar
6337f94555 Remove bond operations 2015-06-15 15:37:38 -04:00
Vikram Rajkumar
17693e6299 Remove file write operation 2015-06-15 15:36:47 -04:00
Vikram Rajkumar
f777aae08e Remove confidential transfer operations 2015-06-15 15:36:47 -04:00
Vikram Rajkumar
488b385e72 Fix build 2015-06-13 16:11:32 -04:00
Vikram Rajkumar
cff606c9e2 Rebase onto master 2015-06-12 19:47:34 -04:00
Nathan Hourt
4080a2e7ee Add missing fee for 2-character account names 2015-06-10 15:21:54 -04:00
Nathan Hourt
7f0d1ebbed Progress #31, resolve #21
Declare, but not yet implement, account_upgrade_operation which can
upgrade accounts to members.

Resolve #21 by removing all the sketchy pointer arithmetic stuff
2015-06-10 14:17:17 -04:00
Nathan Hourt
ed7d485df3 Progress #31: Initial work on new cashback system
Lots still to do. There's no longer a way to upgrade an account, genesis
can't evaluate, and who knows how many tests are failing... But it
builds!
2015-06-10 14:17:17 -04:00
Daniel Larimer
00078afa07 Fix #15 - accept aaa-bbb-1 as valid according to RFC 1035 2015-06-09 16:40:20 -04:00
Vikram Rajkumar
5633d92813 Apply remaining win32 patches by @emfrias 2015-06-09 14:11:57 -04:00
Nathan Hourt
0a945b0257 Initial commit 2015-06-08 12:36:37 -04:00