diff --git a/blocksmurfer/__init__.py b/blocksmurfer/__init__.py index 190bdef..736098e 100644 --- a/blocksmurfer/__init__.py +++ b/blocksmurfer/__init__.py @@ -1,3 +1,15 @@ +# -*- coding: utf-8 -*- +# +# Blocksmurfer - Blockchain Explorer +# +# © 2020-2021 March - 1200 Web Development +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# + import datetime from flask import Flask, send_from_directory, request from flask_babel import Babel diff --git a/blocksmurfer/api/__init__.py b/blocksmurfer/api/__init__.py index 1532cd0..34acadd 100644 --- a/blocksmurfer/api/__init__.py +++ b/blocksmurfer/api/__init__.py @@ -1,3 +1,15 @@ +# -*- coding: utf-8 -*- +# +# Blocksmurfer - Blockchain Explorer +# +# © 2020-2021 March - 1200 Web Development +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# + from flask import Blueprint bp = Blueprint('api', __name__) diff --git a/blocksmurfer/api/address.py b/blocksmurfer/api/address.py index a0692ec..c362717 100644 --- a/blocksmurfer/api/address.py +++ b/blocksmurfer/api/address.py @@ -1,3 +1,15 @@ +# -*- coding: utf-8 -*- +# +# Blocksmurfer - Blockchain Explorer +# +# © 2020-2021 March - 1200 Web Development +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# + from flask import jsonify, current_app from flask_restful import marshal, request from blocksmurfer.api import bp diff --git a/blocksmurfer/api/block.py b/blocksmurfer/api/block.py index 92278cb..f153ce1 100644 --- a/blocksmurfer/api/block.py +++ b/blocksmurfer/api/block.py @@ -1,3 +1,15 @@ +# -*- coding: utf-8 -*- +# +# Blocksmurfer - Blockchain Explorer +# +# © 2020-2021 March - 1200 Web Development +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# + from flask import jsonify, current_app from flask_restful import marshal, request from blocksmurfer.api import bp diff --git a/blocksmurfer/api/network.py b/blocksmurfer/api/network.py index 9a3e71b..2af57e2 100644 --- a/blocksmurfer/api/network.py +++ b/blocksmurfer/api/network.py @@ -1,3 +1,15 @@ +# -*- coding: utf-8 -*- +# +# Blocksmurfer - Blockchain Explorer +# +# © 2020-2021 March - 1200 Web Development +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# + from flask import jsonify from flask_restful import marshal from blocksmurfer.api import bp diff --git a/blocksmurfer/api/structures.py b/blocksmurfer/api/structures.py index 93c4c52..06f95a2 100644 --- a/blocksmurfer/api/structures.py +++ b/blocksmurfer/api/structures.py @@ -1,3 +1,15 @@ +# -*- coding: utf-8 -*- +# +# Blocksmurfer - Blockchain Explorer +# +# © 2020-2021 March - 1200 Web Development +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# + from flask_restful import fields from flask_restful.fields import MarshallingException diff --git a/blocksmurfer/api/transaction.py b/blocksmurfer/api/transaction.py index 24b8a27..e8dc738 100644 --- a/blocksmurfer/api/transaction.py +++ b/blocksmurfer/api/transaction.py @@ -1,3 +1,15 @@ +# -*- coding: utf-8 -*- +# +# Blocksmurfer - Blockchain Explorer +# +# © 2020-2021 March - 1200 Web Development +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# + from flask import jsonify, abort from flask_restful import marshal, request from flask_babel import _ diff --git a/blocksmurfer/explorer/search.py b/blocksmurfer/explorer/search.py index 2b267c8..2080126 100644 --- a/blocksmurfer/explorer/search.py +++ b/blocksmurfer/explorer/search.py @@ -1,3 +1,15 @@ +# -*- coding: utf-8 -*- +# +# Blocksmurfer - Blockchain Explorer +# +# © 2020-2021 March - 1200 Web Development +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# + from bitcoinlib.keys import Address, get_key_format from blocksmurfer.explorer.service import check_txid, network_code_translation from flask import redirect, url_for, flash diff --git a/blocksmurfer/explorer/service.py b/blocksmurfer/explorer/service.py index 8ca66c9..74453fd 100644 --- a/blocksmurfer/explorer/service.py +++ b/blocksmurfer/explorer/service.py @@ -1,10 +1,13 @@ # -*- coding: utf-8 -*- # -# Blocksmurfer Crypto block explorer based on Bitcoinlib -# © 2020 January - 1200 Web Development +# Blocksmurfer - Blockchain Explorer # -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# © 2020-2021 March - 1200 Web Development +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. # from flask import abort, current_app, session diff --git a/blocksmurfer/main/__init__.py b/blocksmurfer/main/__init__.py index 013c57f..f11e63f 100644 --- a/blocksmurfer/main/__init__.py +++ b/blocksmurfer/main/__init__.py @@ -1,3 +1,15 @@ +# -*- coding: utf-8 -*- +# +# Blocksmurfer - Blockchain Explorer +# +# © 2020-2021 March - 1200 Web Development +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# + from flask import Blueprint bp = Blueprint('main', __name__) diff --git a/blocksmurfer/main/errors.py b/blocksmurfer/main/errors.py index d70c9a1..e3fb87b 100644 --- a/blocksmurfer/main/errors.py +++ b/blocksmurfer/main/errors.py @@ -1,3 +1,15 @@ +# -*- coding: utf-8 -*- +# +# Blocksmurfer - Blockchain Explorer +# +# © 2020-2021 March - 1200 Web Development +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# + from flask import jsonify, request, render_template, Blueprint from flask_babel import _ import logging diff --git a/blocksmurfer/main/forms.py b/blocksmurfer/main/forms.py index db7fb02..d105744 100644 --- a/blocksmurfer/main/forms.py +++ b/blocksmurfer/main/forms.py @@ -1,3 +1,15 @@ +# -*- coding: utf-8 -*- +# +# Blocksmurfer - Blockchain Explorer +# +# © 2020-2021 March - 1200 Web Development +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# + from flask_wtf import FlaskForm from wtforms import StringField, SubmitField, TextAreaField, IntegerField from wtforms.validators import InputRequired diff --git a/blocksmurfer/main/routes.py b/blocksmurfer/main/routes.py index 4316f0d..36388bd 100644 --- a/blocksmurfer/main/routes.py +++ b/blocksmurfer/main/routes.py @@ -1,3 +1,15 @@ +# -*- coding: utf-8 -*- +# +# Blocksmurfer - Blockchain Explorer +# +# © 2020-2021 March - 1200 Web Development +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# + from flask import render_template, flash, redirect, url_for, request, current_app, session from flask_babel import _ from config import Config