Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add files header #101

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
4 changes: 4 additions & 0 deletions examples/migration/src/holder.rs
Original file line number Diff line number Diff line change
@@ -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},
Expand Down
4 changes: 4 additions & 0 deletions examples/migration/src/issuer.rs
Original file line number Diff line number Diff line change
@@ -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},
Expand Down
4 changes: 4 additions & 0 deletions examples/migration/src/ledger.rs
Original file line number Diff line number Diff line change
@@ -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::{
Expand Down
4 changes: 4 additions & 0 deletions examples/migration/src/main.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 4 additions & 0 deletions examples/migration/src/trustee.rs
Original file line number Diff line number Diff line change
@@ -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},
Expand Down
4 changes: 4 additions & 0 deletions examples/migration/src/verifier.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 4 additions & 0 deletions examples/migration/src/wallet.rs
Original file line number Diff line number Diff line change
@@ -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};

Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/contracts-ts/AccountControl.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/contracts-ts/CredentialDefinitionRegistry.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/contracts-ts/EthereumDidRegistry.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/contracts-ts/IndyDidRegistry.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/contracts-ts/LegacyMappingRegistry.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/contracts-ts/RoleControl.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/contracts-ts/SchemaRegistry.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/contracts-ts/UniversalDidReolver.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/contracts-ts/UpgradeControl.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/contracts-ts/ValidatorControl.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/contracts-ts/index.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/demos/account-control.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/demos/flow-with-did-ethr.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/demos/flow.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/demos/role-control.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/demos/upgrade-control.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/demos/utils/actor.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/demos/utils/contracts/SimpleContract.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/demos/utils/contracts/UpgradablePrototype.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/demos/validator-control.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/environment.ts
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/scripts/genesis/contractConfig.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/scripts/genesis/contracts/accountControl.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/scripts/genesis/contracts/index.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/scripts/genesis/contracts/indyDidRegistry.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/scripts/genesis/contracts/roleControl.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/scripts/genesis/contracts/schemaRegistry.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 6 additions & 0 deletions smart_contracts/scripts/genesis/contracts/upgradeControl.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
Loading
Loading