dummy_test.gno

1.58 Kb ยท 41 lines
 1package grc777
 2
 3import (
 4	"std"
 5	"testing"
 6)
 7
 8type dummyImpl struct{}
 9
10// FIXME: this should fail.
11var _ IGRC777 = (*dummyImpl)(nil)
12
13func TestInterface(t *testing.T) {
14	var _ IGRC777 = &dummyImpl{}
15}
16
17func (impl *dummyImpl) GetName() string                         { panic("not implemented") }
18func (impl *dummyImpl) GetSymbol() string                       { panic("not implemented") }
19func (impl *dummyImpl) GetDecimals() int                        { panic("not implemented") }
20func (impl *dummyImpl) Granularity() (granularity int64)        { panic("not implemented") }
21func (impl *dummyImpl) TotalSupply() (supply int64)             { panic("not implemented") }
22func (impl *dummyImpl) BalanceOf(address_XXX std.Address) int64 { panic("not implemented") }
23func (impl *dummyImpl) Burn(amount int64, data []byte)          { panic("not implemented") }
24func (impl *dummyImpl) AuthorizeOperator(operator std.Address)  { panic("not implemented") }
25func (impl *dummyImpl) RevokeOperator(operators std.Address)    { panic("not implemented") }
26func (impl *dummyImpl) DefaultOperators() []std.Address         { panic("not implemented") }
27func (impl *dummyImpl) Send(recipient std.Address, amount int64, data []byte) {
28	panic("not implemented")
29}
30
31func (impl *dummyImpl) IsOperatorFor(operator, tokenHolder std.Address) bool {
32	panic("not implemented")
33}
34
35func (impl *dummyImpl) OperatorSend(sender, recipient std.Address, amount int64, data, operatorData []byte) {
36	panic("not implemented")
37}
38
39func (impl *dummyImpl) OperatorBurn(account std.Address, amount int64, data, operatorData []byte) {
40	panic("not implemented")
41}