Skip to content

feat(torii/graphql): use union types for token balances and transfers

Codecov / codecov/patch failed Nov 7, 2024 in 1s

8.00% of diff hit (target 56.57%)

View this Pull Request on Codecov

8.00% of diff hit (target 56.57%)

Annotations

Check warning on line 14 in crates/torii/graphql/src/object/erc/erc_token.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/erc_token.rs#L14

Added line #L14 was not covered by tests

Check warning on line 31 in crates/torii/graphql/src/object/erc/erc_token.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/erc_token.rs#L31

Added line #L31 was not covered by tests

Check warning on line 106 in crates/torii/graphql/src/object/erc/erc_token.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/erc_token.rs#L72-L106

Added lines #L72 - L106 were not covered by tests

Check warning on line 79 in crates/torii/graphql/src/object/erc/token_balance.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_balance.rs#L79

Added line #L79 was not covered by tests

Check warning on line 210 in crates/torii/graphql/src/object/erc/token_balance.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_balance.rs#L210

Added line #L210 was not covered by tests

Check warning on line 214 in crates/torii/graphql/src/object/erc/token_balance.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_balance.rs#L214

Added line #L214 was not covered by tests

Check warning on line 230 in crates/torii/graphql/src/object/erc/token_balance.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_balance.rs#L222-L230

Added lines #L222 - L230 were not covered by tests

Check warning on line 239 in crates/torii/graphql/src/object/erc/token_balance.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_balance.rs#L239

Added line #L239 was not covered by tests

Check warning on line 241 in crates/torii/graphql/src/object/erc/token_balance.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_balance.rs#L241

Added line #L241 was not covered by tests

Check warning on line 244 in crates/torii/graphql/src/object/erc/token_balance.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_balance.rs#L244

Added line #L244 was not covered by tests

Check warning on line 261 in crates/torii/graphql/src/object/erc/token_balance.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_balance.rs#L248-L261

Added lines #L248 - L261 were not covered by tests

Check warning on line 269 in crates/torii/graphql/src/object/erc/token_balance.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_balance.rs#L269

Added line #L269 was not covered by tests

Check warning on line 276 in crates/torii/graphql/src/object/erc/token_balance.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_balance.rs#L272-L276

Added lines #L272 - L276 were not covered by tests

Check warning on line 78 in crates/torii/graphql/src/object/erc/token_transfer.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_transfer.rs#L78

Added line #L78 was not covered by tests

Check warning on line 231 in crates/torii/graphql/src/object/erc/token_transfer.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_transfer.rs#L231

Added line #L231 was not covered by tests

Check warning on line 235 in crates/torii/graphql/src/object/erc/token_transfer.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_transfer.rs#L235

Added line #L235 was not covered by tests

Check warning on line 243 in crates/torii/graphql/src/object/erc/token_transfer.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_transfer.rs#L243

Added line #L243 was not covered by tests

Check warning on line 259 in crates/torii/graphql/src/object/erc/token_transfer.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_transfer.rs#L245-L259

Added lines #L245 - L259 were not covered by tests

Check warning on line 268 in crates/torii/graphql/src/object/erc/token_transfer.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_transfer.rs#L268

Added line #L268 was not covered by tests

Check warning on line 270 in crates/torii/graphql/src/object/erc/token_transfer.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_transfer.rs#L270

Added line #L270 was not covered by tests

Check warning on line 273 in crates/torii/graphql/src/object/erc/token_transfer.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_transfer.rs#L273

Added line #L273 was not covered by tests

Check warning on line 296 in crates/torii/graphql/src/object/erc/token_transfer.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_transfer.rs#L276-L296

Added lines #L276 - L296 were not covered by tests

Check warning on line 304 in crates/torii/graphql/src/object/erc/token_transfer.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_transfer.rs#L304

Added line #L304 was not covered by tests

Check warning on line 311 in crates/torii/graphql/src/object/erc/token_transfer.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/erc/token_transfer.rs#L307-L311

Added lines #L307 - L311 were not covered by tests

Check warning on line 73 in crates/torii/graphql/src/object/mod.rs

See this annotation in the file changed.

@codecov codecov / codecov/patch

crates/torii/graphql/src/object/mod.rs#L72-L73

Added lines #L72 - L73 were not covered by tests