1.0.23 • Published 2 months ago

kalypso-sdk v1.0.23

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

Kalypso SDK

Installation

npm i kalypso-sdk

Environment variable (.env) file setup

PRIVATE_KEY= [YOUR PRIVATE KEY]
RPC= [RPC LINK]

Usage

Note : Tested with ethers : 6.6.6

Create a new ASK :

const askRequest = await createAsk({
    marketId: "0x027f76939e5bed90c45d0d1809796f033f6481011d554502d4c63f7878c9ee83",
    reward,
    expiry: 100000,
    timeTakenForProofGeneration: 100000,
    deadline: 10000,
    proverData: inputBytes,
    proofMarketPlaceAddress,
    inputAndProofFormatContractAddress: "0xA0Fbd852C6226b3E97eA141c72713dCb851DaCdE",
    wallet: wallet,
    secrets: { secret: encryptedSecret, acl: aclHex },
});

Get proof for a ASK :

let proof_data = await getProof({
    proofMarketPlaceAddress:proofMarketPlaceAddress,
    blockNumber:block_number,
    wallet:wallet
});
1.0.22

2 months ago

1.0.21

2 months ago

1.0.23

2 months ago

1.0.19

6 months ago

1.0.18

6 months ago

1.0.20

6 months ago

1.0.17

7 months ago

1.0.16

7 months ago

1.0.15

7 months ago

1.0.14

7 months ago

1.0.13

7 months ago

1.0.12

8 months ago

1.0.11

8 months ago

1.0.10

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago