This is an automated email from the ASF dual-hosted git repository.

junchao pushed a commit to branch smart_contract_merge
in repository https://gitbox.apache.org/repos/asf/incubator-resilientdb.git


The following commit(s) were added to refs/heads/smart_contract_merge by this 
push:
     new fc6602e1 add license
fc6602e1 is described below

commit fc6602e12cdedca9827de3c321c6ca83df42d3bb
Author: junchao <[email protected]>
AuthorDate: Thu Feb 13 13:37:22 2025 -0700

    add license
---
 executor/contract/manager/evm_state.h               | 20 ++++++++++++++++++++
 executor/contract/manager/global_state.cpp          | 20 ++++++++++++++++++++
 executor/contract/manager/global_state.h            | 21 +++++++++++++++++++--
 executor/contract/manager/global_view.cpp           | 20 ++++++++++++++++++++
 executor/contract/manager/global_view.h             | 19 +++++++++++++++++++
 proto/kv/kv.proto                                   | 19 +++++++++++++++++++
 service/tools/contract/api_tools/create.js          | 19 +++++++++++++++++++
 service/tools/contract/api_tools/deploy.js          | 19 +++++++++++++++++++
 service/tools/contract/api_tools/execute.js         | 19 +++++++++++++++++++
 service/tools/kv/api_tools/create.js                | 19 +++++++++++++++++++
 service/tools/kv/api_tools/deploy.js                | 19 +++++++++++++++++++
 .../tools/kv/api_tools/example_contract/compile.sh  | 19 +++++++++++++++++++
 service/tools/kv/api_tools/execute.js               | 19 +++++++++++++++++++
 service/tools/kv/api_tools/get_balance.js           | 19 +++++++++++++++++++
 service/tools/kv/api_tools/set_balance.js           | 19 +++++++++++++++++++
 15 files changed, 288 insertions(+), 2 deletions(-)

diff --git a/executor/contract/manager/evm_state.h 
b/executor/contract/manager/evm_state.h
index b1897765..26fe199e 100644
--- a/executor/contract/manager/evm_state.h
+++ b/executor/contract/manager/evm_state.h
@@ -1,3 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
 #pragma once
 
 #include "eEVM/globalstate.h"
diff --git a/executor/contract/manager/global_state.cpp 
b/executor/contract/manager/global_state.cpp
index 7cb96c03..77ff82d3 100644
--- a/executor/contract/manager/global_state.cpp
+++ b/executor/contract/manager/global_state.cpp
@@ -1,3 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
 #include "executor/contract/manager/global_state.h"
 
 #include <glog/logging.h>
diff --git a/executor/contract/manager/global_state.h 
b/executor/contract/manager/global_state.h
index 69455d1a..0320e35e 100644
--- a/executor/contract/manager/global_state.h
+++ b/executor/contract/manager/global_state.h
@@ -1,5 +1,22 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 
 #pragma once
 
diff --git a/executor/contract/manager/global_view.cpp 
b/executor/contract/manager/global_view.cpp
index 1ed2bffe..0fbbbef2 100644
--- a/executor/contract/manager/global_view.cpp
+++ b/executor/contract/manager/global_view.cpp
@@ -1,3 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
 #include "executor/contract/manager/global_view.h"
 
 #include <glog/logging.h>
diff --git a/executor/contract/manager/global_view.h 
b/executor/contract/manager/global_view.h
index 4341d815..6fdfc583 100644
--- a/executor/contract/manager/global_view.h
+++ b/executor/contract/manager/global_view.h
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 #pragma once
 
 #include <map>
diff --git a/proto/kv/kv.proto b/proto/kv/kv.proto
index 420423c7..750058e7 100644
--- a/proto/kv/kv.proto
+++ b/proto/kv/kv.proto
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 syntax = "proto3";
 
 package resdb;
diff --git a/service/tools/contract/api_tools/create.js 
b/service/tools/contract/api_tools/create.js
index e610b7ec..26d34f6e 100644
--- a/service/tools/contract/api_tools/create.js
+++ b/service/tools/contract/api_tools/create.js
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 {
   "command":"create_account",
   
"contract_path":"/home/junechen/projects/asf-resilientdb/service/tools/contract/api_tools/example_contract/token.json"
diff --git a/service/tools/contract/api_tools/deploy.js 
b/service/tools/contract/api_tools/deploy.js
index e4af9b7d..b013fa34 100644
--- a/service/tools/contract/api_tools/deploy.js
+++ b/service/tools/contract/api_tools/deploy.js
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 {
   "command":"deploy",
   "contract_path": 
"service/tools/contract/api_tools/example_contract/token.json",
diff --git a/service/tools/contract/api_tools/execute.js 
b/service/tools/contract/api_tools/execute.js
index 111913bc..df863de0 100644
--- a/service/tools/contract/api_tools/execute.js
+++ b/service/tools/contract/api_tools/execute.js
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 {
   "command":"execute",
   "init_params": "1000",
diff --git a/service/tools/kv/api_tools/create.js 
b/service/tools/kv/api_tools/create.js
index 2e8e98a6..79c94f9f 100644
--- a/service/tools/kv/api_tools/create.js
+++ b/service/tools/kv/api_tools/create.js
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 {
   "command":"create_account",
 }
diff --git a/service/tools/kv/api_tools/deploy.js 
b/service/tools/kv/api_tools/deploy.js
index f90e00bc..5c8cac1b 100644
--- a/service/tools/kv/api_tools/deploy.js
+++ b/service/tools/kv/api_tools/deploy.js
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 {
   "command":"deploy",
   "contract_path": "service/tools/kv/api_tools/example_contract/token.json",
diff --git a/service/tools/kv/api_tools/example_contract/compile.sh 
b/service/tools/kv/api_tools/example_contract/compile.sh
index e8b120c7..062b5ce7 100644
--- a/service/tools/kv/api_tools/example_contract/compile.sh
+++ b/service/tools/kv/api_tools/example_contract/compile.sh
@@ -1,2 +1,21 @@
+ #
+ # Licensed to the Apache Software Foundation (ASF) under one
+ # or more contributor license agreements.  See the NOTICE file
+ # distributed with this work for additional information
+ # regarding copyright ownership.  The ASF licenses this file
+ # to you under the Apache License, Version 2.0 (the
+ # "License"); you may not use this file except in compliance
+ # with the License.  You may obtain a copy of the License at
+ #
+ #   http://www.apache.org/licenses/LICENSE-2.0
+ #
+ # Unless required by applicable law or agreed to in writing,
+ # software distributed under the License is distributed on an
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ # KIND, either express or implied.  See the License for the
+ # specific language governing permissions and limitations
+ # under the License.
+ #
+
 solc --evm-version homestead --combined-json bin,hashes --pretty-json 
--optimize token.sol > token.json
 
diff --git a/service/tools/kv/api_tools/execute.js 
b/service/tools/kv/api_tools/execute.js
index 111913bc..df863de0 100644
--- a/service/tools/kv/api_tools/execute.js
+++ b/service/tools/kv/api_tools/execute.js
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 {
   "command":"execute",
   "init_params": "1000",
diff --git a/service/tools/kv/api_tools/get_balance.js 
b/service/tools/kv/api_tools/get_balance.js
index 44ce4221..cb8a5ec4 100644
--- a/service/tools/kv/api_tools/get_balance.js
+++ b/service/tools/kv/api_tools/get_balance.js
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 {
   "command":"get_balance",
   "address":"0x1be8e78d765a2e63339fc99a66320db73158a35a"
diff --git a/service/tools/kv/api_tools/set_balance.js 
b/service/tools/kv/api_tools/set_balance.js
index c92b8946..dec5d357 100644
--- a/service/tools/kv/api_tools/set_balance.js
+++ b/service/tools/kv/api_tools/set_balance.js
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 {
   "command":"set_balance",
   "address":"0x1be8e78d765a2e63339fc99a66320db73158a35a",

Reply via email to