diff --git a/rebar.config b/rebar.config index 350bc29..7666c34 100644 --- a/rebar.config +++ b/rebar.config @@ -6,7 +6,7 @@ {deps, [ {eblake2, "1.0.0"} , {aeserialization, {git, "https://github.com/aeternity/aeserialization.git", - {ref, "816bf99"}}} + {ref, "47aaa8f"}}} , {getopt, "1.0.1"} ]}. @@ -40,7 +40,7 @@ {profiles, [{binary, [ {deps, [ {eblake2, "1.0.0"} , {aeserialization, {git, "https://github.com/aeternity/aeserialization.git", - {ref, "b55c372"}}} + {ref, "47aaa8f"}}} , {getopt, "1.0.1"} ]}, diff --git a/rebar.lock b/rebar.lock index 188572f..fa9f9ae 100644 --- a/rebar.lock +++ b/rebar.lock @@ -1,13 +1,17 @@ {"1.1.0", [{<<"aeserialization">>, {git,"https://github.com/aeternity/aeserialization.git", - {ref,"816bf994ffb5cee218c3f22dc5fea296c9e0882e"}}, + {ref,"47aaa8f5434b365c50a35bfd1490340b19241991"}}, 0}, {<<"base58">>, {git,"https://github.com/aeternity/erl-base58.git", {ref,"60a335668a60328a29f9731b67c4a0e9e3d50ab6"}}, 1}, {<<"eblake2">>,{pkg,<<"eblake2">>,<<"1.0.0">>},0}, + {<<"enacl">>, + {git,"https://github.com/aeternity/enacl.git", + {ref,"26180f42c0b3a450905d2efd8bc7fd5fd9cece75"}}, + 1}, {<<"getopt">>,{pkg,<<"getopt">>,<<"1.0.1">>},0}]}. [ {pkg_hash,[ diff --git a/src/aeb_fate_generate_ops.erl b/src/aeb_fate_generate_ops.erl index b025ed0..b018373 100644 --- a/src/aeb_fate_generate_ops.erl +++ b/src/aeb_fate_generate_ops.erl @@ -151,7 +151,7 @@ ops_defs() -> , { 'ORACLE_QUERY_FEE', 16#67, false, false, true, 3, [a,a], oracle_query_fee, {oracle}, integer, "Arg0 := query fee for oracle Arg1"} , { 'AENS_RESOLVE', 16#68, false, false, true, 3, [a,a,a,a], aens_resolve, {string, string, typerep}, variant, "Resolve name in Arg0 with tag Arg1. Arg2 describes the type parameter of the resolved name."} , { 'AENS_PRECLAIM', 16#69, false, false, false, 3, [a,a,a], aens_preclaim, {signature, address, hash}, none, "Preclaim the hash in Arg2 for address in Arg1. Arg0 contains delegation signature."} - , { 'AENS_CLAIM', 16#6a, false, false, false, 3, [a,a,a,a], aens_claim, {signature, address, string, integer}, none, "Claim the name in Arg2 for address in Arg1. Arg3 contains the salt used to hash the preclaim. Arg0 contains delegation signature."} + , { 'AENS_CLAIM', 16#6a, false, false, false, 3, [a,a,a,a,a], aens_claim, {signature, address, string, integer, integer}, none, "Attempt to claim the name in Arg2 for address in Arg1 at a price in Arg4. Arg3 contains the salt used to hash the preclaim. Arg0 contains delegation signature."} , { 'AENS_UPDATE', 16#6b, false, false, false, 3, [], aens_update, {}, none, "NYI"} , { 'AENS_TRANSFER', 16#6c, false, false, false, 3, [a,a,a,a], aens_transfer,{signature, address, address, string}, none, "Transfer ownership of name Arg3 from account Arg1 to Arg2. Arg0 contains delegation signature."} , { 'AENS_REVOKE', 16#6d, false, false, false, 3, [a,a,a], aens_revoke, {signature, address, string}, none, "Revoke the name in Arg2 from owner Arg1. Arg0 contains delegation signature."} diff --git a/test/asm_code/names.fate b/test/asm_code/names.fate index 056335a..d56aed7 100644 --- a/test/asm_code/names.fate +++ b/test/asm_code/names.fate @@ -4,8 +4,8 @@ FUNCTION preclaim(address, {bytes, 32}) : {tuple, []} AENS_PRECLAIM #AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA== arg0 arg1 RETURNR {} -FUNCTION claim(address, string, integer) : {tuple, []} - AENS_CLAIM #AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA== arg0 arg1 arg2 +FUNCTION claim(address, string, integer, integer) : {tuple, []} + AENS_CLAIM #AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA== arg0 arg1 arg2 arg3 RETURNR {} FUNCTION transfer(address, address, {bytes, 32}) : {tuple, []} @@ -19,5 +19,3 @@ FUNCTION revoke(address, {bytes, 32}) : {tuple, []} FUNCTION resolve(string, string) : {variant, [{tuple, []}, {tuple, [address]}]} AENS_RESOLVE a arg0 arg1 'address RETURN - -