github.com/hashgraph/hedera-sdk-go/v2@v2.48.0/examples/precompile_example/ExpiryHelper.sol (about) 1 // SPDX-License-Identifier: Apache-2.0 2 pragma solidity >=0.5.0 <0.9.0; 3 pragma experimental ABIEncoderV2; 4 5 // This file was copied from github.com/hashgraph/hedera-smart-contracts on Sep 27 2023 6 7 import "./HederaTokenService.sol"; 8 9 abstract contract ExpiryHelper { 10 11 function createAutoRenewExpiry( 12 address autoRenewAccount, 13 int64 autoRenewPeriod 14 ) internal pure returns (IHederaTokenService.Expiry memory expiry) { 15 expiry.autoRenewAccount = autoRenewAccount; 16 expiry.autoRenewPeriod = autoRenewPeriod; 17 } 18 19 function createSecondExpiry(int64 second) internal pure returns (IHederaTokenService.Expiry memory expiry) { 20 expiry.second = second; 21 } 22 }