Skip to content

Commit

Permalink
Update offerings to match all claims
Browse files Browse the repository at this point in the history
  • Loading branch information
acekyd committed Aug 23, 2024
1 parent fa6b826 commit 98bdda4
Showing 1 changed file with 60 additions and 40 deletions.
100 changes: 60 additions & 40 deletions src/offeringData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,16 @@ export const offeringDataGHSToUSDC: OfferingData = {
fields: [
{
path: [
'$.vc.credentialSchema.id'
'$.vc.credentialSchema.id',
'$.credentialSchema.id'
],
filter: {
type: 'string',
const: 'https://vc.schemas.host/kcc.schema.json'
}
},
{
path: ['$.vc.issuer'],
path: ['$.vc.issuer', '$.issuer'],
filter: {
type: 'string',
const: issuer,
Expand Down Expand Up @@ -126,15 +127,16 @@ export const offeringDataNGNToKES: OfferingData = {
fields: [
{
path: [
'$.vc.credentialSchema.id'
'$.vc.credentialSchema.id',
'$.credentialSchema.id'
],
filter: {
type: 'string',
const: 'https://vc.schemas.host/kcc.schema.json'
}
},
{
path: ['$.vc.issuer'],
path: ['$.vc.issuer', '$.issuer'],
filter: {
type: 'string',
const: issuer,
Expand Down Expand Up @@ -204,15 +206,16 @@ export const offeringDataKESToUSD: OfferingData = {
fields: [
{
path: [
'$.vc.credentialSchema.id'
'$.vc.credentialSchema.id',
'$.credentialSchema.id'
],
filter: {
type: 'string',
const: 'https://vc.schemas.host/kcc.schema.json'
}
},
{
path: ['$.vc.issuer'],
path: ['$.vc.issuer', '$.issuer'],
filter: {
type: 'string',
const: issuer,
Expand Down Expand Up @@ -297,15 +300,16 @@ export const offeringDataUSDToKES: OfferingData = {
fields: [
{
path: [
'$.vc.credentialSchema.id'
'$.vc.credentialSchema.id',
'$.credentialSchema.id'
],
filter: {
type: 'string',
const: 'https://vc.schemas.host/kcc.schema.json'
}
},
{
path: ['$.vc.issuer'],
path: ['$.vc.issuer', '$.issuer'],
filter: {
type: 'string',
const: issuer,
Expand Down Expand Up @@ -375,15 +379,16 @@ export const offeringDataKESToUSD2: OfferingData = {
fields: [
{
path: [
'$.vc.credentialSchema.id'
'$.vc.credentialSchema.id',
'$.credentialSchema.id'
],
filter: {
type: 'string',
const: 'https://vc.schemas.host/kcc.schema.json'
}
},
{
path: ['$.vc.issuer'],
path: ['$.vc.issuer', '$.issuer'],
filter: {
type: 'string',
const: issuer,
Expand Down Expand Up @@ -447,15 +452,16 @@ export const offeringDataKESToUSDC: OfferingData = {
fields: [
{
path: [
'$.vc.credentialSchema.id'
'$.vc.credentialSchema.id',
'$.credentialSchema.id'
],
filter: {
type: 'string',
const: 'https://vc.schemas.host/kcc.schema.json'
}
},
{
path: ['$.vc.issuer'],
path: ['$.vc.issuer', '$.issuer'],
filter: {
type: 'string',
const: issuer,
Expand Down Expand Up @@ -519,15 +525,16 @@ export const offeringDataNGNToGHS: OfferingData = {
fields: [
{
path: [
'$.vc.credentialSchema.id'
'$.vc.credentialSchema.id',
'$.credentialSchema.id'
],
filter: {
type: 'string',
const: 'https://vc.schemas.host/kcc.schema.json'
}
},
{
path: ['$.vc.issuer'],
path: ['$.vc.issuer', '$.issuer'],
filter: {
type: 'string',
const: issuer,
Expand Down Expand Up @@ -606,15 +613,16 @@ export const offeringDataBTCToNGN: OfferingData = {
fields: [
{
path: [
'$.vc.credentialSchema.id'
'$.vc.credentialSchema.id',
'$.credentialSchema.id'
],
filter: {
type: 'string',
const: 'https://vc.schemas.host/kcc.schema.json'
}
},
{
path: ['$.vc.issuer'],
path: ['$.vc.issuer', '$.issuer'],
filter: {
type: 'string',
const: issuer,
Expand Down Expand Up @@ -705,15 +713,16 @@ export const offeringDataUSDToEUR: OfferingData = {
fields: [
{
path: [
'$.vc.credentialSchema.id'
'$.vc.credentialSchema.id',
'$.credentialSchema.id'
],
filter: {
type: 'string',
const: 'https://vc.schemas.host/kcc.schema.json'
}
},
{
path: ['$.vc.issuer'],
path: ['$.vc.issuer', '$.issuer'],
filter: {
type: 'string',
const: issuer,
Expand Down Expand Up @@ -804,15 +813,16 @@ export const offeringDataEURToUSD: OfferingData = {
fields: [
{
path: [
'$.vc.credentialSchema.id'
'$.vc.credentialSchema.id',
'$.credentialSchema.id'
],
filter: {
type: 'string',
const: 'https://vc.schemas.host/kcc.schema.json'
}
},
{
path: ['$.vc.issuer'],
path: ['$.vc.issuer', '$.issuer'],
filter: {
type: 'string',
const: issuer,
Expand Down Expand Up @@ -903,15 +913,16 @@ export const offeringDataUSDToGBP: OfferingData = {
fields: [
{
path: [
'$.vc.credentialSchema.id'
'$.vc.credentialSchema.id',
'$.credentialSchema.id'
],
filter: {
type: 'string',
const: 'https://vc.schemas.host/kcc.schema.json'
}
},
{
path: ['$.vc.issuer'],
path: ['$.vc.issuer', '$.issuer'],
filter: {
type: 'string',
const: issuer,
Expand Down Expand Up @@ -996,15 +1007,16 @@ export const offeringDataUSDToBTC: OfferingData = {
fields: [
{
path: [
'$.vc.credentialSchema.id'
'$.vc.credentialSchema.id',
'$.credentialSchema.id'
],
filter: {
type: 'string',
const: 'https://vc.schemas.host/kcc.schema.json'
}
},
{
path: ['$.vc.issuer'],
path: ['$.vc.issuer', '$.issuer'],
filter: {
type: 'string',
const: issuer,
Expand Down Expand Up @@ -1094,15 +1106,16 @@ export const offeringDataEURToUSD2: OfferingData = {
fields: [
{
path: [
'$.vc.credentialSchema.id'
'$.vc.credentialSchema.id',
'$.credentialSchema.id'
],
filter: {
type: 'string',
const: 'https://vc.schemas.host/kcc.schema.json'
}
},
{
path: ['$.vc.issuer'],
path: ['$.vc.issuer', '$.issuer'],
filter: {
type: 'string',
const: issuer,
Expand Down Expand Up @@ -1187,15 +1200,16 @@ export const offeringDataEURToUSDC: OfferingData = {
fields: [
{
path: [
'$.vc.credentialSchema.id'
'$.vc.credentialSchema.id',
'$.credentialSchema.id'
],
filter: {
type: 'string',
const: 'https://vc.schemas.host/kcc.schema.json'
}
},
{
path: ['$.vc.issuer'],
path: ['$.vc.issuer', '$.issuer'],
filter: {
type: 'string',
const: issuer,
Expand Down Expand Up @@ -1286,15 +1300,16 @@ export const offeringDataUSDToEUR2: OfferingData = {
fields: [
{
path: [
'$.vc.credentialSchema.id'
'$.vc.credentialSchema.id',
'$.credentialSchema.id'
],
filter: {
type: 'string',
const: 'https://vc.schemas.host/kcc.schema.json'
}
},
{
path: ['$.vc.issuer'],
path: ['$.vc.issuer', '$.issuer'],
filter: {
type: 'string',
const: issuer,
Expand Down Expand Up @@ -1385,15 +1400,16 @@ export const offeringDataEURToGBP: OfferingData = {
fields: [
{
path: [
'$.vc.credentialSchema.id'
'$.vc.credentialSchema.id',
'$.credentialSchema.id'
],
filter: {
type: 'string',
const: 'https://vc.schemas.host/kcc.schema.json'
}
},
{
path: ['$.vc.issuer'],
path: ['$.vc.issuer', '$.issuer'],
filter: {
type: 'string',
const: issuer,
Expand Down Expand Up @@ -1483,15 +1499,16 @@ export const offeringDataUSDToAUD: OfferingData = {
fields: [
{
path: [
'$.vc.credentialSchema.id'
'$.vc.credentialSchema.id',
'$.credentialSchema.id'
],
filter: {
type: 'string',
const: 'https://vc.schemas.host/kcc.schema.json'
}
},
{
path: ['$.vc.issuer'],
path: ['$.vc.issuer', '$.issuer'],
filter: {
type: 'string',
const: issuer,
Expand Down Expand Up @@ -1582,15 +1599,16 @@ export const offeringDataUSDToGBP2: OfferingData = {
fields: [
{
path: [
'$.vc.credentialSchema.id'
'$.vc.credentialSchema.id',
'$.credentialSchema.id'
],
filter: {
type: 'string',
const: 'https://vc.schemas.host/kcc.schema.json'
}
},
{
path: ['$.vc.issuer'],
path: ['$.vc.issuer', '$.issuer'],
filter: {
type: 'string',
const: issuer,
Expand Down Expand Up @@ -1675,15 +1693,16 @@ export const offeringDataUSDToKES2: OfferingData = {
fields: [
{
path: [
'$.vc.credentialSchema.id'
'$.vc.credentialSchema.id',
'$.credentialSchema.id'
],
filter: {
type: 'string',
const: 'https://vc.schemas.host/kcc.schema.json'
}
},
{
path: ['$.vc.issuer'],
path: ['$.vc.issuer', '$.issuer'],
filter: {
type: 'string',
const: issuer,
Expand Down Expand Up @@ -1774,15 +1793,16 @@ export const offeringDataUSDToMXN: OfferingData = {
fields: [
{
path: [
'$.vc.credentialSchema.id'
'$.vc.credentialSchema.id',
'$.credentialSchema.id'
],
filter: {
type: 'string',
const: 'https://vc.schemas.host/kcc.schema.json'
}
},
{
path: ['$.vc.issuer'],
path: ['$.vc.issuer', '$.issuer'],
filter: {
type: 'string',
const: issuer,
Expand Down

0 comments on commit 98bdda4

Please sign in to comment.