Compare commits

...

72 Commits

Author SHA1 Message Date
Alex Ant 8611c9bfb0 Автоматическое обновление - 2024-07-09 21:14:51 2024-07-09 21:14:58 +05:00
Alex Ant f725a21e19 Автоматическое обновление - 2024-07-09 20:45:27 2024-07-09 20:45:34 +05:00
Alex Ant 1cfb9824af Автоматическое обновление - 2024-07-09 20:44:52 2024-07-09 20:44:57 +05:00
Alex Ant 6628163ab2 Автоматическое обновление - 2024-07-09 20:36:57 2024-07-09 20:37:03 +05:00
Alex Ant bc5713626e lock 2024-07-09 19:42:02 +05:00
Alex Ant f23f09406b Автоматическое обновление - 2024-07-09 19:35:05 2024-07-09 19:35:13 +05:00
Alex Ant 3187c6026d Автоматическое обновление 2024-07-09 19:23:57 +05:00
Alex Ant fbf3e387b4 Автоматическое обновление 2024-07-09 19:18:49 +05:00
Alex Ant 2e11d991ee push 2024-07-09 18:58:45 +05:00
Alex Ant c7bc5a75cb new types 2024-07-09 18:38:36 +05:00
Alex Ant 267427a027 chore: release v1.0.3 2024-07-08 18:31:14 +05:00
Alex Ant 957d970ce3 chore: release v1.0.2 2024-07-08 13:44:44 +05:00
Alex Ant 4249339b92 chore: release v1.0.1 2024-07-08 11:33:43 +05:00
Alex Ant bb59279eb6 chore: release v1.0.0 2024-07-08 11:25:35 +05:00
Alex Ant 0f6b2d5cb7 release 2024-07-08 11:25:00 +05:00
Alex Ant 3b677628e5 update! 2024-07-08 11:22:30 +05:00
Alex Ant 89ae957020 update cooperative model 2024-07-08 11:08:15 +05:00
Alex Ant 370a9879a2 chore: release v0.5.29 2024-06-28 13:17:52 +05:00
Alex Ant 9738e9ef78 update types 2024-06-28 13:16:42 +05:00
Alex Ant 95a07a5ee5 chore: release v0.5.28 2024-06-28 12:19:46 +05:00
Alex Ant 178800d35f add username 2024-06-28 12:19:17 +05:00
Alex Ant 824704d359 chore: release v0.5.27 2024-06-28 12:01:30 +05:00
Alex Ant 257324387d cooperativeData interface 2024-06-28 12:01:06 +05:00
Alex Ant aeee4e566d chore: release v0.5.26 2024-06-28 11:44:38 +05:00
Alex Ant fa8e831358 update 2024-06-28 11:43:50 +05:00
Alex Ant e02a15a94c chore: release v0.5.25 2024-06-27 08:26:27 +05:00
Alex Ant 91b37f2efc admins page 2024-06-27 08:23:52 +05:00
Alex Ant a117ad0f41 chore: release v0.5.24 2024-06-25 15:29:19 +05:00
Alex Ant 80e7f6c3df update 2024-06-25 15:27:56 +05:00
Alex Ant 8bb02fd71b chore: release v0.5.23 2024-06-25 14:23:57 +05:00
Alex Ant 81a159ddfc update 2024-06-25 14:21:36 +05:00
Alex Ant 04ea8b74b9 chore: release v0.5.22 2024-06-20 18:03:44 +05:00
Alex Ant c0dbc41c6a update 2024-06-20 18:02:50 +05:00
Alex Ant df2a9021cf chore: release v0.5.21 2024-06-19 20:48:10 +05:00
Alex Ant 138510e751 update 2024-06-19 20:47:53 +05:00
Alex Ant 2647718fc2 chore: release v0.5.20 2024-06-15 15:56:30 +05:00
Alex Ant 35910cee3d next 2024-06-15 15:55:39 +05:00
Alex Ant 08da6158c5 chore: release v0.5.19 2024-06-10 17:24:50 +05:00
Alex Ant 86024438a7 registerUser 2024-06-10 17:24:26 +05:00
Alex Ant 28f2946dc2 docs-publish 2024-06-01 16:01:32 +05:00
Alex Ant c0df3f3e1a chore: release v0.5.18 2024-06-01 12:52:54 +05:00
Alex Ant 154505aa1f update 2024-06-01 12:51:16 +05:00
Alex Ant 34792c3942 chore: release v0.5.17 2024-06-01 12:07:43 +05:00
Alex Ant 885f49922a update 2024-06-01 12:06:28 +05:00
Alex Ant ff9f00f893 update 2024-06-01 11:18:41 +05:00
Alex Ant de10df2237 chore: release v0.5.16 2024-06-01 11:07:27 +05:00
Alex Ant 74fc3eacfa update 2024-06-01 11:07:01 +05:00
Alex Ant 4c7dfb1cd5 chore: release v0.5.15 2024-05-28 18:58:11 +05:00
Alex Ant bc13017122 update 2024-05-28 18:57:43 +05:00
Alex Ant dc4d0002b7 chore: release v0.5.14 2024-05-28 15:46:11 +05:00
Alex Ant 852579429e fix 2024-05-28 15:45:34 +05:00
Alex Ant 13a28f653b chore: release v0.5.13 2024-05-28 15:39:30 +05:00
Alex Ant 74216dfd94 decision -> newdecision, etc 2024-05-28 15:38:52 +05:00
Alex Ant b084ac7e01 chore: release v0.5.12 2024-05-22 19:20:20 +05:00
Alex Ant 90d37db911 update type 2024-05-22 19:19:46 +05:00
Alex Ant c2a9def867 chore: release v0.5.11 2024-05-12 13:05:43 +05:00
Alex Ant 663c483cd5 add createaccnt method 2024-05-12 13:04:59 +05:00
Alex Ant 14c44e7874 chore: release v0.5.10 2024-05-12 12:56:59 +05:00
Alex Ant 46d0c98487 chore: release v0.5.9 2024-05-12 12:55:26 +05:00
Alex Ant a35f7b7f89 add some actions 2024-05-12 12:54:54 +05:00
Alex Ant f20fef12ac chore: release v0.5.8 2024-05-12 12:45:25 +05:00
Alex Ant 1531f32af4 refactoring 2024-05-12 12:44:34 +05:00
Alex Ant d49c97b6f2 chore: release v0.5.7 2024-05-10 12:27:20 +05:00
Alex Ant ce930e611a update 2024-05-10 12:26:59 +05:00
Alex Ant 51eb5ae5a4 chore: release v0.5.6 2024-05-10 12:22:33 +05:00
Alex Ant 36656e920c update interfaces 2024-05-10 12:18:50 +05:00
Alex Ant 0fff6207d7 chore: release v0.5.5 2024-05-08 19:01:19 +05:00
Alex Ant 4e7030a2dd patch 2024-05-08 19:00:34 +05:00
Alex Ant b7889d9f42 chore: release v0.5.4 2024-05-08 18:54:57 +05:00
Alex Ant 9aae4e0c26 all namespaces should start with uppercase 2024-05-08 18:54:15 +05:00
Alex Ant 759c43401f chore: release v0.5.3 2024-05-08 18:41:43 +05:00
Alex Ant 060ff2ed0f fix 2024-05-08 18:41:20 +05:00
64 changed files with 5746 additions and 4319 deletions
+23 -23
View File
@@ -54,34 +54,34 @@ jobs:
- name: Typecheck
run: nr typecheck
test:
runs-on: ${{ matrix.os }}
# test:
# runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [lts/*]
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
# strategy:
# matrix:
# node: [lts/*]
# os: [ubuntu-latest, windows-latest, macos-latest]
# fail-fast: false
steps:
- uses: actions/checkout@v3
# steps:
# - uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
# - name: Install pnpm
# uses: pnpm/action-setup@v2
- name: Set node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
# - name: Set node ${{ matrix.node }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node }}
- name: Setup
run: npm i -g @antfu/ni
# - name: Setup
# run: npm i -g @antfu/ni
- name: Install
run: nci
# - name: Install
# run: nci
- name: Build
run: nr build
# - name: Build
# run: nr build
- name: Test
run: nr test
# - name: Test
# run: nr test
+2 -2
View File
@@ -1,2 +1,2 @@
ignore-workspace-root-check=true
shell-emulator=true
# ignore-workspace-root-check=true
# shell-emulator=true
+103 -9
View File
@@ -1,4 +1,4 @@
# cooptypes
# COOPTYPES
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
@@ -6,20 +6,114 @@
[![JSDocs][jsdocs-src]][jsdocs-href]
[![License][license-src]][license-href]
## Обозначения
_username - имя аккаунта пользователя до 12 символов.
Модуль cooptypes содержит информацию для работы со смарт-контрактами кооперативной
экономики. В этом модуле представлены реестры действий и таблиц каждого
смарт-контракта, а также имена аккаунтов для разных блокчейн-сетей.
_coopname - имя аккаунта кооператива до 12 символов.
Каждое действие содержит интерфейс транзакции, информацию о требуемой авторизации и имя действия, которое нужно вызвать на уровне смарт-контракта.
_chairman - имя аккаунта председателя кооператива до 12 символов.
Каждая таблица содержит интерфейс для работы с данными и информацию о пространстве хранения информации в блокчейне.
_admin - имя аккаунта администратора кооператива до 12 символов.
## Как пользоваться
Перейти на страницу документации и ознакомиться с набором пространств имен контрактов, в каджом из которых есть действия и таблицы, а также, интерфейсы данных, имена контрактов, пространств хранения и требуемая авторизация. Всё это доступно из интерфейса IDE после импорта контракта.
_contract - собственное имя аккаунта контракта до 12 символов, в котором вызывается действие.
### Получение таблиц
## License
```
import EosApi from 'eosjs-api';
import {SovietContract} from 'cooptypes'
[MIT](./LICENSE) License © 2024-PRESENT [Alex Ant](https://github.com/dacom-dark-sun)
const options = {
httpEndpoint: 'http://127.0.0.1:8888',
};
const api = new EosApi(options);
const coopname = 'testcoop' - тестовое имя аккаунта кооператива
const _scope = SovietContract.Tables.Boards.scope
```
Получив _scope, необходимо проверить его и подставить переменную:
```
let scope
if (_scope === '_coopname' )
scope = coopname
if (_scope === '_username)
scope = username
... и так далее
```
scope - это области памяти хранения информации в смарт-контракте, которые представлены в виде универсальных параметров _username, _coopname или прочих, в соответствии с которыми необходимо подставить переменную.
Например, для получения таблицы с членами совета кооператива, необходимо подставить область памяти _coopname, или, 'testcoop', как было определено выше для тестового кооператива. Также, вместо _coopname могут быть указаны имена других контрактов или пользователей. Область памяти определяется тем, как именно смарт-контракт хранит информацию.
После подстановок, мы можем получить информацию из таблицы смарт-контракта блокчейна:
```
api.getTableRows(
{
json: true,
code: SovietContract.contractName.production, //извлекаем имя контракта
scope, //подставляем ранее полученную область памяти
table: SovietContract.Tables.Boards.tableName, //извлекаем имя таблицы в контракте
limit: 10, // устанавливаем лимит
// не обязательные параметры запроса
/* upper_bound, // - верхняя граница
lower_bound, // - нижняя граница
key_type, // - тип ключа
index_position, // нижняя граница
*/
})
```
Те же параметры scope, table, code могут быть использованы для получения информации из модуля [COOPARSER](https://github.com/copenomics/cooparser). Последнее используется, когда необходимо получить исторические данные и нет необходимости проверять их актуальность по наличию таблиц в блокчейне. Однако, таблицы в блокчейне необходимо всегда проверять перед отправкой любой транзакции действия. Нельзя полагаться на данные из парсера при подготовке транзакции действия.
### Транзакция действий
Состояние любого смарт-контракта может изменяться только с помощью действий. Для того, чтобы совершить действия, необходимо сформировать и отправить транзакцию с помощью библиотеки eosjs или альтернатив.
```
import { Api, JsonRpc } from 'eosjs';
import { JsSignatureProvider } from 'eosjs/dist/eosjs-jssig';
import { TextEncoder, TextDecoder } from 'util';
import fetch from 'isomorphic-fetch';
const signatureProvider = new JsSignatureProvider([wif]);
const api = new Api({ rpc, signatureProvider, textDecoder: new TextDecoder(), textEncoder: new TextEncoder() });
```
транзакция может содержать в себе массив действий, которые будут применяться последовательно друг за другом. Ниже мы сформируем транзакцию регистрации нового аккаунта, которая может быть вызвана только администратором или председателем кооператива.
```
const result = await eos.transact(
{
actions: [
{
//здесь мы извлекаем имя контракта
account: RegistratorContract.contractName.production,
//здесь мы извлекаем имя действия
name: RegistratorContract.Actions.CreateAccount.actionName,
authorization: [
{
// требуемые авторизации хранятся в RegistratorContract.Actions.CreateAccount.authorizations, откуда могут быть извлечены программно или вручную.
actor: chairman,
permission: 'active',
},
],
data: {
// подставляем данные действия
} as RegistratorContract.Actions.CreateAccount.ICreateAccount,
// здесь извлекаем интерфейс для действия
},
]
}
);
```
## Лицензия
[MIT](./LICENSE) License © 2024-PRESENT [CBS VOSKHOD](https://github.com/copenomics)
<!-- Badges -->
+3
View File
@@ -3,6 +3,9 @@ import antfu from '@antfu/eslint-config'
// @ts-check
export default antfu(
{
typescript: true,
},
{
ignores: [
'docs/**/*',
+10 -9
View File
@@ -1,17 +1,15 @@
{
"name": "cooptypes",
"type": "module",
"version": "0.5.2",
"packageManager": "pnpm@9.0.6",
"version": "1.0.8",
"description": "_description_",
"author": "Alex Ant <dacom.dark.sun@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/copenomics/cooptypes.git"
"url": "git+https://github.com/coopenomics/cooptypes.git"
},
"keywords": [],
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
@@ -19,9 +17,6 @@
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
"*": [
@@ -38,21 +33,27 @@
"dev": "unbuild --stub",
"lint": "eslint .",
"prepublishOnly": "nr build",
"release": "bumpp && npm publish",
"release": "bumpp && npm publish && pnpm gh-pages --nojekyll -d docs",
"start": "esno src/index.ts",
"test": "vitest",
"typecheck": "tsc --noEmit",
"prepare": "simple-git-hooks"
"prepare": "simple-git-hooks",
"doc": "typedoc"
},
"dependencies": {
"@typescript-eslint/parser": "^7.8.0"
},
"devDependencies": {
"@antfu/eslint-config": "^2.16.1",
"@antfu/ni": "^0.21.12",
"@antfu/utils": "^0.7.7",
"@types/express": "^4.17.21",
"@types/node": "^20.12.8",
"better-docs": "^2.7.3",
"bumpp": "^9.4.1",
"eslint": "^9.1.1",
"esno": "^4.7.0",
"gh-pages": "^6.1.1",
"jsdoc": "^4.0.3",
"lint-staged": "^15.2.2",
"pnpm": "^9.0.6",
+4851 -3809
View File
File diff suppressed because it is too large Load Diff
-5
View File
@@ -1,5 +0,0 @@
packages:
- playground
- docs
- packages/*
- examples/*
+4 -4
View File
@@ -1,7 +1,7 @@
export * as createTranslation from './createTranslation'
export * as createDraft from './createDraft'
export * as deleteDraft from './deleteDraft'
export * as editTranslation from './editTranslation'
export * as CreateTranslation from './createTranslation'
export * as CreateDraft from './createDraft'
export * as DeleteDraft from './deleteDraft'
export * as EditTranslation from './editTranslation'
/**
* Имя действия
+1 -1
View File
@@ -15,4 +15,4 @@ export const scope = Actors._contract
* @interface
* Таблица содержит переводы черновиков документов.
*/
export type IDrafts = Draft.IDrafts
export type IDraft = Draft.IOnedraft
+1 -1
View File
@@ -15,4 +15,4 @@ export const scope = Actors._contract
* @interface
* Таблица содержит переводы черновиков документов.
*/
export type ITranslations = Draft.ITranslations
export type ITranslation = Draft.ITranslation
+16 -17
View File
@@ -2,85 +2,84 @@
* @private
* Вызывается контрактом автоматически по ходу выполнения логики для прозрачного добавления фонда накопления.
*/
export * as addAccumulation from './addAccumulation'
export * as AddAccumulation from './addAccumulation'
/**
* @private
* Вызывается контрактом автоматически по ходу выполнения логики для прозрачного списания фонда накопления.
*/
export * as subAccumulation from './subAccumulation'
export * as SubAccumulation from './subAccumulation'
/**
* @private
* Вызывается контрактом автоматически по ходу выполнения логики для прозрачного увеличения паевого фонда.
*/
export * as addCirculation from './addCirculation'
export * as AddCirculation from './addCirculation'
/**
* @private
* Вызывается контрактом автоматически по ходу выполнения логики для прозрачного списания членских взносов по фонду.
*/
export * as addExpense from './addExpense'
export * as AddExpense from './addExpense'
/**
* @private
* Вызывается контрактом _soviet автоматически по ходу выполнения логики для установки решения совета кооператива о использовании фонда.
*/
export * as authorizeWithdraw from './authorizeWithdraw'
export * as AuthorizeWithdraw from './authorizeWithdraw'
/**
* Вызывается администратором для подтверждения о совершении вывода.
*/
export * as completeWithdraw from './completeWithdraw'
export * as CompleteWithdraw from './completeWithdraw'
/**
* Вызывается контрактом автоматически по ходу выполнения логики для возврата идентификатора нового фонда после его создания.
* @private
*/
export * as newFund from './newFund'
export * as NewFund from './newFund'
/**
* Вызывается председателем для создания фонда
*/
export * as createFund from './createFund'
export * as CreateFund from './createFund'
/**
* Вызывается председателем для удаления фонда
*/
export * as deleteFund from './deleteFund'
export * as DeleteFund from './deleteFund'
/**
* Вызывается председателем для редактирования фонда
*/
export * as editFund from './editFund'
export * as EditFund from './editFund'
/**
* Действие используется для создания вывода средств из фонда накопления или по фонду списания, которое
* затем требует решения совета исполнения с помощью действия {@link authorizeWithdraw | авторизации} и последующего подтверждения исполнения с помощью действия {@link completeWithdraw | подтверждения}.
* Действие используется для создания вывода средств из фонда накопления или по фонду списания.
*/
export * as createWithdraw from './createWithdraw'
export * as CreateWithdraw from './createWithdraw'
/**
* Метод используется при создании цифрового кооператива для инициализации его фондов с нулевыми значениями.
* @private
*/
export * as init from './init'
export * as Init from './init'
/**
* Действие вызывается контрактом в процессе исполнения для возврата идентификатора нового списания или вывода.
* @private
*/
export * as newWithdraw from './newWithdraw'
export * as NewWithdraw from './newWithdraw'
/**
* Действие для распределения членского взноса по фондам накопления согласно принятым положениям
* и сохранения остатка после распределения в кошельке для дальнейшего списания по статьям.
* @private
*/
export * as spreadAmount from './spreadAmount'
export * as SpreadAmount from './spreadAmount'
/**
* Метод списания средств из паевого фонда вызывается контрактом шлюза при выполнении поручения на вывод средств с кошелька.
* @private
*/
export * as subCirculation from './subCirculation'
export * as SubCirculation from './subCirculation'
@@ -15,4 +15,4 @@ export const scope = ContractNames._fund
* @interface
* Таблица содержит переводы черновиков документов.
*/
export type IAccumulatedFunds = Fund.IAccfunds
export type IAccumulatedFund = Fund.IAccfund
+1 -1
View File
@@ -14,4 +14,4 @@ export const scope = ContractNames._fund
/**
* @interface
*/
export type IExpensedFunds = Fund.IExpfunds
export type IExpensedFund = Fund.IExpfund
+1 -1
View File
@@ -14,4 +14,4 @@ export const scope = ContractNames._fund
/**
* @interface
*/
export type IFundWithdraws = Fund.IFwithdraws
export type IFundWithdraw = Fund.IFwithdraw
+8 -8
View File
@@ -1,44 +1,44 @@
/**
* Вызывается техническим аккаунтом кооператива для создания объекта депозита со статусом платежа.
*/
export * as createDeposit from './createDeposit'
export * as CreateDeposit from './createDeposit'
/*
* Действие используется для установки статуса депозита в 'completed' и обновления его заметки.
* Это действие также производит выпуск токенов учёта на лицевой счёт пользователя, основываясь на данных депозита.
*/
export * as completeDeposit from './completeDeposit'
export * as CompleteDeposit from './completeDeposit'
/**
* Действие `dpfail` используется для обозначения неудачи в обработке депозита, устанавливая его статус в 'failed' и обновляя заметку.
*/
export * as failDeposit from './failDeposit'
export * as FailDeposit from './failDeposit'
/**
* Действие вызывается контрактом автоматически по ходу выполнения логики для возврата идентификатора нового депозита.
* @private
*/
export * as newDepositId from './newDepositId'
export * as NewDepositId from './newDepositId'
/**
* Действие вызывается контрактом автоматически по ходу выполнения логики для возврата идентификатора нового депозита.
* @private
*/
export * as newWithdrawId from './newWithdrawId'
export * as NewWithdrawId from './newWithdrawId'
/**
* Действие вызывается для создания заявки на возврат паевого взноса пользователем.
*/
export * as createWithdraw from './createWithdraw'
export * as CreateWithdraw from './createWithdraw'
/**
*
* Действие вызывается администратором для подтверждения платежа по возврату паевого взноса пользователю.
*/
export * as completeWithdraw from './completeWithdraw'
export * as CompleteWithdraw from './completeWithdraw'
/**
*
* Действие вызывается администратором для информировании пользователя о возникновании ошибки в процессе возврата паевого взноса.
*/
export * as failWithdraw from './failWithdraw'
export * as FailWithdraw from './failWithdraw'
+1 -1
View File
@@ -1,2 +1,2 @@
export * as Deposits from './deposits'
export * as Withdrws from './withdraws'
export * as Withdraws from './withdraws'
+19 -19
View File
@@ -1,95 +1,95 @@
/**
* Действие для подтверждения готовности выполнить поставку по входящей заявке.
*/
export * as acceptRequest from './acceptRequest'
export * as AcceptRequest from './acceptRequest'
/**
* Действие вызывается автоматически после принятия решения советом для оповещения смарт-контракта маркетплейса.
* @private
*/
export * as authorize from './authorize'
export * as Authorize from './authorize'
/**
* Действие для отмены заявки на поставку.
*/
export * as cancelRequest from './cancelRequest'
export * as CancelRequest from './cancelRequest'
/**
* Действие для успешного завершения цикла поставки по заявке и разблокирования средств поставщика в кошельке.
*/
export * as completeRequest from './completeRequest'
export * as CompleteRequest from './completeRequest'
/**
* Действие для подтверждения председателем получения поставки с подписью на акте приёма-передачи.
*/
export * as confirmRecieve from './confirmRecieve'
export * as ConfirmRecieve from './confirmRecieve'
/**
* Действие для подтверждения председателем совершения поставки с подписью на акте приёма-передачи.
*/
export * as confirmSupply from './confirmSupply'
export * as ConfirmSupply from './confirmSupply'
/**
* Действие для создания заявки на поставку имущества.
*/
export * as createOffer from './createOffer'
export * as CreateOffer from './createOffer'
/**
* Действие для создания заявки на получение имущества.
*/
export * as createOrder from './createOrder'
export * as CreateOrder from './createOrder'
/**
* Действие для отклонения готовности выполнить поставку по входящей заявке.
*/
export * as declineRequest from './declineRequest'
export * as DeclineRequest from './declineRequest'
/**
* Действие для подтверждения готовности выполнить поставку по входящей заявке.
*/
export * as deliverOnRequest from './deliverOnRequest'
export * as DeliverOnRequest from './deliverOnRequest'
/**
* Действие для модерации заявки на поставку.
*/
export * as moderateRequest from './moderateRequest'
export * as ModerateRequest from './moderateRequest'
/**
* Приватное действие для возврата нового идентификатора заявки на поставку после создания заявки.
*/
export * as newRequestId from './newRequestId'
export * as NewRequestId from './newRequestId'
/**
* Действие для открытия спора по заявке на поставку.
*/
export * as openDispute from './openDispute'
export * as OpenDispute from './openDispute'
/**
* Действие для отказа в прохождении модерации с указанием причины.
*/
export * as prohibitRequest from './prohibitRequest'
export * as ProhibitRequest from './prohibitRequest'
/**
* Действие для публикации заявки на поставку.
*/
export * as publishRequest from './publishRequest'
export * as PublishRequest from './publishRequest'
/**
* Действие для подтверждения получения имущества пользователем из кооператива с подписью акта приёма-передачи.
*/
export * as recieveOnRequest from './recieveOnRequest'
export * as RecieveOnRequest from './recieveOnRequest'
/**
* Действие для подтверждения поставки имущества пользователем в кооператив с подписью акта приёма-передачи.
*/
export * as supplyOnRequest from './supplyOnRequest'
export * as SupplyOnRequest from './supplyOnRequest'
/**
* Действие для снятия заявки на поставку с публикации.
*/
export * as unpublishRequest from './unpublishRequest'
export * as UnpublishRequest from './unpublishRequest'
/**
* Действие для обновления заявки на поставку.
*/
export * as updateRequests from './updateRequest'
export * as UpdateRequests from './updateRequest'
+2 -2
View File
@@ -4,7 +4,7 @@ import { Actors } from '../../../common'
/**
* Имя таблицы
*/
export const tableName = 'exchange'
export const tableName = 'requests'
/**
* Таблица хранится в {@link Actors._coopname | области памяти кооператива}.
@@ -18,4 +18,4 @@ export const scope = Actors._coopname
* @interface
* Таблица содержит переводы черновиков документов.
*/
export type IRequests = Marketplace.IExchange
export type IRequest = Marketplace.IRequest
+6 -6
View File
@@ -3,26 +3,26 @@
* указанных в `requested`. Предложение содержит транзакцию `trx`, которая выполнится, если получит все нужные подписи.
* Если такое предложение уже существует, оно будет заменено новым.
*/
export * as proposeTransaction from './proposeTransaction'
export * as ProposeTransaction from './proposeTransaction'
/**
* Утверждает предложение `proposal_name`, созданное аккаунтом `proposer`, используя разрешение `level`.
* При успехе переносят разрешение `level` из списка ожидающих в список предоставленных одобрений предложения.
* Расходы на изменение состояния хранилища берет на себя `proposer`.
*/
export * as approveProposal from './approveProposal'
export * as ApproveProposal from './approveProposal'
/**
* Отзывает утверждение транзакцию под названием `proposal_name`, созданную аккаунтом `proposer`, используя разрешение `level`.
* Перемещает разрешение `level` обратно в список ожидающих одобрения.
*/
export * as unapproveProposal from './unapproveProposal'
export * as UnapproveProposal from './unapproveProposal'
/**
* Отменяет предложение `proposal_name`, созданное аккаунтом `proposer`. Может отменить только создатель предложения
* `proposer` или другой аккаунт после истечения срока допустимости предложения.
*/
export * as cancelProposal from './cancelProposal'
export * as CancelProposal from './cancelProposal'
/**
* Исполняет предложение мультиподписи `proposal_name`, созданное `proposer`, аккаунтом `executer`.
@@ -30,7 +30,7 @@ export * as cancelProposal from './cancelProposal'
* срок допустимости предложения не истек, и ни одно из утвердивших разрешений не инвалидировано.
* Предложение исполняется как отложенная транзакция и удаляется из таблицы.
*/
export * as execProposal from './execProposal'
export * as ExecProposal from './execProposal'
/**
* Действие, которое делает недействительными все неподтвержденные предложения мультиподписи для аккаунта `account`.
@@ -38,4 +38,4 @@ export * as execProposal from './execProposal'
* Используется в случае, если ключи к аккаунту были скомпроментированы.
* @prop account - EOSIO аккаунт, который используется для инвалидации подписей
*/
export * as invalidateProposal from './invalidateAccount'
export * as InvalidateProposal from './invalidateAccount'
+18 -7
View File
@@ -1,35 +1,46 @@
/**
* Действие верификации аккаунта
*/
export * as verificateAccount from './verificateAccount'
export * as VerificateAccount from './verificateAccount'
/**
* Действие обновления публичных данных аккаунта
*/
export * as updateAccount from './updateAccount'
export * as UpdateAccount from './updateAccount'
/**
* Действие создания нового аккаунта
*/
export * as createAccount from './createAccount'
export * as CreateAccount from './createAccount'
/**
* Действие регистрации карточки пользователя в кооперативе
*/
export * as RegisterUser from './registerUser'
/**
* Действие регистрации карточки организации в кооперативе
*/
export * as registerOrganization from './registerOrganization'
export * as RegisterOrganization from './registerOrganization'
/**
* Действие замены активного ключа пользователя за подписью системного аккаунта делегатов.
*/
export * as changeKey from './changeKey'
export * as ChangeKey from './changeKey'
/**
* Действие подачи заявления на вступление в кооператив
*/
export * as joinCooperative from './joinCooperative'
export * as JoinCooperative from './joinCooperative'
/**
* Действие, которое вызывается контрактом _soviet для подтверждения заявки на вступление в кооператив после принятия советом решения.
* @private
*/
export * as confirmJoin from './confirmJoin'
export * as ConfirmJoin from './confirmJoin'
/**
* Действие, которые вызывается системным контрактом для инициализации.
* @private
*/
export * as Init from './init'
+15
View File
@@ -0,0 +1,15 @@
import * as Permissions from '../../../common/permissions'
import * as ContractNames from '../../../common/names'
import type * as Registrator from '../../../interfaces/registrator'
export const authorizations = [{ permissions: [Permissions.active], actor: ContractNames._system }] as const
/**
* Имя действия
*/
export const actionName = 'init'
/**
* @interface
*/
export type IInit = Registrator.IInit
+1 -1
View File
@@ -15,4 +15,4 @@ export const scope = ContractNames._registrator
* @interface
* Таблица содержит реестр аккаунтов системы.
*/
export type IAccounts = Registrator.IAccounts
export type IAccount = Registrator.IAccount
@@ -1,17 +0,0 @@
import { Actors } from '../../../common'
import type * as Registrator from '../../../interfaces/registrator'
/**
* Имя таблицы
*/
export const tableName = 'balances'
/**
* Таблица хранится в {@link Actors._coopname | области памяти кооператива}.
*/
export const scope = Actors._coopname
/**
* @interface
* Таблица содержит баланс для регистрации новых аккаунтов кооперативом.
*/
export type IBalances = Registrator.IBalancesBase
+1 -11
View File
@@ -4,17 +4,7 @@
*/
export * as Accounts from './accounts'
// /**
// * Таблица содержит баланс для регистрации новых аккаунтов кооперативом.
// */
// export * as Balances from './balances'
/**
* Таблица содержит реестр организаций-пайщиков кооператива.
* Таблица содержит реестр организаций системы.
*/
export * as Organizations from './organizations'
/**
* Таблица содержит реестр пользователей-пайщиков кооператива.
*/
export * as Users from './users'
@@ -15,4 +15,4 @@ export const scope = ContractNames._registrator
* @interface
* Таблица содержит реестр организаций-пайщиков кооператива.
*/
export type IUsers = Registrator.IOrgs
export type IOrganization = Registrator.IOrganization
-18
View File
@@ -1,18 +0,0 @@
import { Actors } from '../../../common'
import type * as Registrator from '../../../interfaces/registrator'
/**
* Имя таблицы
*/
export const tableName = 'users'
/**
* Таблица хранится в {@link Actors._coopname | области памяти кооператива}.
*/
export const scope = Actors._coopname
/**
* @interface
* Таблица содержит реестр пользователей-пайщиков кооператива.
*/
export type IUsers = Registrator.IUsers
@@ -1,14 +1,14 @@
/**
* Действие создаёт новый адрес.
*/
export * as createAddress from './createAddress'
export * as CreateAddress from './createAddress'
/**
* Действие удаляет адресс.
*/
export * as deleteAddress from './deleteAddress'
export * as DeleteAddress from './deleteAddress'
/**
* Действие редактирует адресс.
*/
export * as editAddress from './editAddress'
export * as EditAddress from './editAddress'
+16 -10
View File
@@ -1,19 +1,25 @@
/**
* Действие добавления администратора.
*/
export * as addAdmin from './addAdmin'
export * as AddAdmin from './addAdmin'
/**
* Действие удаления администратора.
*/
export * as deleteAdmin from './deleteAdmin'
export * as DeleteAdmin from './deleteAdmin'
/*
* Действие регистрации платежа.
*/
export * as registerPayment from './registerPayment'
/**
* Действие регистрации платежа.
*/
export * as RegisterPayment from './registerPayment'
/*
* Действие установки прав администраторов.
*/
export * as setRights from './setRights'
/**
* Действие установки прав администраторов.
*/
export * as SetRights from './setRights'
/**
* Действие для инициализации контракта.
* @private
*/
export * as Init from './init'
@@ -0,0 +1,21 @@
import * as Permissions from '../../../../common/permissions'
import type * as Soviet from '../../../../interfaces/soviet'
import { Actors } from '../../../../common'
/**
* Действие выполняется за подписью {@link Actors._system | системного контракта}.
*/
export const authorizations = [
{ permissions: [Permissions.active], actor: Actors._system },
] as const
/**
* Имя действия
*/
export const actionName = 'init'
/**
* @interface
* Действие добавления администратора.
*/
export type IInit = Soviet.IInit
+2 -2
View File
@@ -1,2 +1,2 @@
export * as createBoard from './createBoard'
export * as updateBoard from './updateBoard'
export * as CreateBoard from './createBoard'
export * as UpdateBoard from './updateBoard'
+13 -13
View File
@@ -1,22 +1,22 @@
/**
* Принимает голос "ПРОТИВ" от члена совета по повестке собрания.
*/
export * as voteAgainst from './voteAgainst'
export * as VoteAgainst from './voteAgainst'
/**
* Принимает голос "ПРОТИВ" от члена совета по повестке собрания.
*/
export * as voteFor from './voteFor'
export * as VoteFor from './voteFor'
/**
* Принимает отмену голоса. Метод позволяет члену совета отменить свой голос, если решение еще не принято.
*/
export * as cancelVote from './cancelVote'
export * as CancelVote from './cancelVote'
/**
* Действие утверждения принятого советом решения.
*/
export * as authorize from './authorize'
export * as Authorize from './authorize'
/**
* Действие исполнения принятого решения.
@@ -25,49 +25,49 @@ export * as authorize from './authorize'
* Однако, любой пользователь/кооператив может вызвать исполнение решения после того,
* как оно было принято советом, если председатель по-какой-либо причине не исполнил его сам.
*/
export * as exec from './exec'
export * as Exec from './exec'
/**
* Действие поставляет в совет на голосование заявления на взнос и возврат взноса двух пайщиков целевой потребительской программы маркетплейса.
* @private
*/
export * as marketDecision from './marketDecision'
export * as MarketDecision from './marketDecision'
/**
* Действие поставляет в совет на голосование заявление на возврат паевого взноса.
* @private
*/
export * as withdrawDecision from './withdrawDecision'
export * as WithdrawDecision from './withdrawDecision'
/**
* Действие поставляет в совет на голосование документ о необходимости использования средств фондов кооператива (кроме паевого).
* @private
*/
export * as fundWithdrawDecision from './fundWithdrawDecision'
export * as FundWithdrawDecision from './fundWithdrawDecision'
/**
* Действие поставляет в совет на голосование заявление на вступление в кооператив.
* @private
*/
export * as joinCoopDecision from './joinCoopDecision'
export * as JoinCoopDecision from './joinCoopDecision'
/**
* Действие поставляет в совет информацию о завершении процесса клиринга и инициирует выпуск закрывающих документов в реестр.
* @private
*/
export * as productRecieved from './productRecieved'
export * as ProductRecieved from './productRecieved'
/**
* Действие валидации документов, поданных на голосование в совет.
*/
export * as validate from './validate'
export * as Validate from './validate'
/**
* Подключает автоматизацию принятия решений по указанным типам вопросов на повестке для члена совета.
*/
export * as automate from './automate'
export * as Automate from './automate'
/**
* Отключает автоматизацию принятия решений по указанным типам вопросов на повестке для члена совета.
*/
export * as disautomate from './disautomate'
export * as Disautomate from './disautomate'
+5
View File
@@ -30,3 +30,8 @@ export * as Decisions from './decisions'
* Пространство управления собраниями и советами.
*/
export * as Boards from './boards'
/**
* Пространство управления администраторами.
*/
export * as Admins from './admins'
@@ -1,14 +1,14 @@
/**
* Действие создаёт целевую потребительскую программу маркетплейса.
*/
export * as createMarketProgram from './createMarketProgram'
export * as CreateMarketProgram from './createMarketProgram'
/**
* Действие редактирует целевую потребительскую программу маркетплейса.
*/
export * as editMarketProgram from './editMarketProgram'
export * as EditMarketProgram from './editMarketProgram'
/**
* Действие отключает целевую потребительскую программу маркетплейса.
*/
export * as disableMarketProgram from './disableMarketProgram'
export * as DisableMarketProgram from './disableMarketProgram'
+11 -5
View File
@@ -2,28 +2,34 @@
* Действие фиксирует документ в реестре перед отправкой в совет на голосование.
* @private
*/
export * as draft from './draft'
export * as NewSubmitted from './newsubmitted'
/**
* Действие фиксирует связанную группу подписанных документов, которые отправляются в совет на голосование.
* @private
*/
export * as batch from './batch'
export * as NewBatch from './newbatch'
/**
* Действие фиксирует в реестре заявление, по которому принято решение советом кооператива.
* @private
*/
export * as statement from './statement'
export * as NewResolved from './newresolved'
/**
* Действие фиксирует в реестре подписанные акты приёма-передачи имущества.
* @private
*/
export * as act from './act'
export * as NewAct from './newact'
/**
* Действие фиксирует в реестре принятое решение советом.
* @private
*/
export * as decision from './decision'
export * as NewDecision from './newdecision'
/**
* Действие фиксирует в реестре идентификатор созданной целевой потребительской программы кооператива.
* @private
*/
export * as NewProgram from './newprogram'
@@ -10,10 +10,10 @@ export const authorizations = [{ permissions: [Permissions.active], actor: Contr
/**
* Имя действия
*/
export const actionName = 'act'
export const actionName = 'newact'
/**
* @interface
* Действие фиксирует в реестре подписанные акты приёма-передачи имущества.
*/
export type IAct = Soviet.IAct
export type INewAct = Soviet.INewact
@@ -10,10 +10,10 @@ export const authorizations = [{ permissions: [Permissions.active], actor: Contr
/**
* Имя действия
*/
export const actionName = 'batch'
export const actionName = 'newbatch'
/**
* @interface
* Действие фиксирует связанную группу подписанных документов, которые отправляются в совет на голосование.
*/
export type IBatch = Soviet.IBatch
export type INewBatch = Soviet.INewbatch
@@ -10,10 +10,10 @@ export const authorizations = [{ permissions: [Permissions.active], actor: Contr
/**
* Имя действия
*/
export const actionName = 'decision'
export const actionName = 'newdecision'
/**
* @interface
* Действие фиксирует в реестре принятое решение совета.
*/
export type IDecision = Soviet.IDecision
export type INewDecision = Soviet.INewdecision
@@ -0,0 +1,19 @@
import * as Permissions from '../../../../common/permissions'
import * as ContractNames from '../../../../common/names'
import type * as Soviet from '../../../../interfaces/soviet'
/**
* Действие выполняется автоматически по ходу работы системы за подписью контракта _soviet.
*/
export const authorizations = [{ permissions: [Permissions.active], actor: ContractNames._soviet }] as const
/**
* Имя действия
*/
export const actionName = 'newprogram'
/**
* @interface
* Действие фиксирует созданную программу после создания и возвращает её идентификатор
*/
export type INewProgram = Soviet.INewprogram
@@ -10,11 +10,11 @@ export const authorizations = [{ permissions: [Permissions.active], actor: Contr
/**
* Имя действия
*/
export const actionName = 'statement'
export const actionName = 'newresolved'
/**
* @interface
* Действие фиксирует принятое заявление в реестре после принятия решения советом кооператива.
* @private
*/
export type IStatement = Soviet.IStatement
export type INewResolved = Soviet.INewresolved
@@ -10,10 +10,10 @@ export const authorizations = [{ permissions: [Permissions.active], actor: Contr
/**
* Имя действия
*/
export const actionName = 'draft'
export const actionName = 'newsubmitted'
/**
* @interface
* Действие фиксирует документ в реестре перед отправкой в совет.
*/
export type IDraft = Soviet.IDraft
export type INewSubmitted = Soviet.INewsubmitted
+6 -6
View File
@@ -2,13 +2,13 @@
* Действие добавляет баланс токенов учёта паевого взноса в кошелёк пользователя.
* @private
*/
export * as addBalance from './addBalance'
export * as AddBalance from './addBalance'
/**
* Действие списывает баланс токенов учёта паевого взноса из кошелька пользователя.
* @private
*/
export * as subBalance from './subBalance'
export * as SubBalance from './subBalance'
/**
* Действие блокирует баланс токенов учёта паевого взноса в кошельке пользователя.
@@ -16,22 +16,22 @@ export * as subBalance from './subBalance'
* в процессе возврата паевого взноса до момента фактической выплаты, и т.д.
* @private
*/
export * as blockBalance from './blockBalance'
export * as BlockBalance from './blockBalance'
/**
* Действие разблокирует баланс токенов учёта паевого взноса в кошельке пользователя.
* @private
*/
export * as unblockBalance from './unblockBalance'
export * as UnblockBalance from './unblockBalance'
/**
* Действие добавляет баланс токенов учёта в целевую потребительскую программу кооператива.
* @private
*/
export * as addProgramBalance from './addProgramBalance'
export * as AddProgramBalance from './addProgramBalance'
/**
* Действие списывает баланс токенов учёта из целевой потребительской программы кооператива.
* @private
*/
export * as subProgramBalance from './subProgramBalance'
export * as SubProgramBalance from './subProgramBalance'
+1 -1
View File
@@ -15,4 +15,4 @@ export const scope = Actors._coopname
* @interface
* Таблица хранит информацию о адресах кооператива.
*/
export type IAddresses = Soviet.IAddresses
export type IAddress = Soviet.IAddress
+1 -1
View File
@@ -14,4 +14,4 @@ export const scope = Actors._coopname
/**
* @interface
*/
export type IDecisions = Soviet.IDecisions
export type IDecision = Soviet.IDecision
@@ -15,4 +15,4 @@ export const scope = Actors._coopname
* @interface
* Таблица хранит информацию о балансах пайщиков в целевых потребительских программах кооператива.
*/
export type IProgramWallets = Soviet.IProgwallets
export type IProgramWallet = Soviet.IProgwallet
+1 -1
View File
@@ -15,4 +15,4 @@ export const scope = Actors._coopname
* @interface
* Таблица содержит сводный баланс пайщиков кооператива.
*/
export type IWallets = Soviet.IWallets
export type IWallets = Soviet.IOnewallet
@@ -0,0 +1,16 @@
import * as Permissions from '../../../common/permissions'
import * as ContractNames from '../../../common/names'
import type * as System from '../../../interfaces/system'
export const authorizations = [{ permissions: [Permissions.active], actor: ContractNames._registrator },
] as const
/**
* Имя действия
*/
export const actionName = 'createaccnt'
/**
* @interface
*/
export type ICreateAccount = System.ICreateaccnt
+42 -37
View File
@@ -1,37 +1,37 @@
/**
* Действие инициализирует системный контракт после установки.
*/
export * as init from './init'
export * as Init from './init'
/**
* Действие устанавливает код контракта на аккаунт.
*/
export * as setCode from './setCode'
export * as SetCode from './setCode'
/**
* Действие устанавливает параметры эмиссии после инициализации контракта.
*/
export * as initEmission from './initEmission'
export * as InitEmission from './initEmission'
/**
* Действие устанавливает лимит времени использования процессора для аккаунта.
*/
export * as setCPULimits from './setCPULimits'
export * as SetCPULimits from './setCPULimits'
/**
* Действие устанавливает лимит объема внутреннего сетевого трафика для аккаунта.
*/
export * as setNETLimits from './setNETLimits'
export * as SetNETLimits from './setNETLimits'
/**
* Действие устанавливает лимит оперативной памяти для аккаунта.
*/
export * as setRAMLimits from './setRAMLimits'
export * as SetRAMLimits from './setRAMLimits'
/**
* Действие активирует дополнительную функциональность протокола по её хэшу.
*/
export * as activateFeature from './activateFeature'
export * as ActivateFeature from './activateFeature'
/**
* Действие для бессрочной ресурсов CPU и NET за счёт токенов аккаунта.
@@ -39,7 +39,7 @@ export * as activateFeature from './activateFeature'
* После активации системы POWERUP действие delegateBW не имеет никакого эффекта.
* @deprecated
*/
export * as delegateBW from './delegateBW'
export * as DelegateBW from './delegateBW'
/**
* Действие для возврата токенов на аккаунт из бессрочной аренды ресурсов CPU и NET.
@@ -47,7 +47,7 @@ export * as delegateBW from './delegateBW'
* После активации системы POWERUP действие undelegateBW не имеет никакого эффекта.
* @deprecated
*/
export * as undelegateBW from './undelegateBW'
export * as UndelegateBW from './undelegateBW'
/**
* Действие для бессрочной аренды оперативной памяти для аккаунта с указанием количества токенов в залоге.
@@ -55,7 +55,7 @@ export * as undelegateBW from './undelegateBW'
* После активации системы POWERUP действие buyRAM не имеет никакого эффекта.
* @deprecated
*/
export * as buyRAM from './buyRAM'
export * as BuyRAM from './buyRAM'
/**
* Действие для бессрочной аренды оперативной памяти для аккаунта с указанием количества требуемых байт.
@@ -63,7 +63,7 @@ export * as buyRAM from './buyRAM'
* После активации системы POWERUP действие buyRAMBytes не имеет никакого эффекта.
* @deprecated
*/
export * as buyRAMBytes from './buyRAMBytes'
export * as BuyRAMBytes from './buyRAMBytes'
/**
* Действие для возврата токенов из трехдневной заморозки при отмены бессрочной аренды ресурсов.
@@ -71,83 +71,83 @@ export * as buyRAMBytes from './buyRAMBytes'
* После активации системы POWERUP действие refund не используется.
* @deprecated
*/
export * as refund from './refund'
export * as Refund from './refund'
/**
* Действие для регистрации производителя блоков.
*/
export * as registerProducer from './registerProducer'
export * as RegisterProducer from './registerProducer'
/**
* Расширенное действие для регистрации производителя блоков с мультиподписью.
*/
export * as registerProducer2 from './registerProducer2'
export * as RegisterProducer2 from './registerProducer2'
/**
* Действие для отмены регистрации производителя блоков и его отключения.
*/
export * as unregisterProducer from './unregisterProducer'
export * as UnregisterProducer from './unregisterProducer'
/**
* Действие для установки общего количества RAM, которое предоставляется каждым производителем.
* Может только увеличиваться и не может уменьшаться.
*/
export * as setTotalRAM from './setTotalRAM'
export * as SetTotalRAM from './setTotalRAM'
/**
* Действие для установки скорости увеличения количества RAM, которое предоставляется каждым производителем.
*/
export * as setTotalRAMRate from './setTotalRAMRate'
export * as SetTotalRAMRate from './setTotalRAMRate'
/**
* Действие для голосования за список производителей. Список должен быть отсортирован по алфавиту.
*/
export * as voteForProducer from './voteForProducer'
export * as VoteForProducer from './voteForProducer'
/**
* Действие для обновления силы голоса после изменения количества ресурсов на аккаунте.
* Действие устарело и не используется в связи с тем, что сила голоса каждого голосующего аккаунта всегда постоянна и равна 1.
* @deprecated
*/
export * as voteUpdate from './voteUpdate'
export * as VoteUpdate from './voteUpdate'
/**
* Действие для регистрации аккаунта в качестве прокси на голосовании за производителей.
* Позволяет прокси собрать голоса участников на себе и проголосовать за производителей от их лица.
* Вес голоса каждого прокси кратен количеству участников, которые делегировали ему свой голос.
*/
export * as registerProxy from './registerProxy'
export * as RegisterProxy from './registerProxy'
/**
* Действие позволяет производителю получить вознаграждение согласно количеству произведенных блоков и собранных голосов.
*/
export * as claimRewards from './claimRewards'
export * as ClaimRewards from './claimRewards'
/**
* Действие позволяет системному контракту за подписью 70% активных делегатов отключить делегата от производства блоков.
*/
export * as removeProducer from './removeProducer'
export * as RemoveProducer from './removeProducer'
/**
* Действие для обновления ревизии контракта, что позволяет последовательно вводить и активировать новые особенности работы.
*/
export * as updateRevision from './updateRevision'
export * as UpdateRevision from './updateRevision'
/**
* Действие для участия в аукционе коротких имен.
* Временно недоступно.
*/
export * as bidName from './bidName'
export * as BidName from './bidName'
/**
* Действие для возврата токенов из аукциона имен.
*/
export * as bidNameRefund from './bidNameRefund'
export * as BidNameRefund from './bidNameRefund'
/**
* Действие для перевода аккаунта в статус привелигированного.
*/
export * as setPrivileged from './setPrivileged'
export * as SetPrivileged from './setPrivileged'
/**
* Действие для установки лимитов ресурсов (RAM, NET, CPU) для аккаунта.
@@ -155,58 +155,63 @@ export * as setPrivileged from './setPrivileged'
* и которые не имеют установленных лимитов на эти ресурсы. Требует права авторизации
* системного смарт-контракта для выполнения.
*/
export * as setAccountLimits from './setAccountLimits'
export * as SetAccountLimits from './setAccountLimits'
/**
* Действие для установки параметров блокчейна.
* Применяется для конфигурирования основных технических характеристик и рабочих параметров сети.
* Требует права авторизации системного смарт-контракта для выполнения.
*/
export * as setParams from './setParams'
export * as SetParams from './setParams'
/**
* Действие для инициализации механизма временной аренды ресурсов.
* Позволяет установить начальные параметры аренды.
*/
export * as initPowerup from './initPowerup'
export * as InitPowerup from './initPowerup'
/**
* Действие для обработки очереди возврата арендованных ресурсов.
* Вызывается автоматически при каждом действии powerup и может быть вызвано любым пользователем.
*/
export * as execPowerup from './execPowerup'
export * as ExecPowerup from './execPowerup'
/**
* Действие для аренды ресурсов CPU, NET и RAM.
*/
export * as powerup from './powerup'
export * as Powerup from './powerup'
/**
* Действие используется для регистрации нового аккаунта в блокчейне.
*/
export * as newAccount from './newAccount'
export * as NewAccount from './newAccount'
/**
* Действие используется для регистрации нового аккаунта в блокчейне контрактом регистратора.
*/
export * as CreateAccount from './createAccount'
/**
* Через это действие происходит определение интерфейса взаимодействия с контрактом через ABI.
*/
export * as setAbi from './setAbi'
export * as SetAbi from './setAbi'
/**
* Это действие изменяет конфигурацию полномочий для различных операций аккаунта.
*/
export * as updateAuth from './updateAuth'
export * as UpdateAuth from './updateAuth'
/**
* Действие отменяет существующую конфигурацию полномочий, удаляя их для аккаунта.
*/
export * as deleteAuth from './deleteAuth'
export * as DeleteAuth from './deleteAuth'
/**
* Через это действие назначаются особые права для выполнения конкретных действий смарт-контракта.
*/
export * as linkAuth from './linkAuth'
export * as LinkAuth from './linkAuth'
/**
* Действие позволяет отменить ранее запланированную отложенную транзакцию.
*/
export * as cancelDelay from './cancelDelay'
export * as CancelDelay from './cancelDelay'
+6 -6
View File
@@ -1,29 +1,29 @@
/**
* Действие совершения перевода токенов AXON между аккаунтами.
*/
export * as transfer from './transfer'
export * as Transfer from './transfer'
/**
* Действие создает нулевой баланс у пользователя за счет плательщика RAM. Используется автоматически при входящем переводе за счет RAM отправителя.
*/
export * as open from './open'
export * as Open from './open'
/**
* Действие удаляет запись о нулевом балансе пользователя и тем самым освобождает RAM плательщика.
*/
export * as close from './close'
export * as Close from './close'
/**
* Действие создаёт токен для последующего выпуска.
*/
export * as create from './create'
export * as Create from './create'
/**
* Действие по выпуску токенов.
*/
export * as issue from './issue'
export * as Issue from './issue'
/**
* Действие по сжиганию токенов.
*/
export * as retire from './retire'
export * as Retire from './retire'
+1 -1
View File
@@ -1,7 +1,7 @@
import * as Permissions from '../../../common/permissions'
import type * as Token from '../../../interfaces/token'
/**
* Для выпуска токенов требуется авторизация учетной записи эмитента, указанная {@link create.ICreate | при создании токена}.
* Для выпуска токенов требуется авторизация учетной записи эмитента, указанная в поле issuer при создании токена.
*/
export const authorizations = [{ permissions: [Permissions.active], actor: 'currencyStats.issuer' }] as const
+1 -1
View File
@@ -2,7 +2,7 @@ import * as Permissions from '../../../common/permissions'
import type * as Token from '../../../interfaces/token'
/**
* Для сжигания токенов требуется авторизация учетной записи эмитента, указанная {@link create.ICreate | при создании токена}.
* Для сжигания токенов требуется авторизация учетной записи эмитента, указанная при создании токена.
*/
export const authorizations = [{ permissions: [Permissions.active], actor: 'currencyStats.issuer' }] as const
+70
View File
@@ -0,0 +1,70 @@
import type { IEntrepreneurData, IIndividualData, IOrganizationData } from '../users'
export interface ITable {
chain_id: string
block_num: number
block_id: string
present: string
code: string
scope: string
table: string
primary_key: string
value?: any
}
export interface IAction {
transaction_id: string
account: string
block_num: number
block_id: string
chain_id: string
name: string
receiver: string
authorization: Array<{
actor: string
permission: string
}>
data: any
action_ordinal: number
global_sequence: string
account_ram_deltas: Array<{
account: string
delta: number
}>
console: string
receipt: {
receiver: string
act_digest: string
global_sequence: string
recv_sequence: string
auth_sequence: Array<{
account: string
sequence: string
}>
code_sequence: number
abi_sequence: number
}
creator_action_ordinal: number
context_free: boolean
elapsed: number
}
export interface IExtendedTable extends ITable {
}
export interface IExtendedAction extends IAction {
user: IIndividualData | IEntrepreneurData | IOrganizationData | null
}
export interface IGetActions {
results: IAction[]
page: number
limit: number
}
export interface IGetTables {
results: ITable[]
page: number
limit: number
}
+93
View File
@@ -0,0 +1,93 @@
import type { SovietContract } from '../../contracts'
import type { IAction, IExtendedAction } from '../blockchain'
export type LangType = 'ru'
export interface IChainDocument {
hash: string
public_key: string
signature: string
meta: string
}
// Определение базового интерфейса для мета-информации
export interface IMetaDocument {
code: string
action: string
title: string
registry_id: number
lang: LangType
generator: string
version: string
coopname: string
username: string
created_at: string
block_num: number
timezone: string
}
export interface IGeneratedDocument {
full_title?: string
html: string
hash: string
meta: IMetaDocument
binary: Uint8Array
}
export interface IComplexStatement {
action: IExtendedAction
document: IGeneratedDocument
}
export interface IComplexDecision {
action: IExtendedAction
document: IGeneratedDocument
votes_for: IExtendedAction[]
votes_against: IExtendedAction[]
}
export interface IComplexAct {
action?: IExtendedAction
document?: IGeneratedDocument
}
export interface IComplexDocument {
statement: IComplexStatement
decision: IComplexDecision
acts: IComplexAct[]
}
export interface IGetComplexDocuments {
results: IComplexDocument[]
page: number
limit: number
}
export interface IAgenda {
table: SovietContract.Tables.Decisions.IDecision
action: IAction
}
export interface IComplexAgenda extends IAgenda {
documents: IComplexDocument
}
/**
* Общий интерфейс для генерации/регенерации документа
*/
export interface IGenerate extends Omit<Partial<IMetaDocument>, 'registry_id' | 'title'> {
code: string
action: string
coopname: string
username: string
[key: string]: any
}
export interface IGenerateJoinCoop extends IGenerate {
signature: string
skip_save: boolean
}
export interface IGenerateJoinCoopDecision extends IGenerate {
decision_id: number
}
+4
View File
@@ -0,0 +1,4 @@
export * as Documents from './documents'
export * as Users from './users'
export * as Blockchain from './blockchain'
export * as Model from './model'
+37
View File
@@ -0,0 +1,37 @@
import type { SovietContract } from '../../contracts'
import type { Details, IIndividualData, IOrganizationData } from '../users'
export interface ICooperativeData extends IOrganizationData {
announce: string
description: string
is_branched: boolean
is_enrolled: boolean
registration: string
initial: string
minimum: string
members: MembersData[]
chairman: IIndividualData
totalMembers: number
}
export interface MembersData extends SovietContract.Interfaces.IBoardMember, IIndividualData {
is_chairman: boolean
}
export interface IAnnounce {
phone: string
email: string
}
export interface IContacts {
full_name: string
full_address: string
details: Details
phone: string
email: string
chairman: {
first_name: string
last_name: string
middle_name: string
}
}
+69
View File
@@ -0,0 +1,69 @@
export type Country = 'Russia' | 'Other'
export interface Details {
inn: string
ogrn: string
}
export type Currency = 'RUB' | 'Other'
export interface IBankAccount {
currency: Currency
card_number?: string // < номер карты
bank_name: string // < наименование банка
account_number: string // < номер счёта
details: {
bik: string // < бик
corr: string // < корр счёт
kpp: string // < кпп
}
}
export interface IIndividualData {
username: string
first_name: string
last_name: string
middle_name: string
birthdate: string
full_address: string
phone: string
email: string
}
export interface IOrganizationData {
username: string
type: 'coop' | 'ooo' | 'oao' | 'zao' | 'pao' | 'ao'
is_cooperative: boolean
short_name: string
full_name: string
represented_by: {
first_name: string
last_name: string
middle_name: string
position: string
based_on: string
}
country: Country
city: string
full_address: string
phone: string
email: string
details: Details
bank_account: IBankAccount
}
export interface IEntrepreneurData {
username: string
first_name: string
last_name: string
middle_name: string
birthdate: string
phone: string
email: string
country: Country
city: string
full_address: string
details: Details
bank_account: IBankAccount
}
export type IUserData = IIndividualData | IOrganizationData | IEntrepreneurData
+1
View File
@@ -12,3 +12,4 @@
export * as _Common from './common'
export * from './contracts'
export * as Cooperative from './cooperative'
-27
View File
@@ -1,27 +0,0 @@
// Generated by eosio-abi2ts 1.2.2 - eosio::abi/1.2
export type IAsset = string
export type IName = string
export type IUint64 = number | string
export interface IBalances extends IBalancesBase {
}
export interface IBalancesBase {
id: IUint64
contract: IName
quantity: IAsset
}
export interface ICounts extends ICountsBase {
}
export interface ICountsBase {
key: IName
secondary_key: IName
value: IUint64
}
export interface INewid {
coop_id: IUint64
}
+11 -11
View File
@@ -36,7 +36,16 @@ export interface IDeltrans {
translate_id: IUint64
}
export interface IDrafts {
export interface IEdittrans {
translate_id: IUint64
data: string
}
export interface INewid {
id: IUint64
}
export interface IOnedraft {
id: IUint64
registry_id: IUint64
creator: IName
@@ -49,16 +58,7 @@ export interface IDrafts {
model: string
}
export interface IEdittrans {
translate_id: IUint64
data: string
}
export interface INewid {
id: IUint64
}
export interface ITranslations {
export interface ITranslation {
id: IUint64
creator: IName
draft_id: IUint64
+9 -6
View File
@@ -2,10 +2,13 @@
export type IAsset = string
export type IName = string
export type IChecksum256 = string
export type IPublicKey = string
export type ISignature = string
export type ITimePointSec = string
export type IUint64 = number | string
export interface IAccfunds {
export interface IAccfund {
id: IUint64
coopname: IName
contract: IName
@@ -72,9 +75,9 @@ export interface IDelfund {
}
export interface IDocument {
hash: string
pkey: string
sign: string
hash: IChecksum256
public_key: IPublicKey
signature: ISignature
meta: string
}
@@ -89,7 +92,7 @@ export interface IEditfund {
percent: IUint64
}
export interface IExpfunds {
export interface IExpfund {
id: IUint64
coopname: IName
contract: IName
@@ -119,7 +122,7 @@ export interface IFundwithdraw {
bank_data_id: string
}
export interface IFwithdraws {
export interface IFwithdraw {
id: IUint64
coopname: IName
username: IName
+6 -3
View File
@@ -2,6 +2,9 @@
export type IAsset = string
export type IName = string
export type IChecksum256 = string
export type IPublicKey = string
export type ISignature = string
export type ITimePointSec = string
export type IUint64 = number | string
@@ -44,9 +47,9 @@ export interface IDeposits {
}
export interface IDocument {
hash: string
pkey: string
sign: string
hash: IChecksum256
public_key: IPublicKey
signature: ISignature
meta: string
}
+74 -53
View File
@@ -2,6 +2,9 @@
export type IAsset = string
export type IName = string
export type IChecksum256 = string
export type IPublicKey = string
export type ISignature = string
export type ITimePointSec = string
export type IUint64 = number | string
@@ -28,6 +31,15 @@ export interface IAuthorize {
return_product_authorization: IDocument
}
export interface IBalances extends IBalancesBase {
}
export interface IBalancesBase {
id: IUint64
contract: IName
quantity: IAsset
}
export interface ICancel {
coopname: IName
username: IName
@@ -40,6 +52,15 @@ export interface IComplete {
exchange_id: IUint64
}
export interface ICounts extends ICountsBase {
}
export interface ICountsBase {
key: IName
secondary_key: IName
value: IUint64
}
export interface IDecline {
coopname: IName
username: IName
@@ -61,61 +82,12 @@ export interface IDispute {
}
export interface IDocument {
hash: string
pkey: string
sign: string
hash: IChecksum256
public_key: IPublicKey
signature: ISignature
meta: string
}
export interface IExchange {
id: IUint64
parent_id: IUint64
program_id: IUint64
coopname: IName
type: IName
status: IName
username: IName
parent_username: IName
token_contract: IName
unit_cost: IAsset
supplier_amount: IAsset
total_cost: IAsset
membership_fee: IAsset
remain_units: IUint64
blocked_units: IUint64
delivered_units: IUint64
data: string
meta: string
money_contributor: IName
product_contributor: IName
contribute_product_statement: IDocument
return_product_statement: IDocument
contribution_product_decision_id: IUint64
contribution_product_authorization: IDocument
return_product_decision_id: IUint64
return_product_authorization: IDocument
product_contribution_act_validation: IDocument
product_contribution_act: IDocument
product_recieve_act: IDocument
product_recieve_act_validation: IDocument
product_lifecycle_secs: IUint64
cancellation_fee: IUint64
cancellation_fee_amount: IAsset
created_at: ITimePointSec
accepted_at: ITimePointSec
supplied_at: ITimePointSec
delivered_at: ITimePointSec
recieved_at: ITimePointSec
completed_at: ITimePointSec
declined_at: ITimePointSec
disputed_at: ITimePointSec
canceled_at: ITimePointSec
warranty_delay_until: ITimePointSec
deadline_for_receipt: ITimePointSec
is_warranty_return: boolean
warranty_return_id: IUint64
}
export interface IExchangeParams {
username: IName
parent_id: IUint64
@@ -124,7 +96,7 @@ export interface IExchangeParams {
pieces: IUint64
unit_cost: IAsset
product_lifecycle_secs: IUint64
document: IDocument
document?: IDocument
data: string
meta: string
}
@@ -176,6 +148,55 @@ export interface IRecievecnfrm {
document: IDocument
}
export interface IRequest {
id: IUint64
parent_id: IUint64
program_id: IUint64
coopname: IName
type: IName
status: IName
username: IName
parent_username: IName
token_contract: IName
unit_cost: IAsset
supplier_amount: IAsset
total_cost: IAsset
membership_fee: IAsset
remain_units: IUint64
blocked_units: IUint64
delivered_units: IUint64
data: string
meta: string
money_contributor: IName
product_contributor: IName
contribute_product_statement: IDocument
return_product_statement: IDocument
contribution_product_decision_id: IUint64
contribution_product_authorization: IDocument
return_product_decision_id: IUint64
return_product_authorization: IDocument
product_contribution_act_validation: IDocument
product_contribution_act: IDocument
product_recieve_act: IDocument
product_recieve_act_validation: IDocument
product_lifecycle_secs: IUint64
cancellation_fee: IUint64
cancellation_fee_amount: IAsset
created_at: ITimePointSec
accepted_at: ITimePointSec
supplied_at: ITimePointSec
delivered_at: ITimePointSec
recieved_at: ITimePointSec
completed_at: ITimePointSec
declined_at: ITimePointSec
disputed_at: ITimePointSec
canceled_at: ITimePointSec
warranty_delay_until: ITimePointSec
deadline_for_receipt: ITimePointSec
is_warranty_return: boolean
warranty_return_id: IUint64
}
export interface ISupply {
coopname: IName
username: IName
+27 -34
View File
@@ -2,19 +2,21 @@
export type IAsset = string
export type IName = string
export type IChecksum256 = string
export type IPublicKey = string
export type ISignature = string
export type ITimePointSec = string
export type IUint64 = number | string
export interface IAccounts {
export interface IAccount {
username: IName
referer: IName
registrator: IName
type: IName
status: IName
meta: string
reputation: IUint64
registration_amount: IAsset
storages: IName[]
verifications: IVerification[]
registered_at: ITimePointSec
signature_expires_at: ITimePointSec
}
@@ -39,13 +41,17 @@ export interface IConfirmreg {
}
export interface IDocument {
hash: string
pkey: string
sign: string
hash: IChecksum256
public_key: IPublicKey
signature: ISignature
meta: string
}
export interface IInit {
}
export interface IJoincoop {
registrator: IName
coopname: IName
username: IName
document: IDocument
@@ -53,6 +59,7 @@ export interface IJoincoop {
export interface INewaccount {
registrator: IName
coopname: IName
referer: IName
username: IName
public_key: IPublicKey
@@ -61,58 +68,51 @@ export interface INewaccount {
}
export interface IOrgData {
storage: IStorage
is_cooperative: boolean
coop_type: IName
token_contract: IName
announce: string
description: string
initial: IAsset
minimum: IAsset
}
export interface IOrgs {
export interface IOrganization {
username: IName
parent_username: IName
verifications: IVerification[]
storages: IStorage[]
is_cooperative: boolean
is_active: boolean
coop_type: IName
token_contract: IName
announce: string
description: string
is_cooperative: boolean
is_branched: boolean
is_enrolled: boolean
coop_type: IName
registration: IAsset
initial: IAsset
minimum: IAsset
}
export interface IPlotData {
storage: IStorage
announce: string
description: string
}
export interface IRegorg {
coopname: IName
username: IName
params: IOrgData
}
export interface IRegplot {
export interface IRegdepartmnt {
registrator: IName
coopname: IName
username: IName
params: IPlotData
}
export interface IReguser {
export interface IRegorg {
registrator: IName
coopname: IName
username: IName
storage: IStorage
params: IOrgData
}
export interface IStorage {
storage_username: IName
export interface IReguser {
registrator: IName
coopname: IName
username: IName
}
export interface IUpdate {
@@ -120,13 +120,6 @@ export interface IUpdate {
meta: string
}
export interface IUsers {
username: IName
is_active: boolean
storages: IStorage[]
verifications: IVerification[]
}
export interface IVerificate {
username: IName
procedure: IName
+70 -87
View File
@@ -2,17 +2,12 @@
export type IAsset = string
export type IName = string
export type IChecksum256 = string
export type IPublicKey = string
export type ISignature = string
export type ITimePointSec = string
export type IUint64 = number | string
export interface IAct {
coopname: IName
username: IName
action: IName
decision_id: IUint64
document: IDocument
}
export interface IAddbalance {
coopname: IName
username: IName
@@ -27,6 +22,14 @@ export interface IAddprogbal {
}
export interface IAddress {
id: IUint64
coopname: IName
departname: IName
data: IAddressData
meta: string
}
export interface IAddressData {
latitude: string
longitude: string
country: string
@@ -42,14 +45,6 @@ export interface IAddress {
business_hours: string
}
export interface IAddresses {
id: IUint64
coopname: IName
cooplate: IName
data: IAddress
meta: string
}
export interface IAddstaff {
coopname: IName
chairman: IName
@@ -88,12 +83,6 @@ export interface IAutosigner {
decision_id: IUint64
}
export interface IBatch {
coopname: IName
action: IName
batch_id: IUint64
}
export interface IBlockbal {
coopname: IName
username: IName
@@ -117,12 +106,6 @@ export interface IBoards {
last_update: ITimePointSec
}
export interface ICancelorder {
coopname: IName
username: IName
exchange_id: IUint64
}
export interface ICancelvote {
coopname: IName
member: IName
@@ -145,11 +128,6 @@ export interface IChanges {
return_product_decision_id: IUint64
}
export interface ICompleted {
coopname: IName
exchange_id: IUint64
}
export interface ICounts extends ICountsBase {
}
@@ -162,8 +140,8 @@ export interface ICountsBase {
export interface ICreaddress {
coopname: IName
chairman: IName
cooplate: IName
data: IAddress
departname: IName
data: IAddressData
meta: string
}
@@ -190,24 +168,18 @@ export interface ICreateprog {
}
export interface IDecision {
coopname: IName
username: IName
action: IName
decision_id: IUint64
document: IDocument
}
export interface IDecisions {
id: IUint64
coopname: IName
username: IName
type: IName
batch_id: IUint64
statement: IDocument
votes_for: IName[]
votes_against: IName[]
validated: boolean
approved: boolean
authorized: boolean
authorized_by: IName
authorization: IDocument
created_at: ITimePointSec
}
@@ -231,24 +203,18 @@ export interface IDisautomate {
}
export interface IDocument {
hash: string
pkey: string
sign: string
hash: IChecksum256
public_key: IPublicKey
signature: ISignature
meta: string
}
export interface IDraft {
coopname: IName
username: IName
decision_id: IUint64
}
export interface IEditaddress {
coopname: IName
chairman: IName
address_id: IUint64
cooplate: IName
data: IAddress
departname: IName
data: IAddressData
meta: string
}
@@ -276,6 +242,9 @@ export interface IFundwithdraw {
document: IDocument
}
export interface IInit {
}
export interface IJoincoop {
coopname: IName
username: IName
@@ -290,12 +259,55 @@ export interface IJoincoops {
notice: string
}
export interface IMcontribute {
export interface INewact {
coopname: IName
username: IName
action: IName
decision_id: IUint64
document: IDocument
}
export interface INewbatch {
coopname: IName
action: IName
batch_id: IUint64
}
export interface INewdecision {
coopname: IName
username: IName
action: IName
decision_id: IUint64
document: IDocument
}
export interface INewprogram {
coopname: IName
program_id: IUint64
type: IName
secondary_id: IUint64
}
export interface INewresolved {
coopname: IName
username: IName
action: IName
decision_id: IUint64
document: IDocument
}
export interface INewsubmitted {
coopname: IName
username: IName
action: IName
decision_id: IUint64
document: IDocument
}
export interface IOnewallet {
username: IName
coopname: IName
available: IAsset
blocked: IAsset
minimum: IAsset
}
export interface IParticipants {
@@ -309,14 +321,6 @@ export interface IParticipants {
has_vote: boolean
}
export interface IPcontribute {
coopname: IName
username: IName
program_id: IUint64
type: IName
secondary_id: IUint64
}
export interface IProgcomarket {
id: IUint64
coopname: IName
@@ -332,12 +336,7 @@ export interface IProgcomarket {
fixed_membership_contribution: IAsset
}
export interface IProgram {
coopname: IName
program_id: IUint64
}
export interface IProgwallets {
export interface IProgwallet {
id: IUint64
coopname: IName
program_id: IUint64
@@ -382,14 +381,6 @@ export interface IStaff {
updated_at: ITimePointSec
}
export interface IStatement {
coopname: IName
username: IName
action: IName
decision_id: IUint64
document: IDocument
}
export interface ISubbalance {
coopname: IName
username: IName
@@ -436,14 +427,6 @@ export interface IVotefor {
decision_id: IUint64
}
export interface IWallets {
username: IName
coopname: IName
available: IAsset
blocked: IAsset
minimum: IAsset
}
export interface IWithdraw {
coopname: IName
username: IName
+7 -23
View File
@@ -130,6 +130,12 @@ export interface IConnector {
weight: IFloat64
}
export interface ICreateaccnt {
new_account_name: IName
owner: IAuthority
active: IAuthority
}
export interface IDelegatebw {
from: IName
receiver: IName
@@ -177,26 +183,10 @@ export interface IEosioGlobalState extends IBlockchainParameters {
thresh_activated_stake_time: ITimePoint
last_producer_schedule_size: IUint16
total_producer_vote_weight: IFloat64
last_name_close: IBlockTimestampType
}
export interface IEosioGlobalState2 {
new_ram_per_block: IUint16
last_ram_increase: IBlockTimestampType
last_block_num: IBlockTimestampType
total_producer_votepay_share: IFloat64
revision: IUint8
}
export interface IEosioGlobalState3 {
last_vpay_state_update: ITimePoint
total_vpay_share_change_rate: IFloat64
}
export interface IEosioGlobalState4 {
continuous_rate: IFloat64
inflation_pay_factor: IInt64
votepay_factor: IInt64
last_name_close: IBlockTimestampType
}
export interface IExchangeState {
@@ -321,12 +311,6 @@ export interface IProducerInfo {
producer_authority: IBlockSigningAuthority
}
export interface IProducerInfo2 {
owner: IName
votepay_share: IFloat64
last_votepay_share_update: ITimePoint
}
export interface IProducerKey {
producer_name: IName
block_signing_key: IPublicKey