This file contains hidden or 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
// Collection author | |
const auth = 'arpegiator21'; | |
// Collection name (eosio name format) | |
const colName = 'arpecol11111'; | |
// New collection fee | |
const marketFee = 0.08; | |
/** |
This file contains hidden or 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
// Collection author | |
const auth = 'arpegiator21'; | |
// Collection name (eosio name format) | |
const colName = 'arpecol11111'; | |
// New authorized account to add or remove to notify list | |
const newAcc = 'arpegiator25'; | |
// Set Action: True -> add / False -> remove |
This file contains hidden or 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
// Collection author | |
const auth = 'arpegiator21'; | |
// Collection name (eosio name format) | |
const colName = 'arpecol11111'; | |
// New authorized account to add | |
const newAuth = 'arpegiator25'; | |
// Set Action: True -> add / False -> remove |
This file contains hidden or 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
/** | |
* Modify data collection | |
*/ | |
const modifyColData = async ( | |
auth, // Authorized user | |
colName, // Collection name | |
data // New data collection | |
) => { | |
try { | |
const result = await apiRpc.transact( |
This file contains hidden or 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
// Collection author | |
const auth = 'arpegiator21'; | |
// Collection name (eosio name format) | |
const colName = 'arpecol11111'; | |
// New data | |
const data = [ | |
{ | |
key: "name", |
This file contains hidden or 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
/** | |
* Create AtomicAssets collection | |
*/ | |
const createCol = async ( | |
auth, // Author account | |
name, // Collection name | |
notify, // Allow notify? | |
authorizedAccs, // Array authorized accounts | |
notifyAccs, // Array accounts to notify | |
marketFee, // Market fee |
This file contains hidden or 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
/* | |
Collection definition | |
*/ | |
// Collection author | |
const auth = 'arpegiator21'; | |
// Collection name (eosio name format) | |
const colName = 'arpecol11111'; |
This file contains hidden or 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
const { Api, JsonRpc } = require("eosjs"); | |
const { JsSignatureProvider } = require("eosjs/dist/eosjs-jssig"); | |
const fetch = require("node-fetch"); | |
require("dotenv").config({ | |
path: "./.env.keys", | |
}); | |
const signatureProvider = new JsSignatureProvider([process.env.arpegiator21]); |
This file contains hidden or 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
const { JsonRpc } = require('eosjs'); | |
const fetch = require('node-fetch'); | |
// creamos una conexión con un API de acceso a WAX Blockchain | |
const rpc = new JsonRpc('https://api.waxsweden.org', { fetch }); | |
/** | |
* | |
* @param {*} assets Número de NFTs para los cuales queremos comprar RAM | |
*/ | |
function ramPrice(assets) { |
This file contains hidden or 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
#include <donaciones.hpp> | |
ACTION donaciones::entrada( name patreon, double cantidad){ | |
require_auth(get_self()); | |
// Comprobamos que la cantidad sea > 0 | |
check(cantidad > 0, "No se permiten entradas sin valor!"); | |
NewerOlder