Add more tests for AENS.resolve
This commit is contained in:
parent
55e5482e84
commit
d4d16a66eb
@ -1,5 +1,7 @@
|
|||||||
|
contract C = entrypoint init() = ()
|
||||||
|
|
||||||
// AENS tests
|
// AENS tests
|
||||||
contract AENSTest =
|
main contract AENSTest =
|
||||||
|
|
||||||
// Name resolution
|
// Name resolution
|
||||||
|
|
||||||
@ -9,10 +11,19 @@ contract AENSTest =
|
|||||||
stateful entrypoint resolve_string(name : string, key : string) : option(string) =
|
stateful entrypoint resolve_string(name : string, key : string) : option(string) =
|
||||||
AENS.resolve(name, key)
|
AENS.resolve(name, key)
|
||||||
|
|
||||||
|
stateful entrypoint resolve_contract(name : string, key : string) : option(C) =
|
||||||
|
AENS.resolve(name, key)
|
||||||
|
|
||||||
|
stateful entrypoint resolve_oracle(name : string, key : string) : option(oracle(int, int)) =
|
||||||
|
AENS.resolve(name, key)
|
||||||
|
|
||||||
|
stateful entrypoint resolve_oracle_query(name : string, key : string) : option(oracle_query(int, int)) =
|
||||||
|
AENS.resolve(name, key)
|
||||||
|
|
||||||
// Transactions
|
// Transactions
|
||||||
|
|
||||||
stateful entrypoint preclaim(addr : address, // Claim on behalf of this account (can be Contract.address)
|
stateful entrypoint preclaim(addr : address, // Claim on behalf of this account (can be Contract.address)
|
||||||
chash : hash) : unit = // Commitment hash
|
chash : hash) : unit = // Commitment hash
|
||||||
AENS.preclaim(addr, chash)
|
AENS.preclaim(addr, chash)
|
||||||
|
|
||||||
stateful entrypoint signedPreclaim(addr : address, // Claim on behalf of this account (can be Contract.address)
|
stateful entrypoint signedPreclaim(addr : address, // Claim on behalf of this account (can be Contract.address)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user