antelopeql 2.0.0-rc.18 → 2.0.0-rc.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -73,9 +73,7 @@ export default function build_graphql_fields_from_abis(abi_list, chain = "") {
|
|
|
73
73
|
const contract_query_fields = {};
|
|
74
74
|
const contract_mutation_fields = {};
|
|
75
75
|
const ast_list = {};
|
|
76
|
-
const chainName = chain
|
|
77
|
-
.toUpperCase()
|
|
78
|
-
.padStart(!chain.length ? 0 : chain.length + 1, "_");
|
|
76
|
+
const chainName = chain.padStart(!chain.length ? 0 : chain.length + 1, "_");
|
|
79
77
|
|
|
80
78
|
for (const { abi, account_name } of abi_list) {
|
|
81
79
|
const name = account_name.replace(/\./gmu, "_");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { GraphQLInputObjectType, GraphQLList, GraphQLNonNull } from "graphql";
|
|
2
2
|
|
|
3
|
-
const actions_type = (fields) =>
|
|
3
|
+
const actions_type = (fields, chain = "") =>
|
|
4
4
|
new GraphQLNonNull(
|
|
5
5
|
new GraphQLList(
|
|
6
6
|
new GraphQLNonNull(
|
|
7
7
|
new GraphQLInputObjectType({
|
|
8
|
-
name: "actions_type",
|
|
8
|
+
name: "actions_type" + chain,
|
|
9
9
|
fields
|
|
10
10
|
})
|
|
11
11
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antelopeql",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.19",
|
|
4
4
|
"description": "A GraphQL implementation for interacting with Antelope based blockchains.",
|
|
5
5
|
"repository": "github:pur3miish/antelopeql",
|
|
6
6
|
"bugs": "https://github.com/pur3miish/antelopeql/issues",
|