Skip to content

Commit

Permalink
Include compliance version as part of its URI
Browse files Browse the repository at this point in the history
  • Loading branch information
rogargon committed Nov 20, 2023
1 parent b829874 commit 965da0c
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
NEXT_PUBLIC_COMPLIANCE_URI="https://compliance.arlabdevelopments.com/development"

#NEXT_PUBLIC_INFURA_PROJECT_ID="xxx"
#NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID="xxx"
#NEXT_PUBLIC_MARKET_FEE_ADDRESS="0xxx"
#NEXT_PUBLIC_PUBLISHER_MARKET_ORDER_FEE="1"
#NEXT_PUBLIC_PUBLISHER_MARKET_FIXED_SWAP_FEE="1"
#NEXT_PUBLIC_CONSUME_MARKET_ORDER_FEE="1"
#NEXT_PUBLIC_CONSUME_MARKET_FIXED_SWAP_FEE="1"

#
### ADVANCED SETTINGS
#

# Toggle pricing options presented during price creation
#NEXT_PUBLIC_ALLOW_FIXED_PRICING="true"
#NEXT_PUBLIC_ALLOW_FREE_PRICING="true"

# Privacy Preference Center
#NEXT_PUBLIC_PRIVACY_PREFERENCE_CENTER="true"

# Development Preference Center
#NEXT_PUBLIC_NFT_FACTORY_ADDRESS='0xxx'
#NEXT_PUBLIC_OPF_COMMUNITY_FEE_COLECTOR='0xxx'
#NEXT_PUBLIC_FIXED_RATE_EXCHANGE_ADDRESS='0xxx'
#NEXT_PUBLIC_DISPENSER_ADDRESS='0xxx'
#NEXT_PUBLIC_OCEAN_TOKEN_ADDRESS='0xxx'
#NEXT_PUBLIC_MARKET_DEVELOPMENT='true'
#NEXT_PUBLIC_PROVIDER_URL="http://xxx:xxx"
#NEXT_PUBLIC_SUBGRAPH_URI="http://xxx:xxx"
#NEXT_PUBLIC_METADATACACHE_URI="http://xxx:xxx"
#NEXT_PUBLIC_RPC_URI="http://xxx:xxx"
2 changes: 1 addition & 1 deletion app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {

complianceUri:
process.env.NEXT_PUBLIC_COMPLIANCE_URI ||
'https://compliance.lab.gaia-x.eu',
'https://compliance.lab.gaia-x.eu/v1',

complianceApiVersion:
process.env.NEXT_PUBLIC_COMPLIANCE_API_VERSION || '2210',
Expand Down
2 changes: 1 addition & 1 deletion src/components/Publish/_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ export async function verifyRawServiceCredential(
// parsedServiceSD?.selfDescriptionCredential?.['@context']
// )

const baseUrl = `${complianceUri}/v1/api/credential-offers`
const baseUrl = `${complianceUri}/api/credential-offers`

try {
const response = await axios.post(baseUrl, parsedServiceCredential)
Expand Down

0 comments on commit 965da0c

Please sign in to comment.