Skip to content

Commit

Permalink
Updates Signer type to integrate CLI (#19)
Browse files Browse the repository at this point in the history
* updates Signer type to integrate CLI

* adds GitHub workflow to test contracts
  • Loading branch information
koshikraj authored Sep 28, 2021
1 parent b21e6be commit 29de446
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Safient Core CD

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm install
- run: npm run build
- run: npm run test-contract
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Safient Claims SDK
# Safient Contracts SDK

JavaScript SDK to manage and interact with the safe claims on Safient protocol.

Expand Down
2 changes: 1 addition & 1 deletion constants.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { utils } = require('ethers');

const network = 'polygontestnet';
const network = 'localhost';

// local
const arbitratorContract = 'AutoAppealableArbitrator';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@safient/contracts",
"version": "0.1.7",
"version": "0.1.8",
"description": "JavaScript SDK to manage and interact with the safe claims on Safient protocol.",
"keywords": [
"Web3",
Expand Down
3 changes: 2 additions & 1 deletion src/types/Types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { JsonRpcSigner } from '@ethersproject/providers';
import { ContractInterface } from '@ethersproject/contracts';
import { BigNumber } from '@ethersproject/bignumber';
import { Wallet } from '@ethersproject/wallet';

export type Safe = {
id: string;
Expand All @@ -27,7 +28,7 @@ export type Claim = {

export type ContractAddress = string;
export type ContractABI = ContractInterface | object[];
export type Signer = JsonRpcSigner;
export type Signer = Wallet | JsonRpcSigner;

export type RecoveryProof = {
secretHash: string;
Expand Down

0 comments on commit 29de446

Please sign in to comment.