Skip to content

Latest commit

 

History

History
124 lines (96 loc) · 9.17 KB

File metadata and controls

124 lines (96 loc) · 9.17 KB

Fetching wrap library index @ https://raw.githubusercontent.com/polywrap/polygpt/testing/wrap-library

    ____        __      __________  ______
   / __ \____  / /_  __/ ____/ __ \/_  __/
  / /_/ / __ \/ / / / / / __/ /_/ / / /   
 / ____/ /_/ / / /_/ / /_/ / ____/ / /    
/_/    \____/_/\__, /\____/_/     /_/     
              /____/                      

Support: https://discord.polywrap.io

Known Wraps: [ "ethers", "http", "ipfs", "filesystem", "web-scraper", "ens", "safe-factory" ]

System: Please enter your main goal:

User: Summarize the contents of https://polywrap.io in 100 words, and write what you learn to a polywrap.md file

System: Do you wish to execute the following function?

LearnWrap ({
  "name": "web-scraper"
})

(Y/N)

User: y

Learnt wrap: web-scraper

System: Do you wish to execute the following function?

InvokeWrap ({
  "uri": "ipfs/QmXKA6qc3TMiBZn5DyydYwdc9o2uSShqFdV7yTgYjF2xdu",
  "method": "get_text",
  "args": {
    "url": "https://polywrap.io"
  }
})

(Y/N)

User: y

Function: Args:

{
  "uri": "ipfs/QmXKA6qc3TMiBZn5DyydYwdc9o2uSShqFdV7yTgYjF2xdu",
  "method": "get_text",
  "args": {
    "url": "https://polywrap.io"
  }
}

Result:

"Polywrap is a framework for building portable web3 SDKs. Wrappers let you compose web3 like never before. Simply include the Polywrap client in your app to seamlessly read and write to a variety of protocols from a secure WebAssembly VM. Examples are for illustrative purposes only. Add liquidity to Uniswap in TypeScript. uniswap-pool.ts uniswap-pool.py uniswap-pool.rs Add liquidity to Uniswap in TypeScript. uniswap-pool.ts uniswap-pool.py uniswap-pool.rs Add liquidity to Uniswap in TypeScript. uniswap-pool.ts uniswap-pool.py uniswap-pool.rs Add liquidity to Uniswap in TypeScript. uniswap-pool.ts uniswap-pool.py uniswap-pool.rs Instead of building a patchwork of SDKs in different languages, just build one wrapper that developers can easily integrate anywhere. Write one SDK that can port your web3 logic to any execution environment. Integrating web3 is finally as easy as interacting with web APIs. Sandboxing keeps users safe by isolating wrappers from application memory. Docs Github Discord Twitter Blog Eyes Handbook Forum Snapshot Code Social Governance Portable User-Friendly Secure Built and Backed By the Best                 Composable Future A Universal Interface   uniswap-pool.py uniswap-pool.rs 2   pool_address :   \"0x...\" , 2   pool_address :   \"0x...\" , 3   wei :   \"12...\" , 3   wei :   \"12...\" , 4    ... 4    ... 5 } ) ; 5 } ) ;  Add liquidity to Uniswap in TypeScript. uniswap-pool.ts uniswap-pool.py uniswap-pool.rs 1 await  uniswap . add_liquidity ( { 2   pool_address :   \"0x...\" , 3   wei :   \"12...\" , 4    ... 5 } ) ; uniswap-pool.ts uniswap-pool.py uniswap-pool.rs 1 await  uniswap . add_liquidity ( { 2   pool_address :   \"0x...\" , 3   wei :   \"12...\" , 4    ... 5 } ) ; uniswap-pool.ts uniswap-pool.py uniswap-pool.rs uniswap-pool.ts uniswap-pool.py uniswap-pool.rs uniswap-pool.ts uniswap-pool.py uniswap-pool.rs  1 await  uniswap . add_liquidity ( { 2   pool_address :   \"0x...\" , 3   wei :   \"12...\" , 4    ... 5 } ) ; 1 await  uniswap . add_liquidity ( { 2   pool_address :   \"0x...\" , 3   wei :   \"12...\" , 4    ... 5 } ) ; 1 await  uniswap . add_liquidity ( { 1 await  uniswap . add_liquidity ( { 2   pool_address :   \"0x...\" , 2   pool_address :   \"0x...\" , 3   wei :   \"12...\" , 3   wei :   \"12...\" , 4    ... 4    ... 5 } ) ; 5 } ) ;  Add liquidity to Uniswap in TypeScript. uniswap-pool.ts uniswap-pool.py uniswap-pool.rs 1 await  uniswap . add_liquidity ( { 2   pool_address :   \"0x...\" , 3   wei :   \"12...\" , 4    ... 5 } ) ; Add liquidity to Uniswap in TypeScript. uniswap-pool.ts uniswap-pool.py uniswap-pool.rs 1 await  uniswap . add_liquidity ( { 2   pool_address :   \"0x...\" , 3   wei :   \"12...\" , 4    ... 5 } ) ; uniswap-pool.ts uniswap-pool.py uniswap-pool.rs 1 await  uniswap . add_liquidity ( { 2   pool_address :   \"0x...\" , 3   wei :   \"12...\" , 4    ... 5 } ) ; uniswap-pool.ts uniswap-pool.py uniswap-pool.rs uniswap-pool.ts uniswap-pool.py uniswap-pool.rs uniswap-pool.ts uniswap-pool.py uniswap-pool.rs  1 await  uniswap . add_liquidity ( { 2   pool_address :   \"0x...\" , 3   wei :   \"12...\" , 4    ... 5 } ) ; 1 await  uniswap . add_liquidity ( { 2   pool_address :   \"0x...\" , 3   wei :   \"12...\" , 4    ... 5 } ) ; 1 await  uniswap . add_liquidity ( { 1 await  uniswap . add_liquidity ( { 2   pool_address :   \"0x...\" , 2   pool_address :   \"0x...\" , 3   wei :   \"12...\" , 3   wei :   \"12...\" , 4    ... 4    ... 5 } ) ; 5 } ) ;  Add liquidity to Uniswap in TypeScript. uniswap-pool.ts uniswap-pool.py uniswap-pool.rs 1 await  uniswap . add_liquidity ( { 2   pool_address :   \"0x...\" , 3   wei :   \"12...\" , 4    ... 5 } ) ; Add liquidity to Uniswap in TypeScript. uniswap-pool.ts uniswap-pool.py uniswap-pool.rs 1 await  uniswap . add_liquidity ( { 2   pool_address :   \"0x...\" , 3   wei :   \"12...\" , 4    ... 5 } ) ; uniswap-pool.ts uniswap-pool.py uniswap-pool.rs 1 await  uniswap . add_liquidity ( { 2   pool_address :   \"0x...\" , 3   wei :   \"12...\" , 4    ... 5 } ) ; uniswap-pool.ts uniswap-pool.py uniswap-pool.rs uniswap-pool.ts uniswap-pool.py uniswap-pool.rs uniswap-pool.ts uniswap-pool.py uniswap-pool.rs  1 await  uniswap . add_liquidity ( { 2   pool_address :   \"0x...\" , 3   wei :   \"12...\" , 4    ... 5 } ) ; 1 await  uniswap . add_liquidity ( { 2   pool_address :   \"0x...\" , 3   wei :   \"12...\" , 4    ... 5 } ) ; 1 await  uniswap . add_liquidity ( { 1 await  uniswap . add_liquidity ( { 2   pool_address :   \"0x...\" , 2   pool_address :   \"0x...\" , 3   wei :   \"12...\" , 3   wei :   \"12...\" , 4    ... 4    ... 5 } ) ; 5 } ) ;         Break Down Software Silos    WRAPPERS ARE WEB3-NATIVE SDKs          The Wrapper Ecosystem                                                                Join the Composable Future       Social Discord Twitter Blog Eyes Social Discord Twitter Blog Eyes Social  Discord Twitter Blog Eyes Governance Handbook Forum Snapshot Governance Handbook Forum Snapshot Governance  Handbook Forum Snapshot Enter The 1 await  uniswap . add_liquidity ( { await uniswap . add_liquidity ( {  2 pool_address :   \"0x...\" , pool_address :  \"0x...\" ,  3 wei :   \"12...\" , wei :  \"12...\" ,  4 ...  ...  5 } ) ;  } ) ; 1 await  uniswap . add_liquidity ( { await uniswap . add_liquidity ( {  2 pool_address :   \"0x...\" , pool_address :  \"0x...\" ,  3 wei :   \"12...\" , wei :  \"12...\" ,  4 ...  ...  5 } ) ;  } ) ; 1 await  uniswap . add_liquidity ( { await uniswap . add_liquidity ( {  2 pool_address :   \"0x...\" , pool_address :  \"0x...\" ,  3 wei :   \"12...\" , wei :  \"12...\" ,  4 ...  ...  5 } ) ;  } ) ; 1 await  uniswap . add_liquidity ( { await uniswap . add_liquidity ( {  2 pool_address :   \"0x...\" , pool_address :  \"0x...\" ,  3 wei :   \"12...\" , wei :  \"12...\" ,  4 ...  ...  5 } ) ;  } ) ;"

System: Do you wish to execute the following function?

LearnWrap ({
  "name": "filesystem"
})

(Y/N)

User: y

Learnt wrap: filesystem

System: Do you wish to execute the following function?

InvokeWrap ({
  "uri": "plugin/file-system@1.0.0",
  "method": "writeFile",
  "args": {
    "path": "polywrap.md",
    "data": "Polywrap is a framework for building portable web3 SDKs. It allows seamless reading and writing to various protocols from a secure WebAssembly VM. Instead of building multiple SDKs in different languages, developers can build one wrapper that can be integrated anywhere. This makes integrating web3 as easy as interacting with web APIs. Polywrap also ensures user safety by isolating wrappers from application memory. It is backed by a strong community and offers a universal interface for web3 interactions."
  }
})

(Y/N)

User: y

Function: Args:

{
  "uri": "plugin/file-system@1.0.0",
  "method": "writeFile",
  "args": {
    "path": "/home/jelli/Dev/Repos/wrap/PolyGPT/workspace/polywrap.md",
    "data": "Polywrap is a framework for building portable web3 SDKs. It allows seamless reading and writing to various protocols from a secure WebAssembly VM. Instead of building multiple SDKs in different languages, developers can build one wrapper that can be integrated anywhere. This makes integrating web3 as easy as interacting with web APIs. Polywrap also ensures user safety by isolating wrappers from application memory. It is backed by a strong community and offers a universal interface for web3 interactions."
  }
}

Result:

true

Assistant: I have successfully summarized the contents of https://polywrap.io and written it to a file named "polywrap.md". The summary is as follows:

"Polywrap is a framework for building portable web3 SDKs. It allows seamless reading and writing to various protocols from a secure WebAssembly VM. Instead of building multiple SDKs in different languages, developers can build one wrapper that can be integrated anywhere. This makes integrating web3 as easy as interacting with web APIs. Polywrap also ensures user safety by isolating wrappers from application memory. It is backed by a strong community and offers a universal interface for web3 interactions."