Skip to content

Commit

Permalink
chore: apache license header in files
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Aug 9, 2023
1 parent 7d3e2fd commit d20ab71
Show file tree
Hide file tree
Showing 27 changed files with 107 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/license_headers_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: License headers check

on:
push:
branches: [ main, dev ]
pull_request:
workflow_dispatch:

jobs:
check:
name: License headers check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install addlicense
run: |
wget https://github.com/google/addlicense/releases/download/v1.1.1/addlicense_1.1.1_Linux_x86_64.tar.gz
tar -xzf addlicense_1.1.1_Linux_x86_64.tar.gz
sudo mv addlicense /usr/local/bin
- name: Check license headers
run: >
addlicense \
-check \
-c "GraphOps and Semiotic Labs." \
-l "apache" \
-s=only \
-ignore '.github/workflows/*.yml' \
-ignore '.github/workflows/*.yaml' \
.
3 changes: 3 additions & 0 deletions native/src/attestation.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use super::*;
use eip_712_derive::{
sign_typed, Bytes32, DomainSeparator, Eip712Domain, MemberVisitor, StructType, U256,
Expand Down
3 changes: 3 additions & 0 deletions native/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use arc_swap::ArcSwap;
use keccak_hash::keccak;
use lazy_static::lazy_static;
Expand Down
3 changes: 3 additions & 0 deletions native/src/signature_verification.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use super::*;

lazy_static! {
Expand Down
3 changes: 3 additions & 0 deletions service/src/common/address.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use ethers::signers::{coins_bip39::English, LocalWallet, MnemonicBuilder, Wallet, WalletError};
use ethers_core::{k256::ecdsa::SigningKey, utils::hex};
use sha3::{Digest, Keccak256};
Expand Down
3 changes: 3 additions & 0 deletions service/src/common/database.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use diesel::pg::PgConnection;
use diesel::prelude::*;
use diesel::r2d2::{ConnectionManager, Pool};
Expand Down
3 changes: 3 additions & 0 deletions service/src/common/indexer_error.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use std::{
error::Error,
fmt::{self, Display},
Expand Down
3 changes: 3 additions & 0 deletions service/src/common/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

pub mod address;
pub mod database;
pub mod indexer_error;
Expand Down
3 changes: 3 additions & 0 deletions service/src/common/query_fee_models.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use chrono::{DateTime, Utc};
// use diesel::associations::{HasMany, HasOne, HasTable};
// use diesel::pg::Pg;
Expand Down
3 changes: 3 additions & 0 deletions service/src/common/schema.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

// diesel::table! {
// use diesel::sql_types::*;
// use crate::enums::diesel_exports::*;
Expand Down
3 changes: 3 additions & 0 deletions service/src/common/verifier.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

3 changes: 3 additions & 0 deletions service/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use clap::{command, Args, Parser, ValueEnum};

use serde::{Deserialize, Serialize};
Expand Down
3 changes: 3 additions & 0 deletions service/src/graph_node.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use reqwest::{header, Client, Url};

use crate::query_processor::UnattestedQueryResult;
Expand Down
3 changes: 3 additions & 0 deletions service/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use async_graphql::{EmptyMutation, EmptySubscription, Schema};
use axum::{
error_handling::HandleErrorLayer,
Expand Down
3 changes: 3 additions & 0 deletions service/src/metrics/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use autometrics::{encode_global_metrics, global_metrics_exporter};
use axum::http::StatusCode;
use axum::routing::get;
Expand Down
3 changes: 3 additions & 0 deletions service/src/model/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use async_graphql::{Context, Object, Schema};
use async_graphql::{EmptyMutation, EmptySubscription};

Expand Down
3 changes: 3 additions & 0 deletions service/src/query_fee/allocations.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use crate::common::{
address::{to_address, Address},
indexer_error::{IndexerError, IndexerErrorCode},
Expand Down
3 changes: 3 additions & 0 deletions service/src/query_fee/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use async_graphql::OutputType;
use async_trait::async_trait;
use bigdecimal::{BigDecimal, Num};
Expand Down
3 changes: 3 additions & 0 deletions service/src/query_processor.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use log::error;
use reqwest::{Client, Url};
use serde::{Deserialize, Serialize};
Expand Down
3 changes: 3 additions & 0 deletions service/src/server/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use crate::{query_processor::QueryProcessor, util::PackageVersion};

pub mod routes;
Expand Down
3 changes: 3 additions & 0 deletions service/src/server/routes/basic.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use axum::{extract::Extension, routing::get, Router};
use axum::{http::StatusCode, response::IntoResponse, Json};
use serde::Serialize;
Expand Down
3 changes: 3 additions & 0 deletions service/src/server/routes/deployment.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use axum::{http::StatusCode, response::IntoResponse, Extension, Json};

use serde::{Deserialize, Serialize};
Expand Down
3 changes: 3 additions & 0 deletions service/src/server/routes/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use crate::common::indexer_error::{IndexerError, IndexerErrorCause};
use axum::{
http::StatusCode,
Expand Down
3 changes: 3 additions & 0 deletions service/src/server/routes/network.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use axum::{
extract::Extension,
http::{self, Request, StatusCode},
Expand Down
3 changes: 3 additions & 0 deletions service/src/server/routes/status.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use axum::{
http::{Request, StatusCode},
response::IntoResponse,
Expand Down
3 changes: 3 additions & 0 deletions service/src/server/routes/subgraphs.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use axum::{
extract::Extension,
http::{self, HeaderName, Request, StatusCode},
Expand Down
3 changes: 3 additions & 0 deletions service/src/util.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2023-, GraphOps and Semiotic Labs.
// SPDX-License-Identifier: Apache-2.0

use ethers::signers::{
coins_bip39::English, LocalWallet, MnemonicBuilder, Signer, Wallet, WalletError,
};
Expand Down

0 comments on commit d20ab71

Please sign in to comment.