Skip to content

Latest commit

 

History

History
45 lines (18 loc) · 1019 Bytes

README.md

File metadata and controls

45 lines (18 loc) · 1019 Bytes

BNPL SDK

Pre-requisites

Deploy the BNPL Marketplace contract and put the address of the proxy in ./data/contractsConfig.json

Fetch the result of the CRA server and put it in inputOrder.json

On the TellerV2 contract that the BNPL marketplace is built on top of, be sure to set the trustedForwarder for the market# to be the BNPL marketplace proxy contract. Also be sure to make the lender and borrower addresses approve the BNPL marketplace proxy contract as a trusted forwarder.

Methodology

  • Configure 'data/craParams.json' to specify how the BNPL transaction should be constructed

  • Use this configuration to fetch a Cra Server response. It is stored in data/craResponse.json

yarn task fetchCraResponse

  • submit that craResponse to the BNPL smart contract

yarn task callExecute

Run Tasks

yarn task callExecute

Test NFTs

GOERLI

Test 1155: 0x3af8Ccd154490B61d6A3CA06599517086fD746E1

Test 721: 0x305305c40d3de1c32f4c3d356abc72bcc6dcf9dc

notes