universal-ledger-agent
Version:
The universal ledger agent framework, supporting plugins for message communication
52 lines (47 loc) • 1.6 kB
text/typescript
/*
* Copyright 2019 Coöperatieve Rabobank U.A.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { IAttestation, IAttestor, Transaction } from '../../src'
export const testAttestation: IAttestation = {
uuid: '8a96f441-e856-4cde-aebe-49d812016f8c',
attestorPubKey: '0x41507f9034E043545CdAcD89c32cf3b6484172A7',
forPubKey: '0x38e9ED09c48a435274F27794bf5Ee895DaAb22F0',
context: ['https://schema.org'],
type: ['typeOfMessage'],
// expires?: number // timestamp, optional
datetime: new Date(),
statements: {
'https://schema.org/familyName': 'Janssen'
} as any
}
export const testTransaction: Transaction = new Transaction({
uuid: 'string',
attestorPubKey: 'string',
datetime: new Date().toISOString(),
attest: [],
revoke: [],
verifyRequest: []
// error: 'string',
// state: 'string'
})
export const testAttestor: IAttestor = {
name: 'string',
icon: 'string',
pubKey: 'string',
datetime: (new Date()).toISOString(),
transactions: [testTransaction],
receivedAttestations: [testAttestation],
issuedAttestations: [testAttestation]
}