Skip to content

Commit

Permalink
New translations api.mdx (Japanese)
Browse files Browse the repository at this point in the history
  • Loading branch information
benface committed Dec 16, 2024
1 parent 819fba2 commit 48ebd4a
Showing 1 changed file with 48 additions and 48 deletions.
96 changes: 48 additions & 48 deletions website/pages/ja/developing/graph-ts/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ Since language mappings are written in AssemblyScript, it is useful to review th

サブグラフマニフェストapiVersionは、特定のサブグラフのマッピングAPIバージョンを指定します。このバージョンは、Graph Nodeによって実行されます。

| バージョン | リリースノート |
| :-: | --- |
| 0.0.9 | Adds new host functions [`eth_get_balance`](#balance-of-an-address) & [`hasCode`](#check-if-an-address-is-a-contract-or-eoa) |
| 0.0.8 | Adds validation for existence of fields in the schema when saving an entity. |
| 0.0.7 | Ethereum タイプに `TransactionReceipt``Log` クラスを追加<br /> Ethereum Event オブジェクトに `receipt` フィールドを追加。 |
| 0.0.6 | Ethereum Transactionオブジェクトに`nonce`フィールドを追加<br /> Ethereum Blockオブジェクトに`baseFeePerGas`を追加。 |
| バージョン | リリースノート |
| :---: | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 0.0.9 | Adds new host functions [`eth_get_balance`](#balance-of-an-address) & [`hasCode`](#check-if-an-address-is-a-contract-or-eoa) |
| 0.0.8 | Adds validation for existence of fields in the schema when saving an entity. |
| 0.0.7 | Ethereum タイプに `TransactionReceipt``Log` クラスを追加<br /> Ethereum Event オブジェクトに `receipt` フィールドを追加。 |
| 0.0.6 | Ethereum Transactionオブジェクトに`nonce`フィールドを追加<br /> Ethereum Blockオブジェクトに`baseFeePerGas`を追加。 |
| 0.0.5 | AssemblyScriptはバージョン0.19.10にアップグレードされました(このバージョンアップには変更点が含まれていますので <a href="/release-notes/assemblyscript-migration-guide"><code>Migration Guide</code></a>) をご覧ください)。 <br /><code>ethereum.transaction.gasUsed</code>の名前が<code>ethereum.transaction.gasLimit</code>に変更 |
| 0.0.4 | Ethereum SmartContractCall オブジェクトにfunctionSignatureフィールドを追加 |
| 0.0.3 | イーサリアムコールオブジェクトに`from`フィールドを追加<br />`etherem.call.address``ethereum.call.to`に変更。 |
| 0.0.2 | Ethereum Transaction オブジェクトに inputフィールドを追加 |
| 0.0.4 | Ethereum SmartContractCall オブジェクトにfunctionSignatureフィールドを追加 |
| 0.0.3 | イーサリアムコールオブジェクトに`from`フィールドを追加<br />`etherem.call.address``ethereum.call.to`に変更。 |
| 0.0.2 | Ethereum Transaction オブジェクトに inputフィールドを追加 |

### 組み込み型

Expand Down Expand Up @@ -286,7 +286,7 @@ The store API facilitates the retrieval of entities that were created or updated
- For some subgraphs, these missed lookups can contribute significantly to the indexing time.

```typescript
let id = event.transaction.hash // または ID が構築される方法
let id =event.transaction.hash // または ID が構築される方法
let transfer = Transfer.loadInBlock(id)
if (transfer == null) {
transfer = 新しい転送(id)
Expand Down Expand Up @@ -770,44 +770,44 @@ if (value.kind == JSONValueKind.BOOL) {

### タイプ 変換参照

| Source(s) | Destination | Conversion function |
| -------------------- | -------------------- | ---------------------------- |
| Address | Bytes | none |
| Address | String | s.toHexString() |
| BigDecimal | String | s.toString() |
| BigInt | BigDecimal | s.toBigDecimal() |
| BigInt | String (hexadecimal) | s.toHexString() or s.toHex() |
| BigInt | String (unicode) | s.toString() |
| BigInt | i32 | s.toI32() |
| Boolean | Boolean | none |
| Bytes (signed) | BigInt | BigInt.fromSignedBytes(s) |
| Bytes (unsigned) | BigInt | BigInt.fromUnsignedBytes(s) |
| Bytes | String (hexadecimal) | s.toHexString() or s.toHex() |
| Bytes | String (unicode) | s.toString() |
| Bytes | String (base58) | s.toBase58() |
| Bytes | i32 | s.toI32() |
| Bytes | u32 | s.toU32() |
| Bytes | JSON | json.fromBytes(s) |
| int8 | i32 | none |
| int32 | i32 | none |
| int32 | BigInt | Bigint.fromI32(s) |
| uint24 | i32 | none |
| int64 - int256 | BigInt | none |
| uint32 - uint256 | BigInt | none |
| JSON | boolean | s.toBool() |
| JSON | i64 | s.toI64() |
| JSON | u64 | s.toU64() |
| JSON | f64 | s.toF64() |
| JSON | BigInt | s.toBigInt() |
| JSON | string | s.toString() |
| JSON | Array | s.toArray() |
| JSON | Object | s.toObject() |
| String | Address | Address.fromString(s) |
| Bytes | Address | Address.fromString(s) |
| String | BigInt | BigDecimal.fromString(s) |
| String | BigDecimal | BigDecimal.fromString(s) |
| String (hexadecimal) | Bytes | ByteArray.fromHexString(s) |
| String (UTF-8) | Bytes | ByteArray.fromUTF8(s) |
| Source(s) | Destination | Conversion function |
| -------------------- | -------------------- | -------------------------------- |
| Address | Bytes | none |
| Address | String | s.toHexString() |
| BigDecimal | String | s.toString() |
| BigInt | BigDecimal | s.toBigDecimal() |
| BigInt | String (hexadecimal) | s.toHexString() or s.toHex() |
| BigInt | String (unicode) | s.toString() |
| BigInt | i32 | s.toI32() |
| Boolean | Boolean | none |
| Bytes (signed) | BigInt | BigInt.fromSignedBytes(s) |
| Bytes (unsigned) | BigInt | BigInt.fromUnsignedBytes(s) |
| Bytes | String (hexadecimal) | s.toHexString() or s.toHex() |
| Bytes | String (unicode) | s.toString() |
| Bytes | String (base58) | s.toBase58() |
| Bytes | i32 | s.toI32() |
| Bytes | u32 | s.toU32() |
| Bytes | JSON | json.fromBytes(s) |
| int8 | i32 | none |
| int32 | i32 | none |
| int32 | BigInt | Bigint.fromI32(s) |
| uint24 | i32 | none |
| int64 - int256 | BigInt | none |
| uint32 - uint256 | BigInt | none |
| JSON | boolean | s.toBool() |
| JSON | i64 | s.toI64() |
| JSON | u64 | s.toU64() |
| JSON | f64 | s.toF64() |
| JSON | BigInt | s.toBigInt() |
| JSON | string | s.toString() |
| JSON | Array | s.toArray() |
| JSON | Object | s.toObject() |
| String | Address | Address.fromString(s) |
| Bytes | Address | Address.fromString(s) |
| String | BigInt | BigDecimal.fromString(s) |
| String | BigDecimal | BigDecimal.fromString(s) |
| String (hexadecimal) | Bytes | ByteArray.fromHexString(s) |
| String (UTF-8) | Bytes | ByteArray.fromUTF8(s) |

### データソースのメタデータ

Expand Down

0 comments on commit 48ebd4a

Please sign in to comment.