dummy_test.gno

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