diff --git a/pkg/compiler/native_test.go b/pkg/compiler/native_test.go index 9aa5efa45..ab0d3c586 100644 --- a/pkg/compiler/native_test.go +++ b/pkg/compiler/native_test.go @@ -156,6 +156,8 @@ func TestNativeHelpersCompile(t *testing.T) { {"expirationOf", []string{u160}}, {"getMaxNotValidBeforeDelta", nil}, {"setMaxNotValidBeforeDelta", []string{"42"}}, + {"getNotaryServiceFeePerKey", nil}, + {"setNotaryServiceFeePerKey", []string{"42"}}, }) runNativeTestCases(t, cs.Management.ContractMD, "management", []nativeTestCase{ {"deploy", []string{"nil", "nil"}}, diff --git a/pkg/interop/native/notary/notary.go b/pkg/interop/native/notary/notary.go index 7c1907a6e..cacfc0acf 100644 --- a/pkg/interop/native/notary/notary.go +++ b/pkg/interop/native/notary/notary.go @@ -45,3 +45,13 @@ func GetMaxNotValidBeforeDelta() int { func SetMaxNotValidBeforeDelta(value int) { neogointernal.CallWithTokenNoRet(Hash, "setMaxNotValidBeforeDelta", int(contract.States), value) } + +// GetNotaryServiceFeePerKey represents `getNotaryServiceFeePerKey` method of Notary native contract. +func GetNotaryServiceFeePerKey() int { + return neogointernal.CallWithToken(Hash, "getNotaryServiceFeePerKey", int(contract.ReadStates)).(int) +} + +// SetNotaryServiceFeePerKey represents `setNotaryServiceFeePerKey` method of Notary native contract. +func SetNotaryServiceFeePerKey(value int) { + neogointernal.CallWithTokenNoRet(Hash, "setNotaryServiceFeePerKey", int(contract.States), value) +}