Skip to content

Commit

Permalink
chore: support parties renaming (#751)
Browse files Browse the repository at this point in the history
Rename producer -> provider and receiver -> consumer
  • Loading branch information
ntn-x2 committed Nov 9, 2023
1 parent 1b4941c commit 9b167c1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions packages/type-definitions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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[] = [
{
Expand Down Expand Up @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import type { DefinitionsCall } from '@polkadot/types/types'

export const calls: DefinitionsCall = {
DipSender: [
DipProvider: [
{
methods: {
generate_proof: {
Expand Down
2 changes: 1 addition & 1 deletion packages/type-definitions/src/types_11000.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 9b167c1

Please sign in to comment.