Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
rename _codec to codecs
Browse files Browse the repository at this point in the history
  • Loading branch information
tjjfvi committed Nov 14, 2022
1 parent 512c641 commit d11c782
Show file tree
Hide file tree
Showing 1,021 changed files with 2,715 additions and 2,711 deletions.
12 changes: 6 additions & 6 deletions codegen/_output/kusama/extrinsic.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { $, C, client } from "./capi.ts"
import * as _codec from "./codecs.ts"
import * as codecs from "./codecs.ts"
import type * as types from "./types/mod.ts"

const _extrinsic = {
version: 4,
extras: [_codec.$731, _codec.$733, _codec.$735],
additional: [_codec.$4, _codec.$4, _codec.$11, _codec.$11],
call: _codec.$181,
address: _codec.$197,
signature: _codec.$421,
extras: [codecs.$731, codecs.$733, codecs.$735],
additional: [codecs.$4, codecs.$4, codecs.$11, codecs.$11],
call: codecs.$181,
address: codecs.$197,
signature: codecs.$421,
}
export const extrinsic = C.extrinsic<typeof client, types.polkadot_runtime.RuntimeCall>(client)
6 changes: 4 additions & 2 deletions codegen/_output/kusama/mod.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export * as codecs from "./codecs.ts"
export * as pallets from "./pallets/mod.ts"
export * as types from "./types/mod.ts"

export * from "./extrinsic.ts"
export * from "./pallets/mod.ts"
export * from "./types/mod.ts"
14 changes: 7 additions & 7 deletions codegen/_output/kusama/pallets/Auctions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { $, C, client } from "../capi.ts"
import * as _codec from "../codecs.ts"
import * as codecs from "../codecs.ts"
import type * as types from "../types/mod.ts"

/** Number of auctions started so far. */
Expand All @@ -10,7 +10,7 @@ export const AuctionCounter = new C.fluent.Storage(
"Auctions",
"AuctionCounter",
$.tuple(),
_codec.$4,
codecs.$4,
)

/**
Expand All @@ -27,7 +27,7 @@ export const AuctionInfo = new C.fluent.Storage(
"Auctions",
"AuctionInfo",
$.tuple(),
_codec.$30,
codecs.$30,
)

/**
Expand All @@ -40,8 +40,8 @@ export const ReservedAmounts = new C.fluent.Storage(
"Optional",
"Auctions",
"ReservedAmounts",
$.tuple(_codec.$705),
_codec.$6,
$.tuple(codecs.$705),
codecs.$6,
)

/**
Expand All @@ -55,8 +55,8 @@ export const Winning = new C.fluent.Storage(
"Optional",
"Auctions",
"Winning",
$.tuple(_codec.$4),
_codec.$706,
$.tuple(codecs.$4),
codecs.$706,
)

/**
Expand Down
2 changes: 1 addition & 1 deletion codegen/_output/kusama/pallets/AuthorityDiscovery.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { $, C, client } from "../capi.ts"
import * as _codec from "../codecs.ts"
import * as codecs from "../codecs.ts"
import type * as types from "../types/mod.ts"
8 changes: 4 additions & 4 deletions codegen/_output/kusama/pallets/Authorship.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { $, C, client } from "../capi.ts"
import * as _codec from "../codecs.ts"
import * as codecs from "../codecs.ts"
import type * as types from "../types/mod.ts"

/** Uncles */
Expand All @@ -10,7 +10,7 @@ export const Uncles = new C.fluent.Storage(
"Authorship",
"Uncles",
$.tuple(),
_codec.$481,
codecs.$481,
)

/** Author of current block. */
Expand All @@ -21,7 +21,7 @@ export const Author = new C.fluent.Storage(
"Authorship",
"Author",
$.tuple(),
_codec.$0,
codecs.$0,
)

/** Whether uncles were already set in this block. */
Expand All @@ -32,7 +32,7 @@ export const DidSetUncles = new C.fluent.Storage(
"Authorship",
"DidSetUncles",
$.tuple(),
_codec.$43,
codecs.$43,
)

/** Provide a set of uncles. */
Expand Down
36 changes: 18 additions & 18 deletions codegen/_output/kusama/pallets/Babe.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { $, C, client } from "../capi.ts"
import * as _codec from "../codecs.ts"
import * as codecs from "../codecs.ts"
import type * as types from "../types/mod.ts"

/** Current epoch index. */
Expand All @@ -10,7 +10,7 @@ export const EpochIndex = new C.fluent.Storage(
"Babe",
"EpochIndex",
$.tuple(),
_codec.$10,
codecs.$10,
)

/** Current epoch authorities. */
Expand All @@ -21,7 +21,7 @@ export const Authorities = new C.fluent.Storage(
"Babe",
"Authorities",
$.tuple(),
_codec.$456,
codecs.$456,
)

/**
Expand All @@ -35,7 +35,7 @@ export const GenesisSlot = new C.fluent.Storage(
"Babe",
"GenesisSlot",
$.tuple(),
_codec.$190,
codecs.$190,
)

/** Current slot number. */
Expand All @@ -46,7 +46,7 @@ export const CurrentSlot = new C.fluent.Storage(
"Babe",
"CurrentSlot",
$.tuple(),
_codec.$190,
codecs.$190,
)

/**
Expand All @@ -68,7 +68,7 @@ export const Randomness = new C.fluent.Storage(
"Babe",
"Randomness",
$.tuple(),
_codec.$1,
codecs.$1,
)

/** Pending epoch configuration change that will be applied when the next epoch is enacted. */
Expand All @@ -79,7 +79,7 @@ export const PendingEpochConfigChange = new C.fluent.Storage(
"Babe",
"PendingEpochConfigChange",
$.tuple(),
_codec.$192,
codecs.$192,
)

/** Next epoch randomness. */
Expand All @@ -90,7 +90,7 @@ export const NextRandomness = new C.fluent.Storage(
"Babe",
"NextRandomness",
$.tuple(),
_codec.$1,
codecs.$1,
)

/** Next epoch authorities. */
Expand All @@ -101,7 +101,7 @@ export const NextAuthorities = new C.fluent.Storage(
"Babe",
"NextAuthorities",
$.tuple(),
_codec.$456,
codecs.$456,
)

/**
Expand All @@ -122,7 +122,7 @@ export const SegmentIndex = new C.fluent.Storage(
"Babe",
"SegmentIndex",
$.tuple(),
_codec.$4,
codecs.$4,
)

/** TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay. */
Expand All @@ -132,8 +132,8 @@ export const UnderConstruction = new C.fluent.Storage(
"Default",
"Babe",
"UnderConstruction",
$.tuple(_codec.$4),
_codec.$459,
$.tuple(codecs.$4),
codecs.$459,
)

/**
Expand All @@ -147,7 +147,7 @@ export const Initialized = new C.fluent.Storage(
"Babe",
"Initialized",
$.tuple(),
_codec.$461,
codecs.$461,
)

/**
Expand All @@ -163,7 +163,7 @@ export const AuthorVrfRandomness = new C.fluent.Storage(
"Babe",
"AuthorVrfRandomness",
$.tuple(),
_codec.$31,
codecs.$31,
)

/**
Expand All @@ -180,7 +180,7 @@ export const EpochStart = new C.fluent.Storage(
"Babe",
"EpochStart",
$.tuple(),
_codec.$30,
codecs.$30,
)

/**
Expand All @@ -197,7 +197,7 @@ export const Lateness = new C.fluent.Storage(
"Babe",
"Lateness",
$.tuple(),
_codec.$4,
codecs.$4,
)

/**
Expand All @@ -211,7 +211,7 @@ export const EpochConfig = new C.fluent.Storage(
"Babe",
"EpochConfig",
$.tuple(),
_codec.$466,
codecs.$466,
)

/**
Expand All @@ -225,7 +225,7 @@ export const NextEpochConfig = new C.fluent.Storage(
"Babe",
"NextEpochConfig",
$.tuple(),
_codec.$466,
codecs.$466,
)

/**
Expand Down
18 changes: 9 additions & 9 deletions codegen/_output/kusama/pallets/Balances.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { $, C, client } from "../capi.ts"
import * as _codec from "../codecs.ts"
import * as codecs from "../codecs.ts"
import type * as types from "../types/mod.ts"

/** The total units issued in the system. */
Expand All @@ -10,7 +10,7 @@ export const TotalIssuance = new C.fluent.Storage(
"Balances",
"TotalIssuance",
$.tuple(),
_codec.$6,
codecs.$6,
)

/**
Expand Down Expand Up @@ -45,8 +45,8 @@ export const Account = new C.fluent.Storage(
"Default",
"Balances",
"Account",
$.tuple(_codec.$0),
_codec.$5,
$.tuple(codecs.$0),
codecs.$5,
)

/**
Expand All @@ -59,8 +59,8 @@ export const Locks = new C.fluent.Storage(
"Default",
"Balances",
"Locks",
$.tuple(_codec.$0),
_codec.$470,
$.tuple(codecs.$0),
codecs.$470,
)

/** Named reserves on some account balances. */
Expand All @@ -70,8 +70,8 @@ export const Reserves = new C.fluent.Storage(
"Default",
"Balances",
"Reserves",
$.tuple(_codec.$0),
_codec.$474,
$.tuple(codecs.$0),
codecs.$474,
)

/**
Expand All @@ -86,7 +86,7 @@ export const StorageVersion = new C.fluent.Storage(
"Balances",
"StorageVersion",
$.tuple(),
_codec.$477,
codecs.$477,
)

/**
Expand Down
14 changes: 7 additions & 7 deletions codegen/_output/kusama/pallets/Bounties.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { $, C, client } from "../capi.ts"
import * as _codec from "../codecs.ts"
import * as codecs from "../codecs.ts"
import type * as types from "../types/mod.ts"

/** Number of bounty proposals that have been made. */
Expand All @@ -10,7 +10,7 @@ export const BountyCount = new C.fluent.Storage(
"Bounties",
"BountyCount",
$.tuple(),
_codec.$4,
codecs.$4,
)

/** Bounties that have been made. */
Expand All @@ -20,8 +20,8 @@ export const Bounties = new C.fluent.Storage(
"Optional",
"Bounties",
"Bounties",
$.tuple(_codec.$4),
_codec.$591,
$.tuple(codecs.$4),
codecs.$591,
)

/** The description of each bounty. */
Expand All @@ -31,8 +31,8 @@ export const BountyDescriptions = new C.fluent.Storage(
"Optional",
"Bounties",
"BountyDescriptions",
$.tuple(_codec.$4),
_codec.$593,
$.tuple(codecs.$4),
codecs.$593,
)

/** Bounty indices that have been approved but not yet funded. */
Expand All @@ -43,7 +43,7 @@ export const BountyApprovals = new C.fluent.Storage(
"Bounties",
"BountyApprovals",
$.tuple(),
_codec.$557,
codecs.$557,
)

/**
Expand Down
Loading

0 comments on commit d11c782

Please sign in to comment.