Skip to content

Commit 2b6b8ec

Browse files
committed
Added license files
1 parent fed6945 commit 2b6b8ec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+350
-1
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 Orbs Network
3+
Copyright (c) 2019 Orbs Network
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

LICENSE-HEADER

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Copyright 2019 the orbs-client-sdk-javascript authors
2+
This file is part of the orbs-client-sdk-javascript library in the Orbs project.
3+
4+
This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
5+
The above notice should be included in all copies or substantial portions of the software.

e2e/browser/browser.test.js

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
const GammaDriver = require("../gamma-driver");
210
const httpServer = require("http-server");
311

e2e/browser/index.html

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
<!--
2+
Copyright 2019 the orbs-client-sdk-javascript authors
3+
This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
5+
This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
The above notice should be included in all copies or substantial portions of the software.
7+
-->
8+
19
<html>
210
<head>
311
<style>

e2e/gamma-driver.js

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
const util = require("util");
210
const execFile = util.promisify(require("child_process").execFile);
311

e2e/nodejs/e2e.test.js

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
const Orbs = require("../../dist/index.js");
210
const GammaDriver = require("../gamma-driver");
311

rollup.config.js

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import typescript from "rollup-plugin-typescript";
210
import pkg from "./package.json";
311

src/codec/Arguments.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import { addressToBytes } from "..";
210
import { InternalMessage } from "../membuffers/message";
311
import * as Protocol from "../protocol/Protocol";

src/codec/Events.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import { Argument, packedArgumentsDecode } from "./Arguments";
210
import { InternalMessage } from "../membuffers/message";
311
import * as Protocol from "../protocol/Protocol";

src/codec/ExecutionResult.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
export enum ExecutionResult {
210
EXECUTION_RESULT_SUCCESS = "SUCCESS",
311
EXECUTION_RESULT_ERROR_SMART_CONTRACT = "ERROR_SMART_CONTRACT",

src/codec/NetworkType.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
export enum NetworkType {
210
NETWORK_TYPE_MAIN_NET = "MAIN_NET",
311
NETWORK_TYPE_TEST_NET = "TEST_NET",

src/codec/OpGetBlock.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import * as Hash from "../crypto/Hash";
210
import * as Digest from "../crypto/Digest";
311
import * as Client from "../protocol/Client";

src/codec/OpGetTransactionReceiptProof.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import * as Digest from "../crypto/Digest";
210
import * as Client from "../protocol/Client";
311
import * as Protocol from "../protocol/Protocol";

src/codec/OpGetTransactionStatus.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import * as Digest from "../crypto/Digest";
210
import * as Client from "../protocol/Client";
311
import * as Protocol from "../protocol/Protocol";

src/codec/OpRunQuery.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import * as Client from "../protocol/Client";
210
import * as Protocol from "../protocol/Protocol";
311
import * as Keys from "../crypto/Keys";

src/codec/OpSendTransaction.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import { NetworkType, networkTypeEncode } from "./NetworkType";
210
import * as Client from "../protocol/Client";
311
import * as Protocol from "../protocol/Protocol";

src/codec/RequestStatus.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
export enum RequestStatus {
210
REQUEST_STATUS_COMPLETED = "COMPLETED",
311
REQUEST_STATUS_IN_PROCESS = "IN_PROCESS",

src/codec/TransactionStatus.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
export enum TransactionStatus {
210
TRANSACTION_STATUS_COMMITTED = "COMMITTED",
311
TRANSACTION_STATUS_DUPLICATE_TRANSACTION_ALREADY_COMMITTED = "DUPLICATE_TRANSACTION_ALREADY_COMMITTED",

src/codec/contract.test.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import "../membuffers/matcher-extensions";
210
import { argBytes, argString, argUint32, argUint64, Argument } from "./Arguments";
311
import { Event } from "./Events";

src/crypto/Digest.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import * as Hash from "./Hash";
210
import { calcSha256, SHA256_HASH_SIZE_BYTES } from "./Hash";
311
import { ED25519_PUBLIC_KEY_SIZE_BYTES } from "./Keys";

src/crypto/Encoding.test.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import "../membuffers/matcher-extensions";
210
import * as Encoding from "./Encoding";
311

src/crypto/Encoding.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import * as Hash from "./Hash";
210
import { getTextDecoder } from "../membuffers/text";
311

src/crypto/Hash.test.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import "../membuffers/matcher-extensions";
210
import * as Hash from "./Hash";
311
import { getTextEncoder } from "../membuffers/text";

src/crypto/Hash.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import hash from "hash.js";
210

311
export const SHA256_HASH_SIZE_BYTES = 32;

src/crypto/Keys.test.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import "../membuffers/matcher-extensions";
210
import * as Keys from "./Keys";
311

src/crypto/Keys.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import elliptic from "elliptic";
210

311
export const ED25519_PUBLIC_KEY_SIZE_BYTES = 32;

src/crypto/Signature.test.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import * as Signature from "./Signature";
210
import { getTextEncoder } from "../membuffers/text";
311

src/crypto/Signature.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import * as Keys from "./Keys";
210
import elliptic from "elliptic";
311

src/index.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
export { createAccount, addressToBytes, bytesToAddress } from "./orbs/Account";
210
export { ExecutionResult } from "./codec/ExecutionResult";
311
export { RequestStatus } from "./codec/RequestStatus";

src/lib.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
export * from "./index";
210
export { ArgUint32, ArgUint64, ArgString, ArgBytes } from "./codec/Arguments";

src/membuffers/builder.test.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import "./matcher-extensions";
210
import { ch } from "./text";
311
import { InternalBuilder } from "./builder";

src/membuffers/builder.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import { alignOffsetToType, alignDynamicFieldContentOffset } from "./message";
210
import { FieldTypes, FieldSizes } from "./types";
311
import { getTextEncoder } from "./text";

src/membuffers/iterator.test.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import "./matcher-extensions";
210
import { FieldTypes } from "./types";
311
import { ch } from "./text";

src/membuffers/iterator.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* Copyright 2019 the orbs-client-sdk-javascript authors
3+
* This file is part of the orbs-client-sdk-javascript library in the Orbs project.
4+
*
5+
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
6+
* The above notice should be included in all copies or substantial portions of the software.
7+
*/
8+
19
import { alignDynamicFieldContentOffset, InternalMessage } from "./message";
210
import { FieldTypes, FieldSizes, FieldType } from "./types";
311
import { getTextDecoder } from "./text";

0 commit comments

Comments
 (0)