Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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: MIT | |
pragma solidity >=0.7.0 <0.9.0; | |
/** | |
* @title EscrowSol | |
* @dev Manages fund transfers between two parties | |
*/ | |
contract EscrowSol { | |
// Wallet address of the payer |
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
from flask import Flask, render_template | |
from flask_sqlalchemy import SQLAlchemy | |
db = SQLAlchemy() | |
# --------- Configurations ------------ | |
class Config: | |
# Change to your Database_URI, here we are using sqlite database | |
# Note that postgres URI looks like 'postgresql://UserName:password@host:port/DatabaseName' |
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
# -*- coding: utf-8 -*- | |
""" | |
Showing how to reuse a blueprint for several subdomain | |
""" | |
from flask import Flask, Blueprint | |
app = Flask(__name__) | |
""" | |
Note that for subdomains to work reliably, the SERVER_NAME config | |
variable has to be set. The full syntax is host:port |