class Faker::Blockchain::Aeternity
def address
-
(String)
-
def address 'ak_' + rand_strings end
def contract
-
(String)
-
def contract 'ct_' + rand_strings end
def oracle
-
(String)
-
def oracle 'ok_' + rand_strings(51) end
def rand_strings(length = 50)
def rand_strings(length = 50) hex_alphabet = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' var = +'' length.times { var << sample(shuffle(hex_alphabet.split(''))) } var end
def transaction
-
(String)
-
def transaction 'th_' + rand_strings(51) end