Class: Faker::Blockchain::Tezos
- Inherits:
-
Faker::Base
- Object
- Faker::Base
- Faker::Blockchain::Tezos
- Defined in:
- lib/faker/blockchain/tezos.rb
Constant Summary
Constants inherited from Faker::Base
Faker::Base::LLetters, Faker::Base::Letters, Faker::Base::NOT_GIVEN, Faker::Base::Numbers, Faker::Base::ULetters
Class Method Summary collapse
-
.account ⇒ String
Produces a random Tezos account address.
-
.block ⇒ String
Produces a random Tezos block.
-
.contract ⇒ String
Produces a random Tezos contract.
-
.operation ⇒ String
Produces a random Tezos operation.
-
.public_key ⇒ String
Produces a random Tezos public key.
-
.secret_key ⇒ String
Produces a random Tezos public key.
-
.signature ⇒ String
Produces a random Tezos signature.
Methods inherited from Faker::Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, shuffle!, translate, unique, with_locale
Class Method Details
.account ⇒ String
Produces a random Tezos account address
31 32 33 |
# File 'lib/faker/blockchain/tezos.rb', line 31 def account encode_tz(:tz1, 20) end |
.block ⇒ String
Produces a random Tezos block
73 74 75 |
# File 'lib/faker/blockchain/tezos.rb', line 73 def block encode_tz(:B, 32) end |
.contract ⇒ String
Produces a random Tezos contract
45 46 47 |
# File 'lib/faker/blockchain/tezos.rb', line 45 def contract encode_tz(:KT1, 20) end |
.operation ⇒ String
Produces a random Tezos operation
59 60 61 |
# File 'lib/faker/blockchain/tezos.rb', line 59 def operation encode_tz(:o, 32) end |
.public_key ⇒ String
Produces a random Tezos public key
101 102 103 |
# File 'lib/faker/blockchain/tezos.rb', line 101 def public_key encode_tz(:edpk, 32) end |
.secret_key ⇒ String
Produces a random Tezos public key
115 116 117 |
# File 'lib/faker/blockchain/tezos.rb', line 115 def secret_key encode_tz(:edsk, 32) end |
.signature ⇒ String
Produces a random Tezos signature
87 88 89 |
# File 'lib/faker/blockchain/tezos.rb', line 87 def signature encode_tz(:edsig, 64) end |