Skip to content

Commit

Permalink
Merge pull request #440 from polywrap/prealpha-dev
Browse files Browse the repository at this point in the history
Prep 0.0.1-prealpha.33
  • Loading branch information
dOrgJelli authored Aug 19, 2021
2 parents 74b56a2 + 355674d commit a1fc101
Show file tree
Hide file tree
Showing 11 changed files with 89 additions and 469 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Web3API 0.0.1-prealpha.33
## Bugs
* `@web3api/schema-bind`: Fixed plugin code generation oversight. Should be using `null` instead of `undefined`.

# Web3API 0.0.1-prealpha.32
## Features
* Improved the plugin developer experience by creating a new `w3 plugin codegen` command, which generated types based on the plugin's schema. For an example of how this works, see the updated plugin template project by running `w3 create plugin typescript my-plugin`.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.1-prealpha.32
0.0.1-prealpha.33
2 changes: 1 addition & 1 deletion packages/cli/src/__tests__/plugin/expected-types/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {

export interface Input_method extends Record<string, unknown> {
str: String;
optStr?: String | undefined;
optStr?: String | null;
}

export interface Module extends PluginModule {
Expand Down
72 changes: 36 additions & 36 deletions packages/cli/src/__tests__/plugin/expected-types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,22 @@ export type Boolean = boolean;
export interface Object {
u: UInt;
array: Array<Boolean>;
bytes?: Bytes | undefined;
bytes?: Bytes | null;
}

/// Imported Objects START ///

/* URI: "ens/ethereum.web3api.eth" */
export interface Ethereum_Connection {
node?: String | undefined;
networkNameOrChainId?: String | undefined;
node?: String | null;
networkNameOrChainId?: String | null;
}

/* URI: "ens/ethereum.web3api.eth" */
export interface Ethereum_TxOverrides {
gasLimit?: BigInt | undefined;
gasPrice?: BigInt | undefined;
value?: BigInt | undefined;
gasLimit?: BigInt | null;
gasPrice?: BigInt | null;
value?: BigInt | null;
}

/* URI: "ens/ethereum.web3api.eth" */
Expand All @@ -48,15 +48,15 @@ export interface Ethereum_StaticTxResult {

/* URI: "ens/ethereum.web3api.eth" */
export interface Ethereum_TxRequest {
to?: String | undefined;
from?: String | undefined;
nonce?: UInt32 | undefined;
gasLimit?: BigInt | undefined;
gasPrice?: BigInt | undefined;
data?: String | undefined;
value?: BigInt | undefined;
chainId?: UInt32 | undefined;
type?: UInt32 | undefined;
to?: String | null;
from?: String | null;
nonce?: UInt32 | null;
gasLimit?: BigInt | null;
gasPrice?: BigInt | null;
data?: String | null;
value?: BigInt | null;
chainId?: UInt32 | null;
type?: UInt32 | null;
}

/* URI: "ens/ethereum.web3api.eth" */
Expand All @@ -65,7 +65,7 @@ export interface Ethereum_TxReceipt {
from: String;
contractAddress: String;
transactionIndex: UInt32;
root?: String | undefined;
root?: String | null;
gasUsed: BigInt;
logsBloom: String;
transactionHash: String;
Expand All @@ -77,7 +77,7 @@ export interface Ethereum_TxReceipt {
effectiveGasPrice: BigInt;
byzantium: Boolean;
type: UInt32;
status?: UInt32 | undefined;
status?: UInt32 | null;
}

/* URI: "ens/ethereum.web3api.eth" */
Expand Down Expand Up @@ -108,17 +108,17 @@ export interface Ethereum_EventNotification {
interface Ethereum_Query_Input_callContractView extends Record<string, unknown> {
address: String;
method: String;
args?: Array<String> | undefined;
connection?: Types.Ethereum_Connection | undefined;
args?: Array<String> | null;
connection?: Types.Ethereum_Connection | null;
}

/* URI: "ens/ethereum.web3api.eth" */
interface Ethereum_Query_Input_callContractStatic extends Record<string, unknown> {
address: String;
method: String;
args?: Array<String> | undefined;
connection?: Types.Ethereum_Connection | undefined;
txOverrides?: Types.Ethereum_TxOverrides | undefined;
args?: Array<String> | null;
connection?: Types.Ethereum_Connection | null;
txOverrides?: Types.Ethereum_TxOverrides | null;
}

/* URI: "ens/ethereum.web3api.eth" */
Expand All @@ -129,39 +129,39 @@ interface Ethereum_Query_Input_encodeParams extends Record<string, unknown> {

/* URI: "ens/ethereum.web3api.eth" */
interface Ethereum_Query_Input_getSignerAddress extends Record<string, unknown> {
connection?: Types.Ethereum_Connection | undefined;
connection?: Types.Ethereum_Connection | null;
}

/* URI: "ens/ethereum.web3api.eth" */
interface Ethereum_Query_Input_getSignerBalance extends Record<string, unknown> {
blockTag?: BigInt | undefined;
connection?: Types.Ethereum_Connection | undefined;
blockTag?: BigInt | null;
connection?: Types.Ethereum_Connection | null;
}

/* URI: "ens/ethereum.web3api.eth" */
interface Ethereum_Query_Input_getSignerTransactionCount extends Record<string, unknown> {
blockTag?: BigInt | undefined;
connection?: Types.Ethereum_Connection | undefined;
blockTag?: BigInt | null;
connection?: Types.Ethereum_Connection | null;
}

/* URI: "ens/ethereum.web3api.eth" */
interface Ethereum_Query_Input_getGasPrice extends Record<string, unknown> {
connection?: Types.Ethereum_Connection | undefined;
connection?: Types.Ethereum_Connection | null;
}

/* URI: "ens/ethereum.web3api.eth" */
interface Ethereum_Query_Input_estimateTransactionGas extends Record<string, unknown> {
tx: Types.Ethereum_TxRequest;
connection?: Types.Ethereum_Connection | undefined;
connection?: Types.Ethereum_Connection | null;
}

/* URI: "ens/ethereum.web3api.eth" */
interface Ethereum_Query_Input_estimateContractCallGas extends Record<string, unknown> {
address: String;
method: String;
args?: Array<String> | undefined;
connection?: Types.Ethereum_Connection | undefined;
txOverrides?: Types.Ethereum_TxOverrides | undefined;
args?: Array<String> | null;
connection?: Types.Ethereum_Connection | null;
txOverrides?: Types.Ethereum_TxOverrides | null;
}

/* URI: "ens/ethereum.web3api.eth" */
Expand All @@ -184,16 +184,16 @@ interface Ethereum_Query_Input_awaitTransaction extends Record<string, unknown>
txHash: String;
confirmations: UInt32;
timeout: UInt32;
connection?: Types.Ethereum_Connection | undefined;
connection?: Types.Ethereum_Connection | null;
}

/* URI: "ens/ethereum.web3api.eth" */
interface Ethereum_Query_Input_waitForEvent extends Record<string, unknown> {
address: String;
event: String;
args?: Array<String> | undefined;
timeout?: UInt32 | undefined;
connection?: Types.Ethereum_Connection | undefined;
args?: Array<String> | null;
timeout?: UInt32 | null;
connection?: Types.Ethereum_Connection | null;
}

/* URI: "ens/ethereum.web3api.eth" */
Expand Down
Loading

0 comments on commit a1fc101

Please sign in to comment.