Skip to content

Commit

Permalink
Remove unused testStandardLibraryHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
SupunS committed Sep 21, 2023
1 parent 982ef50 commit 091e17f
Showing 1 changed file with 1 addition and 156 deletions.
157 changes: 1 addition & 156 deletions runtime/stdlib/test_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2563,7 +2563,7 @@ func TestBlockchainAccount(t *testing.T) {
},

stdlibHandler: func() StandardLibraryHandler {
return testStandardLibraryHandler{}
return nil
},
}
},
Expand Down Expand Up @@ -2759,158 +2759,3 @@ func (m mockedBlockchain) LoadSnapshot(name string) error {

return m.loadSnapshot(name)
}

// testStandardLibraryHandler is the implementation of `StandardLibraryHandler` for testing purposes.
type testStandardLibraryHandler struct {
}

var _ StandardLibraryHandler = testStandardLibraryHandler{}

func (t testStandardLibraryHandler) ProgramLog(message string, locationRange interpreter.LocationRange) error {
panic("not implemented")
}

func (t testStandardLibraryHandler) ReadRandom(bytes []byte) error {
panic("not implemented")
}

func (t testStandardLibraryHandler) GetBlockAtHeight(height uint64) (block Block, exists bool, err error) {
panic("not implemented")
}

func (t testStandardLibraryHandler) GetCurrentBlockHeight() (uint64, error) {
panic("not implemented")
}

func (t testStandardLibraryHandler) EmitEvent(
inter *interpreter.Interpreter,
eventType *sema.CompositeType,
values []interpreter.Value,
locationRange interpreter.LocationRange,
) {
panic("not implemented")
}

func (t testStandardLibraryHandler) GenerateAccountID(address common.Address) (uint64, error) {
panic("not implemented")
}

func (t testStandardLibraryHandler) GetAccountBalance(address common.Address) (uint64, error) {
panic("not implemented")
}

func (t testStandardLibraryHandler) GetAccountAvailableBalance(address common.Address) (uint64, error) {
panic("not implemented")
}

func (t testStandardLibraryHandler) CommitStorageTemporarily(inter *interpreter.Interpreter) error {
panic("not implemented")
}

func (t testStandardLibraryHandler) GetStorageUsed(address common.Address) (uint64, error) {
panic("not implemented")
}

func (t testStandardLibraryHandler) GetStorageCapacity(address common.Address) (uint64, error) {
panic("not implemented")
}

func (t testStandardLibraryHandler) ValidatePublicKey(key *PublicKey) error {
panic("not implemented")
}

func (t testStandardLibraryHandler) VerifySignature(
signature []byte,
tag string,
signedData []byte,
publicKey []byte,
signatureAlgorithm sema.SignatureAlgorithm,
hashAlgorithm sema.HashAlgorithm,
) (bool, error) {
panic("not implemented")
}

func (t testStandardLibraryHandler) BLSVerifyPOP(publicKey *PublicKey, signature []byte) (bool, error) {
panic("not implemented")
}

func (t testStandardLibraryHandler) Hash(data []byte, tag string, algorithm sema.HashAlgorithm) ([]byte, error) {
panic("not implemented")
}

func (t testStandardLibraryHandler) GetAccountKey(address common.Address, index int) (*AccountKey, error) {
panic("not implemented")
}

func (t testStandardLibraryHandler) AccountKeysCount(address common.Address) (uint64, error) {
panic("not implemented")
}

func (t testStandardLibraryHandler) AddAccountKey(
address common.Address,
key *PublicKey,
algo sema.HashAlgorithm,
weight int,
) (*AccountKey, error) {
panic("not implemented")
}

func (t testStandardLibraryHandler) RevokeAccountKey(address common.Address, index int) (*AccountKey, error) {
panic("not implemented")
}

func (t testStandardLibraryHandler) GetAccountContractCode(location common.AddressLocation) ([]byte, error) {
panic("not implemented")
}

func (t testStandardLibraryHandler) ParseAndCheckProgram(
code []byte,
location common.Location,
getAndSetProgram bool) (*interpreter.Program, error) {
panic("not implemented")
}

func (t testStandardLibraryHandler) UpdateAccountContractCode(location common.AddressLocation, code []byte) error {
panic("not implemented")
}

func (t testStandardLibraryHandler) RecordContractUpdate(location common.AddressLocation, value *interpreter.CompositeValue) {
panic("not implemented")
}

func (t testStandardLibraryHandler) InterpretContract(
location common.AddressLocation,
program *interpreter.Program,
name string,
invocation DeployedContractConstructorInvocation,
) (*interpreter.CompositeValue, error) {
panic("not implemented")
}

func (t testStandardLibraryHandler) TemporarilyRecordCode(location common.AddressLocation, code []byte) {
panic("not implemented")
}

func (t testStandardLibraryHandler) RemoveAccountContractCode(location common.AddressLocation) error {
panic("not implemented")
}

func (t testStandardLibraryHandler) RecordContractRemoval(location common.AddressLocation) {
panic("not implemented")
}

func (t testStandardLibraryHandler) GetAccountContractNames(address common.Address) ([]string, error) {
panic("not implemented")
}

func (t testStandardLibraryHandler) CreateAccount(payer common.Address) (address common.Address, err error) {
panic("not implemented")
}

func (t testStandardLibraryHandler) BLSAggregatePublicKeys(publicKeys []*PublicKey) (*PublicKey, error) {
panic("not implemented")
}

func (t testStandardLibraryHandler) BLSAggregateSignatures(signatures [][]byte) ([]byte, error) {
panic("not implemented")
}

0 comments on commit 091e17f

Please sign in to comment.