@graphprotocol/graph-cli 0.69.0-alpha-20240317072253-db1272f → 0.69.0-alpha-20240317093022-fe4274c
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.
package/CHANGELOG.md
CHANGED
|
@@ -307,7 +307,7 @@ vitest_1.describe.concurrent('Schema code generator', () => {
|
|
|
307
307
|
if (!value || value.kind == ValueKind.NULL) {
|
|
308
308
|
return 0
|
|
309
309
|
} else {
|
|
310
|
-
return value.
|
|
310
|
+
return value.toTimestamp()
|
|
311
311
|
}
|
|
312
312
|
`,
|
|
313
313
|
},
|
|
@@ -316,7 +316,7 @@ vitest_1.describe.concurrent('Schema code generator', () => {
|
|
|
316
316
|
params: [new typescript_1.Param('value', new typescript_1.NamedType('i64'))],
|
|
317
317
|
returnType: undefined,
|
|
318
318
|
body: `
|
|
319
|
-
this.set('timestamp', Value.
|
|
319
|
+
this.set('timestamp', Value.fromTimestamp(value))
|
|
320
320
|
`,
|
|
321
321
|
},
|
|
322
322
|
{
|
|
@@ -258,7 +258,7 @@ const VALUE_TO_ASSEMBLYSCRIPT = [
|
|
|
258
258
|
['[Boolean]', 'Array<boolean>', (code) => `${code}.toBooleanArray()`],
|
|
259
259
|
['[Int]', 'Array<i32>', (code) => `${code}.toI32Array()`],
|
|
260
260
|
['[Int8]', 'Array<i64>', (code) => `${code}.toI64Array()`],
|
|
261
|
-
['[Timestamp]', 'Array<i64>', (code) => `${code}.
|
|
261
|
+
['[Timestamp]', 'Array<i64>', (code) => `${code}.toTimestampArray()`],
|
|
262
262
|
['[BigInt]', 'Array<BigInt>', (code) => `${code}.toBigIntArray()`],
|
|
263
263
|
['[ID]', 'Array<string>', (code) => `${code}.toStringArray()`],
|
|
264
264
|
['[String]', 'Array<string>', (code) => `${code}.toStringArray()`],
|
|
@@ -273,7 +273,7 @@ const VALUE_TO_ASSEMBLYSCRIPT = [
|
|
|
273
273
|
['ID', 'string', (code) => `${code}.toString()`],
|
|
274
274
|
['String', 'string', (code) => `${code}.toString()`],
|
|
275
275
|
['BigDecimal', 'BigDecimal', (code) => `${code}.toBigDecimal()`],
|
|
276
|
-
['Timestamp', 'i64', (code) => `${code}.
|
|
276
|
+
['Timestamp', 'i64', (code) => `${code}.toTimestamp()`],
|
|
277
277
|
[/.*/, 'string', (code) => `${code}.toString()`],
|
|
278
278
|
];
|
|
279
279
|
/**
|
|
@@ -290,7 +290,7 @@ const ASSEMBLYSCRIPT_TO_VALUE = [
|
|
|
290
290
|
['Array<Array<boolean>>', '[[Boolean]]', (code) => `Value.fromBooleanMatrix(${code})`],
|
|
291
291
|
['Array<Array<i32>>', '[[Int]]', (code) => `Value.fromI32Matrix(${code})`],
|
|
292
292
|
['Array<Array<i64>>', '[[Int8]]', (code) => `Value.fromI64Matrix(${code})`],
|
|
293
|
-
['Array<Array<i64>>', '[[Timestamp]]', (code) => `Value.
|
|
293
|
+
['Array<Array<i64>>', '[[Timestamp]]', (code) => `Value.fromTimestampMatrix(${code})`],
|
|
294
294
|
['Array<Array<BigInt>>', '[[BigInt]]', (code) => `Value.fromBigIntMatrix(${code})`],
|
|
295
295
|
['Array<Array<string>>', '[[String]]', (code) => `Value.fromStringMatrix(${code})`],
|
|
296
296
|
['Array<Array<string>>', '[[ID]]', (code) => `Value.fromStringMatrix(${code})`],
|
|
@@ -308,7 +308,7 @@ const ASSEMBLYSCRIPT_TO_VALUE = [
|
|
|
308
308
|
['Array<boolean>', '[Boolean]', (code) => `Value.fromBooleanArray(${code})`],
|
|
309
309
|
['Array<i32>', '[Int]', (code) => `Value.fromI32Array(${code})`],
|
|
310
310
|
['Array<i64>', '[Int8]', (code) => `Value.fromI64Array(${code})`],
|
|
311
|
-
['Array<i64>', '[Timestamp]', (code) => `Value.
|
|
311
|
+
['Array<i64>', '[Timestamp]', (code) => `Value.fromTimestampArray(${code})`],
|
|
312
312
|
['Array<BigInt>', '[BigInt]', (code) => `Value.fromBigIntArray(${code})`],
|
|
313
313
|
['Array<string>', '[String]', (code) => `Value.fromStringArray(${code})`],
|
|
314
314
|
['Array<string>', '[ID]', (code) => `Value.fromStringArray(${code})`],
|
|
@@ -321,7 +321,7 @@ const ASSEMBLYSCRIPT_TO_VALUE = [
|
|
|
321
321
|
['boolean', 'Boolean', (code) => `Value.fromBoolean(${code})`],
|
|
322
322
|
['i32', 'Int', (code) => `Value.fromI32(${code})`],
|
|
323
323
|
['i64', 'Int8', (code) => `Value.fromI64(${code})`],
|
|
324
|
-
['i64', 'Timestamp', (code) => `Value.
|
|
324
|
+
['i64', 'Timestamp', (code) => `Value.fromTimestamp(${code})`],
|
|
325
325
|
['BigInt', 'BigInt', (code) => `Value.fromBigInt(${code})`],
|
|
326
326
|
['string', 'String', (code) => `Value.fromString(${code})`],
|
|
327
327
|
['string', 'ID', (code) => `Value.fromString(${code})`],
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED