Tezos_alpha_test_helpers.Accounttype account = tval known_accounts :
t Tezos_alpha_test_helpers.Signature.Public_key_hash.Table.tval activator_account : accountval dummy_account : accountval new_account :
?rng_state:Stdlib.Random.State.t ->
?seed:Tezos_base.TzPervasives.Bytes.t ->
?algo:Signature.algo ->
unit ->
accountnew_account ?rng_state ?seed ?algo () creates a new account with curve algo with the given seed (or rng_state to generate the seed) and add it to the global account state.
val add_account : t -> unitval find :
Tezos_alpha_test_helpers.Signature.Public_key_hash.t ->
t Tezos_base.TzPervasives.tzresult Lwt.tval find_alternate : Tezos_alpha_test_helpers.Signature.Public_key_hash.t -> tval default_initial_full_balance :
Tezos_protocol_alpha.Protocol.Alpha_context.Tez.tDefault full balance of bootstrap accounts: 4_000_000 tez
val default_initial_staked_balance :
Tezos_protocol_alpha.Protocol.Alpha_context.Tez.tDefault staked balance of bootstrap accounts: 200_000 tez
val default_initial_spendable_balance :
Tezos_protocol_alpha.Protocol.Alpha_context.Tez.tDefault spendable balance of bootstrap accounts: 3_800_000 tez
val bootstrap_initial_staked_balance :
constants:Tezos_protocol_alpha.Protocol.Alpha_context.Constants.Parametric.t ->
initial_full_balance:Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t ->
Tezos_protocol_alpha.Protocol.Alpha_context.Tez.tInitial staked balance of a newly created bootstrap account with a given initial full balance.
val bootstrap_initial_baking_power :
constants:Tezos_protocol_alpha.Protocol.Alpha_context.Constants.Parametric.t ->
initial_full_balance:Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t ->
Tezos_protocol_alpha.Protocol.Alpha_context.Tez.tInitial baking power of a newly created bootstrap account, in weighted tez (that is, staked tez count with weight 1 and delegated tez with weight 1/edge_of_staking_over_delegation).
val generate_accounts :
?algo:Signature.algo ->
?rng_state:Stdlib.Random.State.t ->
int ->
t list Tezos_base.TzPervasives.tzresultgenerate_accounts ?algo ?rng_state n first frees the global account state then generates n random accounts with rng_state to generate the seed and adds them to the global account state. When provided, all accounts key generation will use algo. Otherwise uses a random algo.
val generate_accounts_with_algo_list :
?rng_state:Stdlib.Random.State.t ->
Signature.algo option list ->
t listgenerate_accounts_with_algo_list ?rng_state algo_list does the same thing as generate_accounts, but each account can be given a different algorithm. The number of accounts is the length of the given list, and if an algo is given as None, one is chosen at random.
val commitment_secret :
Tezos_protocol_alpha.Protocol.Blinded_public_key_hash.activation_codeval new_commitment :
?seed:Tezos_base.TzPervasives.Bytes.t ->
unit ->
(account * Tezos_protocol_alpha.Protocol.Alpha_context.Commitment.t)
Tezos_base.TzPervasives.tzresult
Lwt.tval pkh_of_contract_exn :
Tezos_protocol_alpha.Protocol.Alpha_context.Contract.t ->
Tezos_alpha_test_helpers.Signature.Public_key_hash.tFails if the contract is not an implicit one
val make_bootstrap_account :
?balance:Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t ->
?delegate_to:Signature.public_key_hash option ->
?consensus_key:Signature.public_key option ->
t ->
Tezos_protocol_alpha.Protocol.Alpha_context.Parameters.bootstrap_accountmake_bootstrap_account ~balance ~delegate_to account creates a Parameters.bootstrap_account from an account with the default or set values. default balance is default_initial_full_balance, delegate_to is None and consensus_key is None.
val make_bootstrap_accounts :
?bootstrap_balances:int64 list ->
?bootstrap_delegations:Signature.public_key_hash option list ->
?bootstrap_consensus_keys:Signature.public_key option list ->
t list ->
Tezos_protocol_alpha.Protocol.Alpha_context.Parameters.bootstrap_account listmake_bootstrap_accounts ~bootstrap_balances ~bootstrap_delegations ~bootstrap_consensus_keys accounts combines the lists accounts, bootstrap_balances, bootstrap_delegations and bootstrap_consensus_keys to create a list of Parameters.bootstrap_account using make_bootstrap_account.