This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import passkit from "passkit-generator"; | |
import fs from 'fs' | |
try { | |
/** Each, but last, can be either a string or a Buffer. See API Documentation for more */ | |
const wwdr = fs.readFileSync('./cert/AppleWWDRCAG4.pem') | |
const signerCert = fs.readFileSync('./cert/passes.pem') | |
const signerKey = fs.readFileSync('./cert/passes.key') | |
const pass = await passkit.PKPass.from({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity =0.8.10; | |
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; | |
import {Initializable} from "@openzeppelin/contracts/proxy/utils/Initializable.sol"; | |
import {Math} from "@openzeppelin/contracts/utils/math/Math.sol"; | |
import {SafeTransferLib} from "@rari-capital/solmate/src/utils/SafeTransferLib.sol"; | |
import {ERC20} from "@rari-capital/solmate/src/tokens/ERC20.sol"; | |
contract Loan is Initializable, Ownable { | |
using SafeTransferLib for ERC20; |
OlderNewer