-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #497 from polywrap/prealpha-dev
prep 0.0.1-prealpha.46
- Loading branch information
Showing
16 changed files
with
297 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.0.1-prealpha.45 | ||
0.0.1-prealpha.46 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
packages/js/plugins/http/src/__tests__/e2e/integration/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
build | ||
node_modules | ||
w3 |
20 changes: 20 additions & 0 deletions
20
packages/js/plugins/http/src/__tests__/e2e/integration/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "http-js-plugin-integration-test", | ||
"description": "HTTP JS Plugin Integration Test", | ||
"private": true, | ||
"version": "0.0.1-prealpha.45", | ||
"scripts": { | ||
"build": "yarn build:web3api", | ||
"build:web3api": "npx w3 build", | ||
"test:env:up": "npx w3 test-env up", | ||
"test:env:down": "npx w3 test-env down", | ||
"deploy": "yarn deploy:web3api", | ||
"deploy:web3api": "npx w3 build --ipfs http://localhost:5001 --test-ens simplestorage.eth" | ||
}, | ||
"dependencies": { | ||
"@web3api/wasm-as": "0.0.1-prealpha.45" | ||
}, | ||
"devDependencies": { | ||
"@web3api/cli": "0.0.1-prealpha.45" | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
packages/js/plugins/http/src/__tests__/e2e/integration/src/query/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { | ||
HTTP_Query, | ||
HTTP_Response, | ||
Input_get, | ||
Input_post, | ||
} from "./w3"; | ||
|
||
export function get(input: Input_get): HTTP_Response | null { | ||
return HTTP_Query.get({ | ||
url: input.url, | ||
request: input.request | ||
}); | ||
} | ||
|
||
export function post(input: Input_post): HTTP_Response | null { | ||
return HTTP_Query.post({ | ||
url: input.url, | ||
request: input.request | ||
}); | ||
} |
13 changes: 13 additions & 0 deletions
13
packages/js/plugins/http/src/__tests__/e2e/integration/src/query/schema.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#import { Query, Request, Response } into HTTP from "w3://ens/http.web3api.eth" | ||
|
||
type Query { | ||
get( | ||
url: String! | ||
request: HTTP_Request | ||
): HTTP_Response | ||
|
||
post( | ||
url: String! | ||
request: HTTP_Request | ||
): HTTP_Response | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/js/plugins/http/src/__tests__/e2e/integration/web3api.build.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
format: 0.0.1-prealpha.2 | ||
config: | ||
node_version: "14.16.0" | ||
linked_packages: | ||
- name: "@web3api/wasm-as" | ||
path: ../../../../../../../wasm/as |
7 changes: 7 additions & 0 deletions
7
packages/js/plugins/http/src/__tests__/e2e/integration/web3api.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
format: 0.0.1-prealpha.5 | ||
build: ./web3api.build.yaml | ||
language: wasm/assemblyscript | ||
modules: | ||
query: | ||
schema: ./src/query/schema.graphql | ||
module: ./src/query/index.ts |
Oops, something went wrong.