Skip to content

Commit

Permalink
test(cli/plugins): green tests with requestAccounts method in ethereu…
Browse files Browse the repository at this point in the history
…m plugin
  • Loading branch information
cbrzn committed Jul 27, 2022
1 parent 8a938ab commit a3cf05c
Show file tree
Hide file tree
Showing 12 changed files with 96 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ type Ethereum_Module @imported(
connection: Ethereum_Connection
): Ethereum_Network!

requestAccounts(
connection: Ethereum_Connection
): [String!]!

callContractMethod(
address: String!
method: String!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ type Ethereum_Module @imported(
connection: Ethereum_Connection
): Ethereum_Network!
requestAccounts(
connection: Ethereum_Connection
): [String!]!
callContractMethod(
address: String!
method: String!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,11 @@ interface Ethereum_Module_Args_getNetwork extends Record<string, unknown> {
connection?: Types.Ethereum_Connection | null;
}

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

/* URI: "ens/ethereum.polywrap.eth" */
interface Ethereum_Module_Args_callContractMethod extends Record<string, unknown> {
address: Types.String;
Expand Down Expand Up @@ -559,6 +564,17 @@ export const Ethereum_Module = {
});
},

requestAccounts: async (
args: Ethereum_Module_Args_requestAccounts,
client: Client
): Promise<InvokeResult<Array<Types.String>>> => {
return client.invoke<Array<Types.String>>({
uri: "ens/ethereum.polywrap.eth",
method: "requestAccounts",
args
});
},

callContractMethod: async (
args: Ethereum_Module_Args_callContractMethod,
client: Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ type Ethereum_Module @imported(
connection: Ethereum_Connection
): Ethereum_Network!

requestAccounts(
connection: Ethereum_Connection
): [String!]!

callContractMethod(
address: String!
method: String!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ type Ethereum_Module @imported(
connection: Ethereum_Connection
): Ethereum_Network!
requestAccounts(
connection: Ethereum_Connection
): [String!]!
callContractMethod(
address: String!
method: String!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,11 @@ interface Ethereum_Module_Args_getNetwork extends Record<string, unknown> {
connection?: Types.Ethereum_Connection | null;
}

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

/* URI: "ens/ethereum.polywrap.eth" */
interface Ethereum_Module_Args_callContractMethod extends Record<string, unknown> {
address: Types.String;
Expand Down Expand Up @@ -559,6 +564,17 @@ export const Ethereum_Module = {
});
},

requestAccounts: async (
args: Ethereum_Module_Args_requestAccounts,
client: Client
): Promise<InvokeResult<Array<Types.String>>> => {
return client.invoke<Array<Types.String>>({
uri: "ens/ethereum.polywrap.eth",
method: "requestAccounts",
args
});
},

callContractMethod: async (
args: Ethereum_Module_Args_callContractMethod,
client: Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ type Ethereum_Module @imported(
connection: Ethereum_Connection
): Ethereum_Network!

requestAccounts(
connection: Ethereum_Connection
): [String!]!

callContractMethod(
address: String!
method: String!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ type Ethereum_Module @imported(
connection: Ethereum_Connection
): Ethereum_Network!
requestAccounts(
connection: Ethereum_Connection
): [String!]!
callContractMethod(
address: String!
method: String!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,11 @@ interface Ethereum_Module_Args_getNetwork extends Record<string, unknown> {
connection?: Types.Ethereum_Connection | null;
}

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

/* URI: "ens/ethereum.polywrap.eth" */
interface Ethereum_Module_Args_callContractMethod extends Record<string, unknown> {
address: Types.String;
Expand Down Expand Up @@ -559,6 +564,17 @@ export const Ethereum_Module = {
});
},

requestAccounts: async (
args: Ethereum_Module_Args_requestAccounts,
client: Client
): Promise<InvokeResult<Array<Types.String>>> => {
return client.invoke<Array<Types.String>>({
uri: "ens/ethereum.polywrap.eth",
method: "requestAccounts",
args
});
},

callContractMethod: async (
args: Ethereum_Module_Args_callContractMethod,
client: Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ type Ethereum_Module @imported(
connection: Ethereum_Connection
): Ethereum_Network!

requestAccounts(
connection: Ethereum_Connection
): [String!]!

callContractMethod(
address: String!
method: String!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ type Ethereum_Module @imported(
connection: Ethereum_Connection
): Ethereum_Network!
requestAccounts(
connection: Ethereum_Connection
): [String!]!
callContractMethod(
address: String!
method: String!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,11 @@ interface Ethereum_Module_Args_getNetwork extends Record<string, unknown> {
connection?: Types.Ethereum_Connection | null;
}

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

/* URI: "ens/ethereum.polywrap.eth" */
interface Ethereum_Module_Args_callContractMethod extends Record<string, unknown> {
address: Types.String;
Expand Down Expand Up @@ -559,6 +564,17 @@ export const Ethereum_Module = {
});
},

requestAccounts: async (
args: Ethereum_Module_Args_requestAccounts,
client: Client
): Promise<InvokeResult<Array<Types.String>>> => {
return client.invoke<Array<Types.String>>({
uri: "ens/ethereum.polywrap.eth",
method: "requestAccounts",
args
});
},

callContractMethod: async (
args: Ethereum_Module_Args_callContractMethod,
client: Client
Expand Down

0 comments on commit a3cf05c

Please sign in to comment.