Пример #1
0
        internal TransactionFactory(Metadata metadata, IDatabaseAdapdable databaseAdapdable)
        {
            _transactionSchema = metadata;
            _dbAdapter         = databaseAdapdable;

            _specificTransactions = new List <ISpecificTransaction>
            {
                // default scalar or vector transaction
                new BalancesTransferTransaction(_dbAdapter, _transactionSchema),
                new BalancesSetBalanceTransaction(_dbAdapter, _transactionSchema),
                new BalancesForceTransferTransaction(_dbAdapter, _transactionSchema),
                new BalancesTransferKeepAliveTransaction(_dbAdapter, _transactionSchema),
                new StakingBondTransaction(_dbAdapter, _transactionSchema),
                new StakingBondExtraTransaction(_dbAdapter, _transactionSchema),
                new StakingUnbondTransaction(_dbAdapter, _transactionSchema),
                new StakingWithdrawUnbondedTransaction(_dbAdapter, _transactionSchema),
                new StakingValidateTransaction(_dbAdapter, _transactionSchema),
                new StakingNominateTransaction(_dbAdapter, _transactionSchema),
                new StakingChillTransaction(_dbAdapter, _transactionSchema),
                new StakingSetPayeeTransaction(_dbAdapter, _transactionSchema),
                new StakingSetControllerTransaction(_dbAdapter, _transactionSchema),
                new StakingForceUnstakeTransaction(_dbAdapter, _transactionSchema),
                new StakingCancelDeferredSlashTransaction(_dbAdapter, _transactionSchema),
                new StakingSetValidatorCountTransaction(_dbAdapter, _transactionSchema),
                new SessionSetKeysTransaction(_dbAdapter, _transactionSchema),
                new DemocracyProposeTransaction(_dbAdapter, _transactionSchema),
                new DemocracySecondTransaction(_dbAdapter, _transactionSchema),
                new DemocracyVoteTransaction(_dbAdapter, _transactionSchema),
                new DemocracyCancelReferendumTransaction(_dbAdapter, _transactionSchema),
                new IdentityAddRegistrarTransaction(_dbAdapter, _transactionSchema),
                new IdentityCancelRequestTransaction(_dbAdapter, _transactionSchema),
                new IdentityClearIdentityTransaction(_dbAdapter, _transactionSchema),
                new IdentityKillIdentityTransaction(_dbAdapter, _transactionSchema),
                new IdentityProvideJudgementTransaction(_dbAdapter, _transactionSchema),
                new IdentityRequestJudgementTransaction(_dbAdapter, _transactionSchema),
                new IdentitySetAccountIdTransaction(_dbAdapter, _transactionSchema),
                new IdentitySetFeeTransaction(_dbAdapter, _transactionSchema),
                new IdentitySetFieldsTransaction(_dbAdapter, _transactionSchema),
                new IdentitySetIdentityTransaction(_dbAdapter, _transactionSchema),
                new IdentitySetSubsTransaction(_dbAdapter, _transactionSchema),
                new NotSpecificTransaction(_dbAdapter, _transactionSchema)
            };
        }
Пример #2
0
 public StakingWithdrawUnbondedTransaction(IDatabaseAdapdable databaseAdapdable, Metadata metadata)
 {
     _dbAdapter = databaseAdapdable;
     _metadata  = metadata;
 }
Пример #3
0
 public SetNameTransaction(IDatabaseAdapdable dbAdapter)
 {
     _dbAdapter = dbAdapter;
 }
Пример #4
0
 public SessionSetKeysTransaction(IDatabaseAdapdable databaseAdapdable, Metadata metadata)
 {
     _dbAdapter = databaseAdapdable;
     _metadata  = metadata;
     keys       = new List <string>();
 }
Пример #5
0
 public StakingCancelDeferredSlashTransaction(IDatabaseAdapdable databaseAdapdable, Metadata metadata)
 {
     _dbAdapter = databaseAdapdable;
     _metadata  = metadata;
 }
 public NotSpecificTransaction(IDatabaseAdapdable dbAdapter, Metadata metadata)
 {
     _dbAdapter = dbAdapter;
     _metadata  = metadata;
 }
 public BalancesTransferKeepAliveTransaction(IDatabaseAdapdable databaseAdapdable, Metadata metadata)
 {
     _dbAdapter = databaseAdapdable;
     _metadata  = metadata;
 }
 public IdentityAddRegistrarTransaction(IDatabaseAdapdable databaseAdapdable, Metadata metadata)
 {
     _dbAdapter = databaseAdapdable;
     _metadata  = metadata;
 }
Пример #9
0
 public BalancesSetBalanceTransaction(IDatabaseAdapdable databaseAdapdable, Metadata metadata)
 {
     _dbAdapter = databaseAdapdable;
     _metadata  = metadata;
 }
 public StakingBondExtraTransaction(IDatabaseAdapdable databaseAdapdable, Metadata metadata)
 {
     _dbAdapter = databaseAdapdable;
     _metadata  = metadata;
 }
 public IdentityRequestJudgementTransaction(IDatabaseAdapdable databaseAdapdable, Metadata metadata)
 {
     _dbAdapter = databaseAdapdable;
     _metadata  = metadata;
 }
Пример #12
0
 public DemocracyCancelReferendumTransaction(IDatabaseAdapdable databaseAdapdable, Metadata metadata)
 {
     _dbAdapter = databaseAdapdable;
     _metadata  = metadata;
 }
 public StakingNominateTransaction(IDatabaseAdapdable databaseAdapdable, Metadata metadata)
 {
     _dbAdapter = databaseAdapdable;
     _metadata  = metadata;
     targets    = new List <string>();
 }
Пример #14
0
 public Indexer(IApplication app, IDatabaseAdapdable databaseAdapdable)
 {
     _app               = app;
     _systemInfo        = app.GetSystemInfo();
     _databaseAdapdable = databaseAdapdable;
 }
 public StakingSetPayeeTransaction(IDatabaseAdapdable databaseAdapdable, Metadata metadata)
 {
     _dbAdapter = databaseAdapdable;
     _metadata  = metadata;
 }
Пример #16
0
 public DemocracySecondTransaction(IDatabaseAdapdable databaseAdapdable, Metadata metadata)
 {
     _dbAdapter = databaseAdapdable;
     _metadata  = metadata;
 }
Пример #17
0
 public StakingForceUnstakeTransaction(IDatabaseAdapdable databaseAdapdable, Metadata metadata)
 {
     _dbAdapter = databaseAdapdable;
     _metadata  = metadata;
 }
Пример #18
0
 public IdentitySetIdentityTransaction(IDatabaseAdapdable databaseAdapdable, Metadata metadata)
 {
     _dbAdapter = databaseAdapdable;
     _metadata  = metadata;
 }
Пример #19
0
 public StakingSetValidatorCountTransaction(IDatabaseAdapdable databaseAdapdable, Metadata metadata)
 {
     _dbAdapter = databaseAdapdable;
     _metadata  = metadata;
 }