interop: extend native Notary interop API
This commit is contained in:
parent
49e228ddf8
commit
3996b3abb7
2 changed files with 12 additions and 0 deletions
|
@ -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"}},
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue