From 3f85375cb2288083e442541d5b53f9705f22053a Mon Sep 17 00:00:00 2001 From: skkw Date: Thu, 8 Aug 2019 12:04:16 +0200 Subject: [PATCH] adding subname TX --- include/aeb_opcodes.hrl | 1 + src/aeb_fate_generate_ops.erl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/aeb_opcodes.hrl b/include/aeb_opcodes.hrl index c21bf39..08f6429 100644 --- a/include/aeb_opcodes.hrl +++ b/include/aeb_opcodes.hrl @@ -176,6 +176,7 @@ -define(PRIM_CALL_AENS_UPDATE, 203). -define(PRIM_CALL_AENS_TRANSFER, 204). -define(PRIM_CALL_AENS_REVOKE, 205). +-define(PRIM_CALL_AENS_SUBNAME, 206). -define(PRIM_CALL_IN_MAP_RANGE(__TTYPE__), (((__TTYPE__) > 299) andalso ((__TTYPE__) < 400))). -define(PRIM_CALL_MAP_EMPTY, 300). diff --git a/src/aeb_fate_generate_ops.erl b/src/aeb_fate_generate_ops.erl index b025ed0..8eab3c9 100644 --- a/src/aeb_fate_generate_ops.erl +++ b/src/aeb_fate_generate_ops.erl @@ -180,7 +180,7 @@ ops_defs() -> , { 'ECVERIFY_SECP256K1', 16#7e, false, true, true, 1300, [a,a,a,a], ecverify_secp256k1, {bytes, bytes, bytes}, bytes, "Arg0 := ecverify_secp256k1(Hash, Addr, Signature)"} , { 'ECRECOVER_SECP256K1', 16#7f, false, true, true, 1300, [a,a,a], ecrecover_secp256k1, {bytes, bytes}, bytes, "Arg0 := ecrecover_secp256k1(Hash, Signature)"} - + , { 'AENS_SUBNAME', 16#80, false, false, false, 3, [a,a,a,a], aens_subname, {signature, address, string, map}, none, "Claim subbnames of name in Arg2 from owner Arg1. Arg0 contains delegation signature. Arg3 is map describing subname prefixes to claim and their pointers."} , { 'DEACTIVATE', 16#fa, false, true, true, 3, [], deactivate, {}, none, "Mark the current contract for deactivation."} , { 'ABORT', 16#fb, true, true, true, 3, [a], abort, {string}, none, "Abort execution (dont use all gas) with error message in Arg0."} , { 'EXIT', 16#fc, true, true, true, 3, [a], exit, {string}, none, "Abort execution (use upp all gas) with error message in Arg0."}