Exemple #1
0
        private Association.CreateOrganizationInput GenerateOrganizationInputForIndexingFeePrice(
            Address sideChainCreator)
        {
            var proposers = new List <Address> {
                sideChainCreator, GetSideChainLifetimeController().OwnerAddress
            };
            var createOrganizationInput = new Association.CreateOrganizationInput
            {
                ProposerWhiteList = new ProposerWhiteList
                {
                    Proposers = { proposers }
                },
                OrganizationMemberList = new OrganizationMemberList
                {
                    OrganizationMembers = { proposers }
                },
                ProposalReleaseThreshold = new ProposalReleaseThreshold
                {
                    MinimalApprovalThreshold   = proposers.Count,
                    MinimalVoteThreshold       = proposers.Count,
                    MaximalRejectionThreshold  = 0,
                    MaximalAbstentionThreshold = 0
                }
            };

            return(createOrganizationInput);
        }
Exemple #2
0
        private Address CalculateSideChainIndexingFeeControllerOrganizationAddress(
            Association.CreateOrganizationInput input)
        {
            SetContractStateRequired(State.AssociationContract, SmartContractConstants.AssociationContractSystemName);
            var address = State.AssociationContract.CalculateOrganizationAddress.Call(input);

            return(address);
        }