This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { expect } from 'chai' // Keep this at the beginning of the file along with the other imports | |
it('Should write an article with 1 word successfully', async () => { | |
const deployerKeypair = anchor.web3.Keypair.generate() | |
const personThatPays = program.provider.wallet | |
// Add your test here | |
await program.rpc.initialize({ | |
accounts: { | |
article: deployerKeypair.publicKey, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use anchor_lang::prelude::*; | |
declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"); | |
#[program] | |
pub mod solana_global_article { | |
use super::*; | |
pub fn initialize(ctx: Context<Initialize>) -> ProgramResult { | |
// Get the article | |
let article_account = &mut ctx.accounts.article; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "solana-global-article" | |
version = "0.1.0" | |
description = "Created with Anchor" | |
edition = "2018" | |
[lib] | |
crate-type = ["cdylib", "lib"] | |
name = "solana_global_article" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use anchor_lang::prelude::*; | |
declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"); | |
#[program] | |
pub mod solana_global_article { | |
use super::*; | |
pub fn initialize(ctx: Context<Initialize>) -> ProgramResult { | |
Ok(()) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity 0.6.2; | |
pragma experimental ABIEncoderV2; | |
import 'https://github.com/provable-things/ethereum-api/blob/master/provableAPI_0.6.sol'; | |
contract Insurance is usingProvable { | |
struct Policy { | |
uint256 id; | |
uint256 price; | |
string url; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 1, | |
"description": "We are delighted You have chosen Us for Your insurance needs and are confident that You will be satisfied with the level of service and insurance protection You receive. In the following pages and the attached schedule, You willlearn everything You need to know about Your insurance Policy and how to contact Us in case You have a claim." | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity 0.6.2; | |
pragma experimental ABIEncoderV2; | |
import 'https://github.com/provable-things/ethereum-api/blob/master/provableAPI_0.6.sol'; | |
contract Insurance is usingProvable { | |
struct Policy { | |
uint256 id; | |
uint256 price; | |
string url; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Steps to earn money by closing expired or under-collateralized loans. | |
1. Clone the repository https://github.com/merlox/cdl-loans-expirer by executing this command: | |
`git clone https://github.com/merlox/cdl-loans-expirer` | |
2. Install dependencies with `yarn install` or `npm install` note that you must have node.js installed https://nodejs.org/en/ | |
3. Then create a file inside the project folder called `.secret` and paste your mnemonic phrase inside. | |
This will be used to give you the rewards to your address. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Learn to setup webpack. | |
2. Learn to create react files. | |
3. Setup package.json scripts. | |
4. Setup a server.js server. | |
5. Updating state, using effect and importing files. | |
To learn react: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mongoose: activesequences.insertOne({ status: 'active', recipientsReplied: [], currentSequence: 1, triggers: [ 1 ], _id: ObjectId("5dbc4212c258b00f44978640"), name: 'merunas', owner: ObjectId("5d9f2e642cbd71300c861254"), emails: [ { links: [], _id: ObjectId("5dbc4212c258b00f44978642"), subject: 'dsfgsd', content: '<html><head></head><body><p>gsdfg</p></body></html>', attachments: [], templateId: '5db962025c3fe60a199c3a8a' }, { links: [], _id: ObjectId("5dbc4212c258b00f44978641"), subject: 'ppp', content: '<div><p>ppp</p>\n' + '<p><a href="https://staging.palawan.io/stats/link-click?token=19489000598093750&to=https://google.com/">https://google.com</a></p>\n' + '<p><a href="https://staging.palawan.io/stats/link-click?token=41436211247327544&to=https://google.com/">https://google.com</a></p></div>', attachments: [], templateId: '5db85b9c4c0d641233f74b34' } ], recipients: { to: [ '[email protected]' ], cc: [], bcc: [] }, sequenceId: '5dbc3e90c258b00f44978636', threadId: '16e276217a012a09', createdAt: ne |