From 9b167c1b1ded42a79c73b58c74f7d8bcf93086c2 Mon Sep 17 00:00:00 2001 From: Antonio Date: Fri, 12 May 2023 14:45:53 +0300 Subject: [PATCH] chore: support parties renaming (#751) Rename producer -> provider and receiver -> consumer --- packages/type-definitions/src/index.ts | 10 +++++----- .../src/runtime/{dipSender.ts => dipProvider.ts} | 2 +- packages/type-definitions/src/types_11000.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename packages/type-definitions/src/runtime/{dipSender.ts => dipProvider.ts} (97%) diff --git a/packages/type-definitions/src/index.ts b/packages/type-definitions/src/index.ts index 282ca30b4..ce28118f3 100644 --- a/packages/type-definitions/src/index.ts +++ b/packages/type-definitions/src/index.ts @@ -33,7 +33,7 @@ import { types11000 } from './types_11000.js' import { calls as didCalls } from './runtime/did.js' import { calls as stakingCalls } from './runtime/staking.js' import { calls as publicCredentialsCalls } from './runtime/publicCredentials.js' -import { calls as dipSenderCalls } from './runtime/dipSender.js' +import { calls as dipProviderCalls } from './runtime/dipProvider.js' export { types8, @@ -58,7 +58,7 @@ export { export { calls as didCalls } from './runtime/did.js' export { calls as stakingCalls } from './runtime/staking.js' export { calls as publicCredentialsCalls } from './runtime/publicCredentials.js' -export { calls as dipSenderCalls } from './runtime/dipSender.js' +export { calls as dipProviderCalls } from './runtime/dipProvider.js' const defaultTypesBundle: OverrideVersionedType[] = [ { @@ -181,13 +181,13 @@ export const typesBundle: OverrideBundleType = { }, types: defaultTypesBundle, }, - 'DIP sender dev': { + 'DIP provider dev': { runtime: { - ...dipSenderCalls, + ...dipProviderCalls, }, types: defaultTypesBundle, }, - 'DIP receiver dev': { + 'DIP consumer dev': { types: defaultTypesBundle, }, Development: { diff --git a/packages/type-definitions/src/runtime/dipSender.ts b/packages/type-definitions/src/runtime/dipProvider.ts similarity index 97% rename from packages/type-definitions/src/runtime/dipSender.ts rename to packages/type-definitions/src/runtime/dipProvider.ts index fad9e82f9..7c9435f76 100644 --- a/packages/type-definitions/src/runtime/dipSender.ts +++ b/packages/type-definitions/src/runtime/dipProvider.ts @@ -8,7 +8,7 @@ import type { DefinitionsCall } from '@polkadot/types/types' export const calls: DefinitionsCall = { - DipSender: [ + DipProvider: [ { methods: { generate_proof: { diff --git a/packages/type-definitions/src/types_11000.ts b/packages/type-definitions/src/types_11000.ts index dfc729941..f824d7349 100644 --- a/packages/type-definitions/src/types_11000.ts +++ b/packages/type-definitions/src/types_11000.ts @@ -11,7 +11,7 @@ import { types10900 } from './types_10900.js' export const types11000: RegistryTypes = { ...types10900, - // DipSender state_call + // DipProvider state_call CompleteMerkleProof: { root: 'MerkleRoot', proof: 'MerkleProof',