github.com/hashgraph/hedera-sdk-go/v2@v2.48.0/storage_change.go (about)

     1  package hedera
     2  
     3  import (
     4  	"math/big"
     5  )
     6  
     7  /*-
     8   *
     9   * Hedera Go SDK
    10   *
    11   * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC
    12   *
    13   * Licensed under the Apache License, Version 2.0 (the "License");
    14   * you may not use this file except in compliance with the License.
    15   * You may obtain a copy of the License at
    16   *
    17   *      http://www.apache.org/licenses/LICENSE-2.0
    18   *
    19   * Unless required by applicable law or agreed to in writing, software
    20   * distributed under the License is distributed on an "AS IS" BASIS,
    21   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    22   * See the License for the specific language governing permissions and
    23   * limitations under the License.
    24   *
    25   */
    26  
    27  type StorageChange struct {
    28  	Slot         *big.Int
    29  	ValueRead    *big.Int
    30  	ValueWritten *big.Int
    31  }
    32  
    33  // ToBytes returns the byte representation of the StorageChange
    34  func (storageChange *StorageChange) ToBytes() []byte {
    35  	return []byte{}
    36  }
    37  
    38  // StorageChangeFromBytes returns a StorageChange from a byte array
    39  func StorageChangeFromBytes(data []byte) (StorageChange, error) {
    40  	return StorageChange{}, nil
    41  }