Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/datetime-interface-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ jobs:
name: datetime-interface-cd
if: |
github.event.pull_request.merged &&
startsWith(github.event.pull_request.title, '[CD]') == true &&
github.event.pull_request.user.login != 'github-actions'
endsWith(github.event.pull_request.title, '/workflows/publish')
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
Expand Down Expand Up @@ -40,6 +39,8 @@ jobs:
- name: Deploy
run: yarn deploy
working-directory: ./interface
env:
POLYWRAP_WRAPSCAN_AUTH_HEADER_PROD: ${{secrets.POLYWRAP_WRAPSCAN_AUTH_HEADER_PROD}}

- name: PR New URI
uses: peter-evans/create-pull-request@v3
Expand Down
13 changes: 13 additions & 0 deletions interface/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Datetime Interface

The datetime interface defines the method with which other wraps can access the current Unix timestamp of the system.

It is usually implemented as a plugin.

## Implementations

Example implementations of this interface can be found in the [Datetime Wrap repository](https://github.com/polywrap/datetime).

## Support

For any questions or problems related to this wrap or Polywrap at large, please visit our [Discord](https://discord.polywrap.io).
7 changes: 3 additions & 4 deletions interface/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"name": "@polywrap/datetime-interface",
"description": "Polywrap Datetime Interface",
"version": "1.0.0",
"name": "datetime",
"private": true,
"scripts": {
"build": "npx polywrap build",
"deploy": "npx polywrap deploy -o deployment.json"
},
"devDependencies": {
"polywrap": "~0.10.3"
"polywrap": "0.11.0-pre.4"
},
"publishConfig": {
"access": "public"
Expand Down
11 changes: 10 additions & 1 deletion interface/polywrap.deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
format: 0.2.0
format: 0.4.0
primaryJobName: ipfs_deploy
jobs:
ipfs_deploy:
steps:
Expand All @@ -7,3 +8,11 @@ jobs:
uri: fs/./build
config:
gatewayUri: https://ipfs.wrappers.io
- name: http_deploy
package: http
uri: $$ipfs_deploy
config:
postUrl: https://wraps.wrapscan.io/r/polywrap/datetime@1.0.0
headers:
- name: Authorization
value: $POLYWRAP_WRAPSCAN_AUTH_HEADER_PROD
5 changes: 5 additions & 0 deletions interface/polywrap.docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
format: 0.1.0
description: Datetime interface
website: https://polywrap.io
repository: https://github.com/polywrap/datetime
readme: ./README.md
5 changes: 3 additions & 2 deletions interface/polywrap.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
format: 0.3.0
format: 0.5.0
project:
name: datetime-interface
type: interface
source:
schema: ./polywrap.graphql
resources: ./resources
extensions:
docs: ./polywrap.docs.yaml
32 changes: 0 additions & 32 deletions interface/resources/README.md

This file was deleted.

Loading