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,6 +11,15 @@ 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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user