From cee6316e846a9215521d6a31c668acb7626ad2aa Mon Sep 17 00:00:00 2001 From: sennui Date: Mon, 12 Aug 2019 16:21:18 +0200 Subject: [PATCH] Add argument to claim tx to enable bidding --- src/aeb_fate_generate_ops.erl | 3 +-- test/asm_code/names.fate | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/aeb_fate_generate_ops.erl b/src/aeb_fate_generate_ops.erl index 1c34692..be0c392 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."} @@ -756,4 +756,3 @@ format_arg_doc({is,_N}) -> "Identifier"; format_arg_doc({ii,_N}) -> "Integer"; format_arg_doc({li,_N}) -> "[Integers]"; format_arg_doc({t,_N}) -> "Type". - 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 - -