antelopeql 2.0.0-rc.5 → 2.0.0-rc.6
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.
|
@@ -23,8 +23,7 @@ const currency_balance = {
|
|
|
23
23
|
},
|
|
24
24
|
symbol: {
|
|
25
25
|
description: "The crytpo currency token symbol.",
|
|
26
|
-
type: new GraphQLNonNull(symbol_code_type)
|
|
27
|
-
defaultValue: "EOS"
|
|
26
|
+
type: new GraphQLNonNull(symbol_code_type)
|
|
28
27
|
}
|
|
29
28
|
},
|
|
30
29
|
async resolve(_, args, { network: { fetch, rpc_url, ...fetchOptions } }) {
|
|
@@ -3,15 +3,13 @@ import { GraphQLScalarType } from "graphql";
|
|
|
3
3
|
const signature_type = new GraphQLScalarType({
|
|
4
4
|
description: `\`Signature type\`
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Antelope based signature, K1, R1 WA.`,
|
|
7
7
|
name: "signature",
|
|
8
8
|
parseValue(signature) {
|
|
9
9
|
if (signature == "") return "";
|
|
10
10
|
if (typeof signature !== "string")
|
|
11
11
|
throw new TypeError("Expected signature to be string");
|
|
12
12
|
|
|
13
|
-
if (signature.slice(0, 7) != "SIG_K1_")
|
|
14
|
-
throw new TypeError("Signature prefix is should be SIG_K1_.");
|
|
15
13
|
return signature;
|
|
16
14
|
}
|
|
17
15
|
});
|
package/mutation_resolver.mjs
CHANGED
|
@@ -216,7 +216,7 @@ async function mutation_resolver(
|
|
|
216
216
|
delay_sec: configuration.delay_sec
|
|
217
217
|
};
|
|
218
218
|
|
|
219
|
-
// Generates a transaction header for a
|
|
219
|
+
// Generates a transaction header for a Antelope transaction.
|
|
220
220
|
const transaction_header = serialize_transaction_header(txn_header);
|
|
221
221
|
txn_header.expiration = timestamp;
|
|
222
222
|
|
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.6",
|
|
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",
|