Comments (1)
Are you using the latest version of the codegen package? This issue has already been fixed.
There should be special function in marshal.ts
to deal with enums.
export function enumFromJson<E extends object>(json: unknown, enumObject: E): E[keyof E] {
assert(typeof json == 'string', 'invalid enum value')
let val = (enumObject as any)[json]
assert(typeof val == 'string', `invalid enum value`)
return val as any
}
from squid-sdk.
Related Issues (20)
- validate the processor field selection
- FATAL sqd:substrate-typegen Error: Unknown signed extension: OnlyMigrator HOT 3
- typeorm-store Functionality Enhancements and ON CONFLICT Support for Store Operations HOT 1
- Null unsafety should be explained
- ethers.js: create typegen for ABIs
- ethers.js: Create custom decoder
- ethers.js: Benchark, compare with ethers & viem HOT 1
- ethers.js: Test with different ABIs
- Testing framework: RnD HOT 4
- Testing framework: PoC
- Typegen for storage slots
- Create a link tree of subsquid related links and include that on X (formerly Twitter) Bio for user safety.
- Invalid generation of TypeORM model for entity with nullable relation. HOT 4
- Experimental decorators: don't use them? HOT 1
- Processor crashed with missing blocks despite correct DB entries HOT 6
- Add l1 transaction fields to mapping schema
- PrimaryColumns other than 'id' are not supported in codegen HOT 1
- feature request: export typedefs for implementing your own store HOT 1
- request for tutorial
- Squid stops indexing blocks w/o any error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from squid-sdk.