Skip to content

Command line tools for interacting with ANPL through an RPC connection to the EVM

Notifications You must be signed in to change notification settings

teller-protocol/anpl-cli

Repository files navigation

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

About

Command line tools for interacting with ANPL through an RPC connection to the EVM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •