From 81c013778caf8215e1a9a05ee3237464702d71f6 Mon Sep 17 00:00:00 2001 From: toktar Date: Mon, 30 Sep 2024 22:43:42 +0000 Subject: [PATCH] Add headers with a copyright Signed-off-by: toktar --- docker-compose.yml | 4 ++++ examples/migration/src/holder.rs | 4 ++++ examples/migration/src/issuer.rs | 4 ++++ examples/migration/src/ledger.rs | 4 ++++ examples/migration/src/main.rs | 4 ++++ examples/migration/src/trustee.rs | 4 ++++ examples/migration/src/verifier.rs | 4 ++++ examples/migration/src/wallet.rs | 4 ++++ smart_contracts/contracts-ts/AccountControl.ts | 6 ++++++ .../contracts-ts/CredentialDefinitionRegistry.ts | 6 ++++++ smart_contracts/contracts-ts/EthereumDidRegistry.ts | 6 ++++++ smart_contracts/contracts-ts/IndyDidRegistry.ts | 6 ++++++ smart_contracts/contracts-ts/LegacyMappingRegistry.ts | 6 ++++++ smart_contracts/contracts-ts/RoleControl.ts | 6 ++++++ smart_contracts/contracts-ts/SchemaRegistry.ts | 6 ++++++ smart_contracts/contracts-ts/UniversalDidReolver.ts | 6 ++++++ smart_contracts/contracts-ts/UpgradeControl.ts | 6 ++++++ smart_contracts/contracts-ts/ValidatorControl.ts | 6 ++++++ smart_contracts/contracts-ts/index.ts | 6 ++++++ smart_contracts/demos/account-control.ts | 6 ++++++ smart_contracts/demos/flow-with-did-ethr.ts | 6 ++++++ smart_contracts/demos/flow.ts | 6 ++++++ smart_contracts/demos/role-control.ts | 6 ++++++ smart_contracts/demos/upgrade-control.ts | 6 ++++++ smart_contracts/demos/utils/actor.ts | 6 ++++++ smart_contracts/demos/utils/contracts/SimpleContract.ts | 6 ++++++ .../demos/utils/contracts/UpgradablePrototype.ts | 6 ++++++ smart_contracts/demos/validator-control.ts | 6 ++++++ smart_contracts/environment.ts | 6 ++++++ smart_contracts/hardhat.config.ts | 6 ++++++ smart_contracts/scripts/genesis/contractConfig.ts | 6 ++++++ smart_contracts/scripts/genesis/contracts/accountControl.ts | 6 ++++++ .../genesis/contracts/credentialDefinitionRegistry.ts | 6 ++++++ .../scripts/genesis/contracts/ethereumDidRegistry.ts | 6 ++++++ smart_contracts/scripts/genesis/contracts/index.ts | 6 ++++++ .../scripts/genesis/contracts/indyDidRegistry.ts | 6 ++++++ .../scripts/genesis/contracts/legacyMappingRegistry.ts | 6 ++++++ smart_contracts/scripts/genesis/contracts/roleControl.ts | 6 ++++++ smart_contracts/scripts/genesis/contracts/schemaRegistry.ts | 6 ++++++ .../scripts/genesis/contracts/universalDidResolver.ts | 6 ++++++ smart_contracts/scripts/genesis/contracts/upgradeControl.ts | 6 ++++++ .../scripts/genesis/contracts/validatorControl.ts | 6 ++++++ smart_contracts/scripts/genesis/generate.ts | 6 ++++++ smart_contracts/scripts/genesis/helpers.ts | 6 ++++++ .../test/anoncreds/CredentialDefinitionRegistry.spec.ts | 6 ++++++ smart_contracts/test/anoncreds/SchemaRegistry.spec.ts | 6 ++++++ smart_contracts/test/auth/AccountControl.spec.ts | 6 ++++++ smart_contracts/test/auth/RoleControl.spec.ts | 6 ++++++ smart_contracts/test/did/DidRegistry.spec.ts | 6 ++++++ smart_contracts/test/did/UniversalDidResolver.spec.ts | 6 ++++++ .../test/migration/LegacyMappingRegistry.spec.ts | 6 ++++++ smart_contracts/test/network/ValidatorControl.spec.ts | 6 ++++++ smart_contracts/test/upgrade/UpgradeControl.spec.ts | 6 ++++++ smart_contracts/test/utils/contract-helpers.ts | 6 ++++++ smart_contracts/test/utils/errors.ts | 6 ++++++ smart_contracts/test/utils/events.ts | 6 ++++++ smart_contracts/test/utils/test-entities.ts | 6 ++++++ smart_contracts/utils/account.ts | 6 ++++++ smart_contracts/utils/common.ts | 6 ++++++ smart_contracts/utils/contract.ts | 6 ++++++ smart_contracts/utils/entity-factories.ts | 6 ++++++ smart_contracts/utils/file.ts | 6 ++++++ smart_contracts/utils/index.ts | 6 ++++++ vdr/src/client/client.rs | 4 ++++ vdr/src/client/constants.rs | 4 ++++ vdr/src/client/implementation/mod.rs | 4 ++++ vdr/src/client/implementation/web3/client.rs | 4 ++++ vdr/src/client/implementation/web3/contract.rs | 4 ++++ vdr/src/client/implementation/web3/mod.rs | 4 ++++ vdr/src/client/mod.rs | 4 ++++ vdr/src/client/quorum.rs | 4 ++++ .../contracts/anoncreds/credential_definition_registry.rs | 4 ++++ vdr/src/contracts/anoncreds/mod.rs | 4 ++++ vdr/src/contracts/anoncreds/schema_registry.rs | 4 ++++ vdr/src/contracts/anoncreds/types/credential_definition.rs | 4 ++++ .../contracts/anoncreds/types/credential_definition_id.rs | 4 ++++ vdr/src/contracts/anoncreds/types/mod.rs | 4 ++++ vdr/src/contracts/anoncreds/types/schema.rs | 4 ++++ vdr/src/contracts/anoncreds/types/schema_id.rs | 4 ++++ vdr/src/contracts/auth/mod.rs | 4 ++++ vdr/src/contracts/auth/role_control.rs | 4 ++++ vdr/src/contracts/auth/types/mod.rs | 4 ++++ vdr/src/contracts/auth/types/role.rs | 4 ++++ vdr/src/contracts/did/did_ethr_registry.rs | 4 ++++ vdr/src/contracts/did/did_indy_registry.rs | 4 ++++ vdr/src/contracts/did/did_resolver.rs | 4 ++++ vdr/src/contracts/did/mod.rs | 4 ++++ vdr/src/contracts/did/types/did.rs | 4 ++++ vdr/src/contracts/did/types/did_doc.rs | 4 ++++ vdr/src/contracts/did/types/did_doc_attribute.rs | 4 ++++ vdr/src/contracts/did/types/did_doc_builder.rs | 4 ++++ vdr/src/contracts/did/types/did_events.rs | 4 ++++ vdr/src/contracts/did/types/mod.rs | 4 ++++ vdr/src/contracts/endorsing.rs | 4 ++++ vdr/src/contracts/migration/legacy_mapping_registry.rs | 4 ++++ vdr/src/contracts/migration/mod.rs | 4 ++++ vdr/src/contracts/migration/types/did.rs | 4 ++++ vdr/src/contracts/migration/types/ed25519_signature.rs | 4 ++++ vdr/src/contracts/migration/types/mod.rs | 4 ++++ vdr/src/contracts/migration/types/resource_identifier.rs | 4 ++++ vdr/src/contracts/mod.rs | 4 ++++ vdr/src/contracts/network/mod.rs | 4 ++++ vdr/src/contracts/network/validator_control.rs | 4 ++++ vdr/src/contracts/network/validator_info.rs | 4 ++++ vdr/src/error/mod.rs | 4 ++++ vdr/src/lib.rs | 4 ++++ vdr/src/migration/credential_definition.rs | 4 ++++ vdr/src/migration/mod.rs | 4 ++++ vdr/src/migration/schema.rs | 4 ++++ vdr/src/signer/basic_signer.rs | 4 ++++ vdr/src/signer/mod.rs | 4 ++++ vdr/src/test.rs | 4 ++++ vdr/src/types/address.rs | 4 ++++ vdr/src/types/contract.rs | 4 ++++ vdr/src/types/endorsing_data.rs | 4 ++++ vdr/src/types/event_query.rs | 4 ++++ vdr/src/types/mod.rs | 4 ++++ vdr/src/types/signature.rs | 4 ++++ vdr/src/types/status.rs | 4 ++++ vdr/src/types/transaction.rs | 4 ++++ vdr/src/utils/common.rs | 4 ++++ vdr/src/utils/mod.rs | 4 ++++ vdr/uniffi/build.rs | 4 ++++ vdr/uniffi/src/bin.rs | 4 ++++ vdr/uniffi/src/ffi/client.rs | 4 ++++ .../src/ffi/contracts/credential_definition_registry.rs | 4 ++++ vdr/uniffi/src/ffi/contracts/did_ethr_registry.rs | 4 ++++ vdr/uniffi/src/ffi/contracts/did_indy_registry.rs | 4 ++++ vdr/uniffi/src/ffi/contracts/did_resolver.rs | 4 ++++ vdr/uniffi/src/ffi/contracts/endorsing.rs | 4 ++++ vdr/uniffi/src/ffi/contracts/legacy_mapping_registry.rs | 4 ++++ vdr/uniffi/src/ffi/contracts/mod.rs | 4 ++++ vdr/uniffi/src/ffi/contracts/role_control.rs | 4 ++++ vdr/uniffi/src/ffi/contracts/schema_registry.rs | 4 ++++ vdr/uniffi/src/ffi/contracts/validator_control.rs | 4 ++++ vdr/uniffi/src/ffi/endorsing_data.rs | 4 ++++ vdr/uniffi/src/ffi/error.rs | 4 ++++ vdr/uniffi/src/ffi/event_query.rs | 4 ++++ vdr/uniffi/src/ffi/mod.rs | 4 ++++ vdr/uniffi/src/ffi/transaction.rs | 4 ++++ vdr/uniffi/src/ffi/types.rs | 4 ++++ vdr/uniffi/src/lib.rs | 4 ++++ vdr/wasm/demo/node/src/main.ts | 6 ++++++ vdr/wasm/src/client.rs | 4 ++++ vdr/wasm/src/contracts/credential_definition_registry.rs | 4 ++++ vdr/wasm/src/contracts/did_ethr_registry.rs | 4 ++++ vdr/wasm/src/contracts/did_indy_registry.rs | 4 ++++ vdr/wasm/src/contracts/did_resolver.rs | 4 ++++ vdr/wasm/src/contracts/endorsing.rs | 4 ++++ vdr/wasm/src/contracts/legacy_mapping_registry.rs | 4 ++++ vdr/wasm/src/contracts/mod.rs | 4 ++++ vdr/wasm/src/contracts/role_control.rs | 4 ++++ vdr/wasm/src/contracts/schema_registry.rs | 4 ++++ vdr/wasm/src/contracts/validator_control.rs | 4 ++++ vdr/wasm/src/error.rs | 4 ++++ vdr/wasm/src/event_query.rs | 4 ++++ vdr/wasm/src/lib.rs | 4 ++++ vdr/wasm/src/transaction.rs | 4 ++++ vdr/wrappers/python/demo/test.py | 4 ++++ vdr/wrappers/python/indy_besu_vdr/__init__.py | 4 ++++ vdr/wrappers/python/indy_besu_vdr/indy_besu_vdr.py | 4 ++++ vdr/wrappers/python/indy_besu_vdr/types.py | 4 ++++ vdr/wrappers/python/indy_besu_vdr/version.py | 4 ++++ vdr/wrappers/python/setup.py | 4 ++++ 164 files changed, 768 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 6ee221f3..cb19b8bb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,7 @@ +# Copyright (c) 2024 DSR Corporation, Denver, Colorado. +# https://www.dsr-corporation.com +# SPDX-License-Identifier: Apache-2.0 + --- version: '3.6' diff --git a/examples/migration/src/holder.rs b/examples/migration/src/holder.rs index 602d9628..9d622423 100644 --- a/examples/migration/src/holder.rs +++ b/examples/migration/src/holder.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ ledger::{BesuLedger, IndyLedger, Ledgers}, wallet::{BesuWallet, IndyWallet}, diff --git a/examples/migration/src/issuer.rs b/examples/migration/src/issuer.rs index f7f9aeb3..2abff6f9 100644 --- a/examples/migration/src/issuer.rs +++ b/examples/migration/src/issuer.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ ledger::{BesuLedger, IndyLedger, Ledgers}, wallet::{BesuWallet, IndyWallet}, diff --git a/examples/migration/src/ledger.rs b/examples/migration/src/ledger.rs index fa32f4c0..6c6557f7 100644 --- a/examples/migration/src/ledger.rs +++ b/examples/migration/src/ledger.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::wallet::{BesuWallet, IndyWallet}; use indy_besu_vdr::{ credential_definition_registry::{ diff --git a/examples/migration/src/main.rs b/examples/migration/src/main.rs index 05c64033..4ce39fd4 100644 --- a/examples/migration/src/main.rs +++ b/examples/migration/src/main.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + mod holder; mod issuer; mod ledger; diff --git a/examples/migration/src/trustee.rs b/examples/migration/src/trustee.rs index 2f0bf78a..e2589662 100644 --- a/examples/migration/src/trustee.rs +++ b/examples/migration/src/trustee.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ ledger::{BesuLedger, IndyLedger, Ledgers}, wallet::{BesuWallet, IndyWallet}, diff --git a/examples/migration/src/verifier.rs b/examples/migration/src/verifier.rs index 6536d9ed..a4a2e3c8 100644 --- a/examples/migration/src/verifier.rs +++ b/examples/migration/src/verifier.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::ledger::{BesuLedger, IndyLedger, Ledgers}; use indy_credx::types::{ CredentialDefinition, CredentialDefinitionId, Presentation, PresentationRequest, Schema, diff --git a/examples/migration/src/wallet.rs b/examples/migration/src/wallet.rs index 0ccaacef..a43a67e7 100644 --- a/examples/migration/src/wallet.rs +++ b/examples/migration/src/wallet.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use aries_askar::kms::{KeyAlg, LocalKey}; use indy_besu_vdr::{Address, BasicSigner}; diff --git a/smart_contracts/contracts-ts/AccountControl.ts b/smart_contracts/contracts-ts/AccountControl.ts index c19ed872..5964d28f 100644 --- a/smart_contracts/contracts-ts/AccountControl.ts +++ b/smart_contracts/contracts-ts/AccountControl.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { BigNumberish } from 'ethers' import { BytesLike } from 'ethers/src.ts/utils' import { Contract } from '../utils/contract' diff --git a/smart_contracts/contracts-ts/CredentialDefinitionRegistry.ts b/smart_contracts/contracts-ts/CredentialDefinitionRegistry.ts index 9946e495..88adf7b5 100644 --- a/smart_contracts/contracts-ts/CredentialDefinitionRegistry.ts +++ b/smart_contracts/contracts-ts/CredentialDefinitionRegistry.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { concat, getBytes, keccak256, Signature, toUtf8Bytes, toUtf8String } from 'ethers' import { CredentialDefinitionMetadataStruct } from '../typechain-types/contracts/anoncreds/CredentialDefinitionRegistry' import { Contract } from '../utils/contract' diff --git a/smart_contracts/contracts-ts/EthereumDidRegistry.ts b/smart_contracts/contracts-ts/EthereumDidRegistry.ts index cca26c7a..07f3481d 100644 --- a/smart_contracts/contracts-ts/EthereumDidRegistry.ts +++ b/smart_contracts/contracts-ts/EthereumDidRegistry.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { encodeBytes32String, toUtf8Bytes } from 'ethers' import { Contract } from '../utils/contract' diff --git a/smart_contracts/contracts-ts/IndyDidRegistry.ts b/smart_contracts/contracts-ts/IndyDidRegistry.ts index c3eecea1..965ceb68 100644 --- a/smart_contracts/contracts-ts/IndyDidRegistry.ts +++ b/smart_contracts/contracts-ts/IndyDidRegistry.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { concat, getBytes, Signature, toUtf8Bytes, toUtf8String } from 'ethers' import { DidMetadataStruct } from '../typechain-types/contracts/did/IndyDidRegistry' import { Contract } from '../utils/contract' diff --git a/smart_contracts/contracts-ts/LegacyMappingRegistry.ts b/smart_contracts/contracts-ts/LegacyMappingRegistry.ts index 1c5fd875..659f4c95 100644 --- a/smart_contracts/contracts-ts/LegacyMappingRegistry.ts +++ b/smart_contracts/contracts-ts/LegacyMappingRegistry.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { concat, Signature, toUtf8Bytes } from 'ethers' import { Contract } from '../utils/contract' diff --git a/smart_contracts/contracts-ts/RoleControl.ts b/smart_contracts/contracts-ts/RoleControl.ts index 39eb3653..a1a6d1ef 100644 --- a/smart_contracts/contracts-ts/RoleControl.ts +++ b/smart_contracts/contracts-ts/RoleControl.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { Account } from '../utils/account' import { Contract } from '../utils/contract' diff --git a/smart_contracts/contracts-ts/SchemaRegistry.ts b/smart_contracts/contracts-ts/SchemaRegistry.ts index b5036e00..e21fa1b8 100644 --- a/smart_contracts/contracts-ts/SchemaRegistry.ts +++ b/smart_contracts/contracts-ts/SchemaRegistry.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { concat, getBytes, keccak256, Signature, toUtf8Bytes, toUtf8String } from 'ethers' import { SchemaMetadataStruct } from '../typechain-types/contracts/anoncreds/SchemaRegistry' import { Contract } from '../utils/contract' diff --git a/smart_contracts/contracts-ts/UniversalDidReolver.ts b/smart_contracts/contracts-ts/UniversalDidReolver.ts index 70990968..f775b6aa 100644 --- a/smart_contracts/contracts-ts/UniversalDidReolver.ts +++ b/smart_contracts/contracts-ts/UniversalDidReolver.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { getBytes, toUtf8String } from 'ethers' import { DidMetadataStruct } from '../typechain-types/contracts/did/IndyDidRegistry' import { Contract } from '../utils' diff --git a/smart_contracts/contracts-ts/UpgradeControl.ts b/smart_contracts/contracts-ts/UpgradeControl.ts index d87143d1..fefc6f35 100644 --- a/smart_contracts/contracts-ts/UpgradeControl.ts +++ b/smart_contracts/contracts-ts/UpgradeControl.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { Contract } from '../utils/contract' export class UpgradeControl extends Contract { diff --git a/smart_contracts/contracts-ts/ValidatorControl.ts b/smart_contracts/contracts-ts/ValidatorControl.ts index 31fee80e..69f256da 100644 --- a/smart_contracts/contracts-ts/ValidatorControl.ts +++ b/smart_contracts/contracts-ts/ValidatorControl.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { Contract } from '../utils/contract' export class ValidatorControl extends Contract { diff --git a/smart_contracts/contracts-ts/index.ts b/smart_contracts/contracts-ts/index.ts index b12ce4e7..b181878b 100644 --- a/smart_contracts/contracts-ts/index.ts +++ b/smart_contracts/contracts-ts/index.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + export * from './AccountControl' export * from './CredentialDefinitionRegistry' export * from './IndyDidRegistry' diff --git a/smart_contracts/demos/account-control.ts b/smart_contracts/demos/account-control.ts index 3bc9ff71..46eb92db 100644 --- a/smart_contracts/demos/account-control.ts +++ b/smart_contracts/demos/account-control.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { Actor } from './utils/actor' import assert from 'assert' import environment from '../environment' diff --git a/smart_contracts/demos/flow-with-did-ethr.ts b/smart_contracts/demos/flow-with-did-ethr.ts index 20664aa8..57fdc073 100644 --- a/smart_contracts/demos/flow-with-did-ethr.ts +++ b/smart_contracts/demos/flow-with-did-ethr.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import environment from '../environment' import { Actor } from './utils/actor' import { ROLES } from '../contracts-ts' diff --git a/smart_contracts/demos/flow.ts b/smart_contracts/demos/flow.ts index fd08f751..8f3647e7 100644 --- a/smart_contracts/demos/flow.ts +++ b/smart_contracts/demos/flow.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import environment from '../environment' import { Actor } from './utils/actor' import { ROLES } from '../contracts-ts' diff --git a/smart_contracts/demos/role-control.ts b/smart_contracts/demos/role-control.ts index 6d9be85c..336be3bd 100644 --- a/smart_contracts/demos/role-control.ts +++ b/smart_contracts/demos/role-control.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { ROLES } from '../contracts-ts' import environment from '../environment' import { Actor } from './utils/actor' diff --git a/smart_contracts/demos/upgrade-control.ts b/smart_contracts/demos/upgrade-control.ts index 7ceb3376..b43fc5c9 100644 --- a/smart_contracts/demos/upgrade-control.ts +++ b/smart_contracts/demos/upgrade-control.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { Actor } from './utils/actor' import environment from '../environment' import { UpgradablePrototype } from './utils/contracts/UpgradablePrototype' diff --git a/smart_contracts/demos/utils/actor.ts b/smart_contracts/demos/utils/actor.ts index 43242ffa..d0bf1202 100644 --- a/smart_contracts/demos/utils/actor.ts +++ b/smart_contracts/demos/utils/actor.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { readBesuConfig } from '../../utils' import { RoleControl, diff --git a/smart_contracts/demos/utils/contracts/SimpleContract.ts b/smart_contracts/demos/utils/contracts/SimpleContract.ts index cb6e9442..28394c49 100644 --- a/smart_contracts/demos/utils/contracts/SimpleContract.ts +++ b/smart_contracts/demos/utils/contracts/SimpleContract.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { Contract } from '../../../utils' export class SimpleContract extends Contract { diff --git a/smart_contracts/demos/utils/contracts/UpgradablePrototype.ts b/smart_contracts/demos/utils/contracts/UpgradablePrototype.ts index 2d7cc78d..f8641904 100644 --- a/smart_contracts/demos/utils/contracts/UpgradablePrototype.ts +++ b/smart_contracts/demos/utils/contracts/UpgradablePrototype.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { BytesLike } from 'ethers' import { Contract } from '../../../utils' diff --git a/smart_contracts/demos/validator-control.ts b/smart_contracts/demos/validator-control.ts index ebce66d1..d777f80e 100644 --- a/smart_contracts/demos/validator-control.ts +++ b/smart_contracts/demos/validator-control.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import environment from '../environment' import { ROLES } from '../contracts-ts' import { Account } from '../utils' diff --git a/smart_contracts/environment.ts b/smart_contracts/environment.ts index 79e0bc6d..6a377c64 100644 --- a/smart_contracts/environment.ts +++ b/smart_contracts/environment.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import Web3 from 'web3' export const environment = { diff --git a/smart_contracts/hardhat.config.ts b/smart_contracts/hardhat.config.ts index 02e01105..619ce144 100644 --- a/smart_contracts/hardhat.config.ts +++ b/smart_contracts/hardhat.config.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import '@nomicfoundation/hardhat-toolbox' import '@openzeppelin/hardhat-upgrades' import 'hardhat-dependency-compiler' diff --git a/smart_contracts/scripts/genesis/contractConfig.ts b/smart_contracts/scripts/genesis/contractConfig.ts index 1f0d3edb..3a7396e1 100644 --- a/smart_contracts/scripts/genesis/contractConfig.ts +++ b/smart_contracts/scripts/genesis/contractConfig.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + export interface ContractConfig { name: string address: string diff --git a/smart_contracts/scripts/genesis/contracts/accountControl.ts b/smart_contracts/scripts/genesis/contracts/accountControl.ts index 1bfc0536..d2247742 100644 --- a/smart_contracts/scripts/genesis/contracts/accountControl.ts +++ b/smart_contracts/scripts/genesis/contracts/accountControl.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { padLeft } from 'web3-utils' import { ContractConfig } from '../contractConfig' import { buildProxySection, slots } from '../helpers' diff --git a/smart_contracts/scripts/genesis/contracts/credentialDefinitionRegistry.ts b/smart_contracts/scripts/genesis/contracts/credentialDefinitionRegistry.ts index ec6645d7..f9475e2c 100644 --- a/smart_contracts/scripts/genesis/contracts/credentialDefinitionRegistry.ts +++ b/smart_contracts/scripts/genesis/contracts/credentialDefinitionRegistry.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { padLeft } from 'web3-utils' import { ContractConfig } from '../contractConfig' import { buildProxySection, slots } from '../helpers' diff --git a/smart_contracts/scripts/genesis/contracts/ethereumDidRegistry.ts b/smart_contracts/scripts/genesis/contracts/ethereumDidRegistry.ts index 2c2d8e47..af571485 100644 --- a/smart_contracts/scripts/genesis/contracts/ethereumDidRegistry.ts +++ b/smart_contracts/scripts/genesis/contracts/ethereumDidRegistry.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { padLeft } from 'web3-utils' import { ContractConfig } from '../contractConfig' import { buildProxySection, slots } from '../helpers' diff --git a/smart_contracts/scripts/genesis/contracts/index.ts b/smart_contracts/scripts/genesis/contracts/index.ts index 7a2f5f4e..550bc210 100644 --- a/smart_contracts/scripts/genesis/contracts/index.ts +++ b/smart_contracts/scripts/genesis/contracts/index.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + export * from './accountControl' export * from './credentialDefinitionRegistry' export * from './indyDidRegistry' diff --git a/smart_contracts/scripts/genesis/contracts/indyDidRegistry.ts b/smart_contracts/scripts/genesis/contracts/indyDidRegistry.ts index e161f6fc..8d73cb45 100644 --- a/smart_contracts/scripts/genesis/contracts/indyDidRegistry.ts +++ b/smart_contracts/scripts/genesis/contracts/indyDidRegistry.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { padLeft } from 'web3-utils' import { ContractConfig } from '../contractConfig' import { buildProxySection, slots } from '../helpers' diff --git a/smart_contracts/scripts/genesis/contracts/legacyMappingRegistry.ts b/smart_contracts/scripts/genesis/contracts/legacyMappingRegistry.ts index f31676c9..08c67a95 100644 --- a/smart_contracts/scripts/genesis/contracts/legacyMappingRegistry.ts +++ b/smart_contracts/scripts/genesis/contracts/legacyMappingRegistry.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { padLeft } from 'web3-utils' import { ContractConfig } from '../contractConfig' import { buildProxySection, slots } from '../helpers' diff --git a/smart_contracts/scripts/genesis/contracts/roleControl.ts b/smart_contracts/scripts/genesis/contracts/roleControl.ts index b40d678c..82233bf7 100644 --- a/smart_contracts/scripts/genesis/contracts/roleControl.ts +++ b/smart_contracts/scripts/genesis/contracts/roleControl.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { padLeft, sha3, toHex } from 'web3-utils' import { ContractConfig } from '../contractConfig' import { buildProxySection, slots } from '../helpers' diff --git a/smart_contracts/scripts/genesis/contracts/schemaRegistry.ts b/smart_contracts/scripts/genesis/contracts/schemaRegistry.ts index a19fe1e3..055fb541 100644 --- a/smart_contracts/scripts/genesis/contracts/schemaRegistry.ts +++ b/smart_contracts/scripts/genesis/contracts/schemaRegistry.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { padLeft } from 'web3-utils' import { ContractConfig } from '../contractConfig' import { buildProxySection, slots } from '../helpers' diff --git a/smart_contracts/scripts/genesis/contracts/universalDidResolver.ts b/smart_contracts/scripts/genesis/contracts/universalDidResolver.ts index fe159422..4c8864e2 100644 --- a/smart_contracts/scripts/genesis/contracts/universalDidResolver.ts +++ b/smart_contracts/scripts/genesis/contracts/universalDidResolver.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { padLeft } from 'web3-utils' import { ContractConfig } from '../contractConfig' import { buildProxySection, slots } from '../helpers' diff --git a/smart_contracts/scripts/genesis/contracts/upgradeControl.ts b/smart_contracts/scripts/genesis/contracts/upgradeControl.ts index a6f4664d..a1d60a00 100644 --- a/smart_contracts/scripts/genesis/contracts/upgradeControl.ts +++ b/smart_contracts/scripts/genesis/contracts/upgradeControl.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { padLeft } from 'web3-utils' import { ContractConfig } from '../contractConfig' import { buildProxySection, slots } from '../helpers' diff --git a/smart_contracts/scripts/genesis/contracts/validatorControl.ts b/smart_contracts/scripts/genesis/contracts/validatorControl.ts index 713c0eaa..aa80de42 100644 --- a/smart_contracts/scripts/genesis/contracts/validatorControl.ts +++ b/smart_contracts/scripts/genesis/contracts/validatorControl.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { BN } from 'bn.js' import { padLeft, sha3 } from 'web3-utils' import { ContractConfig } from '../contractConfig' diff --git a/smart_contracts/scripts/genesis/generate.ts b/smart_contracts/scripts/genesis/generate.ts index 7d186950..53299bcc 100644 --- a/smart_contracts/scripts/genesis/generate.ts +++ b/smart_contracts/scripts/genesis/generate.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { writeJson } from '../../utils' import { accountControl, diff --git a/smart_contracts/scripts/genesis/helpers.ts b/smart_contracts/scripts/genesis/helpers.ts index a43dbab1..c5569794 100644 --- a/smart_contracts/scripts/genesis/helpers.ts +++ b/smart_contracts/scripts/genesis/helpers.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import * as fs from 'fs-extra' import path from 'path' import { padLeft, sha3 } from 'web3-utils' diff --git a/smart_contracts/test/anoncreds/CredentialDefinitionRegistry.spec.ts b/smart_contracts/test/anoncreds/CredentialDefinitionRegistry.spec.ts index 5b0b0f86..2a97a41e 100644 --- a/smart_contracts/test/anoncreds/CredentialDefinitionRegistry.spec.ts +++ b/smart_contracts/test/anoncreds/CredentialDefinitionRegistry.spec.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { expect } from 'chai' import { keccak256, toUtf8Bytes } from 'ethers' import { IndyDidRegistry } from '../../contracts-ts' diff --git a/smart_contracts/test/anoncreds/SchemaRegistry.spec.ts b/smart_contracts/test/anoncreds/SchemaRegistry.spec.ts index 00925b25..dcc6af8a 100644 --- a/smart_contracts/test/anoncreds/SchemaRegistry.spec.ts +++ b/smart_contracts/test/anoncreds/SchemaRegistry.spec.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { expect } from 'chai' import { keccak256, toUtf8Bytes } from 'ethers' import { IndyDidRegistry, SchemaRegistry } from '../../contracts-ts' diff --git a/smart_contracts/test/auth/AccountControl.spec.ts b/smart_contracts/test/auth/AccountControl.spec.ts index dd7ea7a2..0e797c9d 100644 --- a/smart_contracts/test/auth/AccountControl.spec.ts +++ b/smart_contracts/test/auth/AccountControl.spec.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { loadFixture } from '@nomicfoundation/hardhat-network-helpers' import { expect } from 'chai' import { AccountControl, RoleControl } from '../../contracts-ts' diff --git a/smart_contracts/test/auth/RoleControl.spec.ts b/smart_contracts/test/auth/RoleControl.spec.ts index b5628f1a..25e488dd 100644 --- a/smart_contracts/test/auth/RoleControl.spec.ts +++ b/smart_contracts/test/auth/RoleControl.spec.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { loadFixture } from '@nomicfoundation/hardhat-network-helpers' import chai from 'chai' import { ROLES } from '../../contracts-ts' diff --git a/smart_contracts/test/did/DidRegistry.spec.ts b/smart_contracts/test/did/DidRegistry.spec.ts index 59759283..f23bc529 100644 --- a/smart_contracts/test/did/DidRegistry.spec.ts +++ b/smart_contracts/test/did/DidRegistry.spec.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { expect } from 'chai' import { ROLES } from '../../contracts-ts' import { createBaseDidDocument } from '../../utils/entity-factories' diff --git a/smart_contracts/test/did/UniversalDidResolver.spec.ts b/smart_contracts/test/did/UniversalDidResolver.spec.ts index d7749abe..6caebfbd 100644 --- a/smart_contracts/test/did/UniversalDidResolver.spec.ts +++ b/smart_contracts/test/did/UniversalDidResolver.spec.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { loadFixture } from '@nomicfoundation/hardhat-network-helpers' import { expect } from 'chai' import { createBaseDidDocument } from '../../utils' diff --git a/smart_contracts/test/migration/LegacyMappingRegistry.spec.ts b/smart_contracts/test/migration/LegacyMappingRegistry.spec.ts index 5b58a510..d0f4c493 100644 --- a/smart_contracts/test/migration/LegacyMappingRegistry.spec.ts +++ b/smart_contracts/test/migration/LegacyMappingRegistry.spec.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { expect } from 'chai' import { LegacyMappingRegistry } from '../../contracts-ts' import { diff --git a/smart_contracts/test/network/ValidatorControl.spec.ts b/smart_contracts/test/network/ValidatorControl.spec.ts index bf6721ad..ef1b861d 100644 --- a/smart_contracts/test/network/ValidatorControl.spec.ts +++ b/smart_contracts/test/network/ValidatorControl.spec.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { loadFixture } from '@nomicfoundation/hardhat-network-helpers' import chai from 'chai' import { Account } from '../../utils' diff --git a/smart_contracts/test/upgrade/UpgradeControl.spec.ts b/smart_contracts/test/upgrade/UpgradeControl.spec.ts index 4f2fea62..4a1dc833 100644 --- a/smart_contracts/test/upgrade/UpgradeControl.spec.ts +++ b/smart_contracts/test/upgrade/UpgradeControl.spec.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { loadFixture } from '@nomicfoundation/hardhat-network-helpers' import chai from 'chai' import { RoleControl } from '../../contracts-ts' diff --git a/smart_contracts/test/utils/contract-helpers.ts b/smart_contracts/test/utils/contract-helpers.ts index dbb6fbcd..624b7226 100644 --- a/smart_contracts/test/utils/contract-helpers.ts +++ b/smart_contracts/test/utils/contract-helpers.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { getBytes } from 'ethers' import { CredentialDefinitionRegistry, diff --git a/smart_contracts/test/utils/errors.ts b/smart_contracts/test/utils/errors.ts index 46d9f201..2e5ec4a5 100644 --- a/smart_contracts/test/utils/errors.ts +++ b/smart_contracts/test/utils/errors.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + export namespace AuthErrors { export const Unauthorized = 'Unauthorized' } diff --git a/smart_contracts/test/utils/events.ts b/smart_contracts/test/utils/events.ts index 7e74f0e3..d6f192c4 100644 --- a/smart_contracts/test/utils/events.ts +++ b/smart_contracts/test/utils/events.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + export namespace UpgradeControlEvents { export const UpgradeProposed = 'UpgradeProposed' export const UpgradeApproved = 'UpgradeApproved' diff --git a/smart_contracts/test/utils/test-entities.ts b/smart_contracts/test/utils/test-entities.ts index 80cb2622..63fc6cdd 100644 --- a/smart_contracts/test/utils/test-entities.ts +++ b/smart_contracts/test/utils/test-entities.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { HardhatEthersSigner } from '@nomicfoundation/hardhat-ethers/signers' import { ethers } from 'hardhat' import { ROLES, Transaction } from '../../contracts-ts' diff --git a/smart_contracts/utils/account.ts b/smart_contracts/utils/account.ts index 73dbbdc7..6c62ae21 100644 --- a/smart_contracts/utils/account.ts +++ b/smart_contracts/utils/account.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { Signer } from 'ethers' import { ethers } from 'hardhat' import { host, web3 } from '../environment' diff --git a/smart_contracts/utils/common.ts b/smart_contracts/utils/common.ts index 843a4a2b..88910297 100644 --- a/smart_contracts/utils/common.ts +++ b/smart_contracts/utils/common.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { readFileSync } from 'fs' import { resolve } from 'path' diff --git a/smart_contracts/utils/contract.ts b/smart_contracts/utils/contract.ts index bb545915..d0c894bf 100644 --- a/smart_contracts/utils/contract.ts +++ b/smart_contracts/utils/contract.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import { concat, getAddress, keccak256, Signer, SigningKey } from 'ethers' import { ethers, upgrades } from 'hardhat' import { host } from '../environment' diff --git a/smart_contracts/utils/entity-factories.ts b/smart_contracts/utils/entity-factories.ts index 25067ada..7c67e103 100644 --- a/smart_contracts/utils/entity-factories.ts +++ b/smart_contracts/utils/entity-factories.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + export function createBaseDidDocument(did: string, key?: any) { const kid = `${did}#KEY-1` return JSON.stringify({ diff --git a/smart_contracts/utils/file.ts b/smart_contracts/utils/file.ts index 9478877e..86eaabb9 100644 --- a/smart_contracts/utils/file.ts +++ b/smart_contracts/utils/file.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import fs from 'fs' export function writeJson(data: Record, outFile: string) { diff --git a/smart_contracts/utils/index.ts b/smart_contracts/utils/index.ts index 179c0e7c..c94f2905 100644 --- a/smart_contracts/utils/index.ts +++ b/smart_contracts/utils/index.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + export * from './account' export * from './common' export * from './contract' diff --git a/vdr/src/client/client.rs b/vdr/src/client/client.rs index 852303ec..4ea9404c 100644 --- a/vdr/src/client/client.rs +++ b/vdr/src/client/client.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use std::{ collections::HashMap, fmt::{Debug, Formatter}, diff --git a/vdr/src/client/constants.rs b/vdr/src/client/constants.rs index 19b9f651..325aba06 100644 --- a/vdr/src/client/constants.rs +++ b/vdr/src/client/constants.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use ethereum_types::U256; use once_cell::sync::Lazy; diff --git a/vdr/src/client/implementation/mod.rs b/vdr/src/client/implementation/mod.rs index c03d328f..506745ca 100644 --- a/vdr/src/client/implementation/mod.rs +++ b/vdr/src/client/implementation/mod.rs @@ -1 +1,5 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod web3; diff --git a/vdr/src/client/implementation/web3/client.rs b/vdr/src/client/implementation/web3/client.rs index 8a5560df..ef2c59b4 100644 --- a/vdr/src/client/implementation/web3/client.rs +++ b/vdr/src/client/implementation/web3/client.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ client::Client, error::{VdrError, VdrResult}, diff --git a/vdr/src/client/implementation/web3/contract.rs b/vdr/src/client/implementation/web3/contract.rs index 8e573de9..cae7d1c9 100644 --- a/vdr/src/client/implementation/web3/contract.rs +++ b/vdr/src/client/implementation/web3/contract.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ client::{implementation::web3::client::Web3Client, Contract}, error::{VdrError, VdrResult}, diff --git a/vdr/src/client/implementation/web3/mod.rs b/vdr/src/client/implementation/web3/mod.rs index 2676be6f..6f9b5780 100644 --- a/vdr/src/client/implementation/web3/mod.rs +++ b/vdr/src/client/implementation/web3/mod.rs @@ -1,2 +1,6 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod client; pub mod contract; diff --git a/vdr/src/client/mod.rs b/vdr/src/client/mod.rs index 217d1b32..c5451b24 100644 --- a/vdr/src/client/mod.rs +++ b/vdr/src/client/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod client; pub mod constants; pub mod implementation; diff --git a/vdr/src/client/quorum.rs b/vdr/src/client/quorum.rs index c444ca21..4fae48f4 100644 --- a/vdr/src/client/quorum.rs +++ b/vdr/src/client/quorum.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use futures::{ channel::{ mpsc, diff --git a/vdr/src/contracts/anoncreds/credential_definition_registry.rs b/vdr/src/contracts/anoncreds/credential_definition_registry.rs index 24b82650..070a3170 100644 --- a/vdr/src/contracts/anoncreds/credential_definition_registry.rs +++ b/vdr/src/contracts/anoncreds/credential_definition_registry.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use log_derive::{logfn, logfn_inputs}; use crate::{ diff --git a/vdr/src/contracts/anoncreds/mod.rs b/vdr/src/contracts/anoncreds/mod.rs index cedf4949..b4f77975 100644 --- a/vdr/src/contracts/anoncreds/mod.rs +++ b/vdr/src/contracts/anoncreds/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod credential_definition_registry; pub mod schema_registry; pub mod types; diff --git a/vdr/src/contracts/anoncreds/schema_registry.rs b/vdr/src/contracts/anoncreds/schema_registry.rs index 63f0026e..5feb1bf8 100644 --- a/vdr/src/contracts/anoncreds/schema_registry.rs +++ b/vdr/src/contracts/anoncreds/schema_registry.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use log_derive::{logfn, logfn_inputs}; use crate::{ diff --git a/vdr/src/contracts/anoncreds/types/credential_definition.rs b/vdr/src/contracts/anoncreds/types/credential_definition.rs index fd70deb3..8881206b 100644 --- a/vdr/src/contracts/anoncreds/types/credential_definition.rs +++ b/vdr/src/contracts/anoncreds/types/credential_definition.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ error::VdrError, types::{ContractOutput, ContractParam}, diff --git a/vdr/src/contracts/anoncreds/types/credential_definition_id.rs b/vdr/src/contracts/anoncreds/types/credential_definition_id.rs index 06ae3e1e..48e4610a 100644 --- a/vdr/src/contracts/anoncreds/types/credential_definition_id.rs +++ b/vdr/src/contracts/anoncreds/types/credential_definition_id.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{contracts::did::types::did::DID, types::ContractParam, VdrError, VdrResult}; use crate::contracts::types::did::ParsedDid; diff --git a/vdr/src/contracts/anoncreds/types/mod.rs b/vdr/src/contracts/anoncreds/types/mod.rs index ea33a1cb..c2df7856 100644 --- a/vdr/src/contracts/anoncreds/types/mod.rs +++ b/vdr/src/contracts/anoncreds/types/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod credential_definition; pub mod credential_definition_id; pub mod schema; diff --git a/vdr/src/contracts/anoncreds/types/schema.rs b/vdr/src/contracts/anoncreds/types/schema.rs index 9b40f768..19e2c6c3 100644 --- a/vdr/src/contracts/anoncreds/types/schema.rs +++ b/vdr/src/contracts/anoncreds/types/schema.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ error::VdrError, types::{ContractOutput, ContractParam}, diff --git a/vdr/src/contracts/anoncreds/types/schema_id.rs b/vdr/src/contracts/anoncreds/types/schema_id.rs index d1224c69..38b54f2b 100644 --- a/vdr/src/contracts/anoncreds/types/schema_id.rs +++ b/vdr/src/contracts/anoncreds/types/schema_id.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{contracts::did::types::did::DID, types::ContractParam, VdrError, VdrResult}; use crate::contracts::types::did::ParsedDid; diff --git a/vdr/src/contracts/auth/mod.rs b/vdr/src/contracts/auth/mod.rs index c3a2e081..23e4cf3e 100644 --- a/vdr/src/contracts/auth/mod.rs +++ b/vdr/src/contracts/auth/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod role_control; pub mod types; diff --git a/vdr/src/contracts/auth/role_control.rs b/vdr/src/contracts/auth/role_control.rs index 896dc117..42666db1 100644 --- a/vdr/src/contracts/auth/role_control.rs +++ b/vdr/src/contracts/auth/role_control.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ client::LedgerClient, contracts::auth::{HasRole, Role}, diff --git a/vdr/src/contracts/auth/types/mod.rs b/vdr/src/contracts/auth/types/mod.rs index 246380d9..42d7d50f 100644 --- a/vdr/src/contracts/auth/types/mod.rs +++ b/vdr/src/contracts/auth/types/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod role; pub use role::*; diff --git a/vdr/src/contracts/auth/types/role.rs b/vdr/src/contracts/auth/types/role.rs index 2b605831..a434c878 100644 --- a/vdr/src/contracts/auth/types/role.rs +++ b/vdr/src/contracts/auth/types/role.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ error::VdrError, types::{ContractOutput, ContractParam}, diff --git a/vdr/src/contracts/did/did_ethr_registry.rs b/vdr/src/contracts/did/did_ethr_registry.rs index 170b03d7..93cf0229 100644 --- a/vdr/src/contracts/did/did_ethr_registry.rs +++ b/vdr/src/contracts/did/did_ethr_registry.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use log_derive::{logfn, logfn_inputs}; use crate::{ diff --git a/vdr/src/contracts/did/did_indy_registry.rs b/vdr/src/contracts/did/did_indy_registry.rs index bfa7457d..a24bf9e5 100644 --- a/vdr/src/contracts/did/did_indy_registry.rs +++ b/vdr/src/contracts/did/did_indy_registry.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use log_derive::{logfn, logfn_inputs}; use crate::{ diff --git a/vdr/src/contracts/did/did_resolver.rs b/vdr/src/contracts/did/did_resolver.rs index c722cbff..a4c2759a 100644 --- a/vdr/src/contracts/did/did_resolver.rs +++ b/vdr/src/contracts/did/did_resolver.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use chrono::Utc; use log_derive::{logfn, logfn_inputs}; diff --git a/vdr/src/contracts/did/mod.rs b/vdr/src/contracts/did/mod.rs index 4fbe41f9..250bfe8b 100644 --- a/vdr/src/contracts/did/mod.rs +++ b/vdr/src/contracts/did/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod did_ethr_registry; pub mod did_indy_registry; pub mod did_resolver; diff --git a/vdr/src/contracts/did/types/did.rs b/vdr/src/contracts/did/types/did.rs index b2e4fce7..278e0419 100644 --- a/vdr/src/contracts/did/types/did.rs +++ b/vdr/src/contracts/did/types/did.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{types::ContractOutput, ContractParam, VdrError, VdrResult}; use once_cell::sync::Lazy; use regex_lite::Regex; diff --git a/vdr/src/contracts/did/types/did_doc.rs b/vdr/src/contracts/did/types/did_doc.rs index 62fe235f..28a45010 100644 --- a/vdr/src/contracts/did/types/did_doc.rs +++ b/vdr/src/contracts/did/types/did_doc.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ contracts::did::types::did::{DID, DID_URL_REGEX, RELATIVE_DID_URL_REGEX}, error::{VdrError, VdrResult}, diff --git a/vdr/src/contracts/did/types/did_doc_attribute.rs b/vdr/src/contracts/did/types/did_doc_attribute.rs index c1470a3b..4ddd6711 100644 --- a/vdr/src/contracts/did/types/did_doc_attribute.rs +++ b/vdr/src/contracts/did/types/did_doc_attribute.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ contracts::{ did::types::{ diff --git a/vdr/src/contracts/did/types/did_doc_builder.rs b/vdr/src/contracts/did/types/did_doc_builder.rs index 0498367d..9423698f 100644 --- a/vdr/src/contracts/did/types/did_doc_builder.rs +++ b/vdr/src/contracts/did/types/did_doc_builder.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use log::warn; use log_derive::{logfn, logfn_inputs}; diff --git a/vdr/src/contracts/did/types/did_events.rs b/vdr/src/contracts/did/types/did_events.rs index 3fee2e37..9e9d6c23 100644 --- a/vdr/src/contracts/did/types/did_events.rs +++ b/vdr/src/contracts/did/types/did_events.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ types::{Block, ContractEvent}, utils::parse_bytes32_string, diff --git a/vdr/src/contracts/did/types/mod.rs b/vdr/src/contracts/did/types/mod.rs index 57ce79cd..367d6086 100644 --- a/vdr/src/contracts/did/types/mod.rs +++ b/vdr/src/contracts/did/types/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod did; pub mod did_doc; pub mod did_doc_attribute; diff --git a/vdr/src/contracts/endorsing.rs b/vdr/src/contracts/endorsing.rs index 8197c9d7..4b3c56a3 100644 --- a/vdr/src/contracts/endorsing.rs +++ b/vdr/src/contracts/endorsing.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ types::TransactionBuilder, Address, LedgerClient, Transaction, TransactionEndorsingData, TransactionType, VdrError, VdrResult, diff --git a/vdr/src/contracts/migration/legacy_mapping_registry.rs b/vdr/src/contracts/migration/legacy_mapping_registry.rs index a8de31fd..f1ed1f82 100644 --- a/vdr/src/contracts/migration/legacy_mapping_registry.rs +++ b/vdr/src/contracts/migration/legacy_mapping_registry.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use log_derive::{logfn, logfn_inputs}; use crate::{ diff --git a/vdr/src/contracts/migration/mod.rs b/vdr/src/contracts/migration/mod.rs index f203951d..3053f737 100644 --- a/vdr/src/contracts/migration/mod.rs +++ b/vdr/src/contracts/migration/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod legacy_mapping_registry; pub mod types; diff --git a/vdr/src/contracts/migration/types/did.rs b/vdr/src/contracts/migration/types/did.rs index 325f847f..27ec57eb 100644 --- a/vdr/src/contracts/migration/types/did.rs +++ b/vdr/src/contracts/migration/types/did.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{types::ContractParam, VdrError}; use serde_derive::{Deserialize, Serialize}; diff --git a/vdr/src/contracts/migration/types/ed25519_signature.rs b/vdr/src/contracts/migration/types/ed25519_signature.rs index 81794c5c..7b929ae3 100644 --- a/vdr/src/contracts/migration/types/ed25519_signature.rs +++ b/vdr/src/contracts/migration/types/ed25519_signature.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{types::ContractParam, VdrError}; /// Wrapper structure for ED25519 signature diff --git a/vdr/src/contracts/migration/types/mod.rs b/vdr/src/contracts/migration/types/mod.rs index 2973fdc8..8dc9f3b2 100644 --- a/vdr/src/contracts/migration/types/mod.rs +++ b/vdr/src/contracts/migration/types/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod did; pub mod ed25519_signature; pub mod resource_identifier; diff --git a/vdr/src/contracts/migration/types/resource_identifier.rs b/vdr/src/contracts/migration/types/resource_identifier.rs index cce0ec36..0d963a78 100644 --- a/vdr/src/contracts/migration/types/resource_identifier.rs +++ b/vdr/src/contracts/migration/types/resource_identifier.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ types::{ContractOutput, ContractParam}, SchemaId, VdrError, diff --git a/vdr/src/contracts/mod.rs b/vdr/src/contracts/mod.rs index 71ad305c..a3fcba18 100644 --- a/vdr/src/contracts/mod.rs +++ b/vdr/src/contracts/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod anoncreds; pub mod auth; pub mod did; diff --git a/vdr/src/contracts/network/mod.rs b/vdr/src/contracts/network/mod.rs index b02c7e78..bcef2ba6 100644 --- a/vdr/src/contracts/network/mod.rs +++ b/vdr/src/contracts/network/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod validator_control; pub mod validator_info; diff --git a/vdr/src/contracts/network/validator_control.rs b/vdr/src/contracts/network/validator_control.rs index 275c0865..a6ea048e 100644 --- a/vdr/src/contracts/network/validator_control.rs +++ b/vdr/src/contracts/network/validator_control.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use log_derive::{logfn, logfn_inputs}; use crate::{ diff --git a/vdr/src/contracts/network/validator_info.rs b/vdr/src/contracts/network/validator_info.rs index 592c9dd5..9260fedb 100644 --- a/vdr/src/contracts/network/validator_info.rs +++ b/vdr/src/contracts/network/validator_info.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{error::VdrError, types::ContractOutput, Address}; pub type ValidatorAddresses = Vec
; diff --git a/vdr/src/error/mod.rs b/vdr/src/error/mod.rs index 7f0bc5d5..db81d5ef 100644 --- a/vdr/src/error/mod.rs +++ b/vdr/src/error/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use std::ops::RangeInclusive; use serde_json::json; diff --git a/vdr/src/lib.rs b/vdr/src/lib.rs index 43afd5b5..cd6ad01b 100644 --- a/vdr/src/lib.rs +++ b/vdr/src/lib.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + #[allow(clippy::module_inception)] mod client; mod contracts; diff --git a/vdr/src/migration/credential_definition.rs b/vdr/src/migration/credential_definition.rs index 8b5e226a..105fdbe1 100644 --- a/vdr/src/migration/credential_definition.rs +++ b/vdr/src/migration/credential_definition.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ contracts::did::types::did::DID, error::{VdrError, VdrResult}, diff --git a/vdr/src/migration/mod.rs b/vdr/src/migration/mod.rs index fd2f6806..50a1cdda 100644 --- a/vdr/src/migration/mod.rs +++ b/vdr/src/migration/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod credential_definition; pub mod schema; diff --git a/vdr/src/migration/schema.rs b/vdr/src/migration/schema.rs index f4b9a6c2..c9992914 100644 --- a/vdr/src/migration/schema.rs +++ b/vdr/src/migration/schema.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ contracts::did::types::did::DID, error::{VdrError, VdrResult}, diff --git a/vdr/src/signer/basic_signer.rs b/vdr/src/signer/basic_signer.rs index 38f47c62..ae3a7673 100644 --- a/vdr/src/signer/basic_signer.rs +++ b/vdr/src/signer/basic_signer.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::error::{VdrError, VdrResult}; use log::warn; diff --git a/vdr/src/signer/mod.rs b/vdr/src/signer/mod.rs index 69b4275b..e885256f 100644 --- a/vdr/src/signer/mod.rs +++ b/vdr/src/signer/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod basic_signer; pub use basic_signer::{BasicSigner, KeyPair}; diff --git a/vdr/src/test.rs b/vdr/src/test.rs index eeae73fc..62724d5f 100644 --- a/vdr/src/test.rs +++ b/vdr/src/test.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ client::client::test::{client, TRUSTEE_ACCOUNT}, contracts::{ diff --git a/vdr/src/types/address.rs b/vdr/src/types/address.rs index 3835b430..e3c5d865 100644 --- a/vdr/src/types/address.rs +++ b/vdr/src/types/address.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ error::VdrError, types::{ContractOutput, ContractParam}, diff --git a/vdr/src/types/contract.rs b/vdr/src/types/contract.rs index e8c7cb72..4ff68241 100644 --- a/vdr/src/types/contract.rs +++ b/vdr/src/types/contract.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ error::{VdrError, VdrResult}, Address, diff --git a/vdr/src/types/endorsing_data.rs b/vdr/src/types/endorsing_data.rs index 991b059a..ddef7b16 100644 --- a/vdr/src/types/endorsing_data.rs +++ b/vdr/src/types/endorsing_data.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use ethabi::Uint; use log_derive::{logfn, logfn_inputs}; use serde::{Deserialize, Serialize}; diff --git a/vdr/src/types/event_query.rs b/vdr/src/types/event_query.rs index 6c828ac8..8cb8dbe1 100644 --- a/vdr/src/types/event_query.rs +++ b/vdr/src/types/event_query.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ types::{transaction::Block, ContractEvent}, Address, LedgerClient, VdrError, VdrResult, diff --git a/vdr/src/types/mod.rs b/vdr/src/types/mod.rs index c0077d38..2baf2827 100644 --- a/vdr/src/types/mod.rs +++ b/vdr/src/types/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + mod address; mod contract; mod endorsing_data; diff --git a/vdr/src/types/signature.rs b/vdr/src/types/signature.rs index f3317c24..efa25723 100644 --- a/vdr/src/types/signature.rs +++ b/vdr/src/types/signature.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{types::ContractParam, VdrError}; use serde_derive::{Deserialize, Serialize}; diff --git a/vdr/src/types/status.rs b/vdr/src/types/status.rs index f1103f14..653b05f9 100644 --- a/vdr/src/types/status.rs +++ b/vdr/src/types/status.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use serde_derive::{Deserialize, Serialize}; /// Ledger status: whether connected node and network are alive diff --git a/vdr/src/types/transaction.rs b/vdr/src/types/transaction.rs index b18c5b9d..a44c6939 100644 --- a/vdr/src/types/transaction.rs +++ b/vdr/src/types/transaction.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use ethabi::Uint; use ethereum::{ EnvelopedEncodable, LegacyTransaction, LegacyTransactionMessage, TransactionAction, diff --git a/vdr/src/utils/common.rs b/vdr/src/utils/common.rs index 4a2d7897..8233d5bb 100644 --- a/vdr/src/utils/common.rs +++ b/vdr/src/utils/common.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + #[cfg(test)] use rand::{distributions::Alphanumeric, Rng}; diff --git a/vdr/src/utils/mod.rs b/vdr/src/utils/mod.rs index 0e3dfcdc..35e20589 100644 --- a/vdr/src/utils/mod.rs +++ b/vdr/src/utils/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + mod common; use log_derive::{logfn, logfn_inputs}; diff --git a/vdr/uniffi/build.rs b/vdr/uniffi/build.rs index 9c9a00e4..e69ace23 100644 --- a/vdr/uniffi/build.rs +++ b/vdr/uniffi/build.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + fn main() { uniffi::generate_scaffolding("src/indy_besu_vdr.udl").unwrap(); } diff --git a/vdr/uniffi/src/bin.rs b/vdr/uniffi/src/bin.rs index f6cff6cf..e3887b7e 100644 --- a/vdr/uniffi/src/bin.rs +++ b/vdr/uniffi/src/bin.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + fn main() { uniffi::uniffi_bindgen_main() } diff --git a/vdr/uniffi/src/ffi/client.rs b/vdr/uniffi/src/ffi/client.rs index 41043898..49aba101 100644 --- a/vdr/uniffi/src/ffi/client.rs +++ b/vdr/uniffi/src/ffi/client.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ ffi::{ error::VdrResult, diff --git a/vdr/uniffi/src/ffi/contracts/credential_definition_registry.rs b/vdr/uniffi/src/ffi/contracts/credential_definition_registry.rs index 9497ae44..ef9eecba 100644 --- a/vdr/uniffi/src/ffi/contracts/credential_definition_registry.rs +++ b/vdr/uniffi/src/ffi/contracts/credential_definition_registry.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ ffi::{ client::LedgerClient, diff --git a/vdr/uniffi/src/ffi/contracts/did_ethr_registry.rs b/vdr/uniffi/src/ffi/contracts/did_ethr_registry.rs index 2699f74c..0e3729c0 100644 --- a/vdr/uniffi/src/ffi/contracts/did_ethr_registry.rs +++ b/vdr/uniffi/src/ffi/contracts/did_ethr_registry.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ ffi::{ client::LedgerClient, diff --git a/vdr/uniffi/src/ffi/contracts/did_indy_registry.rs b/vdr/uniffi/src/ffi/contracts/did_indy_registry.rs index c461b1ff..396b4b2a 100644 --- a/vdr/uniffi/src/ffi/contracts/did_indy_registry.rs +++ b/vdr/uniffi/src/ffi/contracts/did_indy_registry.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ ffi::{ client::LedgerClient, diff --git a/vdr/uniffi/src/ffi/contracts/did_resolver.rs b/vdr/uniffi/src/ffi/contracts/did_resolver.rs index 0d2d150d..021024a4 100644 --- a/vdr/uniffi/src/ffi/contracts/did_resolver.rs +++ b/vdr/uniffi/src/ffi/contracts/did_resolver.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{JsonValue, LedgerClient, VdrError, VdrResult}; use serde_json::json; diff --git a/vdr/uniffi/src/ffi/contracts/endorsing.rs b/vdr/uniffi/src/ffi/contracts/endorsing.rs index 16961b87..9a3a4bf8 100644 --- a/vdr/uniffi/src/ffi/contracts/endorsing.rs +++ b/vdr/uniffi/src/ffi/contracts/endorsing.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::ffi::{ client::LedgerClient, endorsing_data::TransactionEndorsingData, diff --git a/vdr/uniffi/src/ffi/contracts/legacy_mapping_registry.rs b/vdr/uniffi/src/ffi/contracts/legacy_mapping_registry.rs index d6c7d58c..96d6aa71 100644 --- a/vdr/uniffi/src/ffi/contracts/legacy_mapping_registry.rs +++ b/vdr/uniffi/src/ffi/contracts/legacy_mapping_registry.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::ffi::{ client::LedgerClient, endorsing_data::TransactionEndorsingData, diff --git a/vdr/uniffi/src/ffi/contracts/mod.rs b/vdr/uniffi/src/ffi/contracts/mod.rs index cbaf14f4..3b25d392 100644 --- a/vdr/uniffi/src/ffi/contracts/mod.rs +++ b/vdr/uniffi/src/ffi/contracts/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod credential_definition_registry; pub mod did_ethr_registry; pub mod did_indy_registry; diff --git a/vdr/uniffi/src/ffi/contracts/role_control.rs b/vdr/uniffi/src/ffi/contracts/role_control.rs index 78eb5470..3fe4065e 100644 --- a/vdr/uniffi/src/ffi/contracts/role_control.rs +++ b/vdr/uniffi/src/ffi/contracts/role_control.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::ffi::{ client::LedgerClient, error::{VdrError, VdrResult}, diff --git a/vdr/uniffi/src/ffi/contracts/schema_registry.rs b/vdr/uniffi/src/ffi/contracts/schema_registry.rs index c1e7a1a8..65bfbaa3 100644 --- a/vdr/uniffi/src/ffi/contracts/schema_registry.rs +++ b/vdr/uniffi/src/ffi/contracts/schema_registry.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ ffi::{ client::LedgerClient, diff --git a/vdr/uniffi/src/ffi/contracts/validator_control.rs b/vdr/uniffi/src/ffi/contracts/validator_control.rs index 7bca2bb3..30cf4e0b 100644 --- a/vdr/uniffi/src/ffi/contracts/validator_control.rs +++ b/vdr/uniffi/src/ffi/contracts/validator_control.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{ ffi::{ client::LedgerClient, diff --git a/vdr/uniffi/src/ffi/endorsing_data.rs b/vdr/uniffi/src/ffi/endorsing_data.rs index 8b5c32a2..977b6c1a 100644 --- a/vdr/uniffi/src/ffi/endorsing_data.rs +++ b/vdr/uniffi/src/ffi/endorsing_data.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::{JsonValue, SignatureData, VdrError, VdrResult}; use indy_besu_vdr::{ Address, Nonce, SignatureData as SignatureData_, diff --git a/vdr/uniffi/src/ffi/error.rs b/vdr/uniffi/src/ffi/error.rs index 6fdc7a67..097fc5ab 100644 --- a/vdr/uniffi/src/ffi/error.rs +++ b/vdr/uniffi/src/ffi/error.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use indy_besu_vdr::VdrError as VdrError_; #[derive(thiserror::Error, Debug, uniffi::Error)] diff --git a/vdr/uniffi/src/ffi/event_query.rs b/vdr/uniffi/src/ffi/event_query.rs index 494fcf7b..992ae837 100644 --- a/vdr/uniffi/src/ffi/event_query.rs +++ b/vdr/uniffi/src/ffi/event_query.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use indy_besu_vdr::{Address, Block, EventLog as EventLog_, EventQuery as EventQuery_}; #[derive(uniffi::Record)] diff --git a/vdr/uniffi/src/ffi/mod.rs b/vdr/uniffi/src/ffi/mod.rs index d8ec2462..3394e6be 100644 --- a/vdr/uniffi/src/ffi/mod.rs +++ b/vdr/uniffi/src/ffi/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod client; pub mod contracts; pub mod endorsing_data; diff --git a/vdr/uniffi/src/ffi/transaction.rs b/vdr/uniffi/src/ffi/transaction.rs index ca5939b8..048a9fb4 100644 --- a/vdr/uniffi/src/ffi/transaction.rs +++ b/vdr/uniffi/src/ffi/transaction.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::ffi::{ error::{VdrError, VdrResult}, types::{SignatureData, TransactionType}, diff --git a/vdr/uniffi/src/ffi/types.rs b/vdr/uniffi/src/ffi/types.rs index 1a31a9cf..3961618f 100644 --- a/vdr/uniffi/src/ffi/types.rs +++ b/vdr/uniffi/src/ffi/types.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use crate::JsonValue; use indy_besu_vdr::{ ContractConfig as ContractConfig_, ContractSpec as ContractSpec_, PingStatus as PingStatus_, diff --git a/vdr/uniffi/src/lib.rs b/vdr/uniffi/src/lib.rs index b072beeb..b4673688 100644 --- a/vdr/uniffi/src/lib.rs +++ b/vdr/uniffi/src/lib.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + #[allow(clippy::module_inception)] mod ffi; diff --git a/vdr/wasm/demo/node/src/main.ts b/vdr/wasm/demo/node/src/main.ts index f4d5f06d..3ff2d308 100644 --- a/vdr/wasm/demo/node/src/main.ts +++ b/vdr/wasm/demo/node/src/main.ts @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2024 DSR Corporation, Denver, Colorado. + * https://www.dsr-corporation.com + * SPDX-License-Identifier: Apache-2.0 + */ + import fs from "fs"; import secp256k1 from "secp256k1"; diff --git a/vdr/wasm/src/client.rs b/vdr/wasm/src/client.rs index 477c1603..64f0c7c1 100644 --- a/vdr/wasm/src/client.rs +++ b/vdr/wasm/src/client.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use js_sys::Promise; use std::rc::Rc; use wasm_bindgen::prelude::*; diff --git a/vdr/wasm/src/contracts/credential_definition_registry.rs b/vdr/wasm/src/contracts/credential_definition_registry.rs index 8e731cd3..1d9775a7 100644 --- a/vdr/wasm/src/contracts/credential_definition_registry.rs +++ b/vdr/wasm/src/contracts/credential_definition_registry.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use indy_besu_vdr::{ credential_definition_registry, Address, CredentialDefinition, CredentialDefinitionId, SchemaId, SignatureType, DID, diff --git a/vdr/wasm/src/contracts/did_ethr_registry.rs b/vdr/wasm/src/contracts/did_ethr_registry.rs index a61696ad..74aaa271 100644 --- a/vdr/wasm/src/contracts/did_ethr_registry.rs +++ b/vdr/wasm/src/contracts/did_ethr_registry.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use indy_besu_vdr::{ did_ethr_registry, Address, Block, DelegateType, DidDocAttribute, EventLog, Validity, DID, }; diff --git a/vdr/wasm/src/contracts/did_indy_registry.rs b/vdr/wasm/src/contracts/did_indy_registry.rs index 67009298..c38c2479 100644 --- a/vdr/wasm/src/contracts/did_indy_registry.rs +++ b/vdr/wasm/src/contracts/did_indy_registry.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use indy_besu_vdr::{did_indy_registry, Address, DidDocument, DID}; use wasm_bindgen::prelude::*; diff --git a/vdr/wasm/src/contracts/did_resolver.rs b/vdr/wasm/src/contracts/did_resolver.rs index d3605b3a..df4032eb 100644 --- a/vdr/wasm/src/contracts/did_resolver.rs +++ b/vdr/wasm/src/contracts/did_resolver.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use indy_besu_vdr::{did_resolver, DidResolutionOptions, DID}; use wasm_bindgen::prelude::*; diff --git a/vdr/wasm/src/contracts/endorsing.rs b/vdr/wasm/src/contracts/endorsing.rs index d30640db..21961186 100644 --- a/vdr/wasm/src/contracts/endorsing.rs +++ b/vdr/wasm/src/contracts/endorsing.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use indy_besu_vdr::{endorsing, Address}; use wasm_bindgen::prelude::*; diff --git a/vdr/wasm/src/contracts/legacy_mapping_registry.rs b/vdr/wasm/src/contracts/legacy_mapping_registry.rs index 57e8f5d1..66632850 100644 --- a/vdr/wasm/src/contracts/legacy_mapping_registry.rs +++ b/vdr/wasm/src/contracts/legacy_mapping_registry.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use indy_besu_vdr::{ legacy_mapping_registry, Address, Ed25519Signature, LegacyDid, LegacyVerkey, ResourceIdentifier, DID, diff --git a/vdr/wasm/src/contracts/mod.rs b/vdr/wasm/src/contracts/mod.rs index cbaf14f4..3b25d392 100644 --- a/vdr/wasm/src/contracts/mod.rs +++ b/vdr/wasm/src/contracts/mod.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod credential_definition_registry; pub mod did_ethr_registry; pub mod did_indy_registry; diff --git a/vdr/wasm/src/contracts/role_control.rs b/vdr/wasm/src/contracts/role_control.rs index a6ced9f2..2813c6a0 100644 --- a/vdr/wasm/src/contracts/role_control.rs +++ b/vdr/wasm/src/contracts/role_control.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use indy_besu_vdr::{role_control, Address, Role}; use wasm_bindgen::prelude::*; diff --git a/vdr/wasm/src/contracts/schema_registry.rs b/vdr/wasm/src/contracts/schema_registry.rs index 79405348..74c217b2 100644 --- a/vdr/wasm/src/contracts/schema_registry.rs +++ b/vdr/wasm/src/contracts/schema_registry.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use indy_besu_vdr::{schema_registry, Address, Schema, SchemaId, DID}; use std::rc::Rc; use wasm_bindgen::prelude::*; diff --git a/vdr/wasm/src/contracts/validator_control.rs b/vdr/wasm/src/contracts/validator_control.rs index b317622a..e70888ad 100644 --- a/vdr/wasm/src/contracts/validator_control.rs +++ b/vdr/wasm/src/contracts/validator_control.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use indy_besu_vdr::{validator_control, Address}; use wasm_bindgen::prelude::*; diff --git a/vdr/wasm/src/error.rs b/vdr/wasm/src/error.rs index de9c1a80..d8965ecf 100644 --- a/vdr/wasm/src/error.rs +++ b/vdr/wasm/src/error.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use indy_besu_vdr::VdrResult; use js_sys::Error as JsError; use wasm_bindgen::JsValue; diff --git a/vdr/wasm/src/event_query.rs b/vdr/wasm/src/event_query.rs index 88056202..b15e0948 100644 --- a/vdr/wasm/src/event_query.rs +++ b/vdr/wasm/src/event_query.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use indy_besu_vdr::EventQuery; use std::rc::Rc; use wasm_bindgen::prelude::*; diff --git a/vdr/wasm/src/lib.rs b/vdr/wasm/src/lib.rs index a4c651d7..adf8c2d4 100644 --- a/vdr/wasm/src/lib.rs +++ b/vdr/wasm/src/lib.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + pub mod client; pub mod contracts; pub(crate) mod error; diff --git a/vdr/wasm/src/transaction.rs b/vdr/wasm/src/transaction.rs index 92656dfb..feee809b 100644 --- a/vdr/wasm/src/transaction.rs +++ b/vdr/wasm/src/transaction.rs @@ -1,3 +1,7 @@ +// Copyright (c) 2024 DSR Corporation, Denver, Colorado. +// https://www.dsr-corporation.com +// SPDX-License-Identifier: Apache-2.0 + use indy_besu_vdr::{SignatureData, Transaction, TransactionEndorsingData}; use std::cell::RefCell; use wasm_bindgen::prelude::*; diff --git a/vdr/wrappers/python/demo/test.py b/vdr/wrappers/python/demo/test.py index 6572bd7b..71d84cdc 100644 --- a/vdr/wrappers/python/demo/test.py +++ b/vdr/wrappers/python/demo/test.py @@ -1,3 +1,7 @@ +# Copyright (c) 2024 DSR Corporation, Denver, Colorado. +# https://www.dsr-corporation.com +# SPDX-License-Identifier: Apache-2.0 + import asyncio import json import secrets diff --git a/vdr/wrappers/python/indy_besu_vdr/__init__.py b/vdr/wrappers/python/indy_besu_vdr/__init__.py index 49ed5766..33f86d95 100644 --- a/vdr/wrappers/python/indy_besu_vdr/__init__.py +++ b/vdr/wrappers/python/indy_besu_vdr/__init__.py @@ -1,3 +1,7 @@ +# Copyright (c) 2024 DSR Corporation, Denver, Colorado. +# https://www.dsr-corporation.com +# SPDX-License-Identifier: Apache-2.0 + """Indy2 VDR Python wrapper""" from .types import ( Transaction, diff --git a/vdr/wrappers/python/indy_besu_vdr/indy_besu_vdr.py b/vdr/wrappers/python/indy_besu_vdr/indy_besu_vdr.py index 8b4adb79..07339837 100644 --- a/vdr/wrappers/python/indy_besu_vdr/indy_besu_vdr.py +++ b/vdr/wrappers/python/indy_besu_vdr/indy_besu_vdr.py @@ -1,3 +1,7 @@ +# Copyright (c) 2024 DSR Corporation, Denver, Colorado. +# https://www.dsr-corporation.com +# SPDX-License-Identifier: Apache-2.0 + # This file was autogenerated by some hot garbage in the `uniffi` crate. diff --git a/vdr/wrappers/python/indy_besu_vdr/types.py b/vdr/wrappers/python/indy_besu_vdr/types.py index 7e33dc1c..a5e73310 100644 --- a/vdr/wrappers/python/indy_besu_vdr/types.py +++ b/vdr/wrappers/python/indy_besu_vdr/types.py @@ -1,3 +1,7 @@ +# Copyright (c) 2024 DSR Corporation, Denver, Colorado. +# https://www.dsr-corporation.com +# SPDX-License-Identifier: Apache-2.0 + import json import typing diff --git a/vdr/wrappers/python/indy_besu_vdr/version.py b/vdr/wrappers/python/indy_besu_vdr/version.py index 1015418e..4e78821c 100644 --- a/vdr/wrappers/python/indy_besu_vdr/version.py +++ b/vdr/wrappers/python/indy_besu_vdr/version.py @@ -1,3 +1,7 @@ +# Copyright (c) 2024 DSR Corporation, Denver, Colorado. +# https://www.dsr-corporation.com +# SPDX-License-Identifier: Apache-2.0 + """wrapper version.""" __version__ = "0.0.1" diff --git a/vdr/wrappers/python/setup.py b/vdr/wrappers/python/setup.py index c763f317..28b370d3 100644 --- a/vdr/wrappers/python/setup.py +++ b/vdr/wrappers/python/setup.py @@ -1,3 +1,7 @@ +# Copyright (c) 2024 DSR Corporation, Denver, Colorado. +# https://www.dsr-corporation.com +# SPDX-License-Identifier: Apache-2.0 + """Module setup.""" import os